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

前端 未结 28 2116

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 05:07

    In my case, the file (and the directory) that XCode was mentioning was incorrect, and the issue started occurring after a Git merge with a relatively huge branch. To fix the same, I did the following steps:

    • Searched for the file in the directory system of XCode.
    • Found the errored file highlighted in red (i.e, it was missing).
    • Right clicked on the file and removed the file.
    • I tried building my code again, and voila, it was successful.

    I hope these steps help someone out.

    0 讨论(0)
  • 2020-11-28 05:08

    File>Project Settings>Change Build Systems to Legacy Build Systems

    0 讨论(0)
  • 2020-11-28 05:09

    Just check the path to .plist file in Build Settings of your target

    0 讨论(0)
  • 2020-11-28 05:09

    None of the above worked for me, but this did:

    1. Open project in Finder, right click on your .xcodeproj file and show package contents
    2. Open project.pbxproj in a text editor
    3. Find the reference to your missing file
    4. Edit path = "path/to/file.swift" to the actual location on disk and save the file.
    5. Rebuild the project
    0 讨论(0)
提交回复
热议问题