I'm using SQLite.swift and SQLCipher via cocoapods.
I get the error ambiguous use of 'SQLITE_DETERMINISTIC' in the SQLite.swift file: Connection.swift fails at line 590. Snippet is show below.
var flags = SQLITE_UTF8
#if !os(Linux)
if deterministic {
flags |= SQLITE_DETERMINISTIC
}
#endif
I can fix this by unlocking the pod file and replace 'SQLITE_DETERMINISTIC' with 'SQLCipher.SQLITE_DETERMINISTIC' or 'SQLite.SQLITE_DETERMINISTIC'. But this is bad for lots of reasons.
Steps to reproduce:
- Using Xcode 11.3
- Create a new project (Single View App is fine)
- Create a Podfile (example below)
- Run 'pod install'
- Open the Workspace and compile
- Build fails with error
Example Podfile:
use_frameworks!
target 'TestSQLite' do
pod 'SQLite.swift/SQLCipher', '~> 0.12.2' # with SQLCipher
end
Any help would be appreciated.