iPhone - ShareKit 、 SHK.m 给出 FileNot Found 的编译器错误
我在使用 ShareKit Integrated 编译我的 iphone 项目时遇到了这个问题。我正在研究这个问题,到目前为止一切都工作正常,突然之间它给了我错误。在 SHK.m 文件中,
#import </usr/include/objc/objc-class.h> file not found
我想我不小心更改了某些内容或删除了任何文件。不明白发生了什么错误。有人可以帮我解决这个问题吗?
注意:(我没有更改我的 Xcode,也没有更改项目位置或其他任何内容)
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 )
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
问题出在线路上,
它必须是
The problem is with the line
It has to be
你使用的是 xcode 4.3 吗?如果是,则只需将
其替换为
#import
Are you using xcode 4.3? if yes then just replace
this with
#import <objc/runtime.h>
是的,新的 #import 确实解决了问题,但给出了新的错误
Yes new #import does solve the problem but give new error
是的,新的#import确实解决了问题,但给出了新错误
clang:错误:链接器命令失败,退出代码1(使用-v查看调用)
Yes new #import does solve the problem but give new error
clang: error: linker command failed with exit code 1 (use -v to see invocation)
导入
#import < objc/message.h >
#导入< objc/runtime.h >
代替导入
< /usr/include/objc/objc-class.h>
并将部署目标更改为 7.0,它对我有用。
Import
#import < Objc/message.h >
#import < objc/runtime.h >
Imstead OF
import < /usr/include/objc/objc-class.h>
And Change the Deployment Target to 7.0 and It has worked for Me.