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

前端 未结 28 2209

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:48

    I had a similar issue after upgrading to a new swift version recently. Moving files around caused my xcode project to reference items that were no longer in the project directory giving me the Error Code Build Input File Not Found.

    In my situation I somehow had multiple files/images that were being referenced as described below:

    In the image above.

    • Navigate to your Targets page.
    • Then Click on the Build Phases tab on the top.
    • Scroll Down to Copy Bundle Resources
    • Find the affected files and remove them. (hit delete on them or select them and hit the minus button )

    It was in here that I somehow had multiple files and images that were being referenced from other folders and the build would fail as they could no longer find them. And I could not find them either! or how Xcode was still referencing them

    I hope this helps someone else !

提交回复
热议问题