I am getting the following error when building in Xcode 10.0 with swift 4.2:
I had the same problem with a missing view controller file that couldn't be found after cloning a project in a new folder. I deleted the view controller but the compiler continue asking for a file in a path that doesn't exist anymore.
I solved the problem as follows:
It should work now :D
(Objective-C Project / Xcode Version 10.2.1 (10E1001))