All Collections
Apple App Store Deployment Issues
Failed Step: Fetch Signing files
Codemagic Deployment on iOS: Authentication Credentials Are Missing or Invalid
Codemagic Deployment on iOS: Authentication Credentials Are Missing or Invalid

To resolve invalid credential issues during deployment, provide a properly configured and signed bearer token (make sure it's not expired!).

A
Written by Ashley
Updated over a week ago

Need help identifying your Codemagic deployment error? Check out this article.

Invalid Authentication Credentials Error

This means that there was a misconfiguration issue while setting up deployment for App Store. The token used is likely expired or is invalid.

Learn more about Generating Tokens for API Requests https://developer.apple.com/go/?id=api-generating-tokens

Full error message

Failed Step: Fetch signing files
GET https://api.appstoreconnect.apple.com/v1/bundleIds?limit=100&sort=name&filter%5Bidentifier%5D=appname.com&filter%5Bplatform%5D=IOS returned 401: Authentication credentials are missing or invalid.
Provide a properly configured and signed bearer token, and make sure that it has not expired. Learn more about Generating Tokens for API Requests https://developer.apple.com/go/?id=api-generating-tokens

How To Resolve the Issue

To resolve this issue, you'll need to generate a new API key for your app and then replace it with the one present inside FlutterFlow.

Please follow these steps to generate your API Key:

  1. Navigate to App Store Connect, select Users and Access, and then select Keys (blue text).

  2. If you see the Request Access button, click on it.

  3. Click on the Generate API Key. Otherwise, select the Add button (+).

  4. A popup will appear. Enter your API Key Information:

    1. Name: Enter a name for the key. This is a reference and is not part of the key itself.

    2. Access: Select the access type. This link has additional information on roles.

  5. When you are done, select Generate.

  6. Find the row for the API Key you just generated and select Download API Key. A popup will appear, select Download.
    โ€‹

    Note: If you don't see the Download API Key link immediately, refresh your page.

  7. Return to FlutterFlow and navigate to Settings & Integrations --> Deployment.

  8. Under Private Key, select Upload Private Key. Select the API Key File and then select Open.

  9. After this please try deploying the app again.


Still need help? If you are deploying from FlutterFlow and still getting this error after following all the steps outlined above, then please report this issue to support via messengar or email at support@flutterflow.io.
โ€‹

Did this answer your question?