FBSDKCoreKit/FBSDKCoreKit.h file not found error react-native ios

Tony picture Tony · Feb 2, 2017 · Viewed 20.1k times · Source

Try to install Facebook SDK to react natiove IOS.

I have FBSDKCoreKit/FBSDKCoreKit.h file not found error and spent several hours trying to solve it with different solutions, but can't understand whats going wrong((

Any ideas?

react-native 0.40 react-native-fsdk 0.5.0 facebook sdk: 4.19.0

Answer

Bruno Lemos picture Bruno Lemos · Feb 4, 2017

EDIT: I recommend using CocoaPods so you don't need to download/update the sdk manually.


If you downloaded the sdk manually, try this:

  1. Open your ~/Documents/FacebookSDK folder;

  2. Check if it has these cloud icons right of the filenames:

screenshot.png

If so, macOS removed your files from your computer and uploaded them to iCloud! (thanks Apple)

  1. Click on all the cloud icons, it will download the files back.

That's it!


If this isn't your case, try these: