diff --git a/ios/Podfile b/ios/Podfile index 4dff9ba..2f6ae3b 100644 --- a/ios/Podfile +++ b/ios/Podfile @@ -32,6 +32,9 @@ target 'Runner' do use_modular_headers! flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__)) + + pod 'SQLCipher', '~> 4.5' + target 'RunnerTests' do inherit! :search_paths end diff --git a/lib/Database/database_manager.dart b/lib/Database/database_manager.dart index b92f581..489e0f9 100644 --- a/lib/Database/database_manager.dart +++ b/lib/Database/database_manager.dart @@ -282,7 +282,7 @@ class DatabaseManager { } } if (Platform.isMacOS || Platform.isIOS) { - return DynamicLibrary.open('/usr/lib/libsqlcipher.dylib'); + return DynamicLibrary.process(); } if (Platform.isWindows) { lib = DynamicLibrary.open('sqlite_sqlcipher.dll');