I\'m trying to automate the process of building apps for our clients using bash scripts running on a Mac Mini Server (OSX 10.7).
My script is based on the spectacul
We run our builds in Jenkins and had a similar problem. Our Ad Hoc provisioning profile changes quite often and we don't want to run around to each of our build slaves installing them in xcode every time they change, so here's what I got to work:
/usr/bin/xcrun -sdk iphoneos PackageApplication -v -o --sign "" --embed
The "" is what you see under "Code Signing" section in the Build Settings of your target.