如何在我的 iPhone 项目中导入 FBConnect 文件夹?
我正在构建一个 iPhone 应用程序,其中将包含 FBConnect 项目,以允许用户将应用程序中的数据发布到 Facebook 墙上。我现在在编译代码时遇到问题,因为项目无法找到我的 FBConnect 目录,这导致我出现大约 150 个编译错误。
在我的项目中,我将 Facebook sdk 放在名为“src”的目录中。我的项目的名称是“MyProjectFolder”,我已将“src”目录直接移动到“MyProjectFolder”目录中,这样它就成为“build”和“Classes”的同级文件夹。在 XCode 中,我进入“项目菜单”-> “编辑项目设置”并向下滚动到“用户标题搜索路径”并添加条目“../../src”。我也尝试将其更改为“../src”。
不幸的是,这两条路似乎都行不通。我做错了什么吗?如何将 Facebook sdk 项目文件夹包含在我的应用程序目录中,并在 XCode 中调用它?
I am building an iPhone app that will include the FBConnect project to allow users to post data from the app to their wall on Facebook. I'm having problems compiling my code right now because the project is unable to find my FBConnect directory, which is causing me to have about 150 compilation errors.
In my project, I have the Facebook sdk in a directory called, "src". The name of my project is "MyProjectFolder", and I have moved the "src" directory, directly inside the "MyProjectFolder" directory, such that it is a sibling folder to: "build", and "Classes". In XCode, I go to "Project Menu" -> "Edit project settings" and scroll down to “User Header Search Path” and add the entry, "../../src". I also tried changing this to "../src".
Unfortunately, neither path appears to be working. Am I doing something wrong? How do I include the Facebook sdk project folder inside my app directory, and call it in XCode?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我找到了解决我自己问题的方法。讽刺的是,这个问题已经在 www.stackoverflow.com 上得到了回答。它们可以在这里找到:
将 Facebook Connect 添加到我的 iPhone 项目
"FBConnect/FBConnect.h"没有此类文件或目录错误
按照上面的说明,我能够解决我自己的问题。
I found the solution to my own problem. Ironically, it was already answered on www.stackoverflow.com . They are found here:
Adding Facebook Connect to my iPhone Project
"FBConnect/FBConnect.h" no such file or directory error
By following the instructions found above, I was able to solve my own issues.