Skip to content
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

will it work if you have AppStore and Enterprise account #2011

Closed
fastlanebot opened this issue Dec 10, 2015 · 12 comments
Closed

will it work if you have AppStore and Enterprise account #2011

fastlanebot opened this issue Dec 10, 2015 · 12 comments

Comments

@fastlanebot
Copy link

Original issue by @romk1n - Imported from fastlane/match#8

Is there support for having both Enterprise and Normal developer account in one project file ? i.e. some bundle ids singed as adhoc and other are as enterprise account.

What would be the advice in such environment ? (two separate repos?)

@fastlanebot
Copy link
Author

@KrauseFx commented

Yes, use one repository per account / team. Also, as it is now, match doesn't support Enterprise profiles.

@fastlanebot
Copy link
Author

@romk1n commented

Thanks @KrauseFx would be great to also support enterprise accounts! :)

@fastlanebot
Copy link
Author

@KrauseFx commented

I know, but check out the security section of the readme.

@fastlanebot
Copy link
Author

@Elaz commented

Hi @KrauseFx
For supporting enterprise, why not encrypt the profile when adding to git and decrypt when running match? developers will have the passphrase for decryption.
Currently we have an AppStore + Enterprise accounts and I think the fact that there's no enterprise support is the only thing holding us back from using Match. Other than that it looks like an awesome and much needed tool.

@fastlanebot
Copy link
Author

@KrauseFx commented

@Elaz top secret, but you should try

MATCH_FORCE_ENTERPRISE=1 ./bin/match --type enterprise

or in your Fastfile

ENV["MATCH_FORCE_ENTERPRISE"] = "1"
match(type: "enterprise")

Let me know how that works for you 👍

@fastlanebot
Copy link
Author

@Elaz commented

@KrauseFx I've had issues using a lane with match for both appstore and enterprise (two teams, same developer account),
it seems that the wrong certificate is chosen for the second account that is being accessed ('e55f8969dfe2c7b9866b9e19a6f629b9' is one of my crash logs) - it actually tries to take a certificate from the distribution on the appstore account when it should take or search the enterprise one.
I fixed it by adding in runner.rb:41
,,,
cert_type = :enterprise if ENV["MATCH_FORCE_ENTERPRISE"] && Spaceship.client.in_house? && params[:type] == "enterprise"
,,,
and the whole lane went great. Is it a good solution?

Edit: not so great... still having some issues. Trying to figure out what's wrong.
Edit #2: after manually clearing my keychain certificates, nuking all environments, making sure on dev portal that everything is cleared and running my profiling lane, it worked, for me and 4 other developers.

@fastlanebot
Copy link
Author

@Elaz commented

I created a PR for it: fastlane-old/match#48

@fastlanebot
Copy link
Author

@KrauseFx commented

I'll push a new release in a few minutes, please update and let me know if that works 👍

@fastlanebot
Copy link
Author

@Elaz commented

Hi @KrauseFx, Thanks a lot! - The fix works for enterprise account on the release (enterprise) setup - however, I suspect Match doesn't deal with the development setup for enterprise accounts. It looks like this option is missing currently, since if I set it to type "development" but supply the enterprise team id, it will look at the wrong place for the certificate, the developer account on the portal for the appstore account.
To make it clear, even if I didn't have an appstore account, and only enterprise, it would still mix the two when users try to generate a development certificate/profile on the enterprise account. Users must have one on the enterprise account as well to be able to load apps on devices.

This is what I'm getting when the type in match is set to 'development' but the account i'm trying to provision/cert is the enterprise one.
I think this is an issue at the Spaceship+sigh level.
(needless to say, there aren't any revoked certificates on my account...)

[13:44:42]: Certificate 'XXXXXXXXXX' (stored in your git repo) is not available on the Developer Portal
[13:44:42]: for the user xxxxxxxx@xxxxx.com
[13:44:42]: Make sure to use the same user and team every time you run 'match' for this
[13:44:42]: Git repository. This might be caused by revoking the certificate on the Dev Portal

[!] To reset the certificates of your Apple account, you can use the `match nuke` feature, more information on https://github.com/fastlane/match

Thanks again.
I'll be happy to assist in any way.

@fastlanebot
Copy link
Author

@romk1n commented

thank you!

@fastlane-bot
Copy link

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates.

Please make sure to update to the latest fastlane version and check if that solves the issue. Let us know if that works for you by adding a comment 👍

@fastlane-bot
Copy link

This issue will be auto-closed because there hasn't been any activity for a few months. Feel free to open a new one if you still experience this problem 👍

@fastlane fastlane locked and limited conversation to collaborators Dec 6, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants