How to make Xcode find file FacebookSDK.h?

前端 未结 17 2171
情歌与酒
情歌与酒 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:50

    I got this problem today.

    It turns out I need to have my Framework search path in all three places:

    1) Project Build Settings
    2) App Target Build Settings
    3) UnitTests Target Build Settings
    

    My search path is:

    /Users/myusername/Documents/FacebookSDK
    

    After ensure that, the error disappeared for me.

提交回复
热议问题