Hello,
When I attempt to open the Guided Tour playground file mentioned in the pre-release Swift programming book in Xcode 7 on El Capitan (first build), Xcode crashes immediately upon opening. I've been able to use it fine with other projects/playgrounds etc, its just this indiviudal one.
I've included a snippet of the crash log - does anyone know of a fix for this?
Thanks in advance.
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: 7A120f
ASSERTION FAILURE in /Library/Caches/com.apple.xbs/Sources/IDELanguageSupport/IDELanguageSupport-8102.19/IDELanguageSupportUI/Playground/Editor/IDEPlaygroundSourceTextScrollView.m:322
Details: result should be an instance inheriting from IDEPlaygroundTextView, but it is nil
Object: <IDEPlaygroundSourceTextScrollView: 0x7f8ffd8cebc0>
Method: -_drawGutterAndResultSidebarBackgroundsIfNecessary:
Thread: <NSThread: 0x7f8ff9e1b290>{number = 1, name = main}
Hints: None
Backtrace:
0 0x000000010e86e0a3 -[IDEAssertionHandler handleFailureInMethod:object:fileName:lineNumber:assertionSignature:messageFormat:arguments:] (in IDEKit)
1 0x000000010d4bdb2d _DVTAssertionHandler (in DVTFoundation)
2 0x000000010d4bdd44 _DVTAssertionFailureHandler (in DVTFoundation)
3 0x00000001235f7dae -[IDEPlaygroundSourceTextScrollView _drawGutterAndResultSidebarBackgroundsIfNecessary:] (in IDELanguageSupportUI)
4 0x00000001235f752b -[IDEPlaygroundSourceTextScrollView drawRect:] (in IDELanguageSupportUI)
5 0x00007fff9936b20a -[NSView(NSInternal) _recursive:displayRectIgnoringOpacity:inGraphicsContext:CGContext:topView:shouldChangeFontReferenceColor:] (in AppKit)
6 0x00007fff9936ac22 __46-[NSView(NSLayerKitGlue) drawLayer:inContext:]_block_invoke (in AppKit)
7 0x00007fff9936a8b1 -[NSView(NSLayerKitGlue) _drawViewBackingLayer:inContext:drawingHandler:] (in AppKit)
8 0x00007fff99369f35 -[NSView(NSLayerKitGlue) drawLayer:inContext:] (in AppKit)
9 0x00007fff94354641 CABackingStoreUpdate_ (in QuartzCore)
10 0x00007fff94353895 ___ZN2CA5Layer8display_Ev_block_invoke (in QuartzCore)
11 0x00007fff943474fd CA::Layer::display_() (in QuartzCore)
12 0x00007fff992d9089 _NSBackingLayerDisplay (in AppKit)
13 0x00007fff992d6701 -[_NSViewBackingLayer display] (in AppKit)
14 0x00007fff943458e3 CA::Layer::display_if_needed(CA::Transaction*) (in QuartzCore)
15 0x00007fff94344f6b CA::Layer::layout_and_display_if_needed(CA::Transaction*) (in QuartzCore)
16 0x00007fff943444e9 CA::Context::commit_transaction(CA::Transaction*) (in QuartzCore)
17 0x00007fff9434421c CA::Transaction::commit() (in QuartzCore)
18 0x00007fff943530df CA::Transaction::observer_callback(__CFRunLoopObserver*, unsigned long, void*) (in QuartzCore)
19 0x00007fff9564a917 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ (in CoreFoundation)
20 0x00007fff9564a887 __CFRunLoopDoObservers (in CoreFoundation)
21 0x00007fff9563cbe8 CFRunLoopRunSpecific (in CoreFoundation)
22 0x00007fff8fd92b4d RunCurrentEventLoopInMode (in HIToolbox)
23 0x00007fff8fd928df ReceiveNextEventCommon (in HIToolbox)
24 0x00007fff8fd92717 _BlockUntilNextEventMatchingListInModeWithFilter (in HIToolbox)
25 0x00007fff99304972 _DPSNextEvent (in AppKit)
26 0x00007fff996e6234 -[NSApplication _nextEventMatchingEventMask:untilDate:inMode:dequeue:] (in AppKit)
27 0x000000010da7420f -[DVTApplication nextEventMatchingMask:untilDate:inMode:dequeue:] (in DVTKit)
28 0x00007fff992fa297 -[NSApplication run] (in AppKit)
29 0x00007fff9927a100 NSApplicationMain (in AppKit)
30 0x00007fff959aa5ad start (in libdyld.dylib)
abort() called