Skip to content

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

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

Closed
Trannosaur opened this issue Jul 26, 2020 · 4 comments
Closed

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

Trannosaur opened this issue Jul 26, 2020 · 4 comments

Comments

@Trannosaur
Copy link

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

  • I tried with both 0.12.0 and 0.12.2
  • Xcode 11.6
  • How do do you integrate SQLite.swift in your project?
    • CocoaPods

General guidelines

  • If I have this line: pod 'SQLite.swift', '> 0.12.2' then I can build the project, however, if I use pod 'SQLite.swift/standalone', '> 0.12.2' then the project won't build due to errors like: "Ambiguous use of 'SQLITE_DETERMINISTIC'"

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

  • Provide as much information needed to reliably reproduce the issue.
    Create a new xcode project,

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
Copy link
Author

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
Copy link

Pulichev commented Sep 16, 2020

I have found a temporary solution.
Check #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
Copy link

@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
Copy link
Collaborator

Closing as it was fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants