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![](https://ecs-static.teamtreehouse.com/assets/views/marketing/shared/community-banner-white-47072046c51352fe6a69f5e691ff5700b28bb11d45197d7bdf066d9ea3f72d0c.webp)
![Matt Sikorski](https://secure.gravatar.com/avatar/29e8d3f7f4565eca0c3a43e965a440fc?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
Matt Sikorski
2,402 PointsWhen I click on the button my app crashes and goes to code "class AppDelegate: UIResponder, UIApplicationDelegate "
It goes to this line of code and has an error message that says Thread 1: signal SIGARBT"
3 Answers
![Jon Uland](https://secure.gravatar.com/avatar/3333af94940beaf22dbe41cbb9a77f16?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
Jon Uland
1,880 PointsHey Matt Sikorski I think I figured out what was wrong. When I went through the challenge, I accidentally added the function as an outlet first, and having duplicate roles for the same function was blowing everything up.
Here's how I fixed it:
Navigate to the "Connection Inspector" inside the Utilities pane (circle icon with an arrow in it). Look at your "Sent Events." If you notice you have two referencing the same function, that's probably your problem.
I don't know why the problem happens. Perhaps someone with more understanding and time could enlighten us. Thanks!
![Sam Chaudry](https://secure.gravatar.com/avatar/28ea3385ec92d9eeaf96d0ed82432ed3?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
Sam Chaudry
25,519 PointsCheck your outlets on your storyboard are all connected. An app can build fine but if it isn't connected then it can cause an error like this. Also check that your optionals are being unwrapped properly sometimes a nil value with a force unwrap with a bang can cause the app to stall out and crash.
![Sam Chaudry](https://secure.gravatar.com/avatar/28ea3385ec92d9eeaf96d0ed82432ed3?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
Sam Chaudry
25,519 PointsCheck your outlets on your storyboard are all connected. An app can build fine but if it isn't connected then it can cause an error like this. Also check that your optionals are being unwrapped properly sometimes a nil value with a force unwrap with a bang can cause the app to stall out and crash.