React本地构建在iOS上失败

发布于 2025-02-07 04:07:28 字数 925 浏览 0 评论 0原文

在我的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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

沉睡月亮 2025-02-14 04:07:28

在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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文