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.
views:
815answers:
2
+1
A:
It seems from the doc, you can't set the provisioning file BUT you can specify the target:
[-target targetname]
So, if you create a target for each provisioning file, you could select the proper target from the command line.
This would basically accomplish what your asking.
Corey Floyd
2009-05-15 07:59:34
Thanks. I had seen this, and this isn't as elegant of a solution as I'd like, but I think it'll still work out the way that I want it to.
Steve Klabnik
2009-05-15 13:52:08
+3
A:
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.
Rob
2009-07-24 23:58:47