flurry / react-native-flurry-sdk

React Native Flurry SDK
Apache License 2.0
45 stars 13 forks source link

React/RCTDefines.h file not found #2

Closed nickhabets closed 5 years ago

nickhabets commented 5 years ago

Hello,

I am trying to add this library on my project for two days and it is always getting failed. I am using react-native: 0.57.1 and react-native-cli: 2.0.1 Please check about the screenshot below.

Regards, Dima

screen shot 2018-12-10 at 11 42 51 am

xnth97 commented 5 years ago

Hi Dima,

Sorry to hear that you are having issues with Flurry. Unfortunately we are unable to reproduce the issue using react-native 0.57.1 and react-native-cli 2.0.1. Could you please share more information, like did you use CocoaPods for React?

In addition, you may want to try the following:

  1. Check if React path is correctly included in the Header Search Paths of ReactNativeFlurry.xcodeproj and it's recursive screen shot 2018-12-10 at 10 57 38 am

  2. Clear the build folder (Command + Shift + K) and do a clean build.

  3. Relink react-native-flurry-sdk by executing react-native unlink react-native-flurry-sdk && react-native link react-native-flurry-sdk

  4. Update react-native to the latest version 0.57.7 if it's okay for you (be very careful about this though).

nickhabets commented 5 years ago

Sure, All configurations are same with that but it doesn't work. My project is expo

xnth97 commented 5 years ago

If you are using expo, could you please try adding $(SRCROOT)/../../../ios/Pods/Headers/Public to the Header Search Paths mentioned above and set it to recursive?

Reference: Changing Native Dependencies

nickhabets commented 5 years ago

Thank @xnth97, It is working now