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

My app crash when i try to go to the second view

2015-03-31 17:13:59.229 Algorhythm[13646:864917] Unable to simultaneously satisfy constraints. Probably at least one of the constraints in the following list is one you don't want. Try this: (1) look at each constraint and try to figure out which you don't expect; (2) find the code that added the unwanted constraint or constraints and fix it. (Note: If you're seeing NSAutoresizingMaskLayoutConstraints that you don't understand, refer to the documentation for the UIView property translatesAutoresizingMaskIntoConstraints) ( "<NSLayoutConstraint:0x7f9d70c89080 UIImageView:0x7f9d70c6c810.width == 1.10345*UIImageView:0x7f9d70c6c810.height>", "<NSLayoutConstraint:0x7f9d70c60710 UIView:0x7f9d70c99060.width == 2.66667*UIView:0x7f9d70c99060.height + 80>", "<NSLayoutConstraint:0x7f9d70c85fb0 UIImageView:0x7f9d70c6c810.bottom == UIView:0x7f9d70c99060.bottom>", "<NSLayoutConstraint:0x7f9d70c886c0 H:|-(0)-[UIImageView:0x7f9d70c6c810] (Names: '|':UIView:0x7f9d70c65210 )>", "<NSLayoutConstraint:0x7f9d70c88710 H:[UIImageView:0x7f9d70c6c810]-(0)-| (Names: '|':UIView:0x7f9d70c65210 )>", "<NSLayoutConstraint:0x7f9d70c887f0 V:[_UILayoutGuide:0x7f9d70c4d790]-(0)-[UIImageView:0x7f9d70c6c810]>", "<NSLayoutConstraint:0x7f9d70c88840 V:[_UILayoutGuide:0x7f9d70c4d790]-(200)-[UIView:0x7f9d70c99060]>", "<NSLayoutConstraint:0x7f9d70c93e60 H:|-(0)-[UIView:0x7f9d70c99060] (Names: '|':UIView:0x7f9d70c65210 )>", "<NSLayoutConstraint:0x7f9d70c93eb0 H:[UIView:0x7f9d70c99060]-(0)-| (Names: '|':UIView:0x7f9d70c65210 )>", "<NSLayoutConstraint:0x7f9d70cb3eb0 'UIView-Encapsulated-Layout-Width' H:[UIView:0x7f9d70c65210(375)]>" )

Will attempt to recover by breaking constraint <NSLayoutConstraint:0x7f9d70c60710 UIView:0x7f9d70c99060.width == 2.66667*UIView:0x7f9d70c99060.height + 80>

Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger. The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in <UIKit/UIView.h> may also be helpful. 2015-03-31 17:14:01.085 Algorhythm[13646:864917] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Receiver (<Algorhythm.PlaylistMasterViewController: 0x7f9d70c4f600>) has no segue with identifier 'showPlaylistDetail'' *** First throw call stack: ( 0 CoreFoundation 0x000000010738da75 exceptionPreprocess + 165 1 libobjc.A.dylib 0x0000000108ee5bb7 objc_exception_throw + 45 2 UIKit 0x0000000107d4882b -[UIViewController shouldPerformSegueWithIdentifier:sender:] + 0 3 Algorhythm 0x000000010718a333 TFC10Algorhythm28PlaylistMasterViewController18showPlaylistDetailfS0_FPSs9AnyObject_T + 915 4 Algorhythm 0x000000010718a3b6 TToFC10Algorhythm28PlaylistMasterViewController18showPlaylistDetailfS0_FPSs9AnyObject_T + 54 5 UIKit 0x0000000107fd4c26 UIGestureRecognizerSendActions + 262 6 UIKit 0x0000000107fd38c9 -[UIGestureRecognizer _updateGestureWithEvent:buttonEvent:] + 532 7 UIKit 0x0000000107fd84e6 __UIGestureRecognizerUpdate_block_invoke662 + 51 8 UIKit 0x0000000107fd83e2 _UIGestureRecognizerRemoveObjectsFromArrayAndApplyBlocks + 254 9 UIKit 0x0000000107fce45d _UIGestureRecognizerUpdate + 2796 10 UIKit 0x0000000107c67856 -[UIWindow _sendGesturesForEvent:] + 1041 11 UIKit 0x0000000107c68483 -[UIWindow sendEvent:] + 667 12 UIKit 0x0000000107c34fb1 -[UIApplication sendEvent:] + 246 13 UIKit 0x0000000107c42227 _UIApplicationHandleEventFromQueueEvent + 17700 14 UIKit 0x0000000107c1d23c _UIApplicationHandleEventQueue + 2066 15 CoreFoundation 0x00000001072c2c91 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION + 17 16 CoreFoundation 0x00000001072b8b5d __CFRunLoopDoSources0 + 269 17 CoreFoundation 0x00000001072b8194 __CFRunLoopRun + 868 18 CoreFoundation 0x00000001072b7bc6 CFRunLoopRunSpecific + 470 19 GraphicsServices 0x000000010b496a58 GSEventRunModal + 161 20 UIKit 0x0000000107c20580 UIApplicationMain + 1282 21 Algorhythm 0x000000010719314e top_level_code + 78 22 Algorhythm 0x000000010719318a main + 42 23 libdyld.dylib 0x00000001096c1145 start + 1 ) libc++abi.dylib: terminating with uncaught exception of type NSException (lldb)

1 Answer

Try checking your constraints on the second view and seeing if there are any constraints that conflict or don't line up.