Provisioning a Titanium Mobile App
Keys, Certificates, Provisioning Profiles, and AppIDS can be a configuration nightmare. In this article, I step through setting these up with a Titanium Mobile app.
You need the following:
- An Apple Developer's Account
- A Mac
- An iPhone, iPad, or iPod
Certificates, Keys, Provision Profiles, AppIDs
Just follow along.
On your mac open up Keychain Access. In the toolbar click 'Keychain Access' -> 'Certificate Assistant' -> 'Request a Certificate from a Certificate Authority'.
In the pop up window, use the email address you signed up on the Apple Developer's site with. Enter your name, and choose Save to Disk.
Save it somewhere you can easily find it. Keep it safe.
Login into your development account, visit the iPhone Developer Program Portal, and go to the App IDs section: http://developer.apple.com/iphone/manage/bundles/index.action
Click the New App ID button, and on the next page enter a name (MissMint) and a bundle identifier (com.spitfiresky.missmint).
After creating the AppID go to configure the id you just created. On the next page, check the box to 'Enable for Apple Push Notification service', and then click the 'Configure' button next to the Development Push SSL Certificate.
In the configuration window, follow the steps, and upload the CerticiateSigningRequest file we created previously using KeyChain Access.
Next download your newly generated push notification ssl certificate.
Double click on this certificate to save it your key chain. Export this key by clicking on this newly installed certificate.
Next, go back to the Apple Developer website, go to provisioning profiles, and choose to a create a new provisioning profile. http://developer.apple.com/iphone/manage/provisioningprofiles/create.action?type=1
Fill in the form with the appropriate info.
Download the newly created provisioning profile.
Open up Titanium Mobile and open up your project. Go to Test & Package, and then the Running your app on a device section. On the 'Select Provisioning Profile' section choose to browse for the provisioning profile we just downloaded.
Choose the provisioning profile we just downloaded.
Open up xcode with your iphone plugged into your computer and drag the provisioning profile onto the window.
You might have to quit Titanium Mobile and iTunes at this point to finally get everything working. Re-open them and then in Titanium Mobile install the app onto your phone by pressing "Install Now".
You should follow me on twitter here