Xcode 7 crashes when trying to select the Main.storyboard.

Even when building a new ios single view project, it will build and run, but I can't select the storyboard without xcode quitting. Needless to say, I'm dead in the water here.

Any ideas? Anyone else having this problem after insalling osx 10.11 and xcode 7 ?

Accepted Reply

We saw this in the labs at WWDC. The crash was caused by an offending custom color picker. Try removing any custom color pickers you have installed on your system.

Replies

Same here. Every time I try to view a storyboard or .xib in Xcode 7, I get this exception:


UNCAUGHT EXCEPTION (NSInvalidArgumentException): *** -containsValueForKey: only defined for abstract class.  Define -[NSUnarchiver containsValueForKey:]!


I can run the app fine, I just can't actually view or edit my storyboard/.xibs in Xcode anymore!


Stack trace:


Process:               Xcode [4209]
Path:                  /Applications/Xcode-beta.app/Contents/MacOS/Xcode
Identifier:            com.apple.dt.Xcode
Version:               7.0 (8123.26)
Build Info:            IDEFrameworks-8123026000000000~7
Code Type:             X86-64 (Native)
Parent Process:        ??? [1]
Responsible:           Xcode [4209]
User ID:               501


Date/Time:             2015-06-10 15:05:14.928 -0400
OS Version:            Mac OS X 10.10.3 (14D136)
Report Version:        11
Anonymous UUID:        9B7324FE-113A-BF78-0590-ECC7DDE67CD9


Sleep/Wake UUID:       A68D9DCC-EE2D-439B-B979-F232409B3139


Time Awake Since Boot: 10000 seconds
Time Since Wake:       3700 seconds


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


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


Application Specific Information:
ProductBuildVersion: 7A120f
UNCAUGHT EXCEPTION (NSInvalidArgumentException): *** -containsValueForKey: only defined for abstract class.  Define -[NSUnarchiver containsValueForKey:]!
UserInfo: (null)
Hints: None
Backtrace:
  0  0x00007fff89833024 __exceptionPreprocess (in CoreFoundation)
  1  0x000000010c633033 DVTFailureHintExceptionPreprocessor (in DVTFoundation)
  2  0x00007fff9102b76e objc_exception_throw (in libobjc.A.dylib)
  3  0x00007fff89832eed +[NSException raise:format:] (in CoreFoundation)
  4  0x00007fff89527b3d NSRequestConcreteImplementation (in Foundation)
  5  0x00007fff894bd7c2 -[NSCoder containsValueForKey:] (in Foundation)
  6  0x000000011cd5be63 -[NSBox(IBNSBoxIntegration) ibSwizzledNSBoxInitWithCoder:] (in IDEInterfaceBuilderCocoaIntegration)
  7  0x00007fff893bb26c _decodeObject_old (in Foundation)
  8  0x00007fff89dbe038 -[NSResponder initWithCoder:] (in AppKit)
  9  0x00007fff89dbc457 -[NSView initWithCoder:] (in AppKit)
10  0x00007fff893bb26c _decodeObject_old (in Foundation)
11  0x00007fff89dbe038 -[NSResponder initWithCoder:] (in AppKit)
12  0x00007fff89dbc457 -[NSView initWithCoder:] (in AppKit)
13  0x00007fff89dbe50e -[NSControl initWithCoder:] (in AppKit)
14  0x00007fff89dc6e44 -[NSTextField initWithCoder:] (in AppKit)
15  0x00007fff893bb26c _decodeObject_old (in Foundation)
16  0x00007fff893bae21 _decodeValueOfObjCType (in Foundation)
17  0x00007fff893ba4f6 -[NSUnarchiver decodeValuesOfObjCTypes:] (in Foundation)
18  0x00007fff89db2a60 -[NSIBObjectData initWithCoder:] (in AppKit)
19  0x000000011ccf8d3e -[NSIBObjectData(InitializationFixup) ibSwizzledInitWithCoder:] (in IDEInterfaceBuilderCocoaIntegration)
20  0x00007fff893bb26c _decodeObject_old (in Foundation)
21  0x00007fff8a3fc303 old_loadNib (in AppKit)
22  0x00007fff89db1944 +[NSBundle(NSNibLoading) _loadNibFile:nameTable:options:withZone:ownerBundle:] (in AppKit)
23  0x00007fff89db14e7 -[NSBundle(NSNibLoading) loadNibNamed:owner:topLevelObjects:] (in AppKit)
24  0x00007fff89db12b3 +[NSBundle(NSNibLoading) loadNibNamed:owner:] (in AppKit)
25  0x000000011d94c9f2
26  0x00007fff8a2a5079 -[NSColorPanel _provideNewViewFor:initialViewRequest:] (in AppKit)
27  0x00007fff8a2a4fc8 -[NSColorPanel setMode:] (in AppKit)
28  0x00007fff8a2a72dd -[NSColorPanel _constructWithPickers:] (in AppKit)
29  0x00007fff8a2a3a1d -[NSColorPanel initWithContentRect:styleMask:backing:defer:] (in AppKit)
30  0x00007fff89ffc82a -[NSPanel init] (in AppKit)
31  0x000000011b9aabd3 -[IBTargetRuntime installColorListIfNeeded] (in IDEInterfaceBuilderKit)
32  0x000000011d0d9b65 (in IDEInterfaceBuilderCocoaTouchIntegration)
33  0x000000011d0d9c62 (in IDEInterfaceBuilderCocoaTouchIntegration)
34  0x000000011b6eb74b -[IBDocument setTargetRuntime:] (in IDEInterfaceBuilderKit)
35  0x000000011b6f515c -[IBDocument decodeContentsOfURL:ofType:decodingStyle:error:] (in IDEInterfaceBuilderKit)
36  0x000000011b6efaaf __39-[IBDocument readFromURL:ofType:error:]_block_invoke (in IDEInterfaceBuilderKit)
37  0x000000011b725722 -[IBDocument suppressAndResetUndoManagerDuring:] (in IDEInterfaceBuilderKit)
38  0x000000011b6ef7b7 -[IBDocument readFromURL:ofType:error:] (in IDEInterfaceBuilderKit)
39  0x00007fff8a2e7e86 -[NSDocument _initForURL:withContentsOfURL:ofType:error:] (in AppKit)
40  0x00007fff8a2e80b2 -[NSDocument initForURL:withContentsOfURL:ofType:error:] (in AppKit)
41  0x000000010d825c75 -[IDEEditorDocument initForURL:withContentsOfURL:ofType:error:] (in IDEKit)
42  0x000000011b6ee5a2 -[IBDocument initForURL:withContentsOfURL:ofType:error:] (in IDEInterfaceBuilderKit)
43  0x000000010d8257ac +[IDEDocumentController _newEditorDocumentWithClass:forURL:withContentsOfURL:ofType:extension:error:] (in IDEKit)
44  0x000000010d825556 -[IDEEditorContext _newEditorDocumentWithClass:forURL:withContentsOfURL:ofType:extension:error:] (in IDEKit)
45  0x000000010d824a0d -[IDEEditorContext _openNavigableItem:withContentsOfURL:documentExtension:shouldInstallEditorBlock:] (in IDEKit)
46  0x000000010d9935ec -[IDEEditorContext _notifyDelegateAndOpenNavigableItem:withContentsURL:documentExtensionIdentifier:locationToSelect:annotationRepresentedObject:stateDictionary:annotationWantsIndicatorAnimation:exploreAnnotationRepresentedObject:highlightSelection:alwaysReplaceExistingNavigableItem:skipSubDocumentNavigationUnlessEditorIsReplaced:] (in IDEKit)
47  0x000000010d864056 -[IDEEditorContext _notifyDelegateAndOpenEditorOpenSpecifier:updateHistory:] (in IDEKit)
48  0x000000010d86390d -[IDEEditorContext _openEditorOpenSpecifier:updateHistory:] (in IDEKit)
49  0x000000010d86376e -[IDEEditorContext openEditorOpenSpecifier:] (in IDEKit)
50  0x000000010d863654 -[IDEEditorModeViewController openEditorOpenSpecifier:editorContext:] (in IDEKit)
51  0x000000010d8634a0 -[IDEEditorArea _openEditorOpenSpecifier:editorContext:takeFocus:] (in IDEKit)
52  0x000000010d9d1702 __108+[IDEEditorCoordinator _doOpenEditorOpenSpecifier:forWorkspaceTabController:editorContext:target:takeFocus:]_block_invoke (in IDEKit)
53  0x000000010d863341 +[IDEEditorCoordinator _doOpenWithWorkspaceTabController:editorContext:target:allowFallback:documentURL:usingBlock:] (in IDEKit)
54  0x000000010d862c0d +[IDEEditorCoordinator _doOpenEditorOpenSpecifier:forWorkspaceTabController:editorContext:target:takeFocus:] (in IDEKit)
55  0x000000010d862793 -[_IDEOpenRequest _runIfNecessary] (in IDEKit)
56  0x00007fff893e841b __NSFireDelayedPerform (in Foundation)
57  0x00007fff897862e4 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ (in CoreFoundation)
58  0x00007fff89785f73 __CFRunLoopDoTimer (in CoreFoundation)
59  0x00007fff897f953d __CFRunLoopDoTimers (in CoreFoundation)
60  0x00007fff89741608 __CFRunLoopRun (in CoreFoundation)
61  0x00007fff89740bd8 CFRunLoopRunSpecific (in CoreFoundation)
62  0x00007fff8ab8556f RunCurrentEventLoopInMode (in HIToolbox)
63  0x00007fff8ab852ea ReceiveNextEventCommon (in HIToolbox)
64  0x00007fff8ab8512b _BlockUntilNextEventMatchingListInModeWithFilter (in HIToolbox)
65  0x00007fff89e389bb _DPSNextEvent (in AppKit)
66  0x00007fff89e37f68 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] (in AppKit)
67  0x000000010cbea20f -[DVTApplication nextEventMatchingMask:untilDate:inMode:dequeue:] (in DVTKit)
68  0x00007fff89e2dbf3 -[NSApplication run] (in AppKit)
69  0x00007fff89daa354 NSApplicationMain (in AppKit)
70  0x00007fff94e835c9 start (in libdyld.dylib)

abort() called


Application Specific Signatures:
NSInvalidArgumentException


Application Specific Backtrace 1:
0   CoreFoundation                      0x00007fff8983303c __exceptionPreprocess + 172
1   DVTFoundation                       0x000000010c633033 DVTFailureHintExceptionPreprocessor + 194
2   libobjc.A.dylib                     0x00007fff9102b76e objc_exception_throw + 43
3   CoreFoundation                      0x00007fff89832eed +[NSException raise:format:] + 205
4   Foundation                          0x00007fff89527b3d NSRequestConcreteImplementation + 240
5   Foundation                          0x00007fff894bd7c2 -[NSCoder containsValueForKey:] + 39
6   IDEInterfaceBuilderCocoaIntegration 0x000000011cd5be63 -[NSBox(IBNSBoxIntegration) ibSwizzledNSBoxInitWithCoder:] + 84
7   Foundation                          0x00007fff893bb26c _decodeObject_old + 331
8   AppKit                              0x00007fff89dbe038 -[NSResponder initWithCoder:] + 151
9   AppKit                              0x00007fff89dbc457 -[NSView initWithCoder:] + 105
10  Foundation                          0x00007fff893bb26c _decodeObject_old + 331
11  AppKit                              0x00007fff89dbe038 -[NSResponder initWithCoder:] + 151
12  AppKit                              0x00007fff89dbc457 -[NSView initWithCoder:] + 105
13  AppKit                              0x00007fff89dbe50e -[NSControl initWithCoder:] + 51
14  AppKit                              0x00007fff89dc6e44 -[NSTextField initWithCoder:] + 51
15  Foundation                          0x00007fff893bb26c _decodeObject_old + 331
16  Foundation                          0x00007fff893bae21 _decodeValueOfObjCType + 1567
17  Foundation                          0x00007fff893ba4f6 -[NSUnarchiver decodeValuesOfObjCTypes:] + 214
18  AppKit                              0x00007fff89db2a60 -[NSIBObjectData initWithCoder:] + 1862
19  IDEInterfaceBuilderCocoaIntegration 0x000000011ccf8d3e -[NSIBObjectData(InitializationFixup) ibSwizzledInitWithCoder:] + 2619
20  Foundation                          0x00007fff893bb26c _decodeObject_old + 331
21  AppKit                              0x00007fff8a3fc303 old_loadNib + 173
22  AppKit                              0x00007fff89db1944 +[NSBundle(NSNibLoading) _loadNibFile:nameTable:options:withZone:ownerBundle:] + 850
23  AppKit                              0x00007fff89db14e7 -[NSBundle(NSNibLoading) loadNibNamed:owner:topLevelObjects:] + 201
24  AppKit                              0x00007fff89db12b3 +[NSBundle(NSNibLoading) loadNibNamed:owner:] + 344
25  RCWebColorPicker                    0x000000011d94c9f2 RCWebColorPicker + 6642
26  AppKit                              0x00007fff8a2a5079 -[NSColorPanel _provideNewViewFor:initialViewRequest:] + 33
27  AppKit                              0x00007fff8a2a4fc8 -[NSColorPanel setMode:] + 372
28  AppKit                              0x00007fff8a2a72dd -[NSColorPanel _constructWithPickers:] + 1163
29  AppKit                              0x00007fff8a2a3a1d -[NSColorPanel initWithContentRect:styleMask:backing:defer:] + 916
30  AppKit                              0x00007fff89ffc82a -[NSPanel init] + 87
31  IDEInterfaceBuilderKit              0x000000011b9aabd3 -[IBTargetRuntime installColorListIfNeeded] + 115
32  IDEInterfaceBuilderCocoaTouchIntegration 0x000000011d0d9b65 IBAllSizeClassConfigurations + 24279
33  IDEInterfaceBuilderCocoaTouchIntegration 0x000000011d0d9c62 IBAllSizeClassConfigurations + 24532
34  IDEInterfaceBuilderKit              0x000000011b6eb74b -[IBDocument setTargetRuntime:] + 386
35  IDEInterfaceBuilderKit              0x000000011b6f515c -[IBDocument decodeContentsOfURL:ofType:decodingStyle:error:] + 655
36  IDEInterfaceBuilderKit              0x000000011b6efaaf __39-[IBDocument readFromURL:ofType:error:]_block_invoke + 88
37  IDEInterfaceBuilderKit              0x000000011b725722 -[IBDocument suppressAndResetUndoManagerDuring:] + 112
38  IDEInterfaceBuilderKit              0x000000011b6ef7b7 -[IBDocument readFromURL:ofType:error:] + 410
39  AppKit                              0x00007fff8a2e7e86 -[NSDocument _initForURL:withContentsOfURL:ofType:error:] + 184
40  AppKit                              0x00007fff8a2e80b2 -[NSDocument initForURL:withContentsOfURL:ofType:error:] + 324
41  IDEKit                              0x000000010d825c75 -[IDEEditorDocument initForURL:withContentsOfURL:ofType:error:] + 125
42  IDEInterfaceBuilderKit              0x000000011b6ee5a2 -[IBDocument initForURL:withContentsOfURL:ofType:error:] + 113
43  IDEKit                              0x000000010d8257ac +[IDEDocumentController _newEditorDocumentWithClass:forURL:withContentsOfURL:ofType:extension:error:] + 344
44  IDEKit                              0x000000010d825556 -[IDEEditorContext _newEditorDocumentWithClass:forURL:withContentsOfURL:ofType:extension:error:] + 124
45  IDEKit                              0x000000010d824a0d -[IDEEditorContext _openNavigableItem:withContentsOfURL:documentExtension:shouldInstallEditorBlock:] + 1872
46  IDEKit                              0x000000010d9935ec -[IDEEditorContext _notifyDelegateAndOpenNavigableItem:withContentsURL:documentExtensionIdentifier:locationToSelect:annotationRepresentedObject:stateDictionary:annotationWantsIndicatorAnimation:exploreAnnotationRepresentedObject:highlightSelection:alwaysReplaceExistingNavigableItem:skipSubDocumentNavigationUnlessEditorIsReplaced:] + 3114
47  IDEKit                              0x000000010d864056 -[IDEEditorContext _notifyDelegateAndOpenEditorOpenSpecifier:updateHistory:] + 1262
48  IDEKit                              0x000000010d86390d -[IDEEditorContext _openEditorOpenSpecifier:updateHistory:] + 386
49  IDEKit                              0x000000010d86376e -[IDEEditorContext openEditorOpenSpecifier:] + 261
50  IDEKit                              0x000000010d863654 -[IDEEditorModeViewController openEditorOpenSpecifier:editorContext:] + 41
51  IDEKit                              0x000000010d8634a0 -[IDEEditorArea _openEditorOpenSpecifier:editorContext:takeFocus:] + 252
52  IDEKit                              0x000000010d9d1702 __108+[IDEEditorCoordinator _doOpenEditorOpenSpecifier:forWorkspaceTabController:editorContext:target:takeFocus:]_block_invoke + 173
53  IDEKit                              0x000000010d863341 +[IDEEditorCoordinator _doOpenWithWorkspaceTabController:editorContext:target:allowFallback:documentURL:usingBlock:] + 1651
54  IDEKit                              0x000000010d862c0d +[IDEEditorCoordinator _doOpenEditorOpenSpecifier:forWorkspaceTabController:editorContext:target:takeFocus:] + 457
55  IDEKit                              0x000000010d862793 -[_IDEOpenRequest _runIfNecessary] + 226
56  Foundation                          0x00007fff893e841b __NSFireDelayedPerform + 364
57  CoreFoundation                      0x00007fff897862e4 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 20
58  CoreFoundation                      0x00007fff89785f73 __CFRunLoopDoTimer + 1059
59  CoreFoundation                      0x00007fff897f953d __CFRunLoopDoTimers + 301
60  CoreFoundation                      0x00007fff89741608 __CFRunLoopRun + 2024
61  CoreFoundation                      0x00007fff89740bd8 CFRunLoopRunSpecific + 296
62  HIToolbox                           0x00007fff8ab8556f RunCurrentEventLoopInMode + 235
63  HIToolbox                           0x00007fff8ab852ea ReceiveNextEventCommon + 431
64  HIToolbox                           0x00007fff8ab8512b _BlockUntilNextEventMatchingListInModeWithFilter + 71
65  AppKit                              0x00007fff89e389bb _DPSNextEvent + 978
66  AppKit                              0x00007fff89e37f68 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 346
67  DVTKit                              0x000000010cbea20f -[DVTApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 247
68  AppKit                              0x00007fff89e2dbf3 -[NSApplication run] + 594
69  AppKit                              0x00007fff89daa354 NSApplicationMain + 1832
70  libdyld.dylib                       0x00007fff94e835c9 start + 1
71  ???                                 0x0000000000000001 0x0 + 1


Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   libsystem_kernel.dylib         0x00007fff96bce286 __pthread_kill + 10
1   libsystem_c.dylib             0x00007fff93780b53 abort + 129
2   com.apple.dt.IDEKit           0x000000010d9e0c9a +[IDEAssertionHandler _handleAssertionWithLogString:assertionSignature:assertionReason:extraBacktrace:] + 1481
3   com.apple.dt.IDEKit           0x000000010d9e1f33 -[IDEAssertionHandler handleUncaughtException:] + 1077
4   com.apple.dt.IDEKit           0x000000010d9e1fff IDEHandleUncaughtException + 94
5   com.apple.AppKit               0x00007fff89e2dd1c -[NSApplication run] + 891
6   com.apple.AppKit               0x00007fff89daa354 NSApplicationMain + 1832
7   libdyld.dylib                 0x00007fff94e835c9 start + 1

Thank God! Oops, sorry :-) I was beginning to think I was the only one with this problem. I can open the storyboard in an OS X app, but I can't open the storyboard in any ios app. And you're right, it builds and runs just fine. Maybe the next update will fix this.

FWIW, I also see that all the @IBOutlets in my (all-Swift) source are displaying in Xcode as unlinked from my storyboard/.xibs (even though, as I said, I can run the app just fine).

Actually, I think the IBOutlets and actions have always shown as being unlinked until the storyboard is selected once. I hope that a number of other people discover that they have this problem too. Maybe it will push Apple to take a quick look at it.

By the way, I noticed that the 'Crustacean' playground also causes Xcode to quit when I try to open the console to see the graphics.

I was having a number of problems until I rebooted the system after installing Xcode.

I've tried reinstalling XCode, rebooting, running it with an earlier system on my cloned drive and everything else I could think of. All the problems seem to be associated with ios and not osX.

I tried that several times, no luck (so far at least)!

Im having a problem with my xcode ? For some reason my storyboard and table do not look the same as all the tutorials that i have been watching and it wont let me drag and drop on the storyboard. Any ideas i cant' figure it out and it has been driving me nuts i have the most up to date OS and xcode Please help

Same here, old projects and brand new Xcode 7 projects. Select a nib or storyboard and:


UNCAUGHT EXCEPTION (NSInvalidArgumentException): *** -containsValueForKey: only defined for abstract class. Define -[NSUnarchiver containsValueForKey:]!


Mac restart hasnt made any difference, OSX up to date, seems the beta needs an update to fix this.


Pity though, wanted to test out StackViews 😟

Pardon the newbie question, but:


Is posting bug information like this here in the forums sufficient to bring them to Apple's attention, or should we file a bug report somewhere (and if so, where?)

It wasn't uncommon to see Apple engineers chiming in on these problems in the old forums. However, I'm really a newbie myself. Maybe some more experienced developers can help out here?

The Apple engineers are kinda busy elsewhere until next week, so I doubt you'll see them responding in the next few days, though I'd expect their presence to normalize after that.


Clearly there's a bug here, and I haven't seen anyone suggest a workaround, so it may be unavoidable until a new Xcode beta is issued, which will also be after WWDC. You should file a bug report, including your project, to make sure your issue gets looked into.


Since you got the error after creating a new project in Xcode 7, you could try deleting it and re-creating it in Xcode 6, then opening it in Xcode 7. When I tried this, Xcode 7 offered to make some changes to the storyboard which I declined, and then I set the scene's "Opens in" setting to 6.3 explicitly. Doing something along that line might allow you to proceed for now.

Thanks, I figured that most of Apple's engineers were busy with WWDC right now. Unfortunately, no matter what version of Xcode a project is created in, my copy of Xcode 7 crashes when trying to open either the storyboard or the launchscreen file. I'm sure they'll get around to fixing this soon so I'll just be patient a little longer!

I've submitted a bug-report (21345374)

We saw this in the labs at WWDC. The crash was caused by an offending custom color picker. Try removing any custom color pickers you have installed on your system.