Hi , m still facing some issue with ios encryption...
# touchlab-tools
v
Hi , m still facing some issue with ios encryption database part in my KMM library project.... following "KaMPKitSQLCipher".... but as soon as supply "foreignKeyConstraints = true" and passing key is option(either way m getting same crash) in DatabaseConnection of NativeSqlDriver... getting below error... not sure why.. please help me...
kotlin.Exception: android/database/sqlite/SQLiteConstraintException - FOREIGN KEY constraint failed (code 787)
at 0   Sleep+                              0x0000000103ec7137 kfun:kotlin.Throwable#<init>(kotlin.String?){} + 87
at 1   Sleep+                              0x0000000103ec09b5 kfun:kotlin.Exception#<init>(kotlin.String?){} + 85
at 2   Sleep+                              0x0000000104027436 ThrowSql_SQLiteException + 566
at 3   Sleep+                              0x0000000104279de2 _ZN7android23throw_sqlite3_exceptionEiPKcS1_ + 1234
at 4   Sleep+                              0x000000010427a14a _ZN7android23throw_sqlite3_exceptionEP7sqlite3PKc + 58
at 5   Sleep+                              0x000000010427a339 SQLiter_SQLiteConnection_nativeResetStatement + 41
at 6   Sleep+                              0x000000010402f331 kfun:co.touchlab.sqliter.NativeStatement#resetStatement(){} + 193
at 7   Sleep+                              0x000000010402eb6d kfun:co.touchlab.sqliter.NativeStatement#execute(){} + 349
at 8   Sleep+                              0x0000000104022f87 kfun:co.touchlab.sqliter.concurrency.ConcurrentDatabaseConnection.ConcurrentStatement#execute(){} + 519
at 9   Sleep+                              0x0000000104032e13 kfun:com.squareup.sqldelight.drivers.native.ConnectionWrapper.execute$lambda-0#internal + 547
at 10  Sleep+                              0x0000000104033864 kfun:com.squareup.sqldelight.drivers.native.ConnectionWrapper.$execute$lambda-0$FUNCTION_REFERENCE$138.invoke#internal + 100
at 11  Sleep+                              0x00000001040338d9 kfun:com.squareup.sqldelight.drivers.native.ConnectionWrapper.$execute$lambda-0$FUNCTION_REFERENCE$138.$<bridge-UNNN>invoke(-1:0){}#internal + 89
at 12  Sleep+                              0x0000000104031858 kfun:com.squareup.sqldelight.drivers.native.NativeSqliteDriver.accessConnection$lambda-6#internal + 232
at 13  Sleep+                              0x0000000104031f63 kfun:com.squareup.sqldelight.drivers.native.NativeSqliteDriver.$accessConnection$lambda-6$FUNCTION_REFERENCE$132.invoke#internal + 195
at 14  Sleep+                              0x0000000104036ceb kfun:com.squareup.sqldelight.drivers.native.SinglePool#access(kotlin.Function1<1:0,0:0>){0§<kotlin.Any?>}0:0 + 651
at 15  Sleep+                              0x0000000104031071 kfun:com.squareup.sqldelight.drivers.native.NativeSqliteDriver#accessConnection(kotlin.Boolean;kotlin.Function1<com.squareup.sqldelight.drivers.native.ThreadConnection,0:0>){0§<kotlin.Any?>}0:0 + 833
at 16  Sleep+                              0x00000001040328f4 kfun:com.squareup.sqldelight.drivers.native.ConnectionWrapper#execute(<http://kotlin.Int?;kotlin.String;kotlin.Int;kotlin.Function1<com.squareup.sqldelight.db.SqlPreparedStatement,kotlin.Unit>?|kotlin.Int?;kotlin.String;kotlin.Int;kotlin.Function1<com.squareup.sqldelight.db.SqlPreparedStatement,kotlin.Unit>?>){} + 500