跑 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
然后重新运行项目
0
2
CrazyCodeBoy
回复
纷纷2004
新建一个项目然后运行看是否OK
2023-07-05
共2条回复

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

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

3144 学习 · 3241 问题

查看课程