In wwdc21-10204 the presenter walks through an example of using the the xcodebuild tool to automate Xcode cloud signing which is useful for CI. Something like the following:
xcodebuild -exportArchive \
-archivePath Build/Foo.xcarchive \
-exportOptionsPlist exportOptions.plist \
-exportPath Build/Foo.ipa \
-authenticationKeyIssuerID XXXX \
-authenticationKeyID XXXX \
-authenticationKeyPath ~/AuthKey_XXXX.p8 \
-allowProvisioningUpdates
code-block
Note how this would not require an account to be logged into Xcode. This works fine for Apple Developer accounts but am I correct that there is no way for this to be done with Apple Enterprise Developer accounts? Presumably it cannot because we cannot create an AppStoreConnect API key with an Enterprise account. As such it would seem the only way to make it work is to have Xcode be logged in with the Enterprise account correct?