Xcode/compiler complains "extra argument" in valid syntax it suggested!

Hi all.


This looks like a compiler bug of some kind, which has halted my progress. I'm trying to instantiate a view controller from a storyboard, using syntax that Xcode's auto-completion suggested and that is perfectly valid. But it is complaining that it has an extra argument. I've deleted the build-products directory, rebooted, checked the file for invisible characters... WTH?


Anybody see this kind of thing before? Note the double-flagging, including a line that doesn't even have instructions on it.


https://i.imgur.com/BrdHHZj.png

Replies

Seems the same issue with this SO thread.

https://stackoverflow.com/q/56212659/6541007