Reputation: 11686
I've got a build script that I will be running on a Mac mini as a build server. It should work just fine but I still need to renew and get the latest provisioning profile manually. Is there a way this can be done from the command-line?
Upvotes: 2
Views: 2193
Reputation: 1350
I used the Automator to record and create an app that renews the provisioning profiles.
The steps are (copying from the Watch Me Do list):
Then save it to your desktop as RefreshProvisionProfile.app (or somewhere else).
To run it from any terminal or from a build script as follows: /Users/User_name/Desktop/RefreshProvisionProfile.app/Contents/MacOS/Application\ Stub RefreshProvisionProfile.app/
Seems to work for me.
Here is some code we use to identify the profile we want to ship to QA with the project:
#Copy profile from $ProfileName
cd "/Users/macbuild/Library/MobileDevice/Provisioning Profiles/"
ProfileFile="`grep -al $ProfileName *.mobileprovision`"
echo "Also copy $ProfileFile to the network"
if cp -fv $ProfileFile /Volumes/shared/Builds/$buildid/
then
echo "Matching Provisioning Certificate: shared/Builds/$buildid/$ProfileFile"
fi
For XCode 5.0.2 the order is as follows:
Upvotes: 2
Reputation: 22633
Don't think so. Pretty sure you have to do that via the Web Portal.
Upvotes: 0