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

来源:2-2 开发环境搭建指导-Mac平台【持续更新】

慕田峪3981059

2025-05-23

— 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)

写回答

1回答

CrazyCodeBoy

2025-05-26

1.新建一个RN项目运行试试看是否还有这个问题。
2.另外检查下项目的ios目录下运行pod install是否正常。
0
2
CrazyCodeBoy
回复
慕田峪3981059
看着应该是node 16版本,不支持0.7x的RN
2025-05-27
共2条回复

RN入门到进阶,打造高质量上线App

解锁React Native开发应用新姿势,React Native新版本热门技术

3172 学习 · 3258 问题

查看课程