Table of contents

Objective C Error 'RCTLinkingManager.h' file not found

React Native Apr 08, 2020 Viewed 443 Comments 0

Question

Upgrade React Native to 0.61.5 and import header files on iOS.

#import "RCTLinkingManager.h"

Xcode reports an error 'RCTLinkingManager.h' file not found .

Solution

There are 2 ways to fix this error.

1. Modify header file references

1. Change the header file

// #import "RCTLinkingManager.h"
#import <React/RCTLinkingManager.h>

2. Add "Header Search Paths"

PROJECT -> Build Settings -> Search Path -> Header Search Paths,Add $(SRCROOT)/../node_modules/react-native/Libraries/LinkingIOS

Xcode add $(SRCROOT)/../node_modules/react-native/Libraries/LinkingIOS

Updated Apr 08, 2020