xcodebuild distribution documentation

The release notes for Xcode 15 mentions that xcodebuild has support for automatic distribution:

xcodebuild -exportArchive supports using App Store Connect authentication keys to upload apps to App Store Connect and the Apple notary service. (76036452)

I'm not able to find any documentation about the flags or options to pass to xcodebuild to do automatic TestFlight uploading, and it's not covered in the xcodebuild man pages either.

Can someone detail what the command-line flags are to enable this?

The man page for xcodebuild is not really the source of truth. Rather, run xcodebuild with the -help option. For example:

% DEVELOPER_DIR=/Users/quinn/XcodeZone/Xcode-beta.app/Contents/Developer xcodebuild -help
…
    -authenticationKeyPath      specifies the path to an authentication …
    -authenticationKeyID        specifies the key identifier associated …
    -authenticationKeyIssuerID  specifies the App Store Connect issuer i…
… 

FYI, I set DEVELOPER_DIR to point to my copy of Xcode 15 beta because my default Xcode is still 14.3.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

xcodebuild distribution documentation
 
 
Q