or after
You cannot run CocoaPods as root.
To install push you must first install cocoapods. Follow these steps on your terminal in the Ionic project directory.
First remove what you tried to install
ionic plugin remove phonegap-plugin-push
Next install cocoapods
sudo gem install cocoapods
Then you need to sync the cocoapods repo
pod setup (run as normal user not as root)
This may take a while
Finally install push
ionic plugin add phonegap-plugin-push --variable SENDER_ID="XXXXXXX"
Then change owenership of folders required sudo chown -R osx /usr/etc/etc/etc/etc
Then change owenership of folders required sudo chown -R osx /usr/etc/etc/etc/etc
chmod -R 777 /usr/etc/etc/etc/etc
Comments
Post a Comment