FBSDKCoreKit/FBSDKCoreKit.h file not found

3.1k Views Asked by At

I don't seem to be able to find the libRCTFBSDK.a file:

enter image description here

So I get the error:

FBSDKCoreKit/FBSDKCoreKit.h file not found

I have most definitely added the frameworks to the frameworks folder, choosing not to copy if needed. And I have definitely added the file paths to framework search paths and it is the correct file path:

enter image description here

In the top image should librctFBSDK be in that list??

2

There are 2 best solutions below

0
On

I believe what solved it for me was upgrading react-native from 0.43 to 0.48

npm install -g react-native-git-upgrade
cd MyReactNativeApp
react-native-git-upgrade

This introduced other errors that I solved one by one.

Check your react-native version: react-native -v if it is quite low like 0.43 then I recommend upgrading it.

0
On

You should consider using the new upgrade tool based on Git. It makes upgrades easier by resolving most conflicts automatically. To use it:

- Go back to the old version of React Native
- Run "npm install -g react-native-git-upgrade"
- Run "react-native-git-upgrade"

See https://facebook.github.io/react-native/docs/upgrading.html