项目初始化的时候,报错

来源: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

这个命令行解决的

1
0

跨平台应用ReactNative+TypeScript仿喜马拉雅开发App

从入门到实战,掌握用TypeScript开发ReactNative应用

832 学习 · 339 问题

查看课程