I want to use react native library RCTLinkingManager
which shows up in menu under \"Libraries > RCTLinkingManager.xcodeproj\".
However when i add it to
I had a similar issue only when I've done the archive/release version... that happen because the import was made under the #if DEBUG
. So make sure you put the import in the proper place otherwise you can get Use of undeclared identifier 'RCTLinkingManager' error
If you are using React Native and the command line, Sébastien's modification proposal is to be made to ios/<yourproject>.xcodeproj/project.pbxproj
by adding
"$(SRCROOT)/../node_modules/react-native/Libraries/LinkingIOS",
to the HEADER_SEARCH_PATHS
lists (4 locations)
Anyone who is facing this issue for a react-native archive for ios platform just place
#import <React/RCTLinkingManager.h>"
after the first line
"#import "AppDelegate.h"" in the AppDelegate.m file.
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.
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