Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iPhone - ShareKit , SHK.m giving the compiler error for FileNot Found

I am facing the issue while compiling my iphone project with ShareKit Integrated .I was working on that , everything was working fine till now , all of a sudden now its giving me the error. In SHK.m file ,

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

I guess I have accidentally changed something or deleted any file . Not getting what has happened wrong. Can anybody help me with this issue ??

Note : ( I have not changed my Xcode , nor the project location or anything )

like image 675
Bharat Jagtap Avatar asked Nov 29 '11 12:11

Bharat Jagtap


2 Answers

The problem is with the line

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

It has to be

        #import <objc/message.h> 
        #import <objc/runtime.h>
like image 152
Bharat Jagtap Avatar answered Oct 25 '22 22:10

Bharat Jagtap


Are you using xcode 4.3? if yes then just replace

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

this with #import <objc/runtime.h>

like image 40
Saiful Avatar answered Oct 25 '22 23:10

Saiful