Xcode Cloud: All export archive steps fail with exit code 70 (Remote Mac + managed signing)

I'm experiencing a persistent issue with Xcode Cloud where my iOS app (Spellboard) builds and archives successfully, but all three export steps fail with exit code 70:

  • Export archive for ad-hoc distribution — exit code 70
  • Export archive for development distribution — exit code 70
  • Export archive for app-store distribution — exit code 70

Environment:

  • Xcode Cloud Build 45, branch: main
  • Project: Spellboard.xcodeproj
  • Team: EinsteinAI
  • Target: Any iOS Device (arm64)
  • Automatic code signing (managed by Xcode Cloud)
  • Building on a Remote Mac (additional code signing constraints)

Error details from logs: The xcodebuild -exportArchive command fails during the signing phase. For example, the development distribution step shows:

xcodebuild -exportArchive -archivePath /Volumes/workspace/tmp/ec4c2b30-ebd1-435f-8d8f-621326235df1.xcarchive -exportPath /Volumes/workspace/developmentexport -exportOptionsPlist /Volumes/workspace/ci/development-exportoptions.plist -DVTProvisioningIsManaged=YES -IDEDistributionLogDirectory=/Volumes/workspace/tmp/development-export-archive-logs -DVTSkipCertificateValidityCheck=YES -DVTServicesLogLevel=3

Command exited with non-zero exit-code: 70

The same pattern repeats for ad-hoc and app-store distribution exports.

What I've verified:

  • The build itself compiles successfully (all modules compile, command executed successfully)
  • No code changes were made that would affect signing
  • The workflow is configured with automatic signing managed by Xcode Cloud
  • Post-action is set to TestFlight External Testing

Additional constraint — Remote Mac: I'm building on a Remote Mac, which adds complexity to code signing and keychain access. The Remote Mac environment has known limitations with certificate and provisioning profile management compared to a local Mac. This may be a contributing factor to the export failures.

This appears to be an issue with how Xcode Cloud is handling the Apple Distribution and Apple Development signing certificates during the export phase, not a build compilation issue.

Has anyone encountered this recently, or is there a known issue with Xcode Cloud's managed signing on Remote Mac environments? Any guidance on resolving exit code 70 during the export step would be greatly appreciated.

Xcode Cloud: All export archive steps fail with exit code 70 (Remote Mac + managed signing)
 
 
Q