我有一个颤振项目。我可以在 Xcode 中运行,但无法在 Android Studio 中运行。
我有一个旧的开发者帐户,我删除了钥匙串中的相关证书。不知何故,Android Studio 仍然寻找旧凭据。即使我在 Xcode 中删除了该帐户,但在我尝试在 Android Studio 中运行后它又回来了。我该如何解决这个问题?
--- xcodebuild: WARNING: Using the first of multiple matching destinations:
{ platform:iOS Simulator, id:FEF8278D-959F-4D62-9A49-71CDCB82B074, OS:18.0, name:iPhone 16 Pro Max }
{ platform:iOS Simulator, id:FEF8278D-959F-4D62-9A49-71CDCB82B074, OS:18.0, name:iPhone 16 Pro Max }
2024-09-22 21:29:49.077 xcodebuild[32544:1459090] DVTDeveloperAccountManager: Failed to load credentials for B7074919-FC54-4A8F-94B8-A79D26E84839: 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}
2024-09-22 21:29:49.079 xcodebuild[32544:1459090] 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}
** BUILD FAILED **
Could not build the application for the simulator.
Error launching application on iPhone 16 Pro Max.
Xcode 版本 16.0 (16A242d)
Flutter(频道稳定,3.24.0,在 macOS 14.5 XXX darwin-arm64,区域设置 en-TR)
我尝试了什么;
经过多次尝试,我是这样解决的。
第一;我删除了钥匙串中所有与 xcode 相关的内容和与邮件相关的内容。 然后我重新安装 xcode 并登录进行签名。 之后那个警告就消失了。