How to make Xcode find file FacebookSDK.h?

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

    The only solution I found was:

    1. Remove the phonegap plugin: ionic plugin rm phonegap-facebook-plugin

    2. Clone the next plugin git clone: https://github.com/jeduan/cordova-plugin-facebook4.git

    3. Add the plugin manually: cordova -d plugin add PATH/cordova-plugin-facebook4 --variable APP_ID="*****" --variable APP_NAME="*****"

    Before this a tried to re add FacebookSDK.framework and installed the phonegap plugin facebook through a locally cloned, but the error continues.

提交回复
热议问题