react-native-audio-streaming icon indicating copy to clipboard operation
react-native-audio-streaming copied to clipboard

Error 'React/RCTDefines.h' file not found in iOS

Open leenasn opened this issue 6 years ago • 3 comments

I am trying to integrate this into my app which is built on detached expo kit. I followed the instructions for CocoaPods as given in the README. Can anyone help me to fix the issue?

Thanks, Leena

leenasn avatar Sep 01 '17 16:09 leenasn

I have the same problem, did you find a fix yet?

stefvw93 avatar Sep 07 '17 12:09 stefvw93

I have this issue too. It is caused by Breaking change in React Native v0.40.0 (and now, 8 months later v0.48.0 is out). You can resolve it by following these instructions from these paragraph of React Native v0.40.0 release notes:

Breaking Changes

iOS native headers moved

This change affects all native modules and application code on iOS that refer to react native .h files
After e1577df, Native code on iOS must refer to headers out of the react namespace. Previously the following would work:

#import "RCTUtils.h"
But now all headers have been moved:

#import <React/RCTUtils.h>
This means that all iOS native libraries need a major version bump for RN 0.40. We attempt to minimize changes of this magnitude, and we apologize for any inconvenience caused.


SoHotSoup avatar Sep 14 '17 13:09 SoHotSoup

#114 should fix the issue

kledk avatar Sep 19 '17 06:09 kledk