xcode 未找到 fbconnect include
当以下包含添加到我的项目中时,xcode 无法找到它:
import "FBConnect/FBConnect.h"
我已将 facebook src 目录添加到项目和目标设置中的标头包含路径和用户标头包含路径。
当我将包含更改为#import“FBConnect.h”时,找到了文件,但在构建时出现重复符号错误:ld:“重复符号_OBJC_IVAR_$_SBJSON.jsonParser in ...”
我不清楚为什么最初当所有源文件都在 src 目录下时,包含需要 FBConnect/,并且 xcode 或 facebook 的指示似乎有错误,因为该方法失败,
感谢您的帮助
when the following include is added to my project, xcode fails to find it:
import "FBConnect/FBConnect.h"
i have added the facebook src directory to the header include path and the user header include path in the project and target settings.
when i change the include to #import "FBConnect.h" the file is found, but i get a duplicate symbol error when building: ld: "duplicate symbol _OBJC_IVAR_$_SBJSON.jsonParser in ..."
i am unclear on why the initial FBConnect/ is needed for the include, when all the source files are under the src directory, and either xcode or facebook's directions seem to be faulty, as that approach fails
thanks for your help
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Facebook API 或多或少地说:
我这样解决:删除文件夹 src xcode 项目并询问“仅删除引用”或删除。
选择删除引用,编译没有问题。
只有您的项目中有 FBConnect 文件夹。 ;) 运气
Facebook API more or less say:
I solve it like this: delete the folder src xcode project and asks "Remove References only" or delete.
Choose remove references, compile without problems.
Only you have the FBConnect folder in your project. ;) luck