6177214e-ce7c-49e3-99de-ff9721b26f63 — Commit 2a8a3df5
Changed files
comwell_key_app/ios/Podfile | 9 +++++++++ 1 file changed, 9 insertions(+)
Diff
diff --git a/comwell_key_app/ios/Podfile b/comwell_key_app/ios/Podfile
index 201d934a..e0053074 100644
--- a/comwell_key_app/ios/Podfile
+++ b/comwell_key_app/ios/Podfile
@@ -42,5 +42,14 @@ end
post_install do |installer|
installer.pods_project.targets.each do |target|
flutter_additional_ios_build_settings(target)
+
+ # Workaround to get SQLCipher to work on release config
+ # https://github.com/simolus3/drift/issues/1810#issuecomment-1119426006
+ target.build_configurations.each do |config|
+ xcconfig_path = config.base_configuration_reference.real_path
+ xcconfig = File.read(xcconfig_path)
+ new_xcconfig = xcconfig.sub(' -l"sqlite3"', '')
+ File.open(xcconfig_path, "w") { |file| file << new_xcconfig }
+ end
end
end