Weird Crash on xCode 6.1

#1

2014-11-12 18:37:13.882 HypnoNerd[2112:20281] *** Terminating app due to uncaught exception ‘NSInternalInconsistencyException’, reason: ‘Could not load NIB in bundle: ‘NSBundle </Users/Raff7M/Library/Developer/CoreSimulator/Devices/0195AF43-B69F-4B34-90B2-DD1010D3EEB5/data/Containers/Bundle/Application/C42F13B6-44C0-4291-8615-51699ECFBC14/HypnoNerd.app> (loaded)’ with name ‘BNRReminderViewController.xib’’
*** First throw call stack:
(
0 CoreFoundation 0x008d8946 __exceptionPreprocess + 182
1 libobjc.A.dylib 0x00561a97 objc_exception_throw + 44
2 CoreFoundation 0x008d886d +[NSException raise:format:] + 141
3 UIKit 0x011d3e06 -[UINib instantiateWithOwner:options:] + 1003
4 UIKit 0x00ff6624 -[UIViewController _loadViewFromNibNamed:bundle:] + 270
5 UIKit 0x00ff6dbb -[UIViewController loadView] + 295
6 UIKit 0x00ff6fef -[UIViewController loadViewIfRequired] + 78
7 UIKit 0x00ff7595 -[UIViewController view] + 35
8 UIKit 0x00eee825 -[UIWindow addRootViewControllerViewIfPossible] + 66
9 UIKit 0x00eeec99 -[UIWindow _setHidden:forced:] + 287
10 UIKit 0x00eeef50 -[UIWindow _orderFrontWithoutMakingKey] + 49
11 UIKit 0x00efd28d -[UIWindow makeKeyAndVisible] + 80
12 HypnoNerd 0x0008078b -[AppDelegate application:didFinishLaunchingWithOptions:] + 795
13 UIKit 0x00e9997c -[UIApplication _handleDelegateCallbacksWithOptions:isSuspended:restoreState:] + 291
14 UIKit 0x00e9a687 -[UIApplication _callInitializationDelegatesForMainScene:transitionContext:] + 2869
15 UIKit 0x00e9dc0d -[UIApplication _runWithMainScene:transitionContext:completion:] + 1639
16 UIKit 0x00eb67d0 __84-[UIApplication _handleApplicationActivationWithScene:transitionContext:completion:]_block_invoke + 59
17 UIKit 0x00e9c81f -[UIApplication workspaceDidEndTransaction:] + 155
18 FrontBoardServices 0x040769de __37-[FBSWorkspace clientEndTransaction:]_block_invoke_2 + 71
19 FrontBoardServices 0x0407646f __40-[FBSWorkspace _performDelegateCallOut:]_block_invoke + 54
20 FrontBoardServices 0x04088425 __31-[FBSSerialQueue performAsync:]_block_invoke + 26
21 CoreFoundation 0x007fc1c0 CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK + 16
22 CoreFoundation 0x007f1ad3 __CFRunLoopDoBlocks + 195
23 CoreFoundation 0x007f192b __CFRunLoopRun + 2715
24 CoreFoundation 0x007f0bcb CFRunLoopRunSpecific + 443
25 CoreFoundation 0x007f09fb CFRunLoopRunInMode + 123
26 UIKit 0x00e9c1e4 -[UIApplication _run] + 571
27 UIKit 0x00e9f8b6 UIApplicationMain + 1526
28 HypnoNerd 0x0008186d main + 141
29 libdyld.dylib 0x02e52ac9 start + 1
30 ??? 0x00000001 0x0 + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
(lldb)

Here is my project…
dropbox.com/s/bgic5chnihzwr … d.zip?dl=0

#2

really ? where are responsible makers of this book to answer ?

#3

Try resetting your simulator, and then run again.

#4

I did now, it doesn’t fix the problem :confused:

#5

I ran into this same error. In case this helps anyone:

With XCode 6.1, just leave out the “.xib” for BNRReminderViewController *rvc = [[BNRReminderViewController alloc]initWithNibName:@"BNRReminderViewController" bundle:appBundle];