iphonexcodexcodebuildprovisioning

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.


Solution

  • Documentation

    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.