XCode beta 4 won't compile storyboard

Hi, I'm opening a current project that works in XC6 but XC& B4 won'top compile the storyboard. I've removed the old runtimes from /Library/Developer/CoreSimulator/Profiles


There are 2 errors, the first one being:


2015-07-31 09:18:24.216 Interface Builder Cocoa Touch Tool[14160:391705] Error registering for distributed notification com.apple.MediaRemote.externalScreenTypeDidChange. (status = 1000000)
2015-07-31 09:18:24.217 Interface Builder Cocoa Touch Tool[14160:391705] Error registering for distributed notification com.apple.MediaRemote.pickableRoutesDidChange. (status = 1000000)
2015-07-31 09:18:24.217 Interface Builder Cocoa Touch Tool[14160:391705] Error registering for distributed notification com.apple.MediaRemote.willPresentRouteAuthenticationPrompt. (status = 1000000)
2015-07-31 09:18:24.733 Interface Builder Cocoa Touch Tool[14160:391746] 09:18:24.732 ERROR:    >SystemSoundClient> 49: Couldn't connect to system sound server
2015-07-31 09:18:24.918 Interface Builder Cocoa Touch Tool[14160:391705] *** Terminating app due to uncaught exception 'NSRangeException', reason: '-[__NSCFString characterAtIndex:]: Range or index out of bounds'


The second one is:


2015-07-31 09:18:34.183 ibtoold[14156:391619] [MT] DVTAssertions: ASSERTION FAILURE in /Library/Caches/com.apple.xbs/Sources/IDEInterfaceBuilder/IDEInterfaceBuilder-8164.2/InterfaceBuilderKit/Document/IBDocument.m:2127
Details:  An instance of IBUIView with object ID 9DL-f5-cPo did not archive its child (IBUIViewControllerAutolayoutGuide) with an object of ID naB-UO-x1W.
Object:   <IBXIBDocument: 0x7fe8127c2a00>
Method:   -documentArchiver:didArchiveObject:
Thread:   <NSThread: 0x7fe811445ef0>{number = 1, name = main}
Hints: None


Looks like there may be problem in the storyboard layout, but I've checked the source code of storyboards and xibs and I can't find any object with an ID of 9DL-f5-cPo. Any idea on how I can figure out which view it is having a problem with?


Gary

OK, I managed to find the view causing the second problem and removed it. There is still this error though:




2015-07-31 10:16:05.550 Interface Builder Cocoa Touch Tool[16008:416111] Error registering for distributed notification com.apple.MediaRemote.externalScreenTypeDidChange. (status = 1000000)

2015-07-31 10:16:05.550 Interface Builder Cocoa Touch Tool[16008:416111] Error registering for distributed notification com.apple.MediaRemote.pickableRoutesDidChange. (status = 1000000)

2015-07-31 10:16:05.550 Interface Builder Cocoa Touch Tool[16008:416111] Error registering for distributed notification com.apple.MediaRemote.willPresentRouteAuthenticationPrompt. (status = 1000000)

2015-07-31 10:16:05.985 Interface Builder Cocoa Touch Tool[16008:416111] Error creating notification handler for simulator graphics quality override: 1000000

2015-07-31 10:16:06.122 Interface Builder Cocoa Touch Tool[16008:416605] 10:16:06.121 ERROR: >SystemSoundClient> 49: Couldn't connect to system sound server

2015-07-31 10:16:06.303 Interface Builder Cocoa Touch Tool[16008:416111] *** Terminating app due to uncaught exception 'NSRangeException', reason: '-[__NSCFString characterAtIndex:]: Range or index out of bounds'

*** First throw call stack:

(

0 CoreFoundation 0x02b1b214 __exceptionPreprocess + 180

1 libobjc.A.dylib 0x025dbe42 objc_exception_throw + 50

2 CoreFoundation 0x02b1b13d +[NSException raise:format:] + 141

3 CoreFoundation 0x029ef74f -[__NSCFString characterAtIndex:] + 111

4 Foundation 0x023d2aef -[NSLocalizableString characterAtIndex:] + 50

5 CoreFoundation 0x029cdc2d CFStringGetCharacterAtIndex + 189

6 UIFoundation 0x02ed282f -[NSParagraphArbitrator lineBreakContextBeforeIndex:lineFragmentWidth:range:] + 329

7 UIFoundation 0x02ef5b82 __NSStringDrawingEngine + 17021

8 UIFoundation 0x02ef18d9 -[NSString(NSExtendedStringDrawing) boundingRectWithSize:options:attributes:context:] + 202

9 UIKit 0x0043a9dc -[UILabel _drawTextInRect:baselineCalculationOnly:] + 3286

10 UIKit 0x00439323 -[UILabel drawTextInRect:] + 669

11 UIKit 0x0043bbeb -[UILabel drawRect:] + 98

12 UIKit 0x0025ab01 -[UIView(CALayerDelegate) drawLayer:inContext:] + 513

13 QuartzCore 0x0207cc8c -[CALayer drawInContext:] + 279

14 QuartzCore 0x0207cb21 _ZL16backing_callbackP9CGContextPv + 96

15 QuartzCore 0x01f5a615 CABackingStoreUpdate_ + 2539

16 QuartzCore 0x0207cab9 ___ZN2CA5Layer8display_Ev_block_invoke + 93

17 QuartzCore 0x020b5eb0 x_blame_allocations + 15

18 QuartzCore 0x0207c918 _ZN2CA5Layer8display_Ev + 1560

19 QuartzCore 0x0207cb70 -[CALayer _display] + 33

20 QuartzCore 0x0207c2f8 _ZN2CA5Layer7displayEv + 142

21 QuartzCore 0x0207cb4a -[CALayer display] + 33

22 QuartzCore 0x02070d12 _ZN2CA5Layer17display_if_neededEPNS_11TransactionE + 326

23 QuartzCore 0x02070d98 _ZN2CA5Layer28layout_and_display_if_neededEPNS_11TransactionE + 38

24 QuartzCore 0x02063c6b _ZN2CA7Context18commit_transactionEPNS_11TransactionE + 317

25 QuartzCore 0x0209743b _ZN2CA11Transaction6commitEv + 589

26 QuartzCore 0x02097cee _ZN2CA11Transaction17observer_callbackEP19__CFRunLoopObservermPv + 92

27 CoreFoundation 0x02a3564e __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 30

28 CoreFoundation 0x02a355ae __CFRunLoopDoObservers + 398

29 CoreFoundation 0x02a2a758 CFRunLoopRunSpecific + 504

30 CoreFoundation 0x02a2a54b CFRunLoopRunInMode + 123

31 Foundation 0x021f1e12 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 308

32 IBFoundation 0x01e6bfd7 -[IBAbstractPlatformTool startServingReceiveChannel:] + 471

33 IBFoundation 0x01e6c1dd -[IBAbstractPlatformTool startServingWriteDescriptor:readDescriptor:] + 129

34 IBFoundation 0x01e6ce69 +[IBAbstractPlatformTool main] + 1325

35 Interface Builder Cocoa Touch Tool 0x00062753 Interface Builder Cocoa Touch Tool + 5971

36 libdyld.dylib 0x065f9a21 start + 1

37 ??? 0x00000005 0x0 + 5

)

libc++abi.dylib: terminating with uncaught exception of type NSException

Command /Applications/Xcode-beta.app/Contents/Developer/usr/bin/ibtool failed with exit code 255


I have tried building for a device and simulator, I get the same result. And there are no ColorPickers on my system.


Gary

After much trial and error, I found a UILabel that had an explicit size set, setting to automatic allowed the storyboard to compile and run. Not sure what to make of that as yet.


Gary

XCode beta 4 won't compile storyboard
 
 
Q