/usr/include/objc/objc-class.h : no sush file or directory
Hi,
I'm trying to install sharekit 0.2.1gm1 in my xcode projet (xcode 4.0.1, ios sdk 4.3.3, os x 10.6.8) and I get this error when compiling:
/usr/include/objc/objc-class.h no sush file or directory
in SHK.m
Even the downloaded xcodeproject from sharekit web site does not compile, same error.
Don't get me to this link, I already try but none of the solutions provided works :-(
http://iphoneincubator.com/blog/open-source/sharekit
Any ideas?
Thx a lot
No one for helping me?
What a reactivity...;-)
I had the same problem, after moving to a new Mac and transferring my user from old to new Mac using a TIme Machine backup. After seeing the error, and seeing that the /usr/include/objc/objc-class.h file did not exist on my new Mac after the transfer, I searched the web and found the same page that you did: http://iphoneincubator.com/blog/open-source/sharekit Using the second option mentioned on that page: #import <objc/runtime.h> fixed the build error in SHK.m for me.
i do like this in the place of #import </usr/include/objc/objc-class.h> write #import <objc/message.h> #import <objc/runtime.h> it will be ok
this link will be useful to you http://stackoverflow.com/questions/8310512/iphone-sharekit-shk-m-giving-the-compiler-error-for-filenot-found
this link will really help u http://stackoverflow.com/a/8321023/1425248 ...it helped me
replace /usr/include/objc/objc-class.h
to
#import <objc/runtime.h> in SHK.m file
Linking any file outside the xcode is not a good idea