Build failing after copying final project


#1

Hello,

I finished the chapter and everything was working as it should. As for earlier chapters, I copied the directory to work on the challenges in a copy of the project. When I copy the project and try to build, I get the following message:

2014-09-30 15:29:28.761 HypoNerd[4739:60b] -[BNRHypnosisViewController setViewControllers:]: unrecognized selector sent to instance 0x8c67b30
2014-09-30 15:29:28.765 HypoNerd[4739:60b] *** Terminating app due to uncaught exception ‘NSInvalidArgumentException’, reason: ‘-[BNRHypnosisViewController setViewControllers:]: unrecognized selector sent to instance 0x8c67b30’
*** First throw call stack:
(
0 CoreFoundation 0x017ee1e4 __exceptionPreprocess + 180
1 libobjc.A.dylib 0x0156d8e5 objc_exception_throw + 44
2 CoreFoundation 0x0188b243 -[NSObject(NSObject) doesNotRecognizeSelector:] + 275
3 CoreFoundation 0x017de50b forwarding + 1019
4 CoreFoundation 0x017de0ee _CF_forwarding_prep_0 + 14
5 HypoNerd 0x0000360c -[BNRAppDelegate application:didFinishLaunchingWithOptions:] + 652
6 UIKit 0x0022714f -[UIApplication _handleDelegateCallbacksWithOptions:isSuspended:restoreState:] + 309
7 UIKit 0x00227aa1 -[UIApplication _callInitializationDelegatesForURL:payload:suspended:] + 1810
8 UIKit 0x0022c667 -[UIApplication _runWithURL:payload:launchOrientation:statusBarStyle:statusBarHidden:] + 824
9 UIKit 0x00240f92 -[UIApplication handleEvent:withNewEvent:] + 3517
10 UIKit 0x00241555 -[UIApplication sendEvent:] + 85
11 UIKit 0x0022e250 _UIApplicationHandleEvent + 683
12 GraphicsServices 0x037e3f02 _PurpleEventCallback + 776
13 GraphicsServices 0x037e3a0d PurpleEventCallback + 46
14 CoreFoundation 0x01769ca5 CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION + 53
15 CoreFoundation 0x017699db __CFRunLoopDoSource1 + 523
16 CoreFoundation 0x0179468c __CFRunLoopRun + 2156
17 CoreFoundation 0x017939d3 CFRunLoopRunSpecific + 467
18 CoreFoundation 0x017937eb CFRunLoopRunInMode + 123
19 UIKit 0x0022bd9c -[UIApplication _run] + 840
20 UIKit 0x0022df9b UIApplicationMain + 1225
21 HypoNerd 0x00002d6d main + 141
22 libdyld.dylib 0x01e35701 start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
(lldb)

The only thing I could think of was setting up the “File’s Owner” settings again, but I inspected them and they are all as they should be. So far as I can see, no files are missing. What else should I be checking?

Thanks.


#2

Did this happen immediately after you had copied the project, without even making any changes to it?

If so, check to make sure that Target Membership of all files are set in the File inspector.