Xcode 6 在提交存档时崩溃
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/30898566/
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 crashes on submitting Archive
提问by Maysam
Today I uploaded my first build of first app successfully to App Store for beta testing. After making a few changes, when I tried to submit the new archive again Xcode crashed, and still crashes.
今天我成功地将我的第一个应用程序的第一个版本上传到 App Store 进行 beta 测试。进行一些更改后,当我再次尝试提交新存档时,Xcode 崩溃了,并且仍然崩溃。
It's the log:
这是日志:
Process: Xcode [36810]
Path: /Applications/Xcode.app/Contents/MacOS/Xcode
Identifier: com.apple.dt.Xcode
Version: 6.3.2 (7718)
Build Info: IDEFrameworks-7718000000000000~2
App Item ID: 497799835
App External ID: 812404257
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: Xcode [36810]
User ID: 501
Date/Time: 2015-06-17 21:59:26.432 +0430
OS Version: Mac OS X 10.10.3 (14D136)
Report Version: 11
Anonymous UUID: A70B5585-6ADF-B647-C184-94420293DB9F
Sleep/Wake UUID: 536542A5-38C8-405F-8A5E-28DBE775C033
Time Awake Since Boot: 110000 seconds
Time Since Wake: 18000 seconds
Crashed Thread: 14 Dispatch queue: NSOperationQueue 0x7fdb9771af00 :: NSOperation 0x7fdb97679160 (QOS: USER_INITIATED)
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Application Specific Information:
ProductBuildVersion: 6D2105
ASSERTION FAILURE in /SourceCache/IDEFrameworks/IDEFrameworks-7718/IDEFoundation/Issues/IDEIssueManager.m:457
Details: This method must only be called on the main thread
Object: <IDEIssueManager>
Method: +_issueProviderInfo
Thread: <NSThread: 0x7fdb971db920>{number = 80, name = (null)}
Hints: None
Backtrace:
0 0x0000000102e28b6a -[IDEAssertionHandler handleFailureInMethod:object:fileName:lineNumber:assertionSignature:messageFormat:arguments:] (in IDEKit)
1 0x0000000101b765df _DVTAssertionHandler (in DVTFoundation)
2 0x0000000101b768ce _DVTAssertionFailureHandler (in DVTFoundation)
3 0x00000001024f248e +[IDEIssueManager _issueProviderInfo] (in IDEFoundation)
4 0x00000001024f1b0d -[IDEIssueManager _updateIssueProviders] (in IDEFoundation)
5 0x0000000101b893de __73-[DVTObservingBlockToken observeValueForKeyPath:ofObject:change:context:]_block_invoke (in DVTFoundation)
6 0x0000000101afed5c DVTInvokeWithStrongOwnership (in DVTFoundation)
7 0x00000001019b03e4 -[DVTObservingBlockToken observeValueForKeyPath:ofObject:change:context:] (in DVTFoundation)
8 0x00007fff8a8af0f3 NSKeyValueNotifyObserver (in Foundation)
9 0x00007fff8a8bbd68 NSKeyValueDidChange (in Foundation)
10 0x00007fff8a87497d -[NSObject(NSKeyValueObserverNotification) didChangeValueForKey:] (in Foundation)
11 0x00007fff8befddaf doSetValuesInSourceWithKVO (in CoreFoundation)
12 0x00007fff8befdc46 _CFXPreferencesReplaceValuesInNamedVolatileSource (in CoreFoundation)
13 0x00007fff8aa4b027 -[NSUserDefaults(NSUserDefaults) setVolatileDomain:forName:] (in Foundation)
14 0x0000000119e34a13 -[NSUserDefaults(ITunesConnectFoundationExtensions) REPLACEMENT_setVolatileDomain:forName:] (in ITunesConnectFoundation)
15 0x0000000119e34f87 -[NSUserDefaults(ITunesConnectFoundationExtensions) synchronizeRegistrationDomains] (in ITunesConnectFoundation)
16 0x0000000119e34d5d -[NSUserDefaults(ITunesConnectFoundationExtensions) registerPriorityDefaults:] (in ITunesConnectFoundation)
17 0x0000000119e2669e -[MZJSONServiceClient processApplicationSettings:] (in ITunesConnectFoundation)
18 0x0000000119e26d7d -[MZJSONServiceClient connectionDidFinishLoading:] (in ITunesConnectFoundation)
19 0x00007fff8846d24d __65-[NSURLConnectionInternal _withConnectionAndDelegate:onlyActive:]_block_invoke (in CFNetwork)
20 0x00007fff8846d0b1 -[NSURLConnectionInternal _withConnectionAndDelegate:onlyActive:] (in CFNetwork)
21 0x00007fff8846cfb7 -[NSURLConnectionInternal _withActiveConnectionAndDelegate:] (in CFNetwork)
22 0x00007fff8846df74 ___ZN27URLConnectionClient_Classic26_delegate_didFinishLoadingEU13block_pointerFvvE_block_invoke (in CFNetwork)
23 0x00007fff88521703 ___ZN27URLConnectionClient_Classic18_withDelegateAsyncEPKcU13block_pointerFvP16_CFURLConnectionPK33CFURLConnectionClientCurrent_VMaxE_block_invoke_2 (in CFNetwork)
24 0x00007fff883c2cec RunloopBlockContext::_invoke_block(void const*, void*) (in CFNetwork)
25 0x00007fff8bf0e664 CFArrayApplyFunction (in CoreFoundation)
26 0x00007fff883c2bad RunloopBlockContext::perform() (in CFNetwork)
27 0x00007fff883c2998 MultiplexerSource::perform() (in CFNetwork)
28 0x00007fff883c27ba MultiplexerSource::_perform(void*) (in CFNetwork)
29 0x00007fff8bf42a01 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ (in CoreFoundation)
30 0x00007fff8bf34b8d __CFRunLoopDoSources0 (in CoreFoundation)
31 0x00007fff8bf341bf __CFRunLoopRun (in CoreFoundation)
32 0x00007fff8bf33bd8 CFRunLoopRunSpecific (in CoreFoundation)
33 0x00007fff8a8fda59 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] (in Foundation)
34 0x00007fff8a91bcce -[NSRunLoop(NSRunLoop) runUntilDate:] (in Foundation)
35 0x0000000119e25d00 -[MZJSONServiceClient getResultDictionary] (in ITunesConnectFoundation)
36 0x0000000119e28eb3 -[MZLabelServiceClient invokeSOAPCall] (in ITunesConnectFoundation)
37 0x0000000119e3097d -[MZWebServiceOperationWorker execute] (in ITunesConnectFoundation)
38 0x0000000119e30e11 -[MZWebServiceWorker run] (in ITunesConnectFoundation)
39 0x0000000119df854d -[MZWorkItem main] (in ITunesConnectFoundation)
40 0x00007fff8a8c6a6c -[__NSOperationInternal _start:] (in Foundation)
41 0x00007fff8a8c6543 __NSOQSchedule_f (in Foundation)
42 0x00007fff89468c13 _dispatch_client_callout (in libdispatch.dylib)
43 0x00007fff8946c365 _dispatch_queue_drain (in libdispatch.dylib)
44 0x00007fff8946decc _dispatch_queue_invoke (in libdispatch.dylib)
45 0x00007fff8946b6b7 _dispatch_root_queue_drain (in libdispatch.dylib)
46 0x00007fff89479fe4 _dispatch_worker_thread3 (in libdispatch.dylib)
47 0x00007fff86f91637 _pthread_wqthread (in libsystem_pthread.dylib)
48 0x00007fff86f8f40d start_wqthread (in libsystem_pthread.dylib)
Note:I can validate the Archive without error.
注意:我可以无误地验证存档。
Will re-installing XCode help me to fix it?
重新安装 XCode 会帮助我修复它吗?
回答by sami
Close any projects or workspace windows you have open in Xcode but leave Organizer window open and re-submit worked for me.
关闭您在 Xcode 中打开的任何项目或工作区窗口,但让管理器窗口保持打开状态并重新提交对我有用。
回答by roho
Just got this problem. Seems to work if you close all other Xcode windows but keep the organizer window open.
刚遇到这个问题。如果您关闭所有其他 Xcode 窗口但保持管理器窗口打开,则似乎可以工作。
回答by Valentin
Had the same problem - uploaded my .ipa through the Application Loader.
有同样的问题 - 通过应用程序加载器上传我的 .ipa。
回答by Eric
The original question is: "Will re-installing XCode help me to fix it?" The answer is: "No." Re-installation does not help the problem. The bug is pretty serious though, since submitting an app is central to app development. A fix should be in the App Store asap. Hence updating later may help.
最初的问题是:“重新安装 XCode 会帮助我修复它吗?” 答案是不。” 重新安装对问题没有帮助。不过这个错误非常严重,因为提交应用程序是应用程序开发的核心。应尽快在 App Store 中进行修复。因此,稍后更新可能会有所帮助。
回答by Ujjal Suttra Dhar
Following steps worked for me:
以下步骤对我有用:
- Archive the project.
- Open Organizer
- Press the top-left cross button of XCode which will close all projects without quiting XCode and Organiser will be opened
- Now resubmit the archive from organiser.
- 归档项目。
- 打开组织者
- 按 XCode 左上角的十字按钮将关闭所有项目而不退出 XCode 并打开管理器
- 现在重新提交组织者的档案。
回答by Ninja9
Had this problem today. I was only able to successfully upload the Archive when the organizer window was open and all Xcode projects were closed.
今天遇到了这个问题。我只能在组织者窗口打开并且所有 Xcode 项目都关闭时成功上传存档。
回答by user5024335
I created an .ipa file using the Export utility in Organizer, then ran Application Loader. Selected the 'Deliver Your App' button. Choose the new created ipa file and the file appeared in iTuneConnect under the pre-release tab as expected for TestFlight distribution.
我使用管理器中的导出实用程序创建了一个 .ipa 文件,然后运行了应用程序加载程序。选择了“交付您的应用程序”按钮。选择新创建的 ipa 文件,该文件出现在 iTuneConnect 中预发布选项卡下的 TestFlight 分发中。
回答by petershine
I encountered similar situation. However, my solution was somehow different.
我遇到过类似的情况。但是,我的解决方案有些不同。
Noticing that you are trying to submit next build, please make sure your previous build is excluded from App Store submit form before uploading new build.
请注意,您正在尝试提交下一个版本,请确保在上传新版本之前,您之前的版本已从 App Store 提交表单中排除。
I'm not sure why this has to be an issue, but it seems like that the submit form should be cleared before receiving new build.
我不确定为什么这一定是一个问题,但似乎应该在接收新版本之前清除提交表单。
回答by Ger
Had the same problem today. Problem turned out I still had the Reveal Framework included in my project. Make sure you don't have any non-public API usage in your archive.
今天遇到了同样的问题。问题原来是我的项目中仍然包含 Reveal Framework。确保您的存档中没有任何非公共 API 使用。
回答by Sonu
You might need to accept some new user agreements, try going to Apple Developer Member Centerand see if they're any new agreements you need to accept.
您可能需要接受一些新的用户协议,请尝试访问Apple 开发者会员中心,看看它们是否是您需要接受的任何新协议。
If that doesn't work try this: open Xcode and go to [ Preferences ] -> [ Accounts ], select your Apple ID and click on [ View Details... ]. Once you do that click on the refresh icon at the bottom left. If you're missing anything it will let you know.
如果这不起作用,请尝试以下操作:打开 Xcode 并转到 [首选项] -> [帐户],选择您的 Apple ID,然后单击 [查看详细信息...]。完成后,单击左下角的刷新图标。如果你遗漏了什么,它会让你知道。
If both of those don't work go back to the archive window in XCode and click on export on the right-hand side underneath the submit button. Save it where ever you want but remember the location. Once exported go back to XCode and go to [ Open Developer Tools ] -> [ Application Loader ]. You can submit your new version of your app through that.
如果这两个都不起作用,请返回 XCode 中的存档窗口,然后单击提交按钮下方右侧的导出。将其保存在您想要的任何位置,但请记住该位置。导出后返回 XCode 并转到 [Open Developer Tools] -> [Application Loader]。你可以通过它提交你的应用程序的新版本。
If none of those work then I have no idea, maybe someone else knows.
如果这些都不起作用,那么我不知道,也许其他人知道。