Skip to content

Commit

Permalink
Fix sqlcipher in iOS
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert-Stackflow committed Sep 21, 2024
1 parent 94030b9 commit 3856676
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions ios/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion lib/Database/database_manager.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit 3856676

Please sign in to comment.