xerial / sqlite-jdbc

SQLite JDBC Driver
Apache License 2.0
2.79k stars 612 forks source link

"Compose Multiplatform Desktop Application" can not create DMG image anymore with sqlite added #992

Open zoff99 opened 11 months ago

zoff99 commented 11 months ago

Describe the bug

i am building a https://github.com/JetBrains/compose-multiplatform-desktop-template/ app with sqlite-jdbc added as gradle dependency it compiles and runs, but it does not produce an dmg image after adding sqlite. it does before adding it. no signature and no apple developer account needed to generate the dmg before.

To Reproduce https://github.com/zoff99/trifa_material/blob/aed9e9f1a21fe2818876ae83a3a3545ee7ca63cf/.github/workflows/nightly.yml#L152

Expected behavior create a dmg file

Logs https://github.com/zoff99/trifa_material/actions/runs/6516764610/job/17700626004#step:7:108

Environment (please complete the following information):

may be related to: #970 but not the same

gotson commented 11 months ago

From what you provide it's not very clear what the problem is, you need to investigate more i think.

zoff99 commented 11 months ago

how do you compile the native lib? what are the compile instruction and the exact OS used?

gotson commented 11 months ago

how do you compile the native lib? what are the compile instruction and the exact OS used?

You can check the Makefile and Makefile.common

zoff99 commented 11 months ago

but where do you create the release package? via github CI? trying to figure out where the native libs are coming from?

https://github.com/xerial/sqlite-jdbc/commit/989bf35b3dadbbbc5bb68e9fce816268e993e63b

i dont see any macos github workflow in the repo.

gotson commented 11 months ago

Everything is built using Docker images

zoff99 commented 11 months ago

how are you building macos native libraries with docker images? can you please link to the CI runs where the macos native libraries got built for the last release? so i can see the output.

gotson commented 11 months ago

how are you building macos native libraries with docker images?

Cross compiling

can you please link to the CI runs where the macos native libraries got built for the last release? so i can see the output.

You can check the build native workflow

zoff99 commented 11 months ago
BUILD FAILED in 1m 55s
/Applications/Xcode_13.2.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/codesign_allocate: fatal error: file not in an order that can be processed (code signature data out of place): /Users/runner/work/trifa_material/trifa_material/build/compose/tmp/sign/libsqlitejdbc.jnilib
/Users/runner/work/trifa_material/trifa_material/build/compose/tmp/sign/libsqlitejdbc.jnilib: the codesign_allocate helper tool cannot be found or used
zoff99 commented 11 months ago

just added the logs because without signing in to github one can't read them sadly.