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 trialDavid Snow
Courses Plus Student 1,011 PointsRunning code in tutorial receive error
I was trying to run the code that was demoed in the tutorial and when I pressed the Predict button I received error Thread 1: signal SIGABRT I have tried to track down the error but I am unsure how to.
8 Answers
Patrick Donahue
9,523 PointsAre you sure the Predict button his hooked to and "IBAction" or any method?
David Snow
Courses Plus Student 1,011 PointsIt should be when i initially set it up it gave me the answer like it did in the tutorial. I don't believe I did anything to break the connection. I am going back through the tutorial to see if I in fact did break something.
Patrick Donahue
9,523 PointsCan you copy the exact error message if you are still getting it?
David Snow
Courses Plus Student 1,011 PointsError is Thread 1: signal SIGABRT Debugger reads: 25 ??? 0x00000001 0x0 + 1 ) libc++abi.dylib: terminating with uncaught exception of type NSException (lldb)
Patrick Donahue
9,523 PointsOH that is a new one. Did you create an exception break point in Xcode? On the left side of the window over the directory there is a breakpoint icon Click that on the bottom click the "+" button Add Exception Break point
Then run the app again and it should give you the line of code that is broken.
See if that helps
David Snow
Courses Plus Student 1,011 PointsI set the breakpoint at the spot I am receiving the weird error and it is not even working. My best bet is probably to start from scratch and hope I don't run into the same error.
Patrick Donahue
9,523 PointsCan you show me the code that you have the break point at?
David Snow
Courses Plus Student 1,011 PointsThanks for the help Patrick but i have it working now by going through the tutorials again. Only had to go through about 3.
Patrick Donahue
9,523 PointsGlad you fixed it!
What was the error?
David Snow
Courses Plus Student 1,011 PointsI started over from scratch and followed the tutorials. I just compared my new code to the old code and I cannot find the error. I take finding errors in my code to be an adventure in learning but in this case I'll just press on with my newly working code. Thanks again.
Patrick Donahue
9,523 PointsNo problem - good luck!