ideashower / ShareKit

Drop in sharing features for all iPhone and iPad apps
http://getsharekit.com
1.79k stars 377 forks source link

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

Open avaiyakirtib opened 11 years ago

avaiyakirtib commented 11 years ago

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 commented 11 years ago

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>

hckrhere commented 11 years ago

same problem.

danielsonchris commented 11 years ago

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

avaiyakirtib commented 11 years ago

But is it work for direct sharekit sdk?