tlenclos / react-native-audio-streaming

iOS & Android react native module to play an audio stream, with background support and media controls
MIT License
781 stars 255 forks source link

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

Open leenasn opened 6 years ago

leenasn commented 6 years ago

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

stefvw93 commented 6 years ago

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

SoHotSoup commented 6 years ago

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.
kledk commented 6 years ago

114 should fix the issue