Today, I upgraded to Xcode 10. The same project that was compiling earlier today with my Xcode 9.x now complains about nearly all of my initializers in Xcode 10.1.
I have tried cleaning the project and rebuilding, no luck. I have played around with the compiler optimization level, no luck.
The same code in a fresh Xcode 10 project compiles just fine. Other instances of the compiler error:
let b = UIButton() // throws "Cannot invoke initializer for type 'UIButton' with no arguments"
//1. Overloads for 'UIButton' exist with these partially matching parameter lists: (type: UIButtonType), (frame: CGRect), (coder: NSCoder), (with: UIColor), (with: ThemeColorPicker)
let l = UILabel() // throws "Cannot invoke initializer for type 'UILabel' with no arguments"
var safeAreaLayoutGuideBottom = UIView()// throws "Cannot invoke initializer for type 'UIView' with no arguments"