ShareKit icon indicating copy to clipboard operation
ShareKit copied to clipboard

/usr/include/objc/objc-class.h : no sush file or directory

Open iMacX opened this issue 14 years ago • 6 comments

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

iMacX avatar Jul 25 '11 20:07 iMacX

No one for helping me?

What a reactivity...;-)

iMacX avatar Jul 28 '11 09:07 iMacX

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.

dovinci avatar Aug 21 '11 12:08 dovinci

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

sajala avatar Apr 24 '12 07:04 sajala

this link will be useful to you http://stackoverflow.com/questions/8310512/iphone-sharekit-shk-m-giving-the-compiler-error-for-filenot-found

sajala avatar Apr 24 '12 07:04 sajala

this link will really help u http://stackoverflow.com/a/8321023/1425248 ...it helped me

priyadas avatar Jun 22 '12 06:06 priyadas

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

AlgorithmicThoughts avatar Jun 25 '12 07:06 AlgorithmicThoughts