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
John Marley
8,740 PointsDevelop iPhone App with Swift App Crash
I have completed the swift courses up until the one where you begin to make a simple iPhone app.
I follow the tutorials, adding a label and a button and using the button to change the label text. Whenever I run the app however I get an error:
"libc++abi.dylib: terminating with uncaught exception of type NSException"
Obviously I don't understand what this means and have no idea why it isn't working, as far as I can tell I am doing exactly what I am told by the tutorial.
Thanks :D
1 Answer
Steve Hunter
57,712 PointsDifficult to say, but my first guess would be that you've got an orphan connection. Did you connect a button, then delete it, then add a button again?
Go to your main storyboard - at the top-right click the little arrow surrounded by a circle. That lists all the connections you have between your buttons and the code. You may have more links than are necessary?
Hope that helps!
Steve.
John Marley
8,740 PointsJohn Marley
8,740 PointsI worked out what it was, in creating an IBAction I forgot to set sender to none or something like that. Thank you for pointing out the circle-arrow though as I now know where and what this is.
Thank you for your help :)
John
Steve Hunter
57,712 PointsSteve Hunter
57,712 PointsGlad you got it sorted. :-)