Charlie Reese

Software. Finance. Entrepreneurship.

Debugging Swift Errors

Oct 31, 2018 | 1 minute read

Below is an evolving list of Swift error messages and their solutions.

As I learn more Swift, and debug more iOS applications, I plan to add to this list!


  1. ERROR: Class 'ViewController' has no initializers
    • LIKELY CAUSE: A variable exists in the class 'ViewController' that hasn't been assigned a default value. In swift, all instantiated variables must have a default value; this value can be set by the init() method, or inline in the class declaration
    • SOLUTION: Assign a default value to the variable

Like this article?

Subscribe for more like it!