react-native-mmkvを導入したら Undefined symbols for architecture x86_64 が出た
react-native0.68.4
どうやら react-native-firebase を導入した時にPodfileに加えた use_frameworks!
が原因っぽい。
結論としては、react-native-mmkvを静的ライブラリとして読み込んであげると解決した。
pre_install do |installer| installer.pod_targets.each do |pod| if pod.name.eql?('react-native-mmkv') def pod.build_type; Pod::BuildType.static_library end end end end
pre_install
はpodをインストールする前に何らかの変更を加えてくれる。
BuildType.static_library
により静的ライブラリとして登録。