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
Lana Wong
3,968 PointsMy code is not working for Xcode. Did I do something?
I copied everything on a course in Swift 2.0: Build A Simple iPhone app, but when I ran the code on simulator, Xcode took me to AppDelegate.Swift.
One part was highlighted in red
class AppDelegate: UIResponder, UIApplicationDelegate {
It said: Thread 1: signal SIGABRT
What does this mean? I would really appreciate it if someone helps. Thanks.
Lana
2 Answers
jc laurent
6,351 Pointscould you post your code pls
jc laurent
6,351 Pointscheck in connections inspector, if all the @IB in the view controller are connected and only once to their pair's main story board.
Lana Wong
3,968 PointsLana Wong
3,968 PointsMy code:
import UIKit
class ViewController: UIViewController {
}
Lana Wong
3,968 PointsLana Wong
3,968 Points// // AppDelegate.swift // FunFacts // // Created by Wong on 10/21/16. // Copyright © 2016 Wong. All rights reserved. //
import UIKit
@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {
}
The part that is highlighted is:
It comments
Thread 1: breakpoint 1.3.
What does that even mean? This problem prevents the code to run through simulator.
Thank you so much for helping. I have been stuck with this problem for a few days.
I really appreciate it.
Lana