Codable ‘has no initializers’ in Xcode 9.3 (Swift 4.1)

As mentioned in the comments, I had to do two things:

  1. changing Compilation Mode to Whole Module inside Project settings/Build Settings:

    Compilation Mode set to Whole Module

  2. reordering the files under Project settings/Build Phases/Compile Sources. Specifically, I brought the files that had an error to the front of the list.

    Protip: if you search for the name of the file and there is more than one result, dragging the file to the top in that smaller list will still bring it to the front.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)