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 Vending Machine App in Swift Using the Vending Machine Updating the Price

Huseyn Guliyev
Huseyn Guliyev
2,603 Points

An error is given when I try to run the app

Firstly, before i did any changes to the code and even knew about the problem, when i clicked the purchase button, my app suddenly crashed and i decided to look for the problem in my code. I thought that i didn't have any reference to the purchase button in my code and so created one. Then i found out that i actually did have that piece of code and reverted my code to the initial form. But even now, when i just want to run my app, the app crushes and xcode sends me to the page of the appDelegate where there is and error "Thread 1: SIGBRD". Please help!