Василий
02/19/2025, 1:51 PMВасилий
02/19/2025, 1:51 PMIf you are loading native libraries from JVM code, they must be loaded directly from the app bundle (because of sandbox and signing). That means they cannot first be extracted from a JAR and then loaded (what some libraries do). You can include native libraries in the bundle usingI started to figure it out further, opened the application container directory and found this (numerated screenshot): 1 - application container. Just a directory, the application is not running. 2 - launched the application, appeared .tmp. It looks like a bytecode inside, so it can't be read normally using nano, I won't even apply a screenshot. 3 - the application has closed, .tmp has disappeared. From what I concluded, sqliteJni is a dynamic library that is generated when launching an application to create a driver for a mac. And dynamic libraries on the mac are prohibited according to the paragraph from the github above. I don't understand what to do, there is extremely little information on KMP on macs. How do I work properly with the room library on macOS?(see here) and then you can load them in JVM code usingfromFiles
. Note that the Skiko native library used by Compose is already loaded correctly if you are using the default application configuration.System.loadLibrary("LIBRARYNAME")
Василий
02/19/2025, 1:52 PMВасилий
02/19/2025, 1:53 PMdanysantiago
02/24/2025, 3:12 PM