Publishing an App for iOS
Developer tip, careful with symbolic links within an iOS project, xCode and Emulators may fail to start.
0. Install PhoneGap
If you haven't already, install PhoneGap for iOS.
1. Create Application Icons
First, create icon graphics for the mobile app, and place them in this iOS project directory:
MyProject/Resources/icons
icon-72@2x.png (144x144)
icon-72.png (72x72)
icon.png (57x57)
icon@2x.png (114x114)
2. Create Splash Screen Graphics
Next, create splash screen graphics for the mobile app and place them in this directory:
MyProject/Resources/splash
We recommend creating the the splash screen images without transparency:
Default-568h@2x~iphone.png (640x1136)
Default-Landscape@2x~ipad.png (2048x1496)
Default-Landscape~ipad.png (1024x748)
Default-Portrait@2x~ipad.png (1536x2008)
Default-Portrait~ipad.png (768x1004)
Default@2x~iphone.png (640x960)
Default~iphone.png (320x480)
2a. Set up iO7 Status Bar (optional)
For more information, see here.
First add the plugin with the terminal:
cordova plugin add cordova-plugin-sidebar
Then add preferences like this inside the <widget>...</widget>
in your
config.xml
file:
<preference name="StatusBarOverlaysWebView" value="false" />
<preference name="StatusBarBackgroundColor" value="#000000" />
<preference name="StatusBarStyle" value="lightcontent" />
3. Set up App for Release
Next we need to set up the mobile application for release:
- Go to https://developer.apple.com
- Go to "Member Center"
- Login with your Developer credentials (if prompted)
- Click on iTunes Connect
- Login with your Developer credentials (if prompted, again)
3a. Create a Bundle ID
Now that we're at iTunes Connect
, we need to create a Bundle ID
:
- Click
My Apps
- Click
+
->New App
- Click
Register one here
to create a newBundle ID
- Follow these instructions
3b. Create a New App and Enter Information
Now that we've created a Bundle ID, go back to iTunes Connect
and then:
- Click
My Apps
- Click
+
->New App
- Enter info in all the fields
- Select the
Bundle ID
we created earlier - Click
Create
3c. Select Availability and Pricing Options
- Click on
Pricing and Availability
- Select the App's
Price Schedule
-
Edit
the availability of the app, if necessary - Choose the appropriate radio button for the
Volume Purchase Program
- Click
Save
4. Prepare for Submission
- Click on
1.0 Prepare for Submission
- Fill out this page in its entirety, clicking
Save
along the way
The mobile application is now ready to be uploaded. Next, we'll create a certificate.
5. Create Certificate
This video is very similar to below, and walks you through step by step and really helped.
- Go to the "Member Center" at developer.apple.com
- Click "Manage your certificates, App IDs, devices, and provision profiles" under the "Certificates, Identifiers & Profiles" section
- Click "Certificates" in the "iOS Apps" column
- Click the + icon to add a new one
- Select the "App Store and Ad Hoc" radio button in the "Production" section, click "Continue"
At this point, you may be prompted to "Create a Certificate Signing Request (CSR)". Follow the on screen instructions provided by Apple. The instructions should resemble these steps:
- On your Mac, go to: Finder -> Applications -> Utilities
- Launch the "Keychain Access.app"
- Go to: Keychain Access -> Certificate Assistant -> Request a Certificate From a Certificate Authority
- Enter your e-mail address you use for your Apple Developer Account (not your iTunesConnect developer account email address, which may be different if you release apps on a client's behalf)
- Enter the "Common Name" field (e.g., John Doe Dev Key)
- Select the "Saved to disk" radio button
- Click "Continue"
- Save the certificate to your Desktop
- Click done
Now that the CSR has been generated and saved to the Desktop, go back to the "Create a Certificate Signing Request" in your browser's window.
- Click the "Continue" button
- Click "Choose File" and locate the CSR saved on your Desktop
- Click "Generate"
- Click "Download"
- Click on the Certificate in your Download folder
- Verify the new Certificate is listed under "My Certificates" inside "Keychain Access"
- Click "Done" in your browser
- Verify the new Certificate is listed in the "iOS Certificates" section under "Certificates, Identifiers & Profiles"
Next, we'll create a provisioning profile.
6. Create Provisioning Profile
- Go to the "Member Center" at developer.apple.com
- Click "Manage your certificates, App IDs, devices, and provision profiles" under the "Certificates, Identifiers & Profiles" section
- Click "Provisioning Profiles" in the "iOS Apps" column
- Click the + icon to add a new one
- Select the "App Store" radio button in the "Distribution" section, click "Continue"
- Select your "App ID" from the drop down menu (this will be the Bundle ID you created earlier), click "Continue"
- Select the radio button for the desired certificate, click 'Continue'
- Enter a Profile Name, then click the 'Generate' button
- Click the 'Download' button
- Click Done
- Make sure xCode project is already open
- Then go to your Downloads folder and open the ".mobileprovision" file, this will open it in the "Organizer" in xCode
- Verify the certificate is valid (you should see a green check icon if it is valid)
7. Product Archive (Compiling for Release)
We're finally ready to upload our app to Apple.
- Open xCode
- Go to Product -> Destination -> iOS Device
- Go to Product -> Archive
- Wait for the archival to complete...
- Click the "Distribute" button (in the Organizer - Archives)
- Select the "Submit to the iOS App Store" radio button, then click 'Next'
- Fill in your login credentials if necessary
- Select your "Application"
- Select your "Code Signing Identity"
- Click "Next"
At this point, if the Apple folks agree, your app will move into the "Waiting For Review" stage. Now just sit back, relax, and give yourself a pat on the back for making it this far!
Congratulations, your app is in review, keep your fingers crossed that Apple likes your app ;)