-
Notifications
You must be signed in to change notification settings - Fork 5.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable -allowProvisioningUpdates for gym builds in Xcode 9 by default #10345
Conversation
Does this work in CI environments? I suspect that an Xcode user needs to be logged in for the signing process to work, since it creates and updates profiles in the dev portal automatically. |
Oh that's a great question. Actually, I don't know. Also, I don't know if this will fail the build in case the user isn't logged in. Maybe it requires some more testing, let me know if you hear/know anything :) |
From
|
Yeah, nice catch, thanks for posting this. Yeah, if there is a way to detect if the user is logged in Xcode, that would probably be enough. Are you interested in looking more into this and seeing if you can find a plist file or Keychain entry that's being added when you login, so we can query that? |
After adding my Apple ID to Xcode 9 for the first time, those entries were added to my Keychain: Would it be sufficient to check for existence of
This not a perfect check though, because after removing my Apple ID from Xcode again, those keychain entries still exist. |
Oh nice. Mh, so that's the password + email is stored, do you think we can find out the location of the |
But you can also sign in to Xcode multiple times so even an account exists that doesn't mean that it will have access to the correct dev team on Apple dev portal |
I'm a little worried that We have enterprise apps and use sigh to (re)generate a profile that gym picks up when exporting the ipa. And with Xcode 9 this now fails as others have reported in #9589, xcodebuild fails with a However, as @threat70 mentioned in comment I also found that adding signingStyle manual to the export options plist file made xcodebuild use the correct profile and export successfully.
According to xcodebuild -help, signingStyle defaults to automatic for apps that were automatically signed when archived (which is our case). I assume this is the reason xcodebuild seems to ignore the provisioningProfiles entry.. |
@jonkan, thank you very much |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Had the same issue for a week and this fix worked to me after update to Xcode 9. Worked like charm.
Is there a timeframe for when this will get merged? We have a build using fastlane and Xcode 9 and it is broken until this fix is in. Thanks! For some reason, adding the export_xcargs: "-allowProvisioningUpdates" to the gym call does not add the flag to the xcodebuild command. |
@BCOVJRad I think need find reason why export_xcargs doesn't work, without specify -allowProvisioningUpdates always. |
@KrauseFx I think this breaks Jenkins when using a non-Admin/Member Apple ID, which is what we use on our CI slaves. My understanding is that an Admin-role Apple ID is required for -allowProvisioningUpdates to properly work. |
Hey folks! I am going to close this PR because it looks like #10272 has been fixed by other changes 😄 🚀 |
Fixes #9589