ios Xcode 导出/上传错误:您的会话已过期。请登录
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/33445745/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Xcode export/upload error: Your session has expired. Please log in
提问by n8yn8
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
我正在尝试从 Xcode 发布一个应用程序,但是一旦我尝试上传到应用程序商店或以任何方式导出,一旦它检查是否从 iTunes Connect 签名,我就会收到错误消息
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.
我已确保我可以在 iTunes Connect 上登录我的帐户,并且签名证书和配置文件是来自开发人员中心的最新信息。
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.
上周我遇到了一个类似的问题:Xcode 6.4 Export Adhoc "Session has expired"但这个问题似乎不同。这次我使用的是 Xcode 7.1,所以我上周观察到的崩溃可能表明问题有所不同。
回答by n8yn8
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.
我的一个帐户(甚至不是我试图使用的那个)的会话已过期。这似乎是新的。我只需要在 Xcode > Preferences > Accounts 中重新登录错误的帐户。
回答by konsti
I had the same problem.
我有同样的问题。
Solution: Go to Xcode->Preferences->Accounts and make sure that ALL your accounts are connected. If you have several accounts and only 1 of them is not connected you will always get the error, no matter for which account you want to do stuff/export/etc. So make sure ALL accounts are connected without exception. You see a lightning icon next to your accounts that are not connected.
解决方案:转到 Xcode->Preferences->Accounts 并确保您的所有帐户都已连接。如果您有多个帐户并且其中只有 1 个未连接,则无论您要为哪个帐户执行操作/导出/等,您总会收到错误消息。因此,请确保所有帐户都无一例外地连接。您会在未连接的帐户旁边看到一个闪电图标。
Hope it helps other ppl :-)
希望它可以帮助其他人:-)
回答by Hiran Stephan
I had same problem,
我有同样的问题,
Xcode say:Your session has expired. Please log in.
Xcode 说:您的会话已过期。请登录。
I solved it through below steps
我通过以下步骤解决了它
Enable two step verification fixes this issue:
启用两步验证修复了这个问题:
On Mac Open System Preference App, Go to iCloud -> Account Details -> Security Tab (middle) and at bottom "Set Up Two-Factor Authentication". Add your mobile number and click "get a verification code".
在 Mac 打开系统偏好应用程序上,转到 iCloud -> 帐户详细信息 -> 安全选项卡(中间)和底部的“设置双因素身份验证”。添加您的手机号码,然后单击“获取验证码”。
Goto Xcode preference and sign in again with your apple id and enter code.
转到 Xcode 首选项并使用您的 Apple ID 再次登录并输入代码。
回答by Sega-Zero
In my case, the problem gone away when I've re-added my account in Xcode > Preferences > Accounts andboth logged out/logged in in the Mac App Store. I was checking my sandbox user and right after that Xcode began to say my session is expired. Hope this will help to resolve your issue.
就我而言,当我在 Xcode > Preferences > Accounts 中重新添加我的帐户并在 Mac App Store 中注销/登录时,问题就消失了。我正在检查我的沙箱用户,紧接着 Xcode 开始说我的会话已过期。希望这将有助于解决您的问题。
回答by Yandong Liu
I didn't find log out in Xcode -> Preferences. Just restart Xcode and it helped me.
我没有在 Xcode -> Preferences 中找到注销。只需重新启动 Xcode,它就帮助了我。
回答by KawaiKx
I had the same issue after changing the APPLE ID password.
更改 Apple ID 密码后,我遇到了同样的问题。
Go to: xcode> preferences>account> sign in again
转到:xcode>首选项>帐户>再次登录
回答by chy600
In my case I had both Application Loaderand Xcodeopened, it seems both were using the account and thus even when I tried to re-add my account through Preferences->Account, it still displays the same error message.
就我而言,我同时打开了Application Loader和Xcode,似乎两者都在使用该帐户,因此即使我尝试通过 Preferences->Account 重新添加我的帐户,它仍然显示相同的错误消息。
Once I closed the application loader, Xcode was able to add the account.
一旦我关闭了应用程序加载器,Xcode 就能够添加该帐户。
回答by Ryan Williams
In my case, Apple were trying to force me to update my profile / password. Try signing into https://appleid.apple.com/account/managefirst.
就我而言,Apple 试图强迫我更新我的个人资料/密码。首先尝试登录https://appleid.apple.com/account/manage。
Discovered this while trying to enable Two-Factor Authentication so thanks to Hiran for his suggestion.
在尝试启用双因素身份验证时发现了这一点,因此感谢 Hiran 的建议。
回答by Benetz
I had the same problem. I noticed that i had no problem login in the site, but i was not able to view or modify the provisioning profile, for this reason "Contact Team Agent We recently updated the Apple Developer Enterprise Program License Agreement. Your team agent must review and agree to continue."
我有同样的问题。我注意到我在网站上登录没有问题,但我无法查看或修改配置文件,因此“联系团队代理我们最近更新了 Apple Developer Enterprise Program 许可协议。您的团队代理必须查看并同意接着说。”
Once my team agent agreed i could export my ipa file.
一旦我的团队代理同意我可以导出我的 ipa 文件。
回答by Midhun Narayan
In the end, finally resolved by calling apple support and getting elevated to upper level tech, where eventually we discovered missing shared folder in /Users. Adding a shared folder resolved my issue. Here's the steps to reproduce solution if it applies to you:
最后,最终通过致电苹果支持并提升到上层技术来解决,最终我们发现 /Users 中缺少共享文件夹。添加共享文件夹解决了我的问题。如果适用于您,以下是重现解决方案的步骤:
Finder > Go > Go to Folder
enter /Users :: Go
if no Shared folder, open Terminal to create one in /User
Enter commands in Terminal (must be logging in as user with admin access):
sudo mkdir -p /Users/Shared
sudo chmod 1777 /Users/Shared/
reboot and see if can now login
Finder > 前往 > 前往文件夹
输入 /Users :: 去
如果没有共享文件夹,打开终端在 /User 中创建一个
在终端中输入命令(必须以具有管理员访问权限的用户身份登录):
须藤 mkdir -p /用户/共享
须藤 chmod 1777 /用户/共享/
重新启动,看看现在是否可以登录
resource https://discussions.apple.com/thread/7275650?start=0&tstart=0
资源 https://discussions.apple.com/thread/7275650?start=0&tstart=0