SIGABRT runtime error in xcode 6.1 (Swift)

The only change made to the code from the original was 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
    }
}

      

but i am getting error SIGABRT

in AppDelegate.swift on

class AppDelegate: UIResponder, UIApplicationDelegate {

      

Is this Xcode 6.1 a bug or is there something wrong with my code?

+3


source to share


2 answers


Most likely something fishy is going on in your xib / storyboard. Check your connections to make sure all yours IBOutlets

and IBActions

connections are correct and that there are no connections left from old, deleted or changed variables.



It is also difficult to say without additional information. Check out this and this for more help.

+2


source


Xcode doesn't seem to break at the point of exception - take a look at the error console for more information. See the photo to see which window to choose (it's the blue icon on the right).



enter image description here

+2


source







All Articles