Xcode 16 used in CI gets littered with empty user accounts

We have a Mac mini running our CI with Xcode 16, and empty accounts seem to appear in it as time goes by. I haven't yet isolated which job(s) are triggering this, it slows builds down considerably, especially because any code-signing related task yields a ton of error messages like

IDEDistribution: Failed to log in with account "(null)" while checking for an App Store Connect account (Error Domain=DVTServicesAccountBasedSessionErrorDomain Code=0 "Unable to log in with account 'mobile-devs@sightcall.com'." UserInfo={NSLocalizedFailureReason=Unable to log in with account 'mobile-devs@sightcall.com'., NSLocalizedRecoverySuggestion=The login details for account 'mobile-devs@sightcall.com' were rejected., DVTDeveloperAccountErrorAccount=<DVTAppleIDBasedDeveloperAccount: 0x60000169c900; username='mobile-devs@sightcall.com'>, NSUnderlyingError=0x600001e71f50

This is obviously an Xcode bug, but has anyone found a work-around somehow ?

Answered by DTS Engineer in 808934022

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

For more information, see this thread: https://developer.apple.com/forums/thread/765893

Accepted Answer

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

For more information, see this thread: https://developer.apple.com/forums/thread/765893

Additionally, you can workaround this issue by running the following command in Terminal:

defaults delete com.apple.dt.Xcode DVTDeveloperAccountManagerAppleIDLists

For clarity, I fixed the problem, with the following command :

defaults write com.apple.dt.Xcode DVTDeveloperAccountManagerAppleIDLists -dict 'IDE.Identifiers.Prod' '({ "identifier" = "DEADBEEF-8599-416C-8362-E12AE4D7424F"; } )' "IDE.Prod" '({ "username" = "<apple_id>"; } )'

instead of deleting the whole DVTDeveloperAccountManagerAppleIDLists. We have just updated to Xcode 16.1 so I don't know yet if it fixes the issue.

Xcode 16 used in CI gets littered with empty user accounts
 
 
Q