When we have a KMM module A and a development POD called B which is dependent on A, B builds fine and pod install happens fine. If There's a module C, who has dependency to B via pod, then we get error:" target has transitive dependencies that include statically linked binaries:", while pod update. To fix this if we comment out use_frameworks! or remove it from podfile of C, pod install happens fine but build fails with could not find module SQLCipher, SQLCipher is depended by A via the cocoapods plugin in gradle. If we use another solution for transitive dependency as follows
pre_install do |installer|
Pod::Installer::Xcode::TargetValidator.send(:define_method, :verify_no_static_framework_transitive_dependencies) {}
end
we end up with other errors during build like
Undefined symbols for architecture x86_64:
"_sqlite3_bind_text16", referenced from:
_SQLiter_SQLiteStatement_nativeBindString in ConnectPlusSharedDB(result.o)