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

I am trying to export an iPhone app using Xcode 6.4 but am receiving an error:



> Your session has expired. Please log in.



When Xcode checks the developer portal for Development Teams.



I have double checked my credentials in `Xcode > Preferences > Accounts` and I am able to select "`View Details`" for the team and see Signing Identities and Provisioning Profiles as expected. I did try selecting the little refresh button in the bottom left and received the same error:



> Your session has expired. Please log in.



I double checked logging into the developer portal and no problems there.



I tried restarting Xcode and was able to select my Development Team, but right as the build started to export, Xcode crashes.



I did notice that Xcode 7.1 has been released. Maybe Xcode 6.4 is no longer supported?



**Edit**

Here's the stack trace from the crash:



Application Specific Information:

ProductBuildVersion: 6E35b

ASSERTION FAILURE in /SourceCache/DVTFrameworks/DVTFrameworks-7714/DVTFoundation/Portal/DVTDeveloperPortalDatabase.m:3277

Details: (token.team) should not be nil.

Object: <DVTListDevicesOperation>

Method: +operationWithSingleTeamToken:andPlatform:

Thread: <NSThread: 0x7fc67ef94900>{number = 43, name = (null)}

Hints: None

Backtrace:

0 0x0000000105c86fda -[IDEAssertionHandler handleFailureInMethod:object:fileName:lineNumber:assertionSignature:messageFormat:arguments:] (in IDEKit)

1 0x00000001049d765f _DVTAssertionHandler (in DVTFoundation)

2 0x00000001049d794e _DVTAssertionFailureHandler (in DVTFoundation)

3 0x00000001048f63ba +[DVTTeamOperationBase operationWithSingleTeamToken:andPlatform:] (in DVTFoundation)

4 0x0000000105f1a301 __75-[IDEDistributionSigningAssetsStepViewController _refreshDevicesFromPortal]_block_invoke (in IDEKit)

5 0x00000001048fedc9 __DVTOperationForBootstrappingTokenWithSingleTeamAndRunDependentOperationCreationBlock_block_invoke (in DVTFoundation)

6 0x000000010484adef -[DVTOperation main] (in DVTFoundation)

7 0x00000001048f339a -[DVTPortalOperation main] (in DVTFoundation)

8 0x000000010487533c -[DVTOperationGroup start] (in DVTFoundation)

9 0x00000001048f32e3 -[DVTPortalOperation start] (in DVTFoundation)

10 0x00007fff90509613 __NSOQSchedule_f (in Foundation)

11 0x00007fff92cabc13 _dispatch_client_callout (in libdispatch.dylib)

12 0x00007fff92caf365 _dispatch_queue_drain (in libdispatch.dylib)

13 0x00007fff92cb0ecc _dispatch_queue_invoke (in libdispatch.dylib)

14 0x00007fff92cae6b7 _dispatch_root_queue_drain (in libdispatch.dylib)

15 0x00007fff92cbcfe4 _dispatch_worker_thread3 (in libdispatch.dylib)

16 0x00007fff99b73a9d _pthread_wqthread (in libsystem_pthread.dylib)

17 0x00007fff99b713dd start_wqthread (in libsystem_pthread.dylib)

abort() called

Application Specific Signatures:

((token.team)) != nil

Hi All,

As I noticed that the problem is due to

"Agreement Expired

The following agreement has expired: Paid Applications. This may affect the availability of your apps. To request and complete your updated agreement, go to Agreements, Tax, and Banking"


Go to that section in iTunesConnect and accept the agreement this will fix the problem

Same problem today! xcode8 !

me too, the same.

Xcode export: Your session has expired. Please log in.
 
 
Q