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 trialLeslie Borrell
2,318 Pointsfor some reason i'm getting an exception when i run the app. the exception is being thrown in appDelegate.swift.
i didn't modify this file. please help.
2016-01-28 14:51:55.272 FunFacts[63883:6781158] -[FunFacts.ViewController showFunFact:]: unrecognized selector sent to instance 0x7fe803f61060 2016-01-28 14:51:55.315 FunFacts[63883:6781158] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[FunFacts.ViewController showFunFact:]: unrecognized selector sent to instance 0x7fe803f61060' *** First throw call stack: ( 0 CoreFoundation 0x000000010956d795 exceptionPreprocess + 165 1 libobjc.A.dylib 0x000000010b2f6deb objc_exception_throw + 48 2 CoreFoundation 0x00000001095769ad -[NSObject(NSObject) doesNotRecognizeSelector:] + 205 3 CoreFoundation 0x00000001094be8ba ___forwarding_ + 970 4 CoreFoundation 0x00000001094be468 CF_forwarding_prep_0 + 120 5 UIKit 0x0000000109d952a6 -[UIApplication sendAction:to:from:forEvent:] + 92 6 UIKit 0x0000000109f05623 -[UIControl sendAction:to:forEvent:] + 67 7 UIKit 0x0000000109f058ff -[UIControl _sendActionsForEvents:withEvent:] + 327 8 UIKit 0x0000000109f04a1f -[UIControl touchesEnded:withEvent:] + 601 9 UIKit 0x0000000109e05273 -[UIWindow _sendTouchesForEvent:] + 835 10 UIKit 0x0000000109e05fa8 -[UIWindow sendEvent:] + 865 11 UIKit 0x0000000109db3d56 -[UIApplication sendEvent:] + 263 12 UIKit 0x0000000109d8de4b _UIApplicationHandleEventQueue + 6844 13 CoreFoundation 0x0000000109494ec1 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION_ + 17 14 CoreFoundation 0x000000010948adec __CFRunLoopDoSources0 + 556 15 CoreFoundation 0x000000010948a2a3 __CFRunLoopRun + 867 16 CoreFoundation 0x0000000109489cb8 CFRunLoopRunSpecific + 488 17 GraphicsServices 0x000000010dc69ad2 GSEventRunModal + 161 18 UIKit 0x0000000109d93722 UIApplicationMain + 171 19 FunFacts 0x000000010938748d main + 109 20 libdyld.dylib 0x000000010be0692d start + 1 ) libc++abi.dylib: terminating with uncaught exception of type NSException (lldb)
2 Answers
Misha Holtz
4,655 PointsHi Leslie!
I am a student and ran into his error too. This post helped me out!
https://teamtreehouse.com/community/error-message-thread-1-signal-sigabrt-in-class-appdelegate
Robert Baghai
5,492 PointsIt's a common problem for people to encounter. If you change the name of say, an Outlet, Xcode does no register this change. You have to go into interface builder, remove the old referencing outlet, and re-link to the new IBOutlet. Same thing if you were to delete an outlet entirely you'd have to not only remove the code but also delete the reference to that outlet as well. I wish Xcode can register this change for you automatically as it would have saved me some simple headaches back when i first started.
Leslie Borrell
2,318 PointsLeslie Borrell
2,318 Pointsthanks, misha