I have a question related to static linking of the...
# ios
b
I have a question related to static linking of the iOS KMP framework for the iOS native project. More in a thread.
There was an issue reported for my library which is using sqldelight database under the hood. Some of the users of my library can not use dynamic linking for their project so they are using static linking. To use Inspektify library in a static env, there is a need to add
lsqlite3
to the iOS target under
Build Settings
->
Other Linker Flags
. The problem is that they are also using the
Unity.framework
for their project and that produces a conflict for sqllite symbol linking. Additionally, this only happens on arm-based devices and only if the Main Thread Checker is enabled for the scheme. A similar problem is also written in this article: https://www.nutrient.io/blog/dynamic-linking-crash-xcode-16/ They have control over where sqlite symbols come for their library, but I don’t, or at least I am not knowledgable enough to know how to do that with KMP. Is this something that can even be done in the KMP library or how should I resolve this problem? Or maybe there is something that can be done on the iOS native project to resolve this?