After updating to React Native 0.61.5
I am having problems linking libraries that can be linked only dynamically (@react-native-mapbox-gl/maps
).
The solution would normally be to enable dynamic libraries in the Podfile (setting use_frameworks!
). However, as result this makes all libraries dynamic and causes problems with libraries that can only be linked statically (react-native-firebase
).
Is there any solution that would satisfy these conflicting requirements?
When use_frameworks!
is set, this error gets thrown at runtime:
dyld: Library not loaded: @rpath/MapboxMobileEvents.framework/MapboxMobileEvents
Referenced from: /private/var/containers/Bundle/Application/4A4F5BC3-2A1D-4949-9423-71EF7EFE79FD/ImmoWert2Go.app/Frameworks/Mapbox.framework/Mapbox
Reason: image not found
When use_frameworks!
is not set, pod install
throws this error:
[!] The 'Pods-ImmoWert2Go' target has transitive dependencies that include statically linked binaries: (FirebaseCore, FirebaseCoreDiagnostics, GoogleDataTransportCCTSupport, GoogleDataTransport, and FirebaseInstanceID)