Skip to content
This repository has been archived by the owner on Nov 19, 2018. It is now read-only.

Install profiles in "Provisioning Profiles" folder instead of using open command. #58

Closed
dtrenz opened this issue Mar 5, 2015 · 5 comments
Labels

Comments

@dtrenz
Copy link
Contributor

dtrenz commented Mar 5, 2015

When the iPhone Configuration Utility app is installed, using the open command to install provisioning profiles on a CI node (e.g. Jenkins) a prompt comes up requiring user interaction. This is obviously an issue for a CI machine.

I recommend that sigh install provisioning profiles the same way Xcode does, in "/Library/MobileDevice/Provisioning Profiles" by UUID (e.g."/Library/MobileDevice/Provisioning Profiles ef3d7190-5839-4429-ad81-c82cf90e444a.mobileprovision").

The UUID can be retrieved using PlistBuddy. More useful info, here: http://stackoverflow.com/a/11167851/1765753

Even more info: http://stackoverflow.com/questions/10398456/can-an-xcode-mobileprovision-file-be-installed-from-the-command-line

@dtrenz dtrenz changed the title Install profiles in UUID folder instead of using open command. Install profiles in "Provisioning Profiles" folder instead of using open command. Mar 5, 2015
@KrauseFx
Copy link
Collaborator

KrauseFx commented Mar 6, 2015

Great point. I'm actually not happy with the open command after the script is finished.

sigh already fetches the UDID from the profile: https://github.com/KrauseFx/sigh/blob/master/lib/sigh/profile_analyser.rb#L9
and stores it into the ENV, we can easily use that one.

@tychop
Copy link

tychop commented Mar 6, 2015

Uninstall iPhone configuration tool to have the provisioning profiles installed by xcode without user intervention.
The tool is ancient and has been replaced by apple.

@KrauseFx
Copy link
Collaborator

KrauseFx commented Mar 9, 2015

@dtrenz Since we already have access to the UDID is there anything else we'll need to implement this? It's just copying over of the provisioning profiles to the folder you mentioned, right? I think we should still also leave the profile in the user's current directory (since sigh has done this up until now)

Do you prepare a pull request or should I be working on it?

@dtrenz
Copy link
Contributor Author

dtrenz commented Mar 9, 2015

Yeah, I think we just need to copy the profile. I agree that we should leave a local copy, as well.

I'll take a stab at it.

@fastlanebot
Copy link

This issue was migrated to fastlane/fastlane#2986. Please post all further comments there.

fastlane is now a mono repo, you can read more about the change in our blog post. All tools are now available in the fastlane main repo 🚀

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants