Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Copy and paste the code below into your new build.json file:

...

Code Block
languagejs
themeRDark
{
    "ios": {
        "debug": {
            "codeSignIdentity": "iPhone Development",
            "provisioningProfile": "<UUID of the provisioning profile>",
            "provisioningProfileFile": "ProvisioningProfileFileName.mobileprovision",
            "certificateFile" : "CertificateFileName.p12"
        }
    },
    "ios":

...

 {
        "release":

...

 {
            "codeSignIdentity":

...

 "iPhone Distribution",

...


            "provisioningProfile":

...

 "<UUID of the provisioning profile>",
            "provisioningProfileFile":

...

 "ProvisioningProfileFileName.mobileprovision",

...


            "certificateFile"

...

 :

...

 "CertificateFileName.p12"

...


        }
    }
}


Info

Note: This example shows iOS only, however you can include multiple operating systems within the one build.json, simply by adding the appropriate JSON structure for "

...

android" or "windows" to the

...

build.json file.

Download build.json

Alternatively, you can download an example build.json file here:

Download an iOS Example build.json


Description of Values

The only fields you 'll need to enter are:

codeSignIdentity:

This is the type of code signing identity used. This may be either "iPhone Development" or "iPhone Distribution".

provisioningProfile:

This This is the UUID of the provisioning profile to be used for signing. Open your provisioning profile .mobileprovision file in a compatible text editor (or using command line tools) to find the UUID. 

provisioningProfileFile:

This is the path to the mobile provisioning profile file you generated in the previous step. In this example we've placed the .mobileprovision file in the project root (at the same level as your config.xml file), therefore just the name of the file is enough.

...

This is the path to the .p12 signing certificate file you generated in the previous step. In this example we've placed the certificate in the project root (at the same level as your config.xml file), therefore just the name of the file is enough.Note: For developers used to building Cordova apps, you'll notice we haven't included section for "debug" details in the build.json. These are generated automatically for you by the Buildbots, so there is no need to include them here.

Next Step

iOS: Build your app