【发布时间】:2021-06-12 08:05:29
【问题描述】:
我目前正在运行 macOS Catalina 10.15.6 和 XCode 12.4。我正在尝试创建一个 react native ios 应用程序,我在命令行上运行“react-native init Focus”,其中 Focus 是我的应用程序的名称。
设置应用程序时,我收到错误“(node:11768) UnhandledPromiseRejectionWarning: Error: Failed to install CocoaPods dependencies for iOS project, which is required by this template”
我尝试运行“cd ./Focus/ios && pod install”但失败了,我还尝试了“sudo gem install cocoapods”和“brew install cocoapods”都失败了。
我无法通过项目的这个设置阶段。
【问题讨论】:
标签: ios swift xcode react-native cocoapods