iOS builds including phonegap-plugin-push fail with the message "ld: library not found for -lGoogleToolboxForMac". This is caused by the inability of cordova-ios to preserve the pod install if more than one plugin uses cocoapods. The open cordova-ios issue is available at https://issues.apache.org/jira/browse/CB-12582
Create a file named run_pods.sh in the root of your project.
Ionic Git users:
pod install --project-directory='/Users/ionic/builds/project-1/platforms/ios/'
Github Integration users:
pod install --project-directory='/Users/ionic/builds/<github user>/<repo name>/ios/'
Where <github user> is the username for your github account and <repo name> is the title of the repo. You can find this in the URL of your repo. For example:
would use the following path in the script:
Be sure to add execute permissions using chmod or git.
Reference the script in the ios platform in config.xml using the hook tag shown below.
<hook type="after_platform_add" src="run_pods.sh" />