After I create an app with Ionic’s CLI and get it running to the point I need to build it for iOS, I get it ready for PhoneGap Build.
When using PhoneGap Build, make sure you have a Cordova config.json file setup for the build. This file would be located in APP_DIRECTORY/.cordova
Here is a template of the required content:
{“phonegap”:{“id”:APP_ID}}
The APP_ID is the PhoneGap App Id. How do you get that?
Here’s what I do. I use the PhoneGap CLI to connect my app to PhoneGap Build and do a remote build:
phonegap remote build ios
After the initial build, open the web interface and look at the list of apps. You will see the App Id.
Use that App Id in your config.json file. If you don’t set the App Id in your config.json file, then each “phonegap remote build” command will result in a new app being created within PhoneGap Build.