Search code examples
xcodexcode6react-native

RCT Linking Manager file not found


I want to use react native library RCTLinkingManager which shows up in menu under "Libraries > RCTLinkingManager.xcodeproj".

However when i add it to iOS/AppDelegate.m like so:

#import "RCTLinkingManager.h"

// @implementation ...

Build fails with 'RCTLinkingManager.h' file not found. I tried to clean the product and clean build with no luck.


Solution

  • You have to add $(SRCROOT)/../node_modules/react-native/Libraries/LinkingIOS to your "Header Search Paths" in the Build Config of your project. You can find more info on the official React documentation