Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 563
AJcodez Avatar asked Aug 06 '15 16:08

AJcodez


2 Answers

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

like image 52
Sébastien Saunier Avatar answered Sep 21 '22 04:09

Sébastien Saunier


Kindly make sure that you place the

#import <React/RCTLinkingManager.h> 

in the Appdelegate.m file above the

#ifdef FB_SONARKIT_ENABLED 

it worked for us.

like image 26
Malik Mussabeheen Noor Avatar answered Sep 21 '22 04:09

Malik Mussabeheen Noor