5

It returns 'FBSDKCoreKitImport.h' file not found compile error after update of FBSDK 11.2.0 in XCode. How can I fix this error?enter image description here

isuru
  • 3,385
  • 4
  • 27
  • 62

4 Answers4

3

@sasquach suggestion didn't work for me. There is this relevant GitHub issue on Facebook's SDK repo that you can keep an eye on.

Update 23-9-21: Version 11.2.1 seems to fixes the issue.

SteliosD
  • 66
  • 5
0

temporary solution:

podfile

pod 'FBSDKCoreKit', '~> 11.1.0'
pod 'FBSDKShareKit', '~> 11.1.0'
pod 'FBSDKLoginKit', '~> 11.1.0'

and make pod update in terminal

Eugene
  • 221
  • 3
  • 6
0

Got this error when building in Xcode after having updated FB iOS SDK to version 12.1.0 using pod update.

Replace #import FBSDKLoginKit with #import <FBSDKLoginKit/FBSDKLoginKit.h>, then Xcode > Product > Clean Build Folder and rebuild the project.

100grams
  • 3,502
  • 3
  • 30
  • 27
-1

If you're using CocoaPods:

Delete the Podfile.lock file, and update the podfile with current stable versions of FBSDKCoreKit and do pod install again.

https://cocoapods.org/pods/FBSDKCoreKit

saurabh
  • 6,687
  • 7
  • 42
  • 63
  • the current stable versions of the FB SDK introduced this issue, so updating does not help – Troy Sep 12 '21 at 08:02