stephencelis / SQLite.swift

A type-safe, Swift-language layer over SQLite3.
MIT License
9.64k stars 1.56k forks source link

pod 'SQLite.swift/standalone' doesn't build any more #1015

Closed Trannosaur closed 3 years ago

Trannosaur commented 4 years ago

Issues are used to track bugs and feature requests. Need help or have a general question? Ask on Stack Overflow (tag sqlite.swift).

Build Information

General guidelines

Sadly this means I can't use FTS or anything since the non-standalone version isn't compatible.

Use this podfile: use_frameworks!

workspace 'targetname'

target 'targetname' do pod 'SQLite.swift/standalone', '~> 0.12.2' pod 'sqlite3/fts5', '= 3.15.0' # SQLite 3.15.0 with FTS5 enabled

platform :ios, '13.0'

end

Trannosaur commented 4 years ago

Just for funsies I hacked in the fix and changed Connection.swift:590 to flags |= sqlite3.SQLITE_DETERMINISTIC,

But then when you add pod 'sqlite3/fts5', '= 3.15.0' # SQLite 3.15.0 with FTS5 enabled to the Podfile a bunch more issues arise (of the exact same nature)

Pulichev commented 3 years ago

I have found a temporary solution. Check https://github.com/stephencelis/SQLite.swift/pull/970

My podfile now:

pod 'SQLite.swift/standalone', :git => 'https://github.com/stephencelis/SQLite.swift', :branch => 'master'
pod 'sqlite3', '3.29.0'

So, u have to install version from master.

ryanholden8 commented 3 years ago

@stephencelis - Hope this message finds you well! You're probably scrambling with supporting the new iOS 14 release and cramped for time. I know I am haha. Anyway, wanted to call your attention to this post where it looks like the fix for supporting Xcode 12 is already in master. Would it be possible to cut a release? Thanks for considering! Maybe #1006 would also fix the root issue?

@Pulichev - Appreciate letting us know of a workaround, this worked for me, thank you!

nathanfallet commented 3 years ago

Closing as it was fixed