Hi All,
As per Sujan12’s suggestion I did go to Ionic Support and have received a good response from Zach H. which I’ll post beneath:
Hi James,
Thanks for getting in touch! It looks like this might be related to a recent update in the cordova-ios platform. The most recent release of cordova-ios (4.5) requires that the cordova-plugin-console plugin be removed from your project in order to build since it is now integrated directly. Cordova iOS versions less than 4.5 still require the cordova-plugin-console to be installed if you intend to use it.
In order to ensure you project builds properly on our package service, we’re now suggesting that you specify the exact version of cordova-ios you wish to use in both the package.json and the config.xml as currently platform versions are specified in both. That means removing the ~ or ^ symbols that may appear by default. For example, if you want to use cordova-ios 4.5 add"cordova-ios": “4.5.0” to the dependencies section in you package.json and to the ios platform section of your config.xml.
If you are specifying version 4.5.0, you will need to run the command cordova plugin remove cordova-plugin-console then commit the changed files to version control in order for your builds to succeed.
I also see from your other ticket that you narrowed down errors to the call-number plugin. Let me know if that persists after you’ve specified a cordova-ios version. It may be that there is an entirely separate issue on top of the original one.
Let us know if this helps – thanks!
The main take on this I think could be the cordova-plugin-console - it has to be removed (if on Cordova 4.5.0 and above). Certainly when I started with a fresh pair of package.json / config.xml files I never bothered adding that one back in when re-adding my plugins. I haven’t tested in that scenario but I would suspect many of those having trouble building with Ionic Pro (as per my original error message) have fallen into this trap.
My other take from now on, I will not be editing the package.json / config.xml files in regards to plugin version updates, instead to do that from the cli based on the release notes by the vendors and also what the ionic commands inform you of.
Apologies for the long post but I thought it important enough to share with the community.