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
[match] Correct how match handles enterprise adhoc #12281
[match] Correct how match handles enterprise adhoc #12281
Conversation
Thank you for getting a fix up for this :) |
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.
Haven't tried it, but code looks 👍
After i update fastlane to version 2.92.0, when i use match sync the adhoc certificates got the error as follow: As you said match will now look for the adhoc cert in the enterprise directory instead of distribution. But in my git project there is no enterprise directory, and my apple account is not enterprise. So it won't create enterprise directory. def self.cert_type_sym(type)
return :enterprise if type == "enterprise" || (type == "adhoc" && Spaceship.client.in_house?)
return :development if type == "development"
return :distribution if ["adhoc", "appstore", "distribution"].include?(type)
raise "Unknown cert type: '#{type}'"
end Then i found the |
Same as you @wanyakun. Do you guys have an idea? |
As a temp solution, I downgraded back to 2.91.0 Gemfile |
@ATU i remove this line |
This reverts commit d0c3b3f.
Hey everyone! Sorry about this. Going to revert it 😬 |
Reverted this PR and making new version for |
Congratulations! 🎉 This was released as part of fastlane 2.92.0 🚀 |
Fixes #11139
Fixes #12133
Da motivation
I have experience this issue while (as well as others) where
match
doesn't treatadhoc
profiles forenterprise
accounts the way it is expected.❌ Before
match
would place certificates for enterpriseadhoc
accounts underdistribution
match
wouldn't reuse the same cert used forinhouse
which was placed underenterprise
sigh
would also look for enterpriseadhoc
files inSpaceship.certificate.production.all
when actually inSpaceship.certificate.in_house.all
✅ After
match
looks for both enterpriseadhoc
andinhouse
certs under theenterprise
directorysigh
now properly returns certificates for enterpriseadhoc
profilesmatch
will now look for the adhoc cert in theenterprise
directory instead ofdistribution