When I run sudo ionic platform add ios
, I encounter the following error. I added the 'aerogear-cordova-push' plugin, then removed the platforms and attempted to add them again.
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
Any suggestions on how to proceed?
I also tried checking out this Stack Overflow post on not being able to install phonegap-plugin-push in an ios app, but it didn't solve my issue.