ShareKit icon indicating copy to clipboard operation
ShareKit copied to clipboard

/usr/include/objc/objc-class.h file not found

Open avaiyakirtib opened this issue 12 years ago • 4 comments

I am using sharekit in ios, but after adding all the class in my project i encounter the error like /usr/include/objc/objc-class.h file not found,

I dont know why this comes, i already check all the sharkit classes but after adding all the classes still the same error comes, Please show some solution Thank you

avaiyakirtib avatar Jan 16 '13 10:01 avaiyakirtib

If you get 12 compiler errors when building for a device, starting with:

ShareKit/Core/SHK.m:35:28: error: objc/objc-class.h: No such file or directory Then the solution is to change this import statement in SHK.m:

view plaincopy to clipboardprint? #import <objc/objc-class.h>
to:

view plaincopy to clipboardprint? #import </usr/include/objc/objc-class.h>
or:

view plaincopy to clipboardprint? #import <objc/runtime.h>

avaiyakirtib avatar Jan 16 '13 10:01 avaiyakirtib

same problem.

hckrhere avatar Feb 04 '13 08:02 hckrhere

The simple fix for now is to open up the SHK.h file and change the line that reads:

#import </usr/include/objc/objc-class.h>

TO:

#import <objc/runtime.h>

That fixes it up.

Kind Regards, Chris

danielsonchris avatar Mar 03 '13 05:03 danielsonchris

But is it work for direct sharekit sdk?

avaiyakirtib avatar Mar 21 '13 10:03 avaiyakirtib