2016-06-21 166 views
1

我正在Xcode 8 Beta中處理我的項目,並且它崩潰了。突然間,它不想加載我的項目。我已經向蘋果提交了一個錯誤報告,但我想也許我應該問這裏,以防有些事情我還沒有嘗試過。我檢查了pbxproj文件上的xml,並嘗試刪除xcuserdata。加載項目時Xcode 8 Beta崩潰

下面是輸出崩潰報告給我:

Process:    Xcode [1180] 
Path:     /Applications/Xcode-Beta.app/Contents/MacOS/Xcode 
Identifier:   com.apple.dt.Xcode 
Version:    8.0 (11160.22) 
Build Info:   IDEFrameworks-11160022000000000~6 
Code Type:    X86-64 (Native) 
Parent Process:  ??? [1] 
Responsible:   Xcode [1180] 
User ID:    501 

Date/Time:    2016-06-21 18:24:01.546 -0400 
OS Version:   Mac OS X 10.12 (16A201w) 
Report Version:  12 
Anonymous UUID:  321BC13E-6B17-1F30-FBD5-C30BA2B450AB 

Sleep/Wake UUID:  1542CA75-5F0B-4426-846E-83030A701AA1 

Time Awake Since Boot: 2600 seconds 
Time Since Wake:  370 seconds 

System Integrity Protection: disabled 

Crashed Thread:  0 Dispatch queue: com.apple.main-thread 

Exception Type:  EXC_CRASH (SIGABRT) 
Exception Codes:  0x0000000000000000, 0x0000000000000000 
Exception Note:  EXC_CORPSE_NOTIFY 

Application Specific Information: 
ProductBuildVersion: 8S128d 
UNCAUGHT EXCEPTION (NSInvalidArgumentException): *** -colorSpace not valid for the NSColor NSPatternColorSpace <NSImage 0x60800506cd40 Size={640, 920} Reps=(
    "NSBitmapImageRep 0x6080012ae7c0 Size={640, 920} ColorSpace=(not yet loaded) BPS=8 BPP=(not yet loaded) Pixels=640x920 Alpha=YES Planar=NO Format=(not yet loaded) CurrentBacking=nil (faulting) CGImageSource=0x608001e323c0" 
)>; need to first convert colorspace. 
UserInfo: (null) 
Hints: None 
Backtrace: 
    0 __exceptionPreprocess (in CoreFoundation) 
    1 DVTFailureHintExceptionPreprocessor (in DVTFoundation) 
    2 objc_exception_throw (in libobjc.A.dylib) 
    3 +[NSException raise:format:] (in CoreFoundation) 
    4 -[NSColor colorSpace] (in AppKit) 
    5 -[NSColor(IBColorAdditions) ib_isAnyGraySpaceColor] (in IDEInterfaceBuilderKit) 
    6 -[NSColor(IBBinaryArchivingAdditions) ibGetGenericGamma22White:alpha:] (in IDEInterfaceBuilderKit) 
    7 IBSPPlistStringValueForColor (in IDEInterfaceBuilderWatchKitIntegration) 
    8 0x000000010af807ec (in IDEInterfaceBuilderWatchKitIntegration) 
    9 0x000000010af93efa (in IDEInterfaceBuilderWatchKitIntegration) 
10 0x000000010af7545c (in IDEInterfaceBuilderWatchKitIntegration) 
11 0x000000010af76a8c (in IDEInterfaceBuilderWatchKitIntegration) 
12 0x000000010af82ad1 (in IDEInterfaceBuilderWatchKitIntegration) 
13 0x000000010af83ab1 (in IDEInterfaceBuilderWatchKitIntegration) 
14 0x000000010af80573 (in IDEInterfaceBuilderWatchKitIntegration) 
15 0x000000010af839f1 (in IDEInterfaceBuilderWatchKitIntegration) 
16 0x000000010af755c3 (in IDEInterfaceBuilderWatchKitIntegration) 
17 0x000000010af8322c (in IDEInterfaceBuilderWatchKitIntegration) 
18 0x000000010af800ad (in IDEInterfaceBuilderWatchKitIntegration) 
19 IBArrayByMappingCollectionWithBehavior (in IBFoundation) 
20 0x000000010af842a2 (in IDEInterfaceBuilderWatchKitIntegration) 
21 0x000000010af80573 (in IDEInterfaceBuilderWatchKitIntegration) 
22 0x000000010af84085 (in IDEInterfaceBuilderWatchKitIntegration) 
23 0x000000010af8027e (in IDEInterfaceBuilderWatchKitIntegration) 
24 0x000000010af8caff (in IDEInterfaceBuilderWatchKitIntegration) 
25 0x000000010af836c2 (in IDEInterfaceBuilderWatchKitIntegration) 
26 0x000000010af800ad (in IDEInterfaceBuilderWatchKitIntegration) 
27 0x000000010af7ff31 (in IDEInterfaceBuilderWatchKitIntegration) 
28 0x000000010af43b41 (in IDEInterfaceBuilderWatchKitIntegration) 
29 -[NSObject(NSKeyValueCoding) valueForKey:] (in Foundation) 
30 0x00000001174d53e2 (in IDEInterfaceBuilderCocoaTouchIntegration) 
31 IBPopulateMarshallingRecord (in IDEInterfaceBuilderCocoaTouchIntegration) 
32 0x00000001174ce129 (in IDEInterfaceBuilderCocoaTouchIntegration) 
33 0x00000001174cdee0 (in IDEInterfaceBuilderCocoaTouchIntegration) 
34 0x00000001174ccacf (in IDEInterfaceBuilderCocoaTouchIntegration) 
35 0x00000001174d06c5 (in IDEInterfaceBuilderCocoaTouchIntegration) 
36 0x00000001174d0c68 (in IDEInterfaceBuilderCocoaTouchIntegration) 
37 0x00000001174d1f45 (in IDEInterfaceBuilderCocoaTouchIntegration) 
38 0x000000010af44b64 (in IDEInterfaceBuilderWatchKitIntegration) 
39 0x000000010af45054 (in IDEInterfaceBuilderWatchKitIntegration) 
40 _NSViewLayout (in AppKit) 
41 -[NSView _doLayout] (in AppKit) 
42 -[NSView _layoutSubtreeWithOldSize:] (in AppKit) 
43 -[NSView _layoutSubtreeWithOldSize:] (in AppKit) 
44 -[NSView _layoutSubtreeWithOldSize:] (in AppKit) 
45 -[NSView _layoutSubtreeWithOldSize:] (in AppKit) 
46 -[NSView _layoutSubtreeWithOldSize:] (in AppKit) 
47 -[NSView _layoutSubtreeWithOldSize:] (in AppKit) 
48 -[NSView _layoutSubtreeWithOldSize:] (in AppKit) 
49 -[NSView _layoutSubtreeIfNeededAndAllowTemporaryEngine:] (in AppKit) 
50 -[IBCanvasViewController editorStackDidChange:dueToOpeningEditorForObject:] (in IDEInterfaceBuilderKit) 
51 -[IBEditorStack openEditorForObject:closingSubEditors:] (in IDEInterfaceBuilderKit) 
52 -[IBCanvasViewController openEditorForObject:closingSubEditors:scrollSettings:] (in IDEInterfaceBuilderKit) 
53 -[IBCanvasViewController revertStateWithDictionary:] (in IDEInterfaceBuilderKit) 
54 -[DVTStateToken _pullStateFromDictionary:] (in DVTFoundation) 
55 -[DVTStateRepository _pullStateFromDictionary:] (in DVTFoundation) 
56 -[DVTStateToken _pullStateFromDictionary:] (in DVTFoundation) 
57 -[IDEEditorContext _applyEditorStateDictionary:forDocumentExtensionIdentifier:atDocumentURLToCurrentEditor:] (in IDEKit) 
58 __332-[IDEEditorContext _notifyDelegateAndOpenNavigableItem:withContentsURL:documentExtensionIdentifier:locationToSelect:annotationRepresentedObject:stateDictionary:annotationWantsIndicatorAnimation:exploreAnnotationRepresentedObject:highlightSelection:alwaysReplaceExistingNavigableItem:skipSubDocumentNavigationUnlessEditorIsReplaced:]_block_invoke.1418 (in IDEKit) 
59 -[IDEEditorContext _notifyDelegateAndOpenNavigableItem:withContentsURL:documentExtensionIdentifier:locationToSelect:annotationRepresentedObject:stateDictionary:annotationWantsIndicatorAnimation:exploreAnnotationRepresentedObject:highlightSelection:alwaysReplaceExistingNavigableItem:skipSubDocumentNavigationUnlessEditorIsReplaced:] (in IDEKit) 
60 -[IDEEditorContext _notifyDelegateAndOpenEditorHistoryItem:previousHistoryItemOrNil:alwaysReplaceExistingNavigableItem:skipSubDocumentNavigationUnlessEditorIsReplaced:] (in IDEKit) 
61 -[IDEEditorContext _openEditorHistoryItem:previousHistoryItemOrNil:alwaysReplaceExistingNavigableItem:skipSubDocumentNavigationUnlessEditorIsReplaced:] (in IDEKit) 
62 -[IDEEditorContext _openEditorHistoryItem:updateHistory:] (in IDEKit) 
63 -[IDEEditorContext _openEditorHistoryItemFromStateSaving:] (in IDEKit) 
64 -[IDEEditorBasicMode _setPersistentRepresentation:forIdentifier:] (in IDEKit) 
65 __60-[IDEEditorModeViewController _setPersistentRepresentation:]_block_invoke (in IDEKit) 
66 -[__NSSingleObjectArrayI enumerateObjectsWithOptions:usingBlock:] (in CoreFoundation) 
67 -[IDEEditorModeViewController _setPersistentRepresentation:] (in IDEKit) 
68 -[IDEEditorModeViewController revertStateWithDictionary:] (in IDEKit) 
69 -[DVTStateToken _pullStateFromDictionary:] (in DVTFoundation) 
70 -[DVTStateToken pullStateFromRepository] (in DVTFoundation) 
71 __32-[IDEViewController revertState]_block_invoke (in IDEKit) 
72 +[NSAnimationContext(DVTNSAnimationContextAdditions) dvt_nonAnimatedBlock:] (in DVTKit) 
73 -[IDEViewController revertState] (in IDEKit) 
74 -[IDEEditorArea _updateStateSavingRegistrations] (in IDEKit) 
75 -[IDEEditorArea _refreshEditorContextsAndPreserveCurrentEditorHistoryStack:] (in IDEKit) 
76 __31-[IDEEditorArea viewDidInstall]_block_invoke (in IDEKit) 
77 -[DVTObservingBlockToken observeValueForKeyPath:ofObject:change:context:] (in DVTFoundation) 
78 NSKeyValueNotifyObserver (in Foundation) 
79 NSKeyValueDidChange (in Foundation) 
80 -[NSObject(NSKeyValueObservingPrivate) _changeValueForKeys:count:maybeOldValuesDict:usingBlock:] (in Foundation) 
81 -[NSObject(NSKeyValueObservingPrivate) _changeValueForKey:key:key:usingBlock:] (in Foundation) 
82 _NSSetCharValueAndNotify (in Foundation) 
83 __81-[IDEWorkspace _finishLoadingAsynchronously:shouldUpgradeFromSimpleFilesFocused:]_block_invoke (in IDEFoundation) 
84 __81-[IDEWorkspace _finishLoadingAsynchronously:shouldUpgradeFromSimpleFilesFocused:]_block_invoke.349 (in IDEFoundation) 
85 __NSBLOCKOPERATION_IS_CALLING_OUT_TO_A_BLOCK__ (in Foundation) 
86 -[NSBlockOperation main] (in Foundation) 
87 -[__NSOperationInternal _start:] (in Foundation) 
88 __NSOQSchedule_f (in Foundation) 
89 _dispatch_client_callout (in libdispatch.dylib) 
90 _dispatch_main_queue_callback_4CF (in libdispatch.dylib) 
91 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ (in CoreFoundation) 
92 __CFRunLoopRun (in CoreFoundation) 
93 CFRunLoopRunSpecific (in CoreFoundation) 
94 RunCurrentEventLoopInMode (in HIToolbox) 
95 ReceiveNextEventCommon (in HIToolbox) 
96 _BlockUntilNextEventMatchingListInModeWithFilter (in HIToolbox) 
97 _DPSNextEvent (in AppKit) 
98 -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] (in AppKit) 
99 -[DVTApplication nextEventMatchingMask:untilDate:inMode:dequeue:] (in DVTKit) 
100 -[NSApplication run] (in AppKit) 
101 NSApplicationMain (in AppKit) 
102 start (in libdyld.dylib) 

abort() called 

Application Specific Signatures: 
NSInvalidArgumentException 
+0

嗨,歡迎來到StackOverflow。請將您的崩潰報告編輯爲您的問題,因爲鏈接問題在鏈接過期時變得毫無用處。 –

+0

實際上,只是通過將項目導入到Xcode 7中,然後將其保存,從而實現了它的工作。在Xcode 8中運行現在可以100%正常工作! –

+1

您可以通過將故障詳細信息添加到問題中,然後發佈答案來使這成爲一個有用的問題。然後,您可以在短暫的等待後接受該答案。這將幫助遇到相同問題的其他人。 –

回答

0

其實,只要設法得到它的工作通過導入項目到Xcode的7,然後保存它。在Xcode 8中運行現在可以100%正常工作!

6

我通過移除相對於該項目的Build和DerivedData文件夾來解決此問題。

我保留DerivedData文件夾相對於項目(您可以在Xcode - >首選項 - >位置中設置它),因此很容易將其刪除。

+0

打開我的一個項目後,我的XCode 8不斷崩潰,但崩潰日誌與問題不同。在我刪除了DerivedData中的所有子文件夾之後,問題也被修復了。 –