Xcode export/upload error: Your session has expire

2020-02-17 12:09发布

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.

10条回答
在下西门庆
2楼-- · 2020-02-17 12:33

I had same problem,

Xcode say:Your session has expired. Please log in.

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".

enter image description here

enter image description here

Goto Xcode preference and sign in again with your apple id and enter code.

查看更多
甜甜的少女心
3楼-- · 2020-02-17 12:37

In my case, the problem gone away when I've re-added my account in Xcode > Preferences > Accounts and both 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.

查看更多
家丑人穷心不美
4楼-- · 2020-02-17 12:39

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.

查看更多
神经病院院长
5楼-- · 2020-02-17 12:43

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.

Hope it helps other ppl :-)

查看更多
Bombasti
6楼-- · 2020-02-17 12:48

In my case, Apple were trying to force me to update my profile / password. Try signing into https://appleid.apple.com/account/manage first.

Discovered this while trying to enable Two-Factor Authentication so thanks to Hiran for his suggestion.

查看更多
趁早两清
7楼-- · 2020-02-17 12:48

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:

  • 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

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

查看更多
登录 后发表回答