xcode 9.3会话在每次关闭并重新打开Xcode时到期 [英] xcode 9.3 session expires every time i close and re-open Xcode

查看:252
本文介绍了xcode 9.3会话在每次关闭并重新打开Xcode时到期的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我看到我的帐户显示您的会话已过期。请登录。每次重启Xcode时,在Xcode-> Preferences-> Accounts中,即使我在重启之间成功登录。此外,我的命令行xcodebuild失败,因为它说用户会话已过期。

i am seeing my account show "Your session has expired. Please log in." in Xcode->Preferences->Accounts every time i restart Xcode, even though I log in successfully in-between restarts. Also, my command line xcodebuild is failing because it says the user session has expired.

我们尝试删除并重新添加用户,但它没有解决问题。我们关闭了双因素身份验证并将其重新打开,但它也没有解决问题,虽然我们看到它允许登录w / o 2-factor auth一段时间,直到我们将其关闭并重新打开,然后它又开始要求代码。

We tried deleting and re-adding the user, and it did not solve the issue. We turned off 2-factor auth and turned it back on, and it also did not solve the issue, although we were seeing it allow the login w/o 2-factor auth for a while, until we turned it off and back on again, and then it started asking for a code again.

有没有人看到过这种行为?

has anyone seen this behavior?

推荐答案

Xcode 9.3现在使用Keychain Access Groups将Apple ID凭证存储在钥匙串中。在启动时,它会尝试将以前版本的Xcode中的任何现有凭据迁移到访问组中。在某些情况下,该迁移似乎失败。

Xcode 9.3 now uses Keychain Access Groups to store your Apple ID credentials in the keychain. On launch, it attempts to migrate any existing credentials from previous versions of Xcode into the access group. In some cases, that migration appears to fail.

您可能不需要安装旧版本的Xcode来解决此问题。如果您从Xcode中删除您的帐户;退出Xcode;打开钥匙扣访问;查找并删除任何Xcode-Token或Xcode-AlternateDSID条目;重新启动Xcode;并重新添加您的帐户,然后您的帐户应该在Xcode 9.3中正常运行。

You likely don't need to install older versions of Xcode to work around this. If you remove your accounts from Xcode; quit Xcode; open Keychain Access; find and delete any "Xcode-Token" or "Xcode-AlternateDSID" entries; relaunch Xcode; and add your accounts back, then your accounts should work properly in Xcode 9.3 from that point on.

如果您能够复制此问题,我想要求您在bugreport.apple.com上提交了一个错误,并在您的计算机上附加了一个sysdiagnose。

If you are capable of reproducing this issue, I'd like to request that you file a bug at bugreport.apple.com and attach a sysdiagnose from your machine.

更新

感谢所有提交错误报告的人!我们已经确定了这个问题并对由此造成的不便表示道歉。在此期间,您可以通过设置用户默认值来避免此问题。在终端中,输入以下命令:

Thanks to everyone who filed bug reports! We've identified the issue and apologize for the inconvenience this is causing. In the meantime, you can avoid this problem by setting a user default. In Terminal, enter this command:

defaults write com.apple.dt.Xcode DVTDeveloperAccountUseKeychainService -bool NO

然后,如有必要,重新启动Xcode并在帐户偏好设置面板中重新验证Apple ID帐户。从那时起,您应该能够退出并重新启动Xcode,而无需每次都重新进行身份验证。

Then relaunch Xcode and reauthenticate your Apple ID accounts in the Accounts preference pane if necessary. From that point, you should be able to quit and relaunch Xcode without needing to reauthenticate each time.

这篇关于xcode 9.3会话在每次关闭并重新打开Xcode时到期的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆