FBSDKCoreKit/FBSDKCoreKit.h not found error

后端 未结 27 2059
伪装坚强ぢ
伪装坚强ぢ 2020-12-04 11:07

I am implementing FB Login so i Downloaded the SDK from https://developers.facebook.com/docs/ios. then i drag n down FBSDKCoreKit, FBSDKLoginKit a

27条回答
  •  余生分开走
    2020-12-04 11:48

    Using CocoaPods, the only thing that worked for me was:

    1. Update Header Search Paths ( NOT Framework Search Paths ) under Build Settings in Xcode:

      - "\"${PODS_ROOT}/Headers/Public/Facebook-iOS-SDK\"",

      - "\"${PODS_ROOT}/Headers/Public/Facebook-iOS-SDK/FacebookSDK\"",

      + "\"${PODS_ROOT}/Headers/Public/FBSDKCoreKit\"",

      + "\"${PODS_ROOT}/Headers/Public/FBSDKCoreKit/FBSDKCoreKit\"",

    2. Add the missing header(s?):

      cd Pods/Headers/Public/FBSDKCoreKit/FBSDKCoreKit/ && ln -s ../../../../FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/FBSDKCoreKit+Internal.h FBSDKCoreKit+Internal.h

    Edit: point 2. needs apparently to be repeated after each following call to pod install.

提交回复
热议问题