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

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.


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 :-)


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.