Xcode- 7: No such file or directory

后端 未结 10 584
你的背包
你的背包 2020-12-17 20:05

I keep trying to run my Xcode project (titled \"YidKit\") and it keeps giving me the following error: error: /Users/Dani/Library/Developer/Xcode/DerivedData/YidKit-ex

相关标签:
10条回答
  • 2020-12-17 20:29

    I'm sure you've figured out a workaround by now but for those still running into this problem the error is occurring because Xcode is trying to access a file for your project, but it can no longer find it. In your case the file it can't find is YidKitTests.xctest, so what you can do is click on it in the Project Navigator, then on the right in the File Inspector, click on the little folder icon under Location. When you click on the folder a Finder window will open up and its your job to navigate to where the YidKitTests.xctest file should be and double click on it. More often than not the file is in the exact place Xcode says it isn't, eg. /Users/Dani/Library/Developer/Xcode/DerivedData/YidKit-exnbjyxkgkbeaedoznkmtoenfijq/Build/Products/Debug-iphoneos/YidKitTests.xctest, but for some reason it can't see it without you pointing it out. I hope this helps!

    0 讨论(0)
  • 2020-12-17 20:32

    TARGETS --> Build Phases --> search file --> delete redundant .m

    0 讨论(0)
  • 2020-12-17 20:37

    do following two things I might solve your problem.

    1. Product -> Clean and build folder
    2. Go to finder -> library -> Developer -> Xcode -> Derived data delete that folder

    or check screen shot may be this is your problem enter image description here

    and then check

    0 讨论(0)
  • 2020-12-17 20:38

    Go to project, target, build phase

    1. remove the files causing problem (click - below)
    2. add the files again (File -> Add Files to Project)
    3. clean then run
    0 讨论(0)
  • 2020-12-17 20:39

    Just delete the "Derived Data" folder and compile the project again.

    0 讨论(0)
  • 2020-12-17 20:41

    You should try to edit option in folder to show more you looking then you will see some error file inside after you find it delete it! Hope this help.

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