react-native-media-meta icon indicating copy to clipboard operation
react-native-media-meta copied to clipboard

'React/RCTDefines.h' file not found

Open NirpE opened this issue 7 years ago • 2 comments

Getting following error when trying to build app with XCode:

'React/RCTDefines.h' file not found

On Android library works and compiles normally.

Any idea if this is fixable with my project itself?

NirpE avatar Sep 11 '18 06:09 NirpE

Please add this line of code in /node_modules/react-native/React/Base/RCTBridgeModule.h #if __has_include("RCTDefines.h") #import "RCTDefines.h" #else #import <React/RCTDefines.h> #endif For your reference - https://github.com/facebook/react-native/issues/26754

Seemapadiya avatar Feb 27 '20 19:02 Seemapadiya

Please add this line of code in /node_modules/react-native/React/Base/RCTBridgeModule.h #if __has_include("RCTDefines.h") #import "RCTDefines.h" #else #import <React/RCTDefines.h> #endif For your reference - facebook/react-native#26754

remove

#import <React/RCTDefines.h> from the file and replace it with the above code

matthewadel avatar Mar 26 '20 19:03 matthewadel