React本地构建在iOS上失败
在我的Mac OS Monterey计算机中运行命令NPX React-nive-nimios
时,我将面临以下问题。有人可以帮我吗?
** BUILD FAILED **
The following build commands failed:
CompileC /Users/prashanth/Library/Developer/Xcode/DerivedData/myapp-akpvurjcnemajucrerqjfkzzxnng/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/ReactCommon.build/Objects-normal/x86_64/RCTTurboModuleManager.o /Users/prashanth/Documents/REPO/app/node_modules/react-native/ReactCommon/turbomodule/core/platform/ios/RCTTurboModuleManager.mm normal x86_64 objective-c++ com.apple.compilers.llvm.clang.1_0.compiler (in target 'ReactCommon' from project 'Pods')
(1 failure)
我在Pod File 平台中有以下线条
:ios,'9.0'
pod'reactCommon/turbomodule/core',:path => “ ../ node_modules/react-native/reactCommon”
版本 节点:15.14.0, 反应天然:0.62.2, Xcode:13.4.1
谢谢!
I am facing the below issue while running the command npx react-native run-ios
in my Mac Os Monterey machine. Could anybody please help me with this?
** BUILD FAILED **
The following build commands failed:
CompileC /Users/prashanth/Library/Developer/Xcode/DerivedData/myapp-akpvurjcnemajucrerqjfkzzxnng/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/ReactCommon.build/Objects-normal/x86_64/RCTTurboModuleManager.o /Users/prashanth/Documents/REPO/app/node_modules/react-native/ReactCommon/turbomodule/core/platform/ios/RCTTurboModuleManager.mm normal x86_64 objective-c++ com.apple.compilers.llvm.clang.1_0.compiler (in target 'ReactCommon' from project 'Pods')
(1 failure)
I have the following piece of lines in the Pod file
platform :ios, '9.0'
pod 'ReactCommon/turbomodule/core', :path => "../node_modules/react-native/ReactCommon"
Version of
Node: 15.14.0,
React Native: 0.62.2,
Xcode: 13.4.1
Thank you!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在iOS文件夹中,转到
pods/pods.xcodeproj/xcuserdata/project.pbxproj
更改所有
'iPhoneosoos_deployment_target = 11.0
' >。保存并运行。注意:每次您安装POD时,它都会更改,因此您必须再次进行。如果有更好的方法,请提及。
In iOS Folder go to
Pods/Pods.xcodeproj/xcuserdata/project.pbxproj
Change all the
'IPHONEOS_DEPLOYMENT_TARGET = 11.0
' to'IPHONEOS_DEPLOYMENT_TARGET = 12.4'
. save and run.Note: every time you pod install, it will change, so you have to do it again. If there is a better approach please do mention it.