找不到词法或预处理器问题“FacebookSDK/FacebookSDK.h"文件 [英] Lexical or Preprocessor Issue 'FacebookSDK/FacebookSDK.h' file not found

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

问题描述

我只是通过本文档在 ios 项目中添加 facebookSDK.framework :入门使用 iOS 版 Facebook SDK

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

我已经按照它成功构建并运行了我的 Xcode 项目.但是当我复制我的源代码并在另一台 PC 上运行它时会出现以下错误未找到词法或预处理器问题‘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.

推荐答案

我有一个非常相似的问题,但在我的例子中是 Amazon Web Services 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",在Search Paths"下有一个Framework Search Paths"项.双击它并添加一个新的搜索路径:. 并使其递归.清洁和构建.

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天全站免登陆