GithubHelp home page GithubHelp logo

Comments (6)

samhill303 avatar samhill303 commented on July 27, 2024

Test RC version, not beta now that it's out

from sqliter.

hfhbd avatar hfhbd commented on July 27, 2024

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.

kpgalligan avatar kpgalligan commented on July 27, 2024

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.

hfhbd avatar hfhbd commented on July 27, 2024

@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.

kpgalligan avatar kpgalligan commented on July 27, 2024

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.

hfhbd avatar hfhbd commented on July 27, 2024

You are right, this syntax works and is nicer, thanks.

from sqliter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.