Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

iOS Build a Simple iPhone App with Swift Views and View Controllers IBOutlet

Andrew Giese
Andrew Giese
2,925 Points

App crashing upon clicking button.

2015-06-23 20:09:27.901 funFacts[7626:725776] -[funFacts.ViewController showFact:]: unrecognized selector sent to instance 0x78f75560 2015-06-23 20:09:27.932 funFacts[7626:725776] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[funFacts.ViewController showFact:]: unrecognized selector sent to instance 0x78f75560' *** First throw call stack: ( 0 CoreFoundation 0x0028a746 exceptionPreprocess + 182 1 libobjc.A.dylib 0x01c8ba97 objc_exception_throw + 44 2 CoreFoundation 0x00292705 -[NSObject(NSObject) doesNotRecognizeSelector:] + 277 3 CoreFoundation 0x001d9287 ___forwarding_ + 1047 4 CoreFoundation 0x001d8e4e CF_forwarding_prep_0 + 14 5 libobjc.A.dylib 0x01ca17cd -[NSObject performSelector:withObject:withObject:] + 84 6 UIKit 0x00aafa90 -[UIApplication sendAction:to:from:forEvent:] + 99 7 UIKit 0x00aafa22 -[UIApplication sendAction:toTarget:fromSender:forEvent:] + 64 8 UIKit 0x00bf018a -[UIControl sendAction:to:forEvent:] + 69 9 UIKit 0x00bf05a7 -[UIControl _sendActionsForEvents:withEvent:] + 598 10 UIKit 0x00bef811 -[UIControl touchesEnded:withEvent:] + 660 11 UIKit 0x00b07cfa -[UIWindow _sendTouchesForEvent:] + 874 12 UIKit 0x00b087d6 -[UIWindow sendEvent:] + 792 13 UIKit 0x00ac66d1 -[UIApplication sendEvent:] + 242 14 UIKit 0x00ad6b08 _UIApplicationHandleEventFromQueueEvent + 21484 15 UIKit 0x00aaa337 _UIApplicationHandleEventQueue + 2300 16 CoreFoundation 0x001ac06f __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION_ + 15 17 CoreFoundation 0x001a1b7d __CFRunLoopDoSources0 + 253 18 CoreFoundation 0x001a10d8 __CFRunLoopRun + 952 19 CoreFoundation 0x001a0a5b CFRunLoopRunSpecific + 443 20 CoreFoundation 0x001a088b CFRunLoopRunInMode + 123 21 GraphicsServices 0x03f382c9 GSEventRunModal + 192 22 GraphicsServices 0x03f38106 GSEventRun + 104 23 UIKit 0x00aae106 UIApplicationMain + 1526 24 funFacts 0x00093174 main + 180 25 libdyld.dylib 0x0239cac9 start + 1 ) libc++abi.dylib: terminating with uncaught exception of type NSException (lldb)

1 Answer

Andrew check to make sure you don't have a 2nd Referencing Outlet set.

Andrew Giese
Andrew Giese
2,925 Points

That did it! Thank you so much, much have hit it on accident!

No worries. I did it 100x when I was starting out too.