Xcode export/upload error: Your session has expired. Please log in

时间:2015-10-30 22:22:51

标签: ios xcode session

I am trying to release an app from Xcode but as soon as I try uploading to the app store or exporting in any fashion, once it checks for signing from iTunes Connect, I receive the error

Your session has expired. Please log in.

I have made sure that I can log into my account on iTunes Connect and the signing certificates and provisioning profiles are current from the developer center.

I came across a similar issue last week: Xcode 6.4 Export Adhoc "Session has expired" but this issue seems different. I am using Xcode 7.1 this time, so the crash that I was observing last week may indicate the problem is different.

11 个答案:

答案 0 :(得分:109)

The session of one of my accounts (not even the one I was trying to use) had its session expired. This seems to be new. I just had to re-sign in to the errant account in Xcode > Preferences > Accounts.

答案 1 :(得分:18)

我遇到了同样的问题。

解决方案:转到XCode->偏好设置>帐户,确保所有帐户都已连接。如果您有多个帐户,并且只有其中一个帐户没有连接,则无论您想要从哪个帐户执行操作/导出/等等,您都会收到错误。因此,请确保所有帐户都无例外地连接。您会在帐户旁边看到未连接的闪电图标。

希望它有助于其他人: - )

答案 2 :(得分:8)

我有同样的问题,

Xcode说:您的会话已过期。请登录。

我通过以下步骤解决了这个问题

启用两步验证可解决此问题:

在Mac Open System Preference App上,转到iCloud - >帐户详情 - >安全选项卡(中间)和底部"设置双因素身份验证"。添加您的手机号码,然后点击"获取验证码"。

enter image description here

enter image description here

转到Xcode偏好设置,然后使用您的苹果ID重新登录并输入验证码。

答案 3 :(得分:4)

在我的情况下,当我在Xcode中重新添加帐户时,问题就消失了。偏好>帐户都已在Mac AppStore中注销/登录。我正在检查我的沙箱用户,之后XCode开始说我的会话已过期。希望这有助于解决您的问题。

答案 4 :(得分:2)

更改APPLE ID密码后,我遇到了同样的问题。

转到:xcode>偏好>帐户>再次登录

答案 5 :(得分:2)

对于Xcode 11和Big Sur,我收到了苹果公司的官方电子邮件,说:“ 从您的电子邮件中我可以看出,您看到此错误消息的可能原因是您使用的是Xcode的实时版本, MacOS的Beta版本。我建议您更新Xcode版本,以便更好地与MacOS进行通信。有关Xcode 12 beta的更多信息,请参见下面的链接。”

答案 6 :(得分:1)

我遇到了同样的问题。我注意到我在网站上登录没有问题,但我无法查看或修改配置文件,因此“联系团队代理” 我们最近更新了Apple Developer Enterprise程序许可协议。您的团队代理必须审核并同意继续。“

一旦我的团队代理同意我可以导出我的ipa文件。

答案 7 :(得分:1)

我没有在XCode中找到注销 - >喜好。只需重新启动XCode,它就帮助了我。

答案 8 :(得分:1)

就我而言,Apple试图强迫我更新我的个人资料/密码。 首先尝试登录https://appleid.apple.com/account/manage

在尝试启用双因素身份验证时发现了这一点,感谢Hiran的建议。

答案 9 :(得分:0)

在我的情况下,我打开了应用程序加载器 XCode ,似乎两者都在使用该帐户,因此即使我尝试通过首选项重新添加帐户 - >帐户,它仍然显示相同的错误消息。

关闭应用程序加载器后,XCode就可以添加该帐户了。

答案 10 :(得分:0)

最后,最终通过调用apple支持并升级到高级技术来解决,最终我们在/ Users中发现了丢失的共享文件夹。添加共享文件夹解决了我的问题。如果适用于您,则以下是重现解决方案的步骤:

  • Finder>去>转到文件夹

  • 输入/ Users :: Go

  • 如果没有共享文件夹,请在/ User

  • 中打开终端创建一个
  • 在终端中输入命令(必须以具有管理员权限的用户身份登录):

  • sudo mkdir -p / Users / Shared

  • sudo chmod 1777 / Users / Shared /

  • 重新启动并查看是否可以登录

资源 https://discussions.apple.com/thread/7275650?start=0&tstart=0

相关问题