请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

mac M4芯片,xcode 版本16.3执行npm run ios报错

— xcodebuild: WARNING: Using the first of multiple matching destinations:
{ platform:iOS Simulator, arch:arm64, id:7D6324C1-3C2C-4539-BD70-4A942887E31C, OS:18.4, name:iPhone 16 }
{ platform:iOS Simulator, arch:x86_64, id:7D6324C1-3C2C-4539-BD70-4A942887E31C, OS:18.4, name:iPhone 16 }
** BUILD FAILED **

The following build commands failed:
CompileC /Users/xxx/Library/Developer/Xcode/DerivedData/GitHub_RN-etjkekqrmqshmpbtkhogqjhsiakz/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/fmt.build/Objects-normal/x86_64/format.o /Users/xxx/Downloads/rn-trackshare/ios/Pods/fmt/src/format.cc normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler (in target ‘fmt’ from project ‘Pods’)
Building workspace GitHub_RN with scheme GitHub_RN and configuration Debug
(2 failures)

正在回答 回答被采纳积分+3

1回答

CrazyCodeBoy 2025-05-26 09:04:15
1.新建一个RN项目运行试试看是否还有这个问题。
2.另外检查下项目的ios目录下运行pod install是否正常。
0 回复 有任何疑惑可以回复我~
  • 提问者 慕田峪3981059 #1
    自己建项目如果react-native(0.79)和react(19)版本都用最新的没有问题,node(18),xcode(16.3)没问题。
    用你的代码react-native(0.71.0)和react(18)版本都用最新的没有问题,node(16),xcode(16.3)就不行
    回复 有任何疑惑可以回复我~ 2025-05-26 10:19:40
  • CrazyCodeBoy 回复 提问者 慕田峪3981059 #2
    看着应该是node 16版本,不支持0.7x的RN
    回复 有任何疑惑可以回复我~ 2025-05-27 08:52:46
问题已解决,确定采纳
还有疑问,暂不采纳
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号