当sudo ionic platform add ios
我遇到错误时,我在删除平台后添加了“aerogear-cordova-push”插件并尝试再次添加。
Failed to install 'aerogear-cordova-push':undefined
Error: /Library/Ruby/Gems/2.0.0/gems/claide-1.0.1/lib/claide/command.rb:439:in `help!': [!] You cannot run CocoaPods as root. (CLAide::Help)
Cordova CLI: 7.0.0
Ionic Framework Version: 2.0.0-rc.3
Ionic CLI Version: 2.2.3
Ionic App Lib Version: 2.2.1
Ionic App Scripts Version: 0.0.44
ios-deploy version: Not installed
ios-sim version: 5.0.13
OS: macOS Sierra
Node Version: v6.9.5
Xcode version: Xcode 8.3.2 Build version 8E2002
有什么建议吗?
我试过IONIC:Unable to install phonegap-plugin-push in ios app但没有帮助