Setting a provisioning profile from within xcodebuild when making iPhone apps

Steve Klabnik picture Steve Klabnik · May 15, 2009 · Viewed 71.5k times · Source

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.

Answer

Rob picture Rob · Jul 25, 2009

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.