CI/CD with iOS & Query related to App Store Connect Key #3126
-
If you are looking for help, please confirm the following...
Which mobile framework are you using?iOS (Swift, Objective-C) Steps to reproduceI want to integrate codemagic ci/cd pipeline in my iOS project. Now i am writing script to export archive and push to testflight but it always fails. Is this issue due to App Store Connect Key Id. But I have uploaded certificate & profile in codemagic. Expected resultsSo is it necessary to use App Store Connect Key or without using this i can achieve the result. If yes, then please help me out where i am wrong and help me in scripting too. Actual resultsBuild ipa file & export it on Testflight. Build id (optional)683847aba2e43b77050a4f65 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi @sonamomar0 when publishing to the App Store, you need a way to authenticate with your Apple Developer account. This can be done by using an You can provide these credentials either through environment variables or by setting up the App Store Connect integration in Codemagic. Both approaches use the same credentials, it's just a matter of how you reference them in your codemagic.yaml. Let's use the App Store Connect API key integration because it's cleaner and easier to manage.
Also, if you want to upload your .ipa to Testfligt or App Store you will have to use an Apple Distribution certificate and a distribution provisioning profile, of type Here's how your workflow would look like if you are building an ios native app
|
Beta Was this translation helpful? Give feedback.
Hi @sonamomar0 when publishing to the App Store, you need a way to authenticate with your Apple Developer account. This can be done by using an
App Store Connect API key
, which consists of theIssuer ID
,Key ID
, and the.p8 file
.You can provide these credentials either through environment variables or by setting up the App Store Connect integration in Codemagic. Both approaches use the same credentials, it's just a matter of how you reference them in your codemagic.yaml.
Let's use the App Store Connect API key integration because it's cleaner and easier to manage.