SIGABRT runtime error in xcode 6.1 (Swift)

john lemer picture john lemer · Oct 24, 2014 · Viewed 15.2k times · Source

The only change that have been made to the code from the initial have been made in ViewControl.swift

override func viewDidLoad() {
    newMessage.hidden = true

    super.viewDidLoad()
    // Do any additional setup after loading the view, typically from a nib.
}

override func didReceiveMemoryWarning() {
    super.didReceiveMemoryWarning()
    // Dispose of any resources that can be recreated.
}


@IBOutlet weak var newMessage: UILabel!

@IBOutlet var newButton: UIButton!

@IBAction func newButtonAction(sender: UIButton) {
    newMessage.hidden = false
    }
}

yet I'm getting a SIGABRT error in AppDelegate.swift on

class AppDelegate: UIResponder, UIApplicationDelegate {

Is this an Xcode 6.1 error or is there something wrong with my code?

Answer

Hayley Guillou picture Hayley Guillou · Dec 19, 2014

There is most likely something fishy going on in you xib/storyboard. Check the connections to make sure all your IBOutlets and IBActions are connected correctly and that there aren't any connections left over from old, deleted or modified variables.

Other than that, it's hard to say without more information. Check out this and this for more help.