How to make Xcode find file FacebookSDK.h?

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

    None of all answers above worked for me.

    What finally did the trick for me was to change the structure of the plugin folder:

    1. Create folder: com.phonegap.plugins.facebookconnect/FacebookSDK

    2. Copy all content from: com.phonegap.plugins.facebookconnect/FacebookSDK.framework/Headers to com.phonegap.plugins.facebookconnect/FacebookSDK

    3. Copy com.phonegap.plugins.facebookconnect/Facebook.framework to com.phonegap.plugins.facebookconnect/FacebookSDK

    And finally, change

    #import 
    

    to

    #import "FacebookSDK/FacebookSDK.h"
    

提交回复
热议问题