Update Provisioning Profiles

I could not find anything on this (maybe I'm just using the wrong search terms ..):
We are trying to create intelligent, continuous integration for our applications. In order to have a REALLY reasonable implementation, the build server must be able to automatically update used provisioning profiles from Apple. Similar to what the X-Code organizer does, but automatically using the command line.
Any clue if at all possible?

+48
iphone xcode provisioning
Jan 20 '11 at 8:41
source share
4 answers

Here is 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, everything in this ~ / Library / MobileDevice / Provisioning Profiles / folder can be used to build with (and will be displayed in Xcode).

If you want to side with the CI system, I recently talked about using Hudson for this and posted slides and notes here. My email is on my site if you have any questions about this.

+53
Jan 26 2018-11-11T00:
source share

Update: Cupertino will no longer work on the latest iTunes. Look at sigh instead




This command-line interface seems to help get a lot of time:

https://github.com/nomad/cupertino

which allows you to download all distribution profiles like this (thanks @tdubik):

ios profiles:download:all --type distribution

Another approach would be to use an enterprise development license ($ 300 per year), which allows you to create devices without providing resources! Thus, you can create your application and send it to the device without going to the Apple Dev center, or register any new devices.

Please note that this will not allow you to distribute your application on the AppStore, but if you are a development home that creates many applications for clients, this can facilitate the process of creating and sending to clients.! I'm not sure if this will be in the legal rules for using Apple or not, so please check this before considering this option. But it may be something for prototypes, etc., And when they really want to send it, you will get them in order to get your license for the developer program.

+16
Jul 23 '13 at 19:42 on
source share

Try using apple_dev_center.rb from https://github.com/lacostej/apple-dev

It analyzes information from the Apple Developer website and downloads profiles so that you automatically copy them to the right place.

+1
Nov 29 '12 at 10:59
source share

I have been trying to do this job for a while. Finally did it!

You can use a quick sigh to download and install only the preliminary profile that you need.

 fastlane sigh renew --adhoc -n "provisional_profile_name" --app_identifier "your_app_identifier" -u "apple_login _username" --ignore_profiles_with_different_name 

Note. This team needed any preliminary application profile already installed on the system. Otherwise, it throws an error.

provisional_profile_name = Just the name of the profile name, no extension is required.

0
Sep 10 '17 at 9:58 on
source share



All Articles