Xcode Cloud Fails to export archive: Command exited with non-zero exit-code: 70

Hi. I'm using Xcode Version 13.4.1. I have a project that builds an iOS app successfully in Xcode cloud. However, I am getting errors when trying to execute the archiving action.

It seems archiving for app-store distribution works but fails archiving for development distribution and ad-hoc distribution. I only need the archive for app-store distribution and so what is the way to disable archiving for the other two ?

Also, is there any way to provide a custom export options plist ?

the answers here might give you a clue: https://developer.apple.com/forums/thread/703417

Seeing this same issue on my builds... Tried deleting all the Xcode Cloud certificates from the developer portal and restarting the build but still has issues.

Same for my i opened a support ticket if i download the artifact and upload it myself, it work

Anyone fixed this issue. I cant build locally or on the cloud.

I was able to solve such issue by requesting to access the App Store Connect API: https://appstoreconnect.apple.com/access/api

yea per @dvoinev -- but the link has changed, you have to do it under Users and Access in App Store Connect by clicking on Integrations / Enable -- more instructions here https://developer.apple.com/help/app-store-connect/get-started/app-store-connect-api/

Xcode Cloud Fails to export archive: Command exited with non-zero exit-code: 70
 
 
Q