Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How Do You Embed a Provisioning Profile in an iOS App

Tags:

I read in the iOS Enterprise Developer Program docs that a provisioning profile can be embedded with the application.

I am wondering how this is done. Is it simply added to the Payload directory of an IPA, or included in the project directory?

I also wonder whether this technique is generally available for all deployment modes/Programs, or is it just for Enterprise distribution deployments?

like image 200
DwarDoh Avatar asked Oct 01 '10 18:10

DwarDoh


People also ask

What is embedded provision profile?

A provisioning profile is downloaded from your developer account and embedded in the app bundle, and the entire bundle is code-signed. A Development Provisioning Profile must be installed on each device on which you wish to run your application code.

Where are iOS provisioning profiles stored?

Go to ~/Library/MobileDevice/Provisioning Profiles/ and your profiles should be there.

What is iOS app provisioning profile?

The profiles resource represents the provisioning profiles that allow you to install apps on your iOS devices or Mac. You can create and delete provisioning profiles, and download them to sign your code. Provisioning profiles include signing certificates, device identifiers, and a bundle ID.


1 Answers

The file should be called embedded.mobileprovision

It should be placed inside the .ipa zip file, in the directory Payload/.app/

XCode's "Build and Archive" then "Share..." functionality automatically adds it (so you can use unzip on the .ipa generated by XCode's share feature to see where the files should go).

I'm unclear exactly which scenarios this is supported in, however it definitely works for adhoc builds when you're installing directly from the web onto the device (ie. using the method described here: http://developer.apple.com/iphone/library/featuredarticles/FA_Wireless_Enterprise_App_Distribution/Introduction/Introduction.html )

like image 112
JosephH Avatar answered Sep 20 '22 18:09

JosephH