更新到 React Native 后,0.61.5
我在链接只能动态链接的库时遇到问题(@react-native-mapbox-gl/maps
)。
解决方案通常是在 Podfile 中启用动态库(设置use_frameworks!
)。然而,结果这使得所有库都是动态的,并导致只能静态链接的库出现问题(react-native-firebase
)。
是否有任何解决方案可以满足这些相互冲突的要求?
设置时use_frameworks!
,会在运行时引发此错误:
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
use_frameworks!
未设置时,抛出pod install
此错误:
[!] The 'Pods-ImmoWert2Go' target has transitive dependencies that include statically linked binaries: (FirebaseCore, FirebaseCoreDiagnostics, GoogleDataTransportCCTSupport, GoogleDataTransport, and FirebaseInstanceID)