Sqlite.swift: Xcode 12 Beta SQLite.swift Can't Build

Created on 25 Jun 2020  Â·  17Comments  Â·  Source: stephencelis/SQLite.swift

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

  • Include the SQLite.swift version, commit or branch experiencing the issue.
  • Mention Xcode and OS X versions affected.
  • How do do you integrate SQLite.swift in your project?

    • CocoaPods

General guidelines

  • Be as descriptive as possible.
  • Provide as much information needed to _reliably reproduce_ the issue.
  • Attach screenshots if possible.
  • Better yet: attach GIFs or link to video.
  • Even better: link to a sample project exhibiting the issue.

image

image

Most helpful comment

Using SQLCipher w/ Xcode 12 GM, I ran into a couple of different issues:

  • Error: "Ambiguous use of SQLITE_DETERMINISTIC".
  • Error: "Could not build module 'SQLite3'" in SQLiteObjc.h when trying to @import SQLite3;
  • Multiple errors regarding: "Redefinition of sqlite_..."

What resolved all of these issues for me was to change the import statement in SQLiteObjc.h:

From:

@import SQLite3;

To:

@import SQLCipher.sqlite3;

After making this change and performing a clean & build, all of my build errors have resolved.

All 17 comments

Haven't seen these issues, but made some fixes here: https://github.com/stephencelis/SQLite.swift/pull/1008

I got the same problem with this.

Last time I used this #986 to solve on Xcode 11.5

pod 'SQLCipher', '= 4.2.0'
pod 'SQLite.swift/SQLCipher', '~> 0.12.2'

But it isn't working on Xcode 12 beta 2 now…

Beta 4 should fix this issue

Beta 4 should fix this issue

hello, My Xcode Has been update to Beta4,But This issue still happen!

Still has this issue with Xcode Beta5!

Same issue on Xcode 12.0 beta 6.

Still happening on Xcode 12.0 beta 6 (12A8189n)

Same issue with Xcode 12 GM seed any solutions?

I'm not sure, but maybe #1006 will help you

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.

Using SQLCipher w/ Xcode 12 GM, I ran into a couple of different issues:

  • Error: "Ambiguous use of SQLITE_DETERMINISTIC".
  • Error: "Could not build module 'SQLite3'" in SQLiteObjc.h when trying to @import SQLite3;
  • Multiple errors regarding: "Redefinition of sqlite_..."

What resolved all of these issues for me was to change the import statement in SQLiteObjc.h:

From:

@import SQLite3;

To:

@import SQLCipher.sqlite3;

After making this change and performing a clean & build, all of my build errors have resolved.

This cartfile works for me:
github "stephencelis/SQLite.swift" "385ce0c1b9870c712e712491caa528591988be3e"

Hi guys, this workaround worked for Xcode 12.1 (12A7403)

Hello, Still not working on the offical Xcode 12.3 application with no mods. Getting the same error.

Screen Shot 2020-12-28 at 11 59 27 AM

Thanks, I will try it out soon and let you know my results.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

hansrajgavali picture hansrajgavali  Â·  3Comments

zackdh9 picture zackdh9  Â·  5Comments

pgawlowski picture pgawlowski  Â·  6Comments

fortitude1990 picture fortitude1990  Â·  4Comments

Viswanth92 picture Viswanth92  Â·  3Comments