error Error: Failed to install CocoaPods dependencies for iOS project, which is required by this template.
在使用React Native创建一个脚手架应用的时候,报错:
npx react-native init AwesomeProject
发生错误error Error: Failed to install CocoaPods dependencies for iOS project, which is required by this template.
执行以下代码后依然报错:
cd ./AwesomeProject/ios && pod install
解决方案:
下载Xcode并找到Preferences » Location 然后从Command Line Tools中选择你的Xcode版本,。
最后重新pod install,问题解决。