Export archive fails due to No signing certificate "iOS Distribution" found

We are encountering build failures during the following stages on Xcode Cloud:

•   Export archive for ad-hoc distribution -> fail
•	Export archive for development distribution -> fail
•	Export archive for app-store distribution -> fail
Run command: 'xcodebuild -exportArchive -archivePath /Volumes/workspace/tmp/a603f613-f0a2-4053-9316-2f25ca93250d.xcarchive -exportPath /Volumes/workspace/adhocexport -exportOptionsPlist /Volumes/workspace/ci/ad-hoc-exportoptions.plist '-DVTPortalRequest.Endpoint=http://172.16.56.69:8089' -DVTProvisioningIsManaged=YES -IDEDistributionLogDirectory=/Volumes/workspace/tmp/ad-hoc-export-archive-logs -DVTSkipCertificateValidityCheck=YES -DVTServicesLogLevel=3'
Error
Command exited with non-zero exit-code: 70
2025-01-21T05:11:20.962717086Z error: exportArchive There is a problem with the request entity
2025-01-21T05:11:20.962756880Z
2025-01-21T05:11:20.962760011Z error: exportArchive No signing certificate "iOS Distribution" found
2025-01-21T05:11:20.962764378Z
2025-01-21T05:11:20.962767137Z error: exportArchive There is a problem with the request entity
2025-01-21T05:11:20.962771440Z
2025-01-21T05:11:20.962774232Z error: exportArchive No signing certificate "iOS Distribution" found

The build process was functioning correctly until this morning with same branch. We also have verified that our certificates are valid and successfully uploaded to TestFlight using these certificates on the local Xcode environment.

This appears to be an issue on the Xcode Cloud side as no significant configuration changes were made on our end.

Answered by go-taras in 822178022

Navigate to https://developer.apple.com/account/resources/certificates/list and revoke "Distribution Managed (Xcode Cloud)" cert if you get

error: exportArchive No signing certificate "iOS Distribution" found

or revoke "Development Managed (Xcode Cloud)" cert if you get

error: exportArchive No signing certificate "iOS Development" found

This will make Xcode Cloud to re-generate certificates.

We are hitting the exact issue - started yesterday morning:

Run command: 'xcodebuild -exportArchive -archivePath /Volumes/workspace/tmp/705439ac-65d2-4afe-89bc-d3cdf6310411.xcarchive -exportPath /Volumes/workspace/appstoreexport -exportOptionsPlist /Volumes/workspace/ci/app-store-exportoptions.plist '-DVTPortalRequest.Endpoint=http://172.16.36.64:8089' -DVTProvisioningIsManaged=YES -IDEDistributionLogDirectory=/Volumes/workspace/tmp/app-store-export-archive-logs -DVTSkipCertificateValidityCheck=YES -DVTServicesLogLevel=3'

Command exited with non-zero exit-code: 70

Accepted Answer

Navigate to https://developer.apple.com/account/resources/certificates/list and revoke "Distribution Managed (Xcode Cloud)" cert if you get

error: exportArchive No signing certificate "iOS Distribution" found

or revoke "Development Managed (Xcode Cloud)" cert if you get

error: exportArchive No signing certificate "iOS Development" found

This will make Xcode Cloud to re-generate certificates.

@go-taras - thank you! Revoking all "(XCode Cloud)" certs fixed it for us!

Revoking the certificates created by Xcode Cloud resolved the issue. In fact, we only needed to revoke the one that was close to expiring to fix it. This might be an issue on Apple’s side.

@go-taras thank you for your solution!

Export archive fails due to No signing certificate "iOS Distribution" found
 
 
Q