From 8581bc949563752c864ff8d1a86248fc093f9b4e Mon Sep 17 00:00:00 2001 From: The one with the braid Date: Sun, 18 Aug 2024 16:00:05 +0200 Subject: [PATCH] fix: SQLCipher dylib location on macOS builds Signed-off-by: The one with the braid --- lib/src/database/sqflite_encryption_helper/io.dart | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/src/database/sqflite_encryption_helper/io.dart b/lib/src/database/sqflite_encryption_helper/io.dart index 44300280f..0cd93a32c 100644 --- a/lib/src/database/sqflite_encryption_helper/io.dart +++ b/lib/src/database/sqflite_encryption_helper/io.dart @@ -81,7 +81,9 @@ class SQfLiteEncryptionHelper { } if (Platform.isMacOS) { return DynamicLibrary.open( - '/usr/lib/libsqlcipher_flutter_libs_plugin.dylib'); + 'sqlcipher_flutter_libs.framework/Versions/Current/' + 'sqlcipher_flutter_libs', + ); } if (Platform.isWindows) { return DynamicLibrary.open('libsqlcipher.dll');