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.
In my case I had both Application Loader and Xcode opened, 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.
Once I closed the application loader, Xcode was able to add the account.
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."
Once my team agent agreed i could export my ipa file.
I didn't find log out in Xcode -> Preferences. Just restart Xcode and it helped me.
I had the same issue after changing the APPLE ID password.
Go to: xcode> preferences>account> sign in again