我最近遇到了一个奇怪的问题。当我尝试打开每个项目的项目信息时,我的Xcode每次都会崩溃。
通过项目信息我指的是:
然而,其他一切似乎都很完美,包括构建档案,在模拟器和真实设备上运行构建。
另外,我尝试了很多方法,例如删除/ DerivedData和/ xuserdata,但没有一种方法对我们有所帮助。
以下是Xcode问题报告的一部分,如果您需要深入了解它:
Process: Xcode [27134]
Path: /Applications/Xcode.app/Contents/MacOS/Xcode
Identifier: com.apple.dt.Xcode
Version: 7.2.1 (9548.1)
Build Info: IDEFrameworks-9548001000000000~2
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: Xcode [27134]
User ID: 501
Date/Time: 2016-03-14 15:29:00.281 +0800
OS Version: Mac OS X 10.10.5 (14F1021)
Report Version: 11
Anonymous UUID: B26CD753-E360-FF23-061B-BF9FE89BE0BA
Sleep/Wake UUID: C8671DD6-AC38-4218-80F7-565C6A32EB44
Time Awake Since Boot: 120000 seconds
Time Since Wake: 20000 seconds
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Application Specific Information:
ProductBuildVersion: 7C1002
UNCAUGHT EXCEPTION (NSInvalidArgumentException): -[DVTMacroExpansionStringList_NonLiteral length]: unrecognized selector sent to instance 0x7ff3ddab6e50
UserInfo: (null)
Hints:
0: Replacement view is installing: <Xcode3ProjectInfoEditor: 0x7ff3e4f1c8c0 representing: (null)>
Backtrace:
0 0x00007fff85528024 __exceptionPreprocess (in CoreFoundation)
1 0x000000010ea3fb07 DVTFailureHintExceptionPreprocessor (in DVTFoundation)
2 0x00007fff8595176e objc_exception_throw (in libobjc.A.dylib)
3 0x00007fff8552b0ad -[NSObject(NSObject) doesNotRecognizeSelector:] (in CoreFoundation)
4 0x00007fff85470e24 ___forwarding___ (in CoreFoundation)
5 0x00007fff85470998 _CF_forwarding_prep_0 (in CoreFoundation)
6 0x000000012196b2fa -[Xcode3ProjectInfoEditor projectDeploymentOSForPlatform:] (in Xcode3UI)
7 0x00000001218d19b1 -[Xcode3ProjectInfoEditor iOSProjectDeploymentOS] (in Xcode3UI)
8 0x00000001218d18b4 -[Xcode3ProjectInfoEditor _reloadSDKAndDeploymentBuildSettings] (in Xcode3UI)
9 0x00000001218d1679 -[Xcode3ProjectInfoEditor _updateSDKAndDeployment] (in Xcode3UI)
10 0x00000001218d0dfa -[Xcode3ProjectInfoEditor setInspectedBlueprint:] (in Xcode3UI)
11 0x00000001218d0568 -[Xcode3ProjectEditor replacementView:didInstallViewController:] (in Xcode3UI)
12 0x000000010efd3201 __42-[DVTReplacementView _setupViewController]_block_invoke (in DVTKit)
13 0x000000010ea3f845 DVTInvokeWithFailureHint (in DVTFoundation)
14 0x000000010eef947b -[DVTReplacementView _setupViewController] (in DVTKit)
15 0x000000010eef92ff -[DVTReplacementView installedViewController] (in DVTKit)
16 0x000000010eeff8ec -[DVTReplacementView layoutTopDown] (in DVTKit)
17 0x000000010f0b801d +[DVTLayoutView_ML _doRecursivelyLayoutSubviewsOfView:populatingSetWithLaidOutViews:completionCallBackHandlers:currentLayoutPass:needsSecondPass:] (in DVTKit)
18 0x000000010f0b80fa +[DVTLayoutView_ML _doRecursivelyLayoutSubviewsOfView:populatingSetWithLaidOutViews:completionCallBackHandlers:currentLayoutPass:needsSecondPass:] (in DVTKit)
19 0x000000010f0b80fa +[DVTLayoutView_ML _doRecursivelyLayoutSubviewsOfView:populatingSetWithLaidOutViews:completionCallBackHandlers:currentLayoutPass:needsSecondPass:] (in DVTKit)
20 0x000000010f0b80fa +[DVTLayoutView_ML _doRecursivelyLayoutSubviewsOfView:populatingSetWithLaidOutViews:completionCallBackHandlers:currentLayoutPass:needsSecondPass:] (in DVTKit)
21 0x000000010f0b80fa +[DVTLayoutView_ML _doRecursivelyLayoutSubviewsOfView:populatingSetWithLaidOutViews:completionCallBackHandlers:currentLayoutPass:needsSecondPass:] (in DVTKit)
22 0x000000010f0b80fa +[DVTLayoutView_ML _doRecursivelyLayoutSubviewsOfView:populatingSetWithLaidOutViews:completionCallBackHandlers:currentLayoutPass:needsSecondPass:] (in DVTKit)
23 0x000000010f0b80fa +[DVTLayoutView_ML _doRecursivelyLayoutSubviewsOfView:populatingSetWithLaidOutViews:completionCallBackHandlers:currentLayoutPass:needsSecondPass:] (in DVTKit)
24 0x000000010f0b80fa +[DVTLayoutView_ML _doRecursivelyLayoutSubviewsOfView:populatingSetWithLaidOutViews:completionCallBackHandlers:currentLayoutPass:needsSecondPass:] (in DVTKit)
25 0x000000010f0b80fa +[DVTLayoutView_ML _doRecursivelyLayoutSubviewsOfView:populatingSetWithLaidOutViews:completionCallBackHandlers:currentLayoutPass:needsSecondPass:] (in DVTKit)
26 0x000000010f0b80fa +[DVTLayoutView_ML _doRecursivelyLayoutSubviewsOfView:populatingSetWithLaidOutViews:completionCallBackHandlers:currentLayoutPass:needsSecondPass:] (in DVTKit)
27 0x000000010f0b80fa +[DVTLayoutView_ML _doRecursivelyLayoutSubviewsOfView:populatingSetWithLaidOutViews:completionCallBackHandlers:currentLayoutPass:needsSecondPass:] (in DVTKit)
28 0x000000010f0b80fa +[DVTLayoutView_ML _doRecursivelyLayoutSubviewsOfView:populatingSetWithLaidOutViews:completionCallBackHandlers:currentLayoutPass:needsSecondPass:] (in DVTKit)
29 0x000000010f0b80fa +[DVTLayoutView_ML _doRecursivelyLayoutSubviewsOfView:populatingSetWithLaidOutViews:completionCallBackHandlers:currentLayoutPass:needsSecondPass:] (in DVTKit)
30 0x000000010f0b80fa +[DVTLayoutView_ML _doRecursivelyLayoutSubviewsOfView:populatingSetWithLaidOutViews:completionCallBackHandlers:currentLayoutPass:needsSecondPass:] (in DVTKit)
31 0x000000010f0b80fa +[DVTLayoutView_ML _doRecursivelyLayoutSubviewsOfView:populatingSetWithLaidOutViews:completionCallBackHandlers:currentLayoutPass:needsSecondPass:] (in DVTKit)
32 0x000000010f0b80fa +[DVTLayoutView_ML _doRecursivelyLayoutSubviewsOfView:populatingSetWithLaidOutViews:completionCallBackHandlers:currentLayoutPass:needsSecondPass:] (in DVTKit)
33 0x000000010f0b80fa +[DVTLayoutView_ML _doRecursivelyLayoutSubviewsOfView:populatingSetWithLaidOutViews:completionCallBackHandlers:currentLayoutPass:needsSecondPass:] (in DVTKit)
34 0x000000010eeff4c4 +[DVTLayoutView_ML _recursivelyLayoutSubviewsOfView:populatingSetWithLaidOutViews:] (in DVTKit)
35 0x000000010ef15b20 +[DVTLayoutView_ML _layoutWindow:] (in DVTKit)
36 0x000000010f0b7eb5 __44+[DVTLayoutView_ML scheduleWindowForLayout:]_block_invoke_2 (in DVTKit)
37 0x000000010e9a3ce5 -[DVTRunLoopToken _DVTRunLoopToken_perform] (in DVTFoundation)
38 0x00007fff86795641 __NSFirePerformWithOrder (in Foundation)
39 0x00007fff85444127 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ (in CoreFoundation)
40 0x00007fff85444080 __CFRunLoopDoObservers (in CoreFoundation)
41 0x00007fff85436188 __CFRunLoopRun (in CoreFoundation)
42 0x00007fff85435bd8 CFRunLoopRunSpecific (in CoreFoundation)
43 0x00007fff8ca9456f RunCurrentEventLoopInMode (in HIToolbox)
44 0x00007fff8ca941ee ReceiveNextEventCommon (in HIToolbox)
45 0x00007fff8ca9412b _BlockUntilNextEventMatchingListInModeWithFilter (in HIToolbox)
46 0x00007fff848a18ab _DPSNextEvent (in AppKit)
47 0x00007fff848a0e58 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] (in AppKit)
48 0x000000010f01c0c2 -[DVTApplication nextEventMatchingMask:untilDate:inMode:dequeue:] (in DVTKit)
49 0x00007fff84896af3 -[NSApplication run] (in AppKit)
50 0x00007fff84813244 NSApplicationMain (in AppKit)
51 0x00007fff888a55c9 start (in libdyld.dylib)
abort() called
答案 0 :(得分:0)
尝试升级项目,方法是转到“项目设置”并单击“文件检查器”(即IDE窗口右侧显示的面板或选项卡)。
出现的其中一个弹出菜单应为&#34; Project Format&#34;。
选择&#34; Xcode 6.3兼容&#34;看看是否能让你的生活更美好。
]