ShareKit
ShareKit copied to clipboard
/usr/include/objc/objc-class.h file not found
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
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>
same problem.
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
But is it work for direct sharekit sdk?