词汇或预处理程序发现“FacebookSDK / FacebookSDK.h”文件未找到 [英] Lexical or Preprocessor Issue 'FacebookSDK/FacebookSDK.h' file not found

查看:143
本文介绍了词汇或预处理程序发现“FacebookSDK / FacebookSDK.h”文件未找到的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我只需在ios项目中添加 facebookSDK.framework 入门指南与Facebook SDK for iOS

I just add facebookSDK.framework in ios project through this document :Getting Started with the Facebook SDK for iOS

我已经成功构建并运行我的Xcode项目。但是当我复制我的源代码并运行它在另一台电脑上出现错误即将到来
词汇或预处理器问题FacebookSDK / FacebookSDK.h文件未找到

I have successfully build and run my Xcode project by following it. But when I copy my Source code and run it on another PC following error is coming "Lexical or Preprocessor Issue 'FacebookSDK/FacebookSDK.h' file not found"

我还在我的项目资源中添加了 facebookSDK.framework ,然后再试一次但不能解决。

I was also add facebookSDK.framework in my Project's resource and try again but not solve it.

所以,请告诉我如何在其他地方运行此项目。

So, Please tell me how to do for run this project in other place.

推荐答案

我有一个非常类似的问题,但在我的情况下它是与亚马逊Web服务SDK而不是Facebook SDK。对我来说,问题与我的框架加载路径有关。

I have a very similar issue, but in my case it is with the Amazon Web Services SDK instead of the Facebook SDK. For me the problem turned out to be related to my framework load path.

解决方案:转到Xcode中的Build Settings 搜索路径中有一个框架搜索路径项。双击它并添加一个新的搜索路径:并使其递归。清理并构建。

Solution: Go to "Build Settings" in Xcode, and under "Search Paths" there is a "Framework Search Paths" item. Double-click it and add a new search path: . and make it recursive. Clean and build.

这假设您的框架存储在项目目录的某处。如果没有,请根据需要更改新的搜索路径。

This assumes that your framework is stored somewhere inside your project directory. If not, change the new search path as needed.

这篇关于词汇或预处理程序发现“FacebookSDK / FacebookSDK.h”文件未找到的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆