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
Aleya Adams
19,320 PointsIOS simulator won't run the Fun Facts app
When I hit run Xcode brings me to the debug navigator and i see this import UIKit
@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {
var window: UIWindow?
func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
// Override point for customization after application launch.
return true
}
with the class section highlighted saying "thread 1: signal SIGABRT"
4 Answers
Jacob Dobson
5,122 PointsThat was the problem! I deleted a button or label, had to start from scratch with them. Worked perfectly after that. After a bit of searching, this forum and google helped me resolve the issue. Thanks!
Steve Hunter
57,712 PointsThat error is being thrown from somewhere else. The debugger should produce more than that - can you post all the error messages?
This is most likely caused by the Storyboard not being linked properly. Did you create an Outlet or a button connection, then delete it and try again? That throws this error - it is easily fixed, though.
Steve.
Caleb Kleveter
Treehouse Moderator 37,862 PointsLook on the left side of the code, on the line were the error is; if there is a fat, blue arrow, right click it and select 'delete breakpoint'.
Jacob Dobson
5,122 PointsWha if there is a small, red arrow instead?
Steve Hunter
57,712 PointsSmall red arrows usually indicate that there's a syntax error in your code. Hover over it, or click on it, to see what the error is saying. That should give you some idea how to fix it!
Steve.
Jacob Dobson
5,122 PointsThere is nothing showing up when I hover, click, or right click. The only information given is all the way to the right where it says Thread 1: signal SIGABRT
Steve Hunter
57,712 PointsSorry, I misunderstood.
Have you checked your storyboard for orphan outlets? If you've done the drag/drop more than once or deleted a button, you may have left one behind that's not linking to code properly.
Steve.
Steve Hunter
57,712 PointsSteve Hunter
57,712 PointsGlad you got it sorted! A good dig about often leads you to the fix. I hadn't realised my first answer on this thread was 3 months ago!
Shout if you need a help with anything else. You can @ mention me if you want a speedy response!
Steve.