我正在尝试使用Xcode 6.4导出iPhone应用程序,但我收到一个错误:
会话已过期。请登录。
当Xcode为开发团队检查开发人员门户时。
我在Xcode > Preferences > Accounts
中仔细检查了我的凭据,并且我能够为团队选择"View Details
",并按照预期看到签名身份和配置文件。我确实尝试选择左下角的刷新按钮,并收到相同的错误:
会话已过期。请登录。
我仔细检查了登录到开发人员门户,没有问题。
我试着重新启动Xcode,并能够选择我的开发团队,但就在构建开始导出时,Xcode崩溃了。
我注意到Xcode 7.1已经发布了。也许Xcode 6.4不再被支持?编辑下面是崩溃时的堆栈跟踪:
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
看起来苹果今天出现了一些技术问题。这与XCode的版本无关。我现在在XCode 7.0.1中看到同样的错误。
有同样的问题。Xcode(7.1)中的一个帐户需要再次登录-不知道为什么。在Xcode的偏好设置中,查看了所有账户,其中一个说要登录。
打开Xcode Preferences | Accounts,删除我的AppleID,然后重新添加。
请登录Apple Developer帐户,然后检查您的ad-hoc认证,如果过期则重新编辑
我对这个问题的解决方案:在xcode中按Product/archive在出现的弹出窗口中,单击export,然后选择"Save for Ad-hoc development"并单击"Next"。点击"查看账户……"。在出现的窗口中,等待几秒钟,当xcode显示符号"连接问题"。然后重新登录所有开发人员帐户
问题如下-我有多个帐户登录在Xcode帐户部分。其中只有一个(6个中的1个)有问题,密码被更改了。因此,在重新登录有问题的帐户后,我能够解决这个问题。
问题出现是因为Xcode在导出二进制文件之前试图检查所有的帐户,如果其中一个有问题,你将无法继续。
查看您的帐户,请进入Preferences -> accounts
我知道这不是一个新问题,但是如果你在Xcode中有多个帐户,如果你的一些帐户更改了密码,可能会出现这个问题。
进入首选项->帐户,检查您的帐户。如果其中一些有问题,将在其名称旁边出现"sign in"的标志
我的解决方案:
- 列表项
- 登录你的苹果开发者账号。
- 转到"证书标识符&配置文件。
- 找到您的配置文件(左侧菜单:配置文件->所有)
- 点击列表中相应的配置文件
- 下载配置文件
- 双击下载的文件(Xcode会打开它)