Bot fails exportArchive: cloudContainer/listCloudContainers error 1200

Xcode 10.0 (10A255)


I have a bot which packages an ipa archive, and then attempts to upload to appstore. The archive process is succeeding, and I can manually upload the product in Organizer and distribute via TestFlight, so everything there appears to be valid, but the upload fails.


The error reported describes an issue accessing the DVTPortalListCloudKitContainerService: "You are not allowed to perform this operation. Please check with one of your Team Admins...". I am the team admin (and sole member).


The app's Capabilities include:

- iCloud: Key-value storage

- Keychain Sharing: 1 keychain group


I disabled iCloud: iCloud Documents, which grayed-out the Containers section of the Capabilities page.


Any ideas?


Here is the exportOptionsPlist:

teamID: <10-char ID>
iCloudContainerEnvironment: Production
method: app-store
uploadBitcode: YES
compileBitcode: YES
uploadSymbols: YES
signingStyle: automatic
signingCertificate: iPhone Developer: Stan Stadelman <10-char ID>
provisioningProfiles: {
    : 
}

Here is the relevant section of the Bot 'Raw Build Log':


$ /usr/bin/xcrun xcodebuild -exportArchive 
-archivePath          ~/Library/Caches/XCSBuilder/Integration-.../AppName.xcarchive 
-exportPath           ~/Library/Caches/XCSBuilder/Integration-.../ExportedProduct 
-exportOptionsPlist   ~/Library/Caches/XCSBuilder/Integration-.../exportOptionsPlist.plist 
-IDEPostProgressNotifications=YES 
-DVTAllowServerCertificates=YES 
-DVTProvisioningUseServerAccounts=YES 
-allowProvisioningUpdates 
-allowProvisioningDeviceRegistration

2018-10-24 13:11:58.971 xcodebuild[30313:3148338] [MT] IDEDistribution: -[IDEDistributionLogging_
      _createLoggingBundleAtPath:]: Created bundle at path '.../AppName_2018-10-24_13-11-58.970.xcdistributionlogs'.
2018-10-24 13:12:01.273 xcodebuild[30313:3148339]  DVTPortal: Service '' encountered an unexpected result code from_
      the portal ('1200')
2018-10-24 13:12:01.273 xcodebuild[30313:3148339]  DVTPortal: Error:
Error Domain=DVTPortalServiceErrorDomain Code=1200 "You are not allowed to perform this operation.  Please check_
      with one of your Team Admins, or, if you need further assistance, please contact Apple Developer Program_
      Support. https://developer.apple.com/support" UserInfo={payload={type = mutable dict, count = 10,
entries =>
  0 : {contents = "requestId"} = {contents = "38236D93-0DBC-493A-A132-83FEA2D214AA"}
  1 : responseId = {contents = "6b2f6862-d344-4c05-88df-56b6112ad43c"}
  2 : {contents = "protocolVersion"} = QH65B2
  3 : {contents = "requestUrl"} = {contents = "https://developerservices1.apple.com/services/QH65B2/_
                                                  cloudContainer/listCloudContainers.action"}
  6 : {contents = "userLocale"} = en_US
  8 : resultCode = {value = +1200, type = kCFNumberSInt64Type}
  9 : userString = {contents = "You are not allowed to perform this operation.  Please check with one of your_
                                    Team Admins, or, if you need further assistance, please contact Apple Developer_
                                    Program Support. https://developer.apple.com/support"}
  10 : {contents = "resultString"} = {contents = "You are not allowed to perform this operation.  Please check with_
                                                   one of your Team Admins, or, if you need further assistance,_
                                                   please contact Apple Developer Program Support. https://developer_
                                                  .apple.com/support"
  11 : httpCode = {value = +200, type = kCFNumberSInt64Type}
  12 : {contents = "creationTimestamp"} = {contents = "2018-10-24T20:12:01Z"}
}
, NSLocalizedDescription=You are not allowed to perform this operation.  Please check with one of your Team Admins,_
 or, if you need further assistance, please contact Apple Developer Program Support. https://developer.apple.com_
/support}
error: exportArchive: You are not allowed to perform this operation.  Please check with one of your Team Admins, or_
, if you need further assistance, please contact Apple Developer Program Support. https://developer.apple.com_
/support

Replies

I have this exact problem as well. Were you able to find a solution?