Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Command line Update of Provisioning Profiles

I couldn't find anything on this (maybe I'm just using the wrong search terms..):
We're trying to build a sensible continuous integration setting for our apps. To have a REALLY sensible implementation, the build server should be able to automatically refresh the used provisioning profiles from apple. Similar to what the X-Code organizer does, but automagically via command line.
Any clue if that's possible at all?

like image 994
Blitz Avatar asked Jan 20 '11 08:01

Blitz


People also ask

How do I update Team Provisioning Profile iOS?

Take Xcode -> Preference... Select account and press 'View Details...' Press 'Download All' button in bottom-left corner. New set of Team Provisioning Profiles will be downloaded.

Where are iOS provisioning profiles stored?

The default location is ~/Library/MobileDevice/Provisioning Profiles. You need to browse or navigate to the profile file when you sign apps with the signing utility in iOS Gateway.

What is allowProvisioningUpdates?

Since Xcode 9, Apple provides automatic code signing identity management from the command line by using the xcodebuild command. Using the “allowprovisioningupdates” flag, you can enable code signing; however you may get errors like: Your session has expired.


1 Answers

Here's my bash script for it, where the first argument to the script ($1) is the location of the new profiles.

rm -Rf ~/Library/MobileDevice/Provisioning\ Profiles/* cp "$1"/*.* ~/Library/MobileDevice/Provisioning\ Profiles/ 

Basically, anything in that ~/Library/MobileDevice/Provisioning Profiles/ folder can be used to build with (and will show up in Xcode).

If you're looking to stand up a CI system, I recently gave a talk on using Hudson for it, and put up some slides and notes over here. My email is on my site if you have any questions about it.

like image 65
James J Avatar answered Sep 29 '22 16:09

James J