Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

clang: error: no such file or directory

Tags:

xcode

Added JSONKit to an Xcode project and am getting this error:

clang: error: no such file or directory: '/Users/snowcrash/Downloads/ILGeoNames-develop/SampleApp/../JSONKit/JSONKit.m' 
clang: error: no input files 
Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang failed with exit code 1

However, the JSONKit files do appear to be there. E.g.

enter image description here

How do I figure out the problem (and fix it!)?

like image 914
Snowcrash Avatar asked Nov 24 '12 11:11

Snowcrash


3 Answers

You need to check Compile resources in the Target Project

You will Find that

JSONKit

is in red color

just delete it and go

like image 69
M.Othman Avatar answered Nov 03 '22 12:11

M.Othman


you have to check 'copy files' when adding the group else they are left where they are and the path breaks when you move the project

like image 2
Daij-Djan Avatar answered Nov 03 '22 14:11

Daij-Djan


I tried re-adding files, but have no work. So, I find the .pbxproj file in .xcodeproj, delete rows include the file name, then rebuild, success!

like image 1
Scott Lee Avatar answered Nov 03 '22 14:11

Scott Lee