Comments (6)
Test RC version, not beta now that it's out
from sqliter.
1.8.0 is out and I get some problems updating sqldelight to 1.8.0 with the native driver (cashapp/sqldelight#3752):
> Task :drivers:native-driver:linkDebugTestIosX64
e: /Applications/Xcode_14.0.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld invocation reported errors
The /Applications/Xcode_14.0.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld command returned non-zero exit code: 1.
> Task :drivers:native-driver:linkDebugTestIosX64 FAILED
output:
Undefined symbols for architecture x86_64:
"_sqlite3_bind_blob", referenced from:
_co_touchlab_sqliter_sqlite3_sqlite3_bind_blob_wrapper69 in result.o
Would downgrading Xcode help as a workaround?
from sqliter.
Kotlin 1.8 changes how linker flags are applied. The Sqldelight plugin used to silently add -lsqlite3
, but now that probably doesn't carry over. You'll need to add that to your Kotlin config directly or Xcode "Other Linker Flags".
For now, to apply this in Kotlin, use the following:
cocoapods {
framework {
linkerOpts("-lsqlite3") //<-- Add this
}
}
If not using CocoaPods, something like the following:
kotlin {
ios {
binaries.framework {
linkerOpts("-lsqlite3") //<-- Add this
}
}
}
This is also a change for SqlDelight, but frankly, I think we were all surprised 1.8 got released on New Years week :)
from sqliter.
@kpgalligan I think, I got a workaround based on #90, at least for sqldelight (cashapp/sqldelight@1810a86). I am waiting for the CI, but locally it works.
And yeah, Jetbrains can say Kotlin 1.8 was released in 2022 :D
from sqliter.
I think you could simplify that a bit:
binaries.configureEach {
linkerOpts += ["-lsqlite3"]
}
But I'd have to break out the sqldelight to try it out, and I'm not doing a lot of Groovy config these days to know if that syntax would work without trying it.
from sqliter.
You are right, this syntax works and is nicer, thanks.
from sqliter.
Related Issues (20)
- Database file name being created duplicates the last two characters
- Exclude DB from backup/icloud (iOS) HOT 2
- `create` callback invoked only on first connection for in-memory/temporary DBs
- Fix windows and linux builds HOT 3
- Maven coordinate change in 1.3.0 HOT 3
- Add support for androidNative
- Update Kotlin version: 1.9.20 -> 1.9.21
- any docs? HOT 1
- Flaky watchOS test
- Pull error message from sqlite anywhere we have a failure HOT 1
- Review logging
- Kotlin 1.7.20 compatible aarch64 artifacts HOT 2
- SQliter - 1.8 Release Testing HOT 1
- Documentation references
- The encryption part is not working properly HOT 10
- Support calling `sqlite3_create_collation`
- Cannot run tests on macOS
- in memory DB is not thread-safe
- Support linuxArm64
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 sqliter.