I am getting the following error when building in Xcode 10.0 with swift 4.2:
I tried going to Compile Sources
in the Build Phases
tab and deleting and re-adding the selected file (and cleaning and rebuilding)but it didn't work :( Instead, this following answer worked for me if you get the 'Build input file cannot be found' error message:
.mlmodel
) and I selected "Copy items if needed" under Destination.Cmd-shift-k
to clean and then Cmd-b
to build
and voila! The file was recognized and error gone!Hope this helps!