Problems after upgrading to Xcode 10: Build input

2019-02-04 06:06发布

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: '/Users/call01/Library/Developer/Xcode/DerivedData/Comp-Lite-Apps-gytvmossqptokeafrddvvmnlzadk/Build/Products/Debug-iphoneos/SG11.app/SG11

which did not exist before my upgrade and I'm tempted to revert back but would like to stick with version 10 if I can resolve this issue.

标签: xcode upgrade
9条回答
地球回转人心会变
2楼-- · 2019-02-04 06:50

The above solution eventually works for me; however, I need to do some more extra steps to finally make it to compile successfully. (These extra steps were required even on Xcode 9.)

  1. Xcode: File -> Workspace Settings -> Build System: Legacy Build System
  2. Xcode: Product -> Clean
  3. Rotate to compile thru different emulator types, such as "iPhone 8", "iPhone 8 Plus", etc. (They might fail or might not.)
  4. Eventually compile on "Generic iOS Device"
查看更多
唯我独甜
3楼-- · 2019-02-04 06:53

open the right navigation pane where your project files exist OR JSUT click on cmd + 1 Then search for "Recovered References" Folder open it all red files (delete them) then everything will work so fine .

查看更多
\"骚年 ilove
4楼-- · 2019-02-04 06:56

Try to switch back to the Legacy Build System (File > Project Settings > Workspace Settings > Legacy Build System)

查看更多
淡お忘
5楼-- · 2019-02-04 06:58

For me In Xcode 10, This solutions worked like a charm. Just go to the Recovered References folder and remove all files in red color and add it again with proper reference.

enter image description here

查看更多
SAY GOODBYE
6楼-- · 2019-02-04 06:59

I fixed this issue this way: go to your project's Build Phases (click on project icon at the top, and then click on Build Phases). Search for your file there. If it's there (it'll be grayed out), delete it. Then clean (shift + alt + command + k), and run! Hope it helps.

查看更多
Root(大扎)
7楼-- · 2019-02-04 07:00
  1. Go to Xcode-> File -> Project Setting
  2. Change Build System:-"Legacy Build System".
  3. Clean,Build and hit Run.
查看更多
登录 后发表回答