Skip to content
This repository has been archived by the owner on Mar 28, 2024. It is now read-only.

Automatic code signing failed #96

Closed
1 task done
QuentinFarizon opened this issue Dec 23, 2021 · 6 comments
Closed
1 task done

Automatic code signing failed #96

QuentinFarizon opened this issue Dec 23, 2021 · 6 comments

Comments

@QuentinFarizon
Copy link

Troubleshooting

  • I've searched discuss.bitrise.io for possible solutions.
  • Which version of the step is effected? 2.2.4
  • Is the issue reproducible with the latest version? YES
  • Does the issue happen sporadically, or every time? EVERY TIME
  • Is the issue reproducible locally by following our local debug guide? NOT APPLICABLE

Issue description

All our builds are failing at step "ios-auto-provision-appstoreconnect", on different projects with different API keys.
We didn't change anything on Bitrise configuration.

Fetching Apple Service connection
Bitrise Apple Developer Connection with API key found
Using Apple service connection with API key.
Initializing Developer Portal client
App Store Connect API client created with base URL: https://api.appstoreconnect.apple.com/
Downloading certificates
1 certificates downloaded:
- Serial: 1433(redacted)22132, Name: iPhone Distribution: (redacted), Team: (redacted), Expiry: 2022-08-25 13:45:48 +0000 UTC
Certificate (Serial: 1433(redacted)22132, Name: iPhone Distribution: (redacted), Team: (redacted), Expiry: 2022-08-25 13:45:48 +0000 UTC) not found on Developer Portal: failed to fetch certificate (6bda8(redacted)194): GET https://api.appstoreconnect.apple.com/v1/certificates?filter%5BserialNumber%5D=6bda8e(redacted)1194: 401
- NOT_AUTHORIZED: 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
Automatic code signing failed: failed to get valid certificates: not found any of the following IOS_DISTRIBUTION certificates on Developer Portal:
- Serial: 143362(redacted)2132, Name: iPhone Distribution: (redacted), Team: (redacted), Expiry: 2022-08-25 13:45:48 +0000 UTC

Bitrise info

@shams-ahmed
Copy link

@QuentinFarizon 401 NOT_AUTHORIZED: Authentication credentials are missing or invalid might be related to an expired Apple Service connection. see more here

@QuentinFarizon
Copy link
Author

It sounds like it could be related, but it started failing at the same time in two projects with differents Apple Service Connections, created at different times

@shams-ahmed
Copy link

@QuentinFarizon On another note, can double-check your certificate is available on Apple portal, it may have been deleted or recreated and no longer matches with the one supplied to Bitrise.

@QuentinFarizon
Copy link
Author

Well, the 2 certificates belong to two different Apple account, managed by two different administrators (and I'm not an administrator so I can't check)

@QuentinFarizon
Copy link
Author

Issue is now solved. Probably an issue on Apple side ?

@shams-ahmed
Copy link

@QuentinFarizon likely... but hard to say since their status page is mostly green

@bitrise-steplib bitrise-steplib locked and limited conversation to collaborators Dec 25, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants