How to make Xcode find file FacebookSDK.h?

前端 未结 17 2159
情歌与酒
情歌与酒 2020-12-02 20:23

It says \"FacebookSDK/FacebookSDK.h file not found\"

Yet I can jump-to-definition on the #import and it takes me to the file.

And once I added the #import i

17条回答
  •  不知归路
    2020-12-02 20:30

    You have to change the property "Framework search path" in your build settings, and specify where the file FacebookSDK.framework is located (you can then use the SRCROOT variable to point to the root of your project directory, and thus, avoid using absolute paths ;)) e.g. :

    $(SRCROOT)/SampleProject/src/Utils/Facebook/

    this is normally done automatically by Xcode when you import a third part framework, but it messes sometimes, (eg: when your modify your project directory tree...)

    Hope that helps...

提交回复
热议问题