Distributing Multiple Apps Readme PDF

Download as pdf or txt
Download as pdf or txt
You are on page 1of 7

Building Multiple Apps for Distribution and Validating Your Distribution Builds

If you wish to build and distribute multiple applications, it is necessary that you create a wildcard App
ID in the Program Portal with only an asterisk in the Bundle Identifier field. This wildcard App ID must
be included in a single Distribution Provisioning Profile that will be used to build all of your
applications.

All Distribution Methods

1. Delete any existing Distribution Provisioning Profiles from your Mac in ~/Library/MobileDevice/
Provisions and ~/Library/MobileDevice/Provisioning Profiles and close Xcode.
2. Create a wildcard App ID in the iPhone Developer Program Portal - Simply place an asterisk in the
Bundle Identifier field of the App ID to create a wildcard App ID.
3. Create an iPhone Distribution Provisioning Profile in the Program Portal incorporating the wildcard
App ID created above.
4. Drag your new iPhone Distribution Provisioning Profile onto the Xcode or iTunes 7.7 icon in your dock
to install it.
5. Confirm that both the Private Key the corresponds to your iPhone Distribution Certificate AND the
public iPhone Distribution Certificate are located in the Keys category of the Keychain application. The
Private Key is housed on the system that originally created the certificate request for the iPhone
Distribution Certificate.
For each project, do the following once

1. In the Project Info window, duplicate the Release configuration and title it Distribution.
2. Set the Active SDK to Device and the Active Configuration to Distribution
3. At the Project level, delete the code signing identity in the build pane and set the provisioning profile
the the "default" setting. Ensure the Configuration in this window is set to Distribution.
4. In the Build Settings Inspector at the Target level, enter the code signing identity: iPhone Distribution:
COMPANYNAME. This will be the exact same string as found in the common name of your iPhone
Distribution Certificate. In the diagrams below, Apple Inc. is the example COMPANYNAME. Make sure
the Configuration is set to Distribution in the Build Settings Inspector as well.
5. Select your iPhone Distribution Profile (which includes the wildcard App ID) from the Code Signing
Provisioning Profile drop down menu.

After setting all the projects up correctly with the Code Signing Identity and Provisioning Profile set
only at the target level, do the following each time you build to ensure a successful build process.

1. Open the Project.


2. Select the Target and open the Build Settings Inspector. Confirm you are in the Distribution
Configuration.
3. Delete the Code Signing Identity: iPhone Distribution: COMPANYNAME
4. In the Xcode Build Menu, select Clean all Targets.
5. Re-enter the code-signing identity iPhone Distribution: COMPANYNAME in the Target Build Settings
Inspector.
6. Build your Project.
7. Open the Build Log detail view.
8. Search and Confirm the presence of the word "embedded" - this will take you to the line in the build
log that shows the provisioning profile was successfully called.
9. Confirm that the destination path (at the very end of the build message) is the app you are building.
For example:
ProcessingProductPackaging "/Volumes/Data/user/Library/MobileDevice/Provisioning Profiles/
My_Distribution_Provisioning_Profile.mobileprovision" /Volumes/Data/user/projects/Distribution-
iphoneos/HelloWorld.app/embedded.mobileprovision
cd /Volumes/Data/user/projects/HelloWorld
<com.apple.compilers.product-pkg-utility> "/Volumes/Data/user/Library/MobileDevice/Provisioning
Profiles/972DCBC8-5FB7-4970-B079-6A9141738355.mobileprovision" -o /Volumes/Data/user/projects/
Distribution-iphoneos/HelloWorld.app/embedded.mobileprovision

10.Search for the term CodeSign - this will take you to the line in the build log that confirms your
application was signed by your iPhone Distribution Certificate.
11.For Ad Hoc and Enterprise distributors, share your App bundles and iPhone Distribution Provisioning
Profile with the owners of the devices specified in the provisioning profile.
12.Recipients of the .app and .mobileprovision file can drag them onto iTunes 7.7 and sync their device
to install.

You might also like