Search code examples
iosxcodeswiftxcode6-beta6

After updating `Xcode 6` from `beta4` to `beta6`, my App crashes on button click action


I'm writing iOS swift project, today i updated Xcode 6 from beta4 to beta6. It compiles well, but when i press button, it prints "lol" in console and crashes. There is my code:

@IBOutlet var emailField : UITextField!

@IBAction func signInPressed () {
println("lol")
let email = emailField.text as NSString
println("lol")
}

Can you help me?


Solution

  • Clean your project and build again.