Ad Hoc Distributing a Titanium Mobile App

Ad Hoc Distribution allows you to test your app on your iPhone and other friend's iPhones.

1: Create an Ad Hoc Distribution Provisioning Profile

Navigate to the Distribution Provisioning Profiles section of the iOS Provisioning Portal. Then click on 'New Profile'.

In the 'Create iOS Distribution Provisioning Profile' screen, choose the Ad Hoc distribution method, give it a name like 'Your App Ad Hoc Distribution Profile', select the App ID which you created earlier, and then select the Device(s) you want it to work on. Note: you will have to add your friends' devices here in order for the app to work on their iPhone. You can gather this device information using testflightapp.com.

After saving that download it to your computer. Double click on it and it will ask you to add it to 'Add to Library'. Please do.

2: Set Titanium Mobile's Distribute section to use the Provisioning Profile

Open up Titanium Mobile and navigate to Your Project > Test & Package > Distribute. Choose 'Desktop' for your distribution location and select the distribution provisioning profile you just downloaded to your computer in the steps above. (if it asks you to 'Add to Library' again go ahead and do so and replace the existing ad hoc distribution profile)

3: Distribute Your App

Titanium

Quit Titanium and the re-open it.

Navigate to the Distribution section under Test & Package and click 'Package' (make sure XCode is open in the background before clicking 'Package')

Generate the .ipa file

After Titanium is done packaging your app it should open up 'Organizer' on your mac. Click on the Archives tab in Organizer. You should see your app listed in the Archives.

Click on the name of your app and then click the 'Share' button. This will pop up a window. In that window choose iOS App Store Package (.ipa) and for Identity choose the option right underneath the Ad Hoc Distribution Profile we created earlier. It should probably say iPhone Distribution: Your Name.

Click 'Next' and then save the app to your Desktop. It is a good idea to name the app without any spaces - ie YourAppname

Use TestFlight to upload your app

Go to testflightapp.com and create a developer account.

Choose Builds > Upload a Build and upload your YourAppname.ipa file you saved to your desktop. Once the upload is complete, choose your testers and they will receive an email with a link to download your app to their iPhone.

That is it. Best of luck.

You should follow me on twitter here