Facebook iOS8 SDK build module error for FBSDKCoreKit

后端 未结 16 1640
生来不讨喜
生来不讨喜 2020-11-30 21:33

I am trying to add the Facebook SDK to my iOS 8 Objective-C app in Xcode. I did the install according to the FB-dev instructions. However, I get a \"Could not build

16条回答
  •  醉酒成梦
    2020-11-30 22:09

    If you are having issue with 'FBSDKCoreKit' You can try below solutions:

    1. Goto Build Setting and search for "allow non-modular" and Set

      "Allow Non-modular Includes in Framework modules" flag to YES

    enter image description here

    1. Go to Document/FacebookSDK folder

      then goto FBSDKCoreKit.framework

      In this folder Remove Modules folder. Then add the FacebookSDK library in your project.

    2. Set the Framework search path to "~/Documents/FacebookSDK"

      Steps to find Framework search Path

      Goto build setting of the project and search for "framework search path".

      Then add "~/Documents/FacebookSDK"

    enter image description here

    Edit:

    please open the Framework search path in Facebook app and copy paste all the paths mentioned over there in your application.Similar to the path i have attached in below screen shots

    enter image description here

    This will fix your problem

提交回复
热议问题