Fatal error: unexpectedly found nil while unwrapping an Optional value

The program is building successfully, but when it goes into the simulation, it crashes, and the fatal error message is logged to console.

The line that triggers the error is:
tableView.register(UITableViewCell.self, forCellReuseIdentifier: “Cell”)

I’ve redone the code 4 times, and always get this error. Any ideas?

It looks like the @IBOutlet for tableView was not set in the storyboard. This is why that property is nil.

Thanks. That was certainly the case. Lessons in working slow and paying attention to what you’re doing…