I have switched to a new Apple ID for development. I'm trying to build my app- via Fastlane, but here is the command I'm running plain from the Terminal:
xcodebuild -workspace Runner.xcworkspace -scheme Runner -destination 'generic/platform=iOS' -archivePath ~/Desktop/test.xcarchive archive
It shows this error:
2024-11-17 16:53:42.620 xcodebuild[3907:31401] DVTDeveloperAccountManager: Failed to load credentials for [email protected]: Error Domain=DVTDeveloperAccountCredentialsError Code=0 "Invalid credentials in keychain for [email protected], missing Xcode-Token" UserInfo={NSLocalizedDescription=Invalid credentials in keychain for [email protected], missing Xcode-Token}
The problem is that [email protected] is the old Apple ID which I have tried to remove from my system entirely:
xcodebuild cleanrm -rf ~/Library/Developer/Xcode/DerivedDatarm -rf ~/Library/Caches/com.apple.dt.Xcoderm -rf ~/Library/Application\ Support/Xcoderm -rf ~/Library/MobileDevice/Provisioning\ Profilesfastlane match nuke development and fastlane match nuke distribution followed by fastlane match to regenerate -- all those logs confirmed use of the new Apple IDsecurity delete-generic-password -s "Xcode" -a "[email protected]"Why else would my machine be looking up credentials for my old Apple ID??
This was the solution:
defaults delete com.apple.dt.Xcode
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With