hydraulic-software / conveyor

Gradle plugin, user guide and discussion forums for Conveyor
https://conveyor.hydraulic.dev
Apache License 2.0
123 stars 10 forks source link

Mac signing breaks Jetpack Compose / skiko #75

Closed gotson closed 1 year ago

gotson commented 1 year ago

Describe the bug I am in the process of integrating Conveyor into my application. So far it worked well, and i could generate a Jetpack Compose application that runs on my Mac M1.

After enabling signing with my Apple Developer certificate, the app breaks on launch:

image

If i disable signing, the app works again.

To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior The app should run fine.

Desktop (please complete the following information):

Here is my conveyor.conf:

include "#!./gradlew -q :komga-tray:printConveyorConfig"

app {
    display-name = Komga
    fsname = komga
    vcs-url = "https://github.com/gotson/komga"
    description = "Media server for comics/mangas/BDs with API and OPDS support"
    license = MIT
    icons = "res/komga_text_as_path.svg"

    jvm {
        options += "--enable-preview"
        modules = ["java.management", "java.naming", "java.instrument", "java.sql", "jdk.unsupported", "jdk.security.jgss", "java.desktop"]
        mac.options += "-Djava.library.path=<libpath>:/opt/homebrew/lib/:/usr/local/lib/"
        mac.options += "-Dspring.profiles.include=mac"
        windows.options += "-Dspring.profiles.include=windows"
    }

    site {
        base-url = "localhost:3000"
    }
}

conveyor.compatibility-level = 11
gotson commented 1 year ago

After some investigation i found https://github.com/JetBrains/compose-multiplatform/issues/2895

It seems this is not related to Conveyor, but to Skiko cache. I deleted the skiko cache in ~/.skiko and it seems to work now.

mikehearn commented 1 year ago

Please see:

https://conveyor.hydraulic.dev/10.1/troubleshooting/troubleshooting-jvm/#unsatisfiedlinkerror-mapping-process-and-mapped-file-non-platform-have-different-team-ids

gotson commented 1 year ago

Please see:

https://conveyor.hydraulic.dev/10.1/troubleshooting/troubleshooting-jvm/#unsatisfiedlinkerror-mapping-process-and-mapped-file-non-platform-have-different-team-ids

Yes, I found that afterwards. Thanks.