Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Setting a provisioning profile from within xcodebuild when making iPhone apps

I'm using xcodebuild to compile my iPhone app from the command line. Is there a way to pass in some sort of option to set the provisioning profile? There seems to be not very much information about xcodebuild in general.

like image 866
Steve Klabnik Avatar asked May 15 '09 02:05

Steve Klabnik


People also ask

What is the use of provisioning profile in iOS?

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.

Can developer create provisioning profile?

Only team agents and admins can create development provisioning profiles. This profile contains a name, a set of development certificates, a set of device IDs, and an app ID. A development provisioning profile ties developers and devices to a development team. A profile is valid for one year.


1 Answers

Actually, you should be able to just add it to the XCode command line setting.

xcodebuild [whatever other options you have] PROVISIONING_PROFILE="[Your profile Unique ID here]"

Build Settings from the command line are supposed to override everything, so this should win out over anything defined in the project or target.

like image 136
Rob Avatar answered Sep 21 '22 00:09

Rob