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
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!
TARGETS --> Build Phases --> search file --> delete redundant .m
do following two things I might solve your problem.
or check screen shot may be this is your problem
and then check
Go to project, target, build phase
Just delete the "Derived Data" folder and compile the project again.
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.