Comments (4)
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 /System/Library/Tcl/sqlite3/libtclsqlite3.dylib
.
When I try to search for the first missing symbol I get no result:
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.
from sqldelight.
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 -lsqlite3
without specifying the library search path, so I assume it's using a sqlite3 library from Xcode tools. libtclsqlite3
kind of seems like it's specific to tcl, but I've never used it. I would guess you'll need to include your own sqlite implementation.
Since you're building with Xcode, the easy solution would probably be to grab and build sqlite source directly in Xcode, and drop -lsqlite3
. To do that just for iOS, I assume you'll need some target slight-of-hand in Xcode config.
from sqldelight.
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.
Since I am building just a small POC i want to keep things simple. I was wondering if anything else is configued on my side.
Is there an example project with a macOS app that I can try out and compare?
from sqldelight.
@kpgalligan
If you run the tests are you compiling an MacosArm64 binary?
from sqldelight.
Related Issues (20)
- java.lang.RuntimeException in ProjectService.kt:83
- SQLite: return Long instead of data class in SUM HOT 2
- Add EXTRACT function to PostgreSql Dialect
- No plugin descriptor found at META-INF/maven/plugin.xml when running with Maven HOT 1
- java.lang.AssertionError in ProjectService.kt:83
- Can't delete HOT 1
- Cannot convert the provided notation to an object of type Dependency HOT 1
- Table not created on desktop without awaiting the result of Schema.create HOT 3
- java.lang.IllegalStateException in SqliteParserUtil.kt:114
- Unable to run `ALTER TABLE <> DROP CONSTRAINT <> RESTRICT;` when using postgresql HOT 2
- AndroidSqliteDriver fails to create single Table when not In-memory
- java.util.NoSuchElementException in UpsertClauseMixin.kt:47
- Keywords as column name - generated code missing double quotes for INSERT statement HOT 6
- java.lang.RuntimeException in SqlDelightFileViewProviderFactory.kt:76
- java.lang.Throwable in SqlDelightFileViewProviderFactory.kt:91
- Changes in the database are not observed when using a context other than Dispatchers.Main
- K2 Support HOT 1
- not able to create .sq file in kotlin multiplatfrom project
- Cannot use a simple migration statement HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sqldelight.