I have set up a little compose multiplatform project via the IntelliJ wizard as described here:
https://github.com/JetBrains/compose-multiplatform-desktop-template/#readme
If I run the gradle “run” task the demo program window shows up as expected. So far so good but what I actually wanted to do is to execute some test code. I added some code to the desktop test folder and tried to execute this test. The test starts to execute but then fails with:
...
Caused by: org.jetbrains.skiko.LibraryLoadException: Cannot find libskiko-macos-x64.dylib.sha256, proper native dependency missing.
at app//org.jetbrains.skiko.Library.findAndLoad(Library.kt:105)
at app//org.jetbrains.skiko.Library.load(Library.kt:59)
at app//org.jetbrains.skia.impl.Library$Companion.staticLoad(Library.jvm.kt:12)
at app//org.jetbrains.skia.Image.<clinit>(Image.kt:142)
... 45 more
Can anybody tell me why this library is found when running the main program but is not found when running a test? Why does the wizard not set up the project so that such things just work out of the box?
The test in question is just a pure functional test and not a GUI test. It just tries to create an ImageBitmap and do some bit fiddling with it.
Environment details in the thread.