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 Build a Simple iPhone App (iOS7) Creating a Data Collection Implementing an Array

Running 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
Patrick Donahue
9,523 Points

Are you sure the Predict button his hooked to and "IBAction" or any method?

It 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
Patrick Donahue
9,523 Points

Can you copy the exact error message if you are still getting it?

Error is Thread 1: signal SIGABRT Debugger reads: 25 ??? 0x00000001 0x0 + 1 ) libc++abi.dylib: terminating with uncaught exception of type NSException (lldb)

Patrick Donahue
Patrick Donahue
9,523 Points

OH 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

I 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
Patrick Donahue
9,523 Points

Can you show me the code that you have the break point at?

Thanks 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
Patrick Donahue
9,523 Points

Glad you fixed it!

What was the error?

I 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.