Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
avaiyakirtib opened this issue Jan 16, 2013 · 4 comments
Open

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

avaiyakirtib opened this issue Jan 16, 2013 · 4 comments

Comments

@avaiyakirtib
Copy link

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
Copy link
Author

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
Copy link

hckrhere commented Feb 4, 2013

same problem.

@danielsonchris
Copy link

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
Copy link
Author

But is it work for direct sharekit sdk?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants