归档应用程序时 XCode 6.3 崩溃
Posted
技术标签:
【中文标题】归档应用程序时 XCode 6.3 崩溃【英文标题】:XCode 6.3 Crashes When Archiving Application 【发布时间】:2015-04-12 18:00:32 【问题描述】:我刚刚更新到最新的 XCode 6.3 和 Swift 1.2
现在,当我尝试归档我们以前工作的应用程序以进行分发时,我们看到“归档成功”消息,但 XCODE 随即崩溃(组织者通常会在此处打开)。
有人有什么想法吗?
以下是崩溃日志中的详细信息...
Process: Xcode [88096]
Path: /Applications/Xcode.app/Contents/MacOS/Xcode
Identifier: com.apple.dt.Xcode
Version: 6.3 (7569)
Build Info: IDEFrameworks-7569000000000000~2
App Item ID: 497799835
App External ID: 812135760
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: Xcode [88096]
User ID: 501
Date/Time: 2015-04-12 10:52:10.085 -0700
OS Version: Mac OS X 10.10.3 (14D131)
Report Version: 11
Anonymous UUID: 5EF93B73-2BD1-E454-9891-7EB1F8CC17B5
Time Awake Since Boot: 230000 seconds
Crashed Thread: 13 Dispatch queue: NSOperationQueue 0x7f9f87725a70 :: NSOperation 0x7f9f8792a1f0 (QOS: USER_INITIATED)
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Application Specific Information:
ProductBuildVersion: 6D570
UNCAUGHT EXCEPTION (NSInvalidArgumentException): *** -[NSURL URLByAppendingPathComponent:]: component, components, or pathExtension cannot be nil.
UserInfo: (null)
Hints: None
Backtrace:
0 0x00007fff8901b024 __exceptionPreprocess (in CoreFoundation)
1 0x000000010765d184 DVTFailureHintExceptionPreprocessor (in DVTFoundation)
2 0x00007fff88aa876e objc_exception_throw (in libobjc.A.dylib)
3 0x00007fff8901aeed +[NSException raise:format:] (in CoreFoundation)
4 0x00007fff90f7781d -[NSURL(NSURLPathUtilities) URLByAppendingPathComponent:] (in Foundation)
5 0x000000010a395a41 -[DVTSourceControlWorkspaceBlueprint saveBlueprintInFolder:options:] (in DVTSourceControl)
6 0x00000001082e6b61 __96+[IDEArchive _copySCMBlueprintFromWorkspace:toArchiveWithPath:usingFileManager:completionBlock:]_block_invoke (in IDEFoundation)
7 0x000000010a38cc24 __77-[DVTSourceControlWorkspace blueprintWithRemoteRepositories:completionBlock:]_block_invoke (in DVTSourceControl)
8 0x00007fff90fb77e8 __NSBLOCKOPERATION_IS_CALLING_OUT_TO_A_BLOCK__ (in Foundation)
9 0x00007fff90fb75b5 -[NSBlockOperation main] (in Foundation)
10 0x00007fff90fb6a6c -[__NSOperationInternal _start:] (in Foundation)
11 0x00007fff90fb6543 __NSOQSchedule_f (in Foundation)
12 0x00007fff8841ec13 _dispatch_client_callout (in libdispatch.dylib)
13 0x00007fff88422365 _dispatch_queue_drain (in libdispatch.dylib)
14 0x00007fff88423ecc _dispatch_queue_invoke (in libdispatch.dylib)
15 0x00007fff884216b7 _dispatch_root_queue_drain (in libdispatch.dylib)
16 0x00007fff8842ffe4 _dispatch_worker_thread3 (in libdispatch.dylib)
17 0x00007fff89254637 _pthread_wqthread (in libsystem_pthread.dylib)
18 0x00007fff8925240d start_wqthread (in libsystem_pthread.dylib)
abort() called
Application Specific Signatures:
NSInvalidArgumentException
Application Specific Backtrace 1:
0 CoreFoundation 0x00007fff8901b03c __exceptionPreprocess + 172
1 DVTFoundation 0x000000010765d184 DVTFailureHintExceptionPreprocessor + 194
2 libobjc.A.dylib 0x00007fff88aa876e objc_exception_throw + 43
3 CoreFoundation 0x00007fff8901aeed +[NSException raise:format:] + 205
4 Foundation 0x00007fff90f7781d -[NSURL(NSURLPathUtilities) URLByAppendingPathComponent:] + 84
5 DVTSourceControl 0x000000010a395a41 -[DVTSourceControlWorkspaceBlueprint saveBlueprintInFolder:options:] + 225
6 IDEFoundation 0x00000001082e6b61 __96+[IDEArchive _copySCMBlueprintFromWorkspace:toArchiveWithPath:usingFileManager:completionBlock:]_block_invoke + 112
7 DVTSourceControl 0x000000010a38cc24 __77-[DVTSourceControlWorkspace blueprintWithRemoteRepositories:completionBlock:]_block_invoke + 5293
8 Foundation 0x00007fff90fb77e8 __NSBLOCKOPERATION_IS_CALLING_OUT_TO_A_BLOCK__ + 7
9 Foundation 0x00007fff90fb75b5 -[NSBlockOperation main] + 97
10 Foundation 0x00007fff90fb6a6c -[__NSOperationInternal _start:] + 653
11 Foundation 0x00007fff90fb6543 __NSOQSchedule_f + 184
12 libdispatch.dylib 0x00007fff8841ec13 _dispatch_client_callout + 8
13 libdispatch.dylib 0x00007fff88422365 _dispatch_queue_drain + 1100
14 libdispatch.dylib 0x00007fff88423ecc _dispatch_queue_invoke + 202
15 libdispatch.dylib 0x00007fff884216b7 _dispatch_root_queue_drain + 463
16 libdispatch.dylib 0x00007fff8842ffe4 _dispatch_worker_thread3 + 91
17 libsystem_pthread.dylib 0x00007fff89254637 _pthread_wqthread + 729
18 libsystem_pthread.dylib 0x00007fff8925240d start_wqthread + 13
【问题讨论】:
【参考方案1】:问题似乎是当您有一个旧项目,其中一些子项目处于源代码控制之下,而主项目没有。
我已完全从 Xcode Preferences 源代码控制中删除,它似乎成功了 - 现在存档工作正常。
要从源代码管理中删除您的项目,请按 command+,(或从主菜单中选择首选项)-> 源代码管理并取消选中所有参数。
我正在开发者论坛中关注这个问题,并且似乎 Apple 已经意识到了这些问题。
新项目不受影响。
回复自Xcode 6.3: Crash while archiving a project
【讨论】:
我遇到了同样的问题。从源代码管理中删除所有内容解决了它。谢谢谢法利【参考方案2】:是的,这绝对是 XCODE 的问题。我们可以使用命令行工具很好地构建应用程序。
我找到了一个可行的解决方案;
我从 .xcodeproj 和 project.xcworkspace 中的 xcuserdata 中删除了我的个人设置
删除这些设置后重新加载到 XCODE 解决了这个问题。
【讨论】:
【参考方案3】:这是 XCode 6.3 中的一个错误。如果你想保持它在源代码控制下,升级到 XCode 6.3.1
来自发行说明:
归档不受源代码控制但 包含受源代码控制的内容不会使 Xcode 崩溃。 (20521089)
【讨论】:
【参考方案4】:XCode 9 斯威夫特 4 如果存档期间xcode崩溃,请先检查您用于存档的帐户是否为该Apple帐户更新了Apple协议?然后请更新并重新存档问题解决
【讨论】:
以上是关于归档应用程序时 XCode 6.3 崩溃的主要内容,如果未能解决你的问题,请参考以下文章