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

App crashes and get a green Thread 1: breakpoint 1.4 message

i'm at the 'Refactoring Into a Model' part of 'Build a simple iOS app' course and despite having everything the same as on the screen, when i try to run the app it crashes and comes up with a green bar over the 'let factBook = FactBook()' line with the message 'Thread 1: breakpoint 1.4'

What is this? How do i correct it?

Thanks

2 Answers

I received a similar error after attempting to rename the button while trying to connect it to the view controller in Interface Builder. Essentially, I named the button twice and it was causing the program to fail. Try to right-click (control-click, for mac) the button and the labels in interface builder, and make sure you only have one connection made, and that the name matches the one assigned in the view controller.

Note - It always helps to include the code, even if you think it's the same. Reference the Markdown Cheatsheet to see how to do this properly.