With a desktop multiplatform app built for a Mac, ...
# multiplatform
k
With a desktop multiplatform app built for a Mac, does the build still need to be done on an X86 JVM or X86 Mac? Tried it on an ARM Mac and got an error where it's trying to codesign using an x86 binary:
Copy code
17:29:32 > External tool execution failed:
17:29:32   * Command: [/usr/bin/codesign, -vvvv, --timestamp, --options, runtime, --force, .../build/compose/tmp/sign/libskiko-macos-x64.dylib]
libskiko-macos-x64 is an X64 binary... Been a year since I hit this issue (needed an X86 JVM/Mac for build) and was hoping the latest KMP 1.7.x would have fixed it by now...
m
Is it possible that you were hit by this issue https://youtrack.jetbrains.com/issue/CMP-3859 I haven’t tried whether this may cause code signing issues.
k
In case anyone else hits this, ended up changing
Copy code
implementation(compose.desktop.currentOs)
to
Copy code
implementation(compose.desktop.macos_arm64)
This tool only needs to run on macbooks, so that's ok for us.