Cordova plugins using cocoapods can fail to install during Ionic Pro Package builds. 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
The problem can be resolved with two simple hook scripts. Create the following scripts in the root of your project.
Step 1: Create the scripts
pod repo update
pod install --project-directory='./platforms/ios/'
Step 2: Reference the scripts in the ios platform node of config.xml:
<hook src="update_pods.sh" type="before_platform_add" />
<hook src="run_pods.sh" type="after_platform_add" />
The scripts will run just before, and after adding the ios platform. The first updates the pod repos, and the second verifies that all pods are installed after the platform is added.
Step 3 (REQUIRED): Your scripts MUST have execute permissions. Without the necessary permissions the scripts will fail with a
spawn EACCES error. Permissions can be added using chmod.
chmod +x your_script.sh
If your OS does not include the chmod command permissions can be added using git.
Plugins known to be affected: