Re: "Unknown Apple ID" entries in Xcode Accounts settings

Hello! This post is a response to another post from Oct 17 that has already been locked for some reason:

https://forums.developer.apple.com/forums/thread/766500

After upgrading to Xcode 16.0, our build machine was no longer able to archive and upload builds to App Store Connect automatically, as every single time it would say:

`IDEDistribution: Failed to log in with account "(null)" while checking for an App Store Connect account`

I tried using the workaround in the post above as suggested, but it does not help the problem. Removing and signing out of the account just results in Xcode not being able to do automatic signing because it no longer has access to the account with privileges to do that automatic signing.

error: exportArchive No Accounts
error: exportArchive No signing certificate "iOS Distribution" found

I also tried Xcode 16.1 beta 3 as suggested and now the build machine's account is actually removed after every build via our build system! I have to log on after every build, log back in, and then upload the build to App Store Connect manually. I'm guessing that this "workaround" was added to Xcode itself, which is not serving its intended purpose and has actually made things worse.

Not sure if there is a more official venue to send a bug report, but I'm posting here for help since that's where I originally found the post and it appeared to be written by an Apple engineer. Any other possible workarounds? Should I try one of the newer beta releases? Any help would be appreciated as this is becoming very cumbersome and a routine update of Xcode on our build machine has caused a ton of headaches.

I also tried Xcode 16.1 beta 3 as suggested

Please try the latest release of Xcode 16.1. If your issue still reproduces, please file a bug report and post the Feedback number here.

our build machine was no longer able to archive and upload builds to App Store Connect automatically, as every single time it would say:

Are you able to use authentication keys? For more information, see Correct settings to setup Xcode/xcodebuild in a CI using automatically managed signing ? (Xcode 16).

I tried Xcode 16.1 RC1 and can confirm that the issue persists. I figured out how to submit a bug report and my feedback number is FB15618810

We actually have authentication keys set up and I believe it is getting used during the upload process but not the signing / build process. I would have to do some debugging of our Fastlane system to determine whether or not getting it to use the auth key is an easy parameter change or something that would require a lot of work to make work.

Getting Fastlane working to pass an authentication key into the xcodebuild command results in a signing permission error despite the authentication key having App Manager (and as a result Developer) permissions. I don't think we should need an Admin key to get it to work as that sounds like an unnecessary security risk. This same key is used in our upload process and seems to work correctly for the upload.

xcodebuild -exportArchive -exportOptionsPlist /Users/builder/Downloads/buildAgentFull/temp/buildTmp/gym_config20241029-84185-3dsrsh.plist -archivePath '/Users/builder/Library/Developer/Xcode/Archives/2024-10-29/SuperFlappyGolf 2024-10-29 11.08.58.xcarchive' -exportPath /Users/builder/Downloads/buildAgentFull/temp/buildTmp/gym_output20241029-84185-278oqi -allowProvisioningUpdates -authenticationKeyID OUR_KEY_ID -authenticationKeyIssuerID OUR_ISSUER_ID -authenticationKeyPath /Users/builder/fastlane/fastlane/asc_api.p8
error: exportArchive Cloud signing permission error
error: exportArchive No signing certificate "iOS Distribution" found

I redacted our actual key ID and issuer ID in the command above but thought it was worth posting the exact command being used by Fastlane. Prior to trying to get it to use the authentication key, the xcodebuild command just ended after the allowProvisioningUpdates argument.

Any further advice would be appreciated.

FYI - it looks like I'm signed in with my work account now instead of my personal account, but I am the OP - coolblueflame.

Re: "Unknown Apple ID" entries in Xcode Accounts settings
 
 
Q