chirag04 / react-native-in-app-utils

A react-native wrapper for handling in-app payments
MIT License
890 stars 185 forks source link

Linking Issue - RCTBridgeModule.h' file not found #149

Open iSaadSalman opened 6 years ago

iSaadSalman commented 6 years ago

I using expo version of react native 0.48.4 (21.0.2 expo) and react-native-in-app-utils@5.6.0. When I link using react-native install react-native-in-app-utils

Once I try to build in in Xcode it gives me 'React/RCTBridgeModule.h' file not found and does not build.

I tried:

  1. Removing node modules
  2. Downgrading to version 4 and 6 of in-app-utils
  3. Running pod install and update

It refuses to work

sachabest commented 6 years ago

The documentation is very misleading. Install major version 6 of this lib via rnpm install react-native-in-app-utils@6 and you should be good to go (even though the readme appears to say to install version 5)

ethanyuwang commented 6 years ago

@sachabest Using version 6 and still have this error

anjusr commented 6 years ago

got any solution for this?

felixmagnell commented 6 years ago

I have the same problem, any solution?

bakystefan commented 6 years ago

$(SRCROOT)/../react-native/React add in header search replace #import <React/RCTBridgeModule.h> with #import "RCTBridgeModule.h" before replace it, do this: Make sure you have rnpm installed: npm install rnpm -g Install with rnpm: rnpm install react-native-in-app-utils