-
Notifications
You must be signed in to change notification settings - Fork 58
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
Connecting to an Apple Service with Step inputs #281
Comments
We have the same issue, have you found a solution for that? |
As long this issue is not addressed, we'll use the deprecated step. I've contacted the Bitrise support, which also suggested to use the deprecated step again. |
We have the same issue in our company and still have to use deprecated steps. It would be great to see the option for specifying API key and issuer ID in future step releases 🙏🏼 |
I have also created feature request on discuss.bitrise.io |
I would also need that. |
We have the same issue, any of you found a way to work with multiple api keys? |
Definitely need this as well before the iOS Auto Provision step is removed on July 15th (which is just 3 weeks from now) |
Just started looking into switching us over a few weeks ago, and have been trying to find an alternative... this step is going to be removed in just a few weeks... I can't imagine having to switch the chosen api key / issuer id every time that we need to do a build... that becomes a lot of extra management that bitrise has been doing a wonderful job of automating for us until now. |
We need this too! 👀 |
I'd love to see this too 👍 |
This would definitely bring us to a grinding halt too over a lot of moments that used to be smooth sailing because of the automation. Would really appreciate this 🙏 🙏 |
I recently wrote a support ticket and that's the answer I got:
I would suggest contacting Bitrise support so they really see the need in supporting this feature. |
thanks @mbuchetics I will do that, We definitely need - at the very least, for them to not deprecate the existing steps so that we are covered until they can work with these requirements. I had been looking into creating my own step, but it seems they have a lot of internal things happening... unfortunately we don't use fastlane... |
Hello everyone! I'm happy to announce that the latest step version adds the ability to override the App Store Connect connection: https://github.com/bitrise-steplib/steps-xcode-archive/releases/tag/4.6.0 Thank you for your patience and let us know how it's working for your use case! |
Thanks a lot @ofalvai!! I set
|
Are you sure the private key is downloaded previously into the temp directory? We recommend uploading the private key to Bitrise's Code Signing tab, then adding a File Downloader step to the workflow that downloads the file at runtime. Note that Note that you no longer need to include the key ID in the filename, now there is a separate step input for that. |
Oh, I was uploading in profile settings -> Integrations, my mistake. |
works like a charm! 🎉 |
@ofalvai Hey, thanks so much for the changes you added! We could use a little help… |
Reposting something I originally wrote in the related Bitrise feature request forum:
even though we set as a Step Input variable Distribution method: app-store? I think this will lead to problems when we send builds to App Store review. I can see in my build logs that when it exports the IPA and tries to determine the Code sign group, it “Failed to find Codesign Groups”.
Previously with the iOS Auto Provision Step 2.0.3, we used the Input variable Should the step try to generate Provisioning Profiles even if Xcode managed signing is enabled in the Xcode project? yes
|
@traceycraverapp The deprecated autoprov Steps will NOT be removed yet (for a few weeks at least), despite the deprecation date. |
@lpusok Thank you for not removing the deprecated step until everything works as before! 🙏 We had to revert back to the deprecated step due to some unexpected issues. As I wrote earlier, on the first look it worked like a charm, but there are some strange behaviors, like the creation of a dev cert (even if a dev cert is uploaded to Bitrise) #278 and that some of our projects couldn't be built for "app-store" anymore due to "invalid signing" ("via API created" development cert was used to sign the app instead of the uploaded distribution cert). Edit: We were able to fix the "invalid signing", which had something todo with special chars / umlauts in product name and no registered devices in App Store Connect. Wasn't any problem before. 😅 The creation of development certs could also be fixed due to this hint. |
I have the same strange behavior. Bitrise is creating a dev cert called "Created via API" each build I make. |
I wanted to ask about a new error after adjusting some settings: In my build logs, soon after “Starting the Archive …”, I now see
Trying to interpret it:
I'm getting this even though it seems to me I’ve set up the App Store Connect connection override correctly by doing:
"environments":[
{"mapped_to":"API_KEY_ID","value":"$TEAM1_API_KEY_ID","is_expand":true},
{"mapped_to":"API_KEY_ISSUER_ID","value":"$TEAM1_API_KEY_ISSUER_ID","is_expand":true},
{"mapped_to":"PRIVATE_KEY_URL","value":"$BITRISEIO_TEAM1_API_KEY_URL","is_expand":true}
] |
@mrahn24 You might be able to get distribution exports by adding the Export iOS and tvOS Xcode archive Step after the Xcode Archive & Export Step like in the Bitrise docs here:
This is working for me. A build I made with the above passed App Store Review, and they can definitely detect if you've signed it with the development certificate or used a development provisioning profile. Although my message above this one talks about an error I get when trying to archive using an API key from one of my company's team IDs, I didn't get that error using a different API key from a different team ID of my company's. Builds with that API key succeed. For my company's purposes though, we need API keys from different Team IDs to all work. |
Hello there, I'm a bot. On behalf of the community I thank you for opening this issue. To help our human contributors focus on the most relevant reports, I check up on old issues to see if they're still relevant. The community would appreciate if you could check if the issue still persists. If it isn't, please close it. If no comment left within 21 days, this issue will be closed. |
I'll close this issue as it doesn't seem to be relevant anymore. |
Troubleshooting
Useful information
Issue description
The now deprecated "iOS Auto Provision with App Store Connect API" allowed us to specify an API key and issuer ID to use when auto provisioning the app instead of using the Apple Service Connection specified in the Teams tab
The "Xcode Archive & Export for iOS" does not allow for specifying an API Key and Issuer ID which we need to build and deploy different version of our app to different app stores.
The docs here say this should be possible, but I don't see anywhere in this step to specify the inputs
https://devcenter.bitrise.io/en/accounts/connecting-to-services/connecting-to-an-apple-service-with-step-inputs.html#ot-lst-cnt
The text was updated successfully, but these errors were encountered: