-
Notifications
You must be signed in to change notification settings - Fork 510
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Kotlin Multiplatform build fails on macOS #5305
Comments
I am pretty new to kmp, so I might be wrong here but I assume that the sqlite3 library on the mac is somehow "outdated" and does not contain the symbols. I assume that the libary that is linked is a system library stored at nm /System/Library/Tcl/sqlite3/libtclsqlite3.dylib | grep load_extension However, when I do the same with sqllite installed by homebrew I get some results: nm /opt/homebrew/Cellar/sqlite/3.42.0/lib/libsqlite3.dylib | grep load_extension
00000000000116b4 T _sqlite3_enable_load_extension
000000000001122c T _sqlite3_load_extension Does anybody maybe know a workaround? This issue is currently blocking for us. |
I haven't built a macos app with sqldelight personally (I wrote most of the driver, or at least the original version). The tests run fine with Since you're building with Xcode, the easy solution would probably be to grab and build sqlite source directly in Xcode, and drop |
I compiled the sql lib from the mentioned sources and added the dylib file to the project. It was able to find some symbols but still failed to compile since some of them are unknown. |
@kpgalligan |
SQLDelight Version
2.0.2
Operating System
Mac OS 14.3.1
Gradle Version
Gradle 8.7
Revision: 650af14d7653aa949fce5e886e685efc9cf97c10
Kotlin Version
1.9.23
Dialect
SQLite
AGP Version
No response
Describe the Bug
I have an iOS App that is supports macOS.
After the build failed I added the linker flag
![Screenshot 2024-06-15 at 13 19 17](https://private-user-images.githubusercontent.com/36447137/339977168-bd65ce3b-d066-47c9-b61f-1999d4342a70.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQ2NDY5OTcsIm5iZiI6MTcyNDY0NjY5NywicGF0aCI6Ii8zNjQ0NzEzNy8zMzk5NzcxNjgtYmQ2NWNlM2ItZDA2Ni00N2M5LWI2MWYtMTk5OWQ0MzQyYTcwLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MjYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODI2VDA0MzEzN1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWVkMjQ1NDNkYmI4YTYxNGRhY2FiOWY2NDUyNTY2OWY3NjZhN2IzZDU5ZDZiODY2MGY4Njc3MjkwM2I4YzRiZjQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.9AXaiczyRvMrmopKFNJwhk6sjeLGU8n-rukKRjpweVc)
-lsqlite3
on iOS I am able to run the App and everything works as expected, however, on macOS the build fails.
Stacktrace
The text was updated successfully, but these errors were encountered: