regarding - Xcode error-> Clang: error: no input files

后端 未结 9 2101
你的背包
你的背包 2020-12-25 12:52

I am totally new to the Xcode and getting the error below:

clang: error: no such file or directory: \'/usersd/chairman/desktop/MySecondTabApp/MySeco

相关标签:
9条回答
  • 2020-12-25 13:17

    Select your project and go to Build Phases and search go through whole list under "Compile Sources". If some files are red then delete those files by pressing - button at the bottom. Also make sure these files are in the list without red color.

    0 讨论(0)
  • 2020-12-25 13:19

    please go to Prefix header file

    Target> Build Settings > Prefix Header. then copy paste this line & change Your Project name

    $(SRCROOT)/Your_Project_name-Prefix.pch

    Its working you 100% gurantee.

    0 讨论(0)
  • 2020-12-25 13:20

    Comment Quoted from another site was the issue is resolved for me

    hmm that's strange. Try this - click on the name of your project on the list of files/folders on the left in Xcode (at the very top of the list). Look at the "Targets" section on the left-hand side of the window to the right. Likely, there's two listed with the second being a "test" item. Right-click on that item and select "delete". Then try to run the project again. See screenshot below for a visual cue.

    enter image description here

    0 讨论(0)
提交回复
热议问题