Error: Failed to install CocoaPods dependencies for iOS project, which is required by this template 错误
React Native 使用 react-native init hello 初始化项目的时候可能会报错,错误信息很长,我截取一部分信息如下
Error: Failed to install CocoaPods dependencies for iOS project, which is required by this template
出现这个原因是因为 React Native 检测到我们安装了 XCode 然后又推荐我们安装了 pod 导致的。
因为我们从未打开过 XCode,没有接受使用 XCode 协议。
解决方法就是打开一下 XCode 然后关闭。然后在运行下面的命令
cd ./hello/ios && pod install
目前尚无回复