How to make Xcode find file FacebookSDK.h?

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

    First, you have to remove your FacebookSDK.framework from your Project. Then start over again with these 5 steps. DO NOT re-link the framework.

    1. Go to Build Phases in your Project Target.
    2. In Link Binary With Libraries, click the "+" button.
    3. Click on "Add Other..." button
    4. Browse your FacebookSDK folder. Generally in ~/Documents/FacebookSDK/
    5. Clik on (select) "facebookSDK.framework" and then OPEN.

    That's it.

提交回复
热议问题