Driversnote-Dev / react-native-kontaktio

React Native (iOS and Android) library for Kontakt.io beacons (and all other beacons)
MIT License
112 stars 48 forks source link

Example giving error: 'RCTBridgeModule.h' file not found #62

Closed NielsOtten closed 4 years ago

NielsOtten commented 4 years ago

I tried to run the example code, but got the following error: 'RCTBridgeModule.h' file not found

AshinePl commented 4 years ago

@nylsoo Have you managed to resolve this problem? I have a similar one after doing all the steps in the IOS Setup:

'React/RCTDefines.h' file not found 'RCTBridgeModule.h' file

andrekovac commented 4 years ago

The setup guides got updated in the new version of this lib (2.7.2.). Unfortunately the example is a bit outdated by now. Please try with the new minimal example code which you can find in the README. It's tested for Android and iOS with RN 0.61

Thianzeren commented 4 years ago
Screenshot 2020-04-29 at 9 16 03 AM

Hey did you manage to resolve the problem? I'm facing the same one that @AshinePl has. This is in my own application, not the example.

AshinePl commented 4 years ago

@Thianzeren My problem was with the "framework search paths" I was setting the "header search paths" instead. After I followed the iOS setup manual carefully, everything worked like a charm

Thianzeren commented 4 years ago

@Thianzeren My problem was with the "framework search paths" I was setting the "header search paths" instead. After I followed the iOS setup manual carefully, everything worked like a charm

I’m using react native v0.62.2 with pods, should I still do the steps for the manual installation? I currently only have $(inherited) in my Framework Search Paths

Thianzeren commented 4 years ago

Managed to fix this as I found out that I had the KontaktBeacon libraries in both my "linked binary with libraries" and also in my Pods. I removed it from my "linked binary with libraries" and it builds correctly!

andrekovac commented 4 years ago

@Thianzeren Great to hear that. You should either follow the automatic install with Pods or the manual install and not mix both.