跑 npm run ios后报如下错误
来源:2-1 本章目标
纷纷2004
2023-07-04
The following build commands failed:
CompileC /Users/xxxxxxx/Library/Developer/Xcode/DerivedData/GitHub_RN-aogkoquwcorauodywixgsbafbuci/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/React-Codegen.build/Objects-normal/arm64/FBReactNativeSpec-generated.o /Users/xxxxxxx/Work/RN-Learn/rn-trackshare/ios/build/generated/ios/FBReactNativeSpec/FBReactNativeSpec-generated.mm normal arm64 objective-c++ com.apple.compilers.llvm.clang.1_0.compiler (in target ‘React-Codegen’ from project ‘Pods’)
(1 failure)
写回答
1回答
-
CrazyCodeBoy
2023-07-05
执行下
rm -rf node_modules/
npm cache verify
npm install
成功之后执行
cd ios
pod install
然后重新运行项目022023-07-05
相似问题