-
If you are looking for help, please confirm the following...
Which mobile framework are you using?Flutter (Dart) Steps to reproduce
Expected resultsCodemagic has to select the provisioning profile using bundle ID AND Device Type. (not only by bundle ID) Actual resultsFailed to build iOS app Build id (optional)No response |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
hello @zs-dima Instead of manually creating and referencing provisioning profiles in Codemagic, you can allow Codemagic to automatically handle fetching and applying the correct provisioning profiles for your app. The key command responsible for this is: Since you are whitelabeling let me share this guide with you, which will help you on setting up all the required steps for whitelabeling your apps. |
Beta Was this translation helpful? Give feedback.
-
@dtrdic thanks a lot for the answer If I do not provide provisioning profiles it is error message:
If I provide only one provisioning profile it is error:
I prefer to use integrations instead of manual keychain management as in your example: integrations:
app_store_connect: app_appstore_api_key
environment:
ios_signing:
certificates:
- app_apple_signing_certificate
scripts:
- *call_scripts
- name: Set up code signing
script: |
app-store-connect fetch-signing-files "$BUNDLE_ID" --type IOS_APP_STORE --create
xcode-project use-profiles |
Beta Was this translation helpful? Give feedback.
@zs-dima you won't be able to use the App Store Connect integration in this case. You'll need to take a different approach by manually defining the App Store Connect API key information (e.g., APP_STORE_CONNECT_KEY_IDENTIFIER, APP_STORE_CONNECT_ISSUER_ID, APP_STORE_CONNECT_PRIVATE_KEY) as environment variables and adding them to Codemagic.
So remove this part
Add the required environment variables to Codemagic: You can set them in the Codemagic UI as shown below:
And reference the variables through the group name in your codemagic.yaml