Closed edapess closed 1 week ago
Hi @edapess, we are unable to reproduce this in our sample app. There were a couple of notable changes in React Native 0.76, namely that the New Architecture is now enabled by default. One thing to note is that the pod install
semantics have changed, which can have implications on how you build your project. Could you verify which architecture your application is using, and check which command you are using to pod install
? To note, the Braze React Native SDK is supported on both the New Architecture and the legacy architecture.
Additionally, there are often other parallel dependencies you may need to upgrade in your package.json
when updating your project to the latest version of React Native. This can often lead to incompatibilities and consequently build failures if they aren't upgraded together. You can use this helpful community tool to determine which other dependencies you may need to upgrade.
If you are still facing issues, please feel free to write in to support@braze.com and reference this GitHub issue. Thanks!
@jerielng I know about upgrade helper, also I tried install pods with both old/new architecture, let me remove all my node modules, caches, cz I had many issues related to other packages, and the last one (maybe) is the error above that i mentioned.
let me check again and get back to this thread :)))
@jerielng So I build IOS with old architecture, but on Android I'm getting this
I am facing similar errors when building on 0.76
@edapess @mobinni Could you both write in to support@braze.com with further details about your projects:
package.json
fileand they will be able to help you troubleshoot and diagnose the issue? Thanks!
I'm not sure I can provide that information, however what I can provide:
I have tried on 0.75.6 and 0.76.1 new architecture, same issue arises. I will try to put together a demo app with the issue. I do see the Braze sample app on this repo is still on 0.71
@mobinni I believe the package.json
you are looking at is for the SDK, which uses 0.71.0
as a minimum but does not lock users to that specific version.
The package.json
for our public sample app is currently using 0.75.2, but we have internally tested with 0.76.1
without being able to reproduce these build errors on either Android or iOS for either architecture of React Native. You may use this updated file as a cross-reference: package.json
@mobinni i built successfully with old architecture (0.76), you have to remove Podfile.lock, clean cache, derived data and after install pods using old arch. - RCT_NEW_ARCH_ENABLED=0 bundle exec pod install
I will try today again with new architecture
@jerielng I think it's related to this https://github.com/CocoaPods/CocoaPods/issues/12105, also tommorow i will write to support
I'm running into a similar issue. I'm trying to run the app on the new architecture:
Same issue, not able to use when new arch =true
@hosseintalebi @alzalabany Could you cross-reference your package.json with the one linked here and verify if there are any mismatching React Native dependencies? For a deeper investigation into your project, we would recommend reaching out to our support team at support@braze.com to debug the issue further. Thanks!
+1
@QSuraj Likewise, could you also write in to support@braze.com with further details of your integration, as mentioned above? We would like to understand the common thread behind these build errors to further diagnose them as we are not able to reproduce them from our end. Thanks!
In braze repo new arch is disabled. Please either use a new Reactnative project or enable newarch and issue should be reproduced on android
Hi everyone.
To clarify, we do have newArchEnabled=true
in gradle.properties
.
Given that we have not been able to reproduce this issue with the currently provided reproduction steps, we suggest that if you were not able to address the issue you contact support@braze.com where we will be able to ask for more information relative to your exact environment.
Which Platforms?
iOS
Which React Native Version?
0.76.0 / 0.76.1
Which @braze/react-native-sdk SDK version?
13.1.1
Repro Rate
100% of time
Steps To Reproduce
Example:
Expected Behavior
Application need to build correctly
Actual Incorrect Behavior
Build Fails
Verbose Logs
Additional Information