Skip to content

SQLiteConnection throws error in ctor on iOS 14 #986

Open
@AdamBowler

Description

@AdamBowler

When constructing the SQLiteConnection object on a device running iOS 14 the following error is throw

SQLite.SQLiteException: not an error
at SQLite.SQLiteCommand.ExecuteNonQuery () [0x000cd] in <d1788edcec634c19b907698bb77ed371>:0 \n  
at SQLite.SQLiteConnection.Execute (System.String query, System.Object[] args) [0x00039] in <d1788edcec634c19b907698bb77ed371>:0 \n  
at SQLite.SQLiteConnection.SetKey (System.String key) [0x00026] in <d1788edcec634c19b907698bb77ed371>:0 \n  
at SQLite.SQLiteConnection..ctor (SQLite.SQLiteConnectionString connectionString) [0x00126] in <d1788edcec634c19b907698bb77ed371>:0 \n  
at Expenses.Classes.SQLiteCrossPlatform.GetConnection () [0x00079] in /Users/StarLord/Documents/app/MyApp/Classes/SQLiteCrossPlatform.cs:48 "

Here is my code for the ctor

var sqLiteConnectionString = new SQLiteConnectionString(encryptedDbPath, true, AppConstants.KeyEncryption);
var encryptedDb = new SQLiteConnection(sqLiteConnectionString);

This only occurs on iOS 14 and not on any other version of iOS.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions