xcode 6.1 (Swift) 中的 SIGABRT 运行时错误 [英] SIGABRT runtime error in xcode 6.1 (Swift)

查看:23
本文介绍了xcode 6.1 (Swift) 中的 SIGABRT 运行时错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

对代码所做的唯一更改是在 ViewControl.swift

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
    }
}

但是我在 AppDelegate.swift 上遇到了 SIGABRT 错误

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

class AppDelegate: UIResponder, UIApplicationDelegate {

这是 Xcode 6.1 错误还是我的代码有问题?

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

推荐答案

似乎 Xcode 不会在异常点中断 - 查看错误控制台以获取更多信息.查看照片以了解要选择哪个窗口(右侧的蓝色图标).

Seems like Xcode doesn't break at the exception point - look into the error console for more information. See photo to see which window to select (it's the blue icon on the right).

这篇关于xcode 6.1 (Swift) 中的 SIGABRT 运行时错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆