Problems after upgrading to Xcode 10: Build input file cannot be found

前端 未结 28 2234

I upgraded my Xcode SDK to version 10 last night and then find I cannot build.

I\'m getting this error:

Build input file cannot be found: \

28条回答
  •  广开言路
    2020-11-28 04:58

    I ran into this error after renaming a file. Somehow Xcode didn't correctly rename the actual file on disk.

    So it wasn't able to find the file. Sometimes the files gets highlights with a red text color. At other times the Swift icon in front of the file was getting a gray overlay.

    The fix was simple.

    • Look into the error and see exactly which file it's unable to find.
    • Select the file that can't be found.
    • Go to the 'File Inspector'. It's on Xcode's right navigation pane.
    • Click on the folder icon.
    • Select the correct file.
    • Clean build and run it again.

提交回复
热议问题