Search code examples
iosxcodefacebookreact-nativefbsdk

FBSDKCore can't find RCTBridgeModule.h


In my project I am having a problem with the fbsdk. Upon linking the fbsdkcore to my project in xcode using the rnpm as shown here: https://facebook.github.io/react-native/docs/linking-libraries-ios.html

My build now fails due to my RCTFBSDKCore cannot find the RCTBridgeModule.h, even though I think I have gone through all the neccessary steps to include this, even in the Header Search in build settings as shown below:

Linking Binary w/ Lib: enter image description here

And the Header Search:

enter image description here

After this I am quite lost. I have also tried to update all of my packages without success. And as one can see in the picture below, I have two fbsdkcore, is this one too many, because it is only when I try to build the RCTFBSDKCore that it fails, it is successfull in the other case.

enter image description here

Ok, so to my question. Could it be that the library should not be included like that in the first place? If not, what have I done wrong/missed?


Solution

  • rnpm does not support linking multiple libraries at the moment. Check this article for setting up RN & fbsdk.