Setting a provisioning profile from within xcodebuild when making iPhone apps
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.