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 trialChristine Rose
6,745 PointsAlgorhythm App Crashing (???)
I've followed the video step-by-step, but my simulator is crashing at the Launch Screen. I haven't been able to test my segue action at all.
It builds quickly, but then it either gets stuck on the black screen for several minutes before I get a "lost connection" error message, or it crashes at the Launch Screen.
These are the errors in one of the several sections of errors:
2015-04-04 15:47:47.924 Algorhythm[14365:3110741] -[UIView setTitle:forState:]: unrecognized selector sent to instance 0x7f9deb4b3730 2015-04-04 15:47:47.979 Algorhythm[14365:3110741] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[UIView setTitle:forState:]: unrecognized selector sent to instance 0x7f9deb4b3730' *** First throw call stack: ( 0 CoreFoundation 0x000000010520da75 exceptionPreprocess + 165 1 libobjc.A.dylib 0x0000000106d65bb7 objc_exception_throw + 45 2 CoreFoundation 0x0000000105214d1d -[NSObject(NSObject) doesNotRecognizeSelector:] + 205 3 CoreFoundation 0x000000010516c9dc ___forwarding_ + 988 4 CoreFoundation 0x000000010516c578 CF_forwarding_prep_0 + 120 5 Algorhythm 0x000000010502c6d9 _TFC10Algorhythm28PlaylistMasterViewController11viewDidLoadfS0_FT_T + 1129 6 Algorhythm 0x000000010502c772 TToFC10Algorhythm28PlaylistMasterViewController11viewDidLoadfS0_FT_T + 34 7 UIKit 0x0000000105bc6580 -[UIViewController loadViewIfRequired] + 738 8 UIKit 0x0000000105bc677e -[UIViewController view] + 27 9 UIKit 0x0000000105ae5509 -[UIWindow addRootViewControllerViewIfPossible] + 58 10 UIKit 0x0000000105ae58a1 -[UIWindow setHidden:forced:] + 247 11 UIKit 0x0000000105af1f8c -[UIWindow makeKeyAndVisible] + 42 12 UIKit 0x0000000105a9c0c2 -[UIApplication _callInitializationDelegatesForMainScene:transitionContext:] + 2732 13 UIKit 0x0000000105a9ee3e -[UIApplication _runWithMainScene:transitionContext:completion:] + 1349 14 UIKit 0x0000000105a9dd35 -[UIApplication workspaceDidEndTransaction:] + 179 15 FrontBoardServices 0x0000000108917243 __31-[FBSSerialQueue performAsync:]_block_invoke + 16 16 CoreFoundation 0x0000000105142c7c __CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK_ + 12 17 CoreFoundation 0x00000001051389c5 __CFRunLoopDoBlocks + 341 18 CoreFoundation 0x0000000105138785 __CFRunLoopRun + 2389 19 CoreFoundation 0x0000000105137bc6 CFRunLoopRunSpecific + 470 20 UIKit 0x0000000105a9d7a2 -[UIApplication _run] + 413 21 UIKit 0x0000000105aa0580 UIApplicationMain + 1282 22 Algorhythm 0x000000010502dbce top_level_code + 78 23 Algorhythm 0x000000010502dc0a main + 42 24 libdyld.dylib 0x0000000107541145 start + 1 ) libc++abi.dylib: terminating with uncaught exception of type NSException (lldb)
Christine Rose
6,745 PointsChristine Rose
6,745 PointsI put in a breakpoint because it doesn't seem to like this line:
aButton.setTitle("Press Me!", forState: .Normal)
It's complaining about the forState ... and that isn't turning a color, like Xcode doesn't recognize it as an attribute. Nothing pops up when I try to retype it as a suggestion, so I'm guessing that's the problem; however, I typed it exactly as he did in the video. I'm at a loss. . .