将FacebookSDK.framework添加到我自己的静态库中 [英] Adding FacebookSDK.framework into my own Static library
问题描述
我正在创建一个静态库,我将用于我正在开发的多个项目。我将静态库构建为.framework文件,并将拖放到其他项目中使用。工作正常现在我在框架中增加了一些功能。我将FacebookSDK.framework添加到静态库以进行登录,但是当我将框架拖到另一个项目并构建它时,会引发错误。
I am creating a static library which i will be using for more than one projects, which i am developing. I will build the static library as .framework file and will drag and drop to use in other projects. It is working fine. Now i am adding some more functionalities to the framework. I am adding FacebookSDK.framework to the static library for log in purpose, but when i drag the framework to another project and build it, it throws an error.
"FacebookSDK/FacebookSDK.h" file not found.
请帮忙!
推荐答案
您应该将导入语句更改为
You should change your import statement to
#import "FacebookSDK.h"
并将FacebookSDK.framework添加到使用静态库的项目中。
And add FacebookSDK.framework to the project which USES your static library.
如果你想建立自己的静态库的FacebookSDK.framework INTO。您应该打开FacebookSDK.framework,并找到所有的.h和一个名为FacebookSDK的文件,并将这些文件添加到静态库项目中。
If you want to build FacebookSDK.framework INTO your own static library. You should open FacebookSDK.framework and find all the .h and a file named FacebookSDK, and add these files into your static library project.
这篇关于将FacebookSDK.framework添加到我自己的静态库中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!