With the recently introduced Enterprise API Program, this should allow us to interact with the developer portal via the API instead of needing an account signed into Xcode.
I followed the following steps to generate a key:
- Logged into App Store Connect.
- Navigated to Users and Access.
- Selected Integrations.
- Generated an API key with the Admin role.
- Saved the key, the key identifier, and the issuer identifier.
Now, when using xcodebuild with the -allowProvisioningUpdates
switch, I added -authenticationKeyPath
, -authenticationKeyID
, and -authenticationKeyIssuerID
with the correct values.
xcodebuild spits out the following error:
xcodebuild: error: Invalid authentication key credential specified (CryptoKit.CryptoKitASN1Error.invalidPEMDocument)
What am I doing wrong/what did I miss? The developer portal shows that the key was "used" by updating the last used date.
What am I doing wrong
Nothing. These keys don't support enterprise accounts. If you would like Apple to consider adding this feature, please file your suggestion using Feedback Assistant, then post your Feedback number here.