Document TOP » Products Guide » Monaca Cloud IDE » Manual » Build » Building for iOS » Build Settings between Monaca and Xcode

Build Settings between Monaca and Xcode

If you want to develop your Monaca app in both Monaca Cloud IDE and Xcode on your Mac OS X, you will need to synchronize the build settings (private keys and certificates) of the app you use in these two environments.

In this page, we will show you how to:

Export the Build Settings from Xcode to Monaca Cloud IDE

In case you’ve already had your build settings (private keys and certificates) in your Mac OS X (Xcode) and you want to export them to Monaca Cloud IDE, please do as follows:

Step 1: Export Private Key and Certificate in Keychain Access

In order to export the private key in Keychain Access, please follow the instruction below:

  1. In your Mac OS X, go to Applications ‣ Utilities ‣ Keychain Access.
  2. Select Certificates on the left panel of the Keychain Access window.
../../../../../_images/176.png
  1. Right-click on the certificate you want to export and select Export “CERTIFICATE NAME”. Please make sure to choose the certificate that has a private key. Only the certificate which has a private key can be imported into Monaca.
../../../../../_images/247.png
  1. Then, the export screen will be displayed. Let’s save it as a private key by selecting the file format as Personal Information Exchange (.p12), and then click Save.
../../../../../_images/342.png
  1. Enter a password for this private key, and then click OK. By doing so, a private key file with extension of .p12 will be created. Please take note of this password since you will need it when importing this file into Monaca Cloud IDE later.
../../../../../_images/437.png
  1. Now, right-click on the certificate you want to export again and select Export “CERTIFICATE NAME”. This time, we are going to save it as a certificate by selecting the file format as Certificate (.cer), and then click Save.
../../../../../_images/530.png

Step 2 :Import Private Key and Certificate into Monaca

Note

In Monaca, you can register only one private key. If you are using different private keys for the developer and the distribution certificates, you will need to re-import the private key which is related with the certificate you are going to use.

In order to import the private key and certificate in Monaca Cloud IDE, please follow the instruction below:

  1. From the Monaca Cloud IDE menu, go to Config ‣ iOS Build Settings. Click on Import.
../../../../../_images/629.png
  1. Browse the private key file (.p12 file) and enter the password for that key. Then click Import.
../../../../../_images/721.png
  1. In the Register Issued Certificate section, click on Upload Certificate button to upload either developer or distribution certificates corresponding to the imported private key.
../../../../../_images/816.png
  1. Browse the certificate file (.cer file) and then upload it.

Export the Build Settings from Monaca Cloud IDE to Xcode

Note

From Monaca Cloud IDE, the private key and certificate are exported as one file.

In order to export the private key and certificate from Monaca Cloud IDE, please follow the instruction below:

  1. From the Monaca Cloud IDE menu, select Config ‣ iOS Build Settings.
  2. In the Certificates registered in Monaca section, click on the Export icon of the certificate you want.
../../../../../_images/914.png
  1. Then, you will be ask to input a password before exporting. Please note to remember this password because it is required when importing this certificate later.
../../../../../_images/1014.png
  1. After clicking Export button, you will then be able to download a file with .p12 extension (Ex: dev_certification_ios.p12). This file consists of a private key and a certificate.
  2. Double-click on the downloaded file. Then, you will be asked to input the password for the file and click OK. After that you can use the private key and certificate in Xcode.
../../../../../_images/1117.png

See also

See Also