Xcode Cloud with watchOS app - unable to archive

I struggling in getting Xcode Cloud to work with a stand alone watch app. This app has the following three targets and each bundle identifier is set up in the Identifiers section of the developer portal.

  • iphone container target called Unleashed abc.xyz.Unleashed
  • watch target called Unleashed Watch App abc.xyz.Unleashed.watchkitapp
  • watch target called Unleashed WidgetExtension abc.xyz.Unleashed.watchkitapp.Unleashed-Widget

I have a App Store provisioning set up for abc.xyz.Unleashed.watchkitapp

The app runs fine in the watch simulator, but fails with the following when I do an Xcode Cloud build

Export archive for ad-hoc distribution
Export archive for development distribution
Export archive for app-store distribution

When I expand each one of these errors it reports:

 Command exited with non-zero exit-code: 70

I also tried archiving the project in Xcode then selected the Archive but it won't let me validate because that button is disabled.

Very confused I have successfully used Xcode Cloud for a phone app but am having a problem with this watch app that has a widget

For troubleshooting steps, see TN3109: Resolving common archiving issues.

I've gotten past this issue. My scheme was not set up properly. I was not archiving the iOS Container app.

Xcode Cloud with watchOS app - unable to archive
 
 
Q