cordova ios cocoapods要求未得到满足

时间:2018-01-29 08:02:46

标签: ios cordova cocoapods

我正在尝试运行构建默认的cordova app"你好"但什么时候cordova requirements消息包含以下内容:

Requirements check results for ios:
Apple macOS: installed darwin
Xcode: installed [object Object]
ios-deploy: not installed
ios-deploy was not found. Please download, build and install version 1.9.2 or greater from https://github.com/phonegap/ios-deploy into your path, or do 'npm install -g ios-deploy'
CocoaPods: not installed
/Library/Ruby/Gems/2.3.0/gems/claide-1.0.2/lib/claide/command.rb:439:in `help!': [!] You cannot run CocoaPods as root. (CLAide::Help)

我还有许多尚未安装的东西,比如ios-deploy,但cocoapods我已经有了cordova否则声称。我尝试通过brew重新安装cocoapods,并得到了这个:

➜  ~ brew install cocoapods
Warning: cocoapods 1.4.0 is already installed

我不确定为什么会这样,但我认为这可能与我必须使用sudo执行所有命令这一事实有关,例如列出我需要做的要求{{1}而不仅仅是sudo cordova requirements。此外,科尔多瓦似乎也提到了这一点,在要求的输出中(见上文),它说cordova requirements

感谢您的帮助

0 个答案:

没有答案