Swift EXC_BAD_INSTRUCTION (EXC_i386_INVOP) with Label
<p>I'm new to Swift so if this is a basic question don't burn me at the stake.
Before I start, I'd like to say I am running a virtual machine (hackintosh) on windows 10, using Mac OS X Sierra.</p>

<p>The project is a page-based application on Xcode 8.
Even without adding code at all, just label text w/o actions or outlets, and trying to run the code, gives me an error.</p>

<p>The code w/ the error:</p>

<pre><code>import UIKit

class DataViewController: UIViewController {
    @IBOutlet weak var dataLabel: UILabel!
    var dataObject: String = ""

    override func viewWillAppear(_ animated: Bool) {
        super.viewWillAppear(animated)
        self.dataLabel!.text = dataObject; // error here
    }
}
</code></pre>

<p><a href="https://i.stack.imgur.com/pN5yx.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/pN5yx.png" alt="enter image description here"></a></p>

<p>Been stuck on this and can't find much.</p>