Hello All, I installed (“@rudderstack/rudder-sdk-r...
# support
m
Hello All, I installed (“@rudderstack/rudder-sdk-react-native”: “^1.11.0",) the last version of Rudder for react native and since then Xcode keep failing builds, the error shown is “Declaration of ‘RCTBridgeModule’ must be imported from module ‘React.RCTBridge’ before it is required” anyone running into this ? Any solutions please ? Sometimes when i clean the cache and re launch Xcode, the build works but it is “flaky”. When I remove Rudder pod / package everything works fine. Much appreciate any help.
m
Hey There! 👋 Your message has been received by the RudderStack team. We will forward this request to your Technical Account Manager, and they will get back to you shortly. Please use the thread for any additional comments.
c
Hey @mammoth-queen-17413, Can you please provide additional information regarding this issue: 1. On which file do you see this build error? Is it related to the Rudder React Native SDK file? Please try to provide some screenshot. 2. Please provide the
react-native
and
react
version used in your project. 3. Please share your
Podfile
. 4. Please provide the steps to reproduce the error, so that I could investigate it properly from my end. Also, please try running this in your iOS folder:
pod deintegrate && rm podfile.lock && pod install
and then build the app again.
Also you mentioned:
I installed (“@rudderstack/rudder-sdk-react-native”: “^1.11.0",) the last version of Rudder for react native and since then Xcode keep failing builds
Does this mean previously it was working well? If so, which version of the Rudder React Native SDK are you using previously? Have you updated some other packages related to React Native?