项目初始化的时候,报错
来源:2-3 创建项目

默默安排
2020-12-26
✖ Installing CocoaPods dependencies (this may take a few minutes)
✖ Installing CocoaPods dependencies (this may take a few minutes)
error Error: Failed to install CocoaPods dependencies for iOS project, which is required by this template.
Please try again manually: “cd ./testApp/ios && pod install”.
执行了:npx @react-native-community/cli doctor
这几个错误要怎么解决呀?
写回答
1回答
-
默默安排
提问者
2020-12-26
解决了,原因是安装过多次xcode ,导致的问题
sudo xcode-select --switch /Applications/Xcode.app
这个命令行解决的
10
相似问题