Xcode 6.4 导出临时“会话已过期”
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/33288575/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Xcode 6.4 Export Adhoc "Session has expired"
提问by n8yn8
I am trying to export an iPhone app using Xcode 6.4 but am receiving an error:
我正在尝试使用 Xcode 6.4 导出 iPhone 应用程序,但收到错误消息:
Your session has expired. Please log in.
您的会话已过期。请登录。
When Xcode checks the developer portal for Development Teams.
当 Xcode 检查开发团队的开发人员门户时。
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:
我已经仔细检查了我的凭据Xcode > Preferences > Accounts
,我可以View Details
为团队选择“ ”,并按预期查看签名身份和配置文件。我确实尝试选择左下角的小刷新按钮并收到相同的错误:
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.
我尝试重新启动 Xcode 并能够选择我的开发团队,但就在构建开始导出时,Xcode 崩溃了。
I did notice that Xcode 7.1 has been released. Maybe Xcode 6.4 is no longer supported?
我确实注意到 Xcode 7.1 已经发布。也许不再支持 Xcode 6.4?
EditHere'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
采纳答案by alex904
Looks like Apple has some kind of technical issues today. It's not related to version of XCode. I see the same error with XCode 7.0.1 right now. Re-adding account will not help.
看起来苹果今天有一些技术问题。它与 XCode 的版本无关。我现在在 XCode 7.0.1 上看到了同样的错误。重新添加帐户将无济于事。
回答by EPage_Ed
Had the same issue. One of the accounts in Xcode (7.1) needed to be logged into again - not sure why. In Xcode preferences, went through the accounts and one said to login. That fixed it.
有同样的问题。Xcode (7.1) 中的一个帐户需要再次登录 - 不知道为什么。在 Xcode 首选项中,浏览帐户并说要登录。那解决了它。
回答by slider0x90
Went to Xcode Preferences | Accounts and removed my AppleID then re added it. That fixed it for me.
前往 Xcode 首选项 | 帐户并删除我的 AppleID 然后重新添加它。那为我修好了。
回答by Lokesh Dudhat
please login in Apple Developer account than check you ad-hoc certification if its expire then re-edit
请登录Apple Developer帐户,然后检查您的临时认证,如果其过期然后重新编辑
回答by Oleksandr
my solution for this problem: in xcode press Product/Archicve In the appeared popup press export, than select 'Save for Ad-hoc develoment' and press 'Next'. After tap 'View accounts...' . In the appeared window, wait few seconds, when xcode shows symbol 'connection problem'. Than re-login all developer account
我对此问题的解决方案:在 xcode 中按下 Product/Archicve 在出现的弹出式按下导出中,然后选择“Save for Ad-hoc develoment”并按下“Next”。点按“查看帐户...”后。在出现的窗口中,等待几秒钟,当 xcode 显示符号“连接问题”时。比重新登录所有开发者账号
回答by Pavel Gurov
The problem was the following - I have multiple accounts logged in in Xcode accounts section. And there was a problem with only one of them (1 out of 6). The password was changed. So after re-logging in with that account that had the problem I was able to fix the issue.
问题如下 - 我在 Xcode 帐户部分登录了多个帐户。并且只有其中一个出现问题(6 个中有 1 个)。密码已更改。因此,在使用出现问题的帐户重新登录后,我能够解决该问题。
The problem arises because Xcode tries to check all of the accounts before exporting the binary, and if there is a problem with one of them, you will not be able to proceed.
出现问题是因为 Xcode 在导出二进制文件之前尝试检查所有帐户,如果其中一个出现问题,您将无法继续。
To check your accounts go to Preferences -> Accounts
要检查您的帐户,请转到首选项 -> 帐户
回答by D. Chatzimichailidis
I know that is not a new question but if you have multiple accounts in your Xcode, this problem may be appeared if some of your accounts has changed its password.
我知道这不是一个新问题,但是如果您的 Xcode 中有多个帐户,并且您的某些帐户更改了密码,则可能会出现此问题。
Go to Preferences -> Accounts and check your accounts. If some of them has any problem, a sign of "Sign in" will appear next to its name
转到首选项 -> 帐户并检查您的帐户。如果其中一些有任何问题,其名称旁边会出现“登录”标志
回答by Rolcsi
My solution:
我的解决方案:
- List item
- Login to your apple developer account.
- Go to "Certificates Identifiers & Profiles.
- Find your Provisioning profile (Left-side menu: Provisioning profiles -> All)
- Click on the corresponding profile in the list
- Download the profile
- Double-click on the downloaded file (Xcode will open it)
- 项目清单
- 登录您的苹果开发者帐户。
- 转到“证书标识符和配置文件”。
- 找到您的配置文件(左侧菜单:配置文件 -> 全部)
- 单击列表中的相应配置文件
- 下载个人资料
- 双击下载的文件(Xcode 会打开它)
That's all
就这样