react-native-unimodules
react-native-unimodules copied to clipboard
Bare app crashes on production builds only
Hello,
I configured unimodules to my bare react-native app using the instruction outlined here. The only difference is that I added
@dynamic window;
to the AppDelegate.m to fix an error I was getting. Debug builds work perfectly fine on simulator and on physical devices. However, on iOS production builds, the app crashes before it even gets to the splash screen. The only relevant error I'm seeing is:
"dynamic_cast error 2: One or more of the following type_info's has hidden visibility or is defined in more than one translation unit. They should all have public visibility. N10__cxxabiv116__shim_type_infoE, id, N10__cxxabiv117__pbase_type_infoE."
I'm pretty sure the issue is with unimodules since it only happens after installing the package to my repo. Once I remove the package, everything works fine again.
Am I doing something wrong with the configuration? Is there something I should do to make sure production builds work the way debug builds do?
@ZeiRashed Were you able to figure out this? running into a similar issue.
@gamenic-arim I have not... have been stuck on this issue for a week and have made little progress. Let me know if you have any leads!