Open a-balakmet opened 1 year ago
I could not reproduce the issue with XCode 14.3.1. If you run flutter test integration_test/
in this directory, does that work on macOS for you?
I am getting the same error in MacOS. I cloned and ran the tests above, they work fine but they still report the error that is crashing my app.
The error from the tests is:
/sqlite3.dart/integration_tests/flutter_libs/macos/Pods/Pods.xcodeproj: warning: The macOS deployment target 'MACOSX_DEPLOYMENT_TARGET' is set to 10.11, but the range of supported deployment target versions is 10.13 to 13.3.99. (in target 'sqlite3' from project 'Pods')
Same issue, same result when running integration tests. I got rid of that error only when I manually bumped '10.11' to '10.14' in several files. I have no idea what I'm doing, I started learning flutter few hours ago but this patch apparently fixes the problem:
diff --git a/integration_tests/flutter_libs/macos/Podfile.lock b/integration_tests/flutter_libs/macos/Podfile.lock
index eadbb3f..958cdee 100644
--- a/integration_tests/flutter_libs/macos/Podfile.lock
+++ b/integration_tests/flutter_libs/macos/Podfile.lock
@@ -36,8 +36,8 @@ EXTERNAL SOURCES:
SPEC CHECKSUMS:
FlutterMacOS: 8f6f14fa908a6fb3fba0cd85dbd81ec4b251fb24
sqlite3: 6e2d4a4879854d0ec86b476bf3c3e30870bac273
- sqlite3_flutter_libs: a25f3a0f522fdcd8fef6a4a50a3d681dd43d8dea
+ sqlite3_flutter_libs: 5b7e226d522d67be60d7ade93f5aa11ebc0cd796
PODFILE CHECKSUM: 61e9fedf3423d4f00828847139028f442a455364
-COCOAPODS: 1.14.2
+COCOAPODS: 1.12.1
diff --git a/integration_tests/sqlcipher_flutter/macos/Podfile b/integration_tests/sqlcipher_flutter/macos/Podfile
index dade8df..049abe2 100644
--- a/integration_tests/sqlcipher_flutter/macos/Podfile
+++ b/integration_tests/sqlcipher_flutter/macos/Podfile
@@ -1,4 +1,4 @@
-platform :osx, '10.11'
+platform :osx, '10.14'
# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
ENV['COCOAPODS_DISABLE_STATS'] = 'true'
diff --git a/integration_tests/sqlcipher_flutter/macos/Runner.xcodeproj/project.pbxproj b/integration_tests/sqlcipher_flutter/macos/Runner.xcodeproj/project.pbxproj
index 8899f9e..2da4d34 100644
--- a/integration_tests/sqlcipher_flutter/macos/Runner.xcodeproj/project.pbxproj
+++ b/integration_tests/sqlcipher_flutter/macos/Runner.xcodeproj/project.pbxproj
@@ -404,7 +404,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
- MACOSX_DEPLOYMENT_TARGET = 10.11;
+ MACOSX_DEPLOYMENT_TARGET = 10.14;
MTL_ENABLE_DEBUG_INFO = NO;
SDKROOT = macosx;
SWIFT_COMPILATION_MODE = wholemodule;
@@ -483,7 +483,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
- MACOSX_DEPLOYMENT_TARGET = 10.11;
+ MACOSX_DEPLOYMENT_TARGET = 10.14;
MTL_ENABLE_DEBUG_INFO = YES;
ONLY_ACTIVE_ARCH = YES;
SDKROOT = macosx;
@@ -530,7 +530,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
- MACOSX_DEPLOYMENT_TARGET = 10.11;
+ MACOSX_DEPLOYMENT_TARGET = 10.14;
MTL_ENABLE_DEBUG_INFO = NO;
SDKROOT = macosx;
SWIFT_COMPILATION_MODE = wholemodule;
diff --git a/sqlcipher_flutter_libs/macos/sqlcipher_flutter_libs.podspec b/sqlcipher_flutter_libs/macos/sqlcipher_flutter_libs.podspec
index 7010bcc..d29a153 100644
--- a/sqlcipher_flutter_libs/macos/sqlcipher_flutter_libs.podspec
+++ b/sqlcipher_flutter_libs/macos/sqlcipher_flutter_libs.podspec
@@ -19,7 +19,7 @@ A new flutter plugin project.
s.dependency 'SQLCipher', '~> 4.5.5'
- s.platform = :osx, '10.11'
+ s.platform = :osx, '10.14'
s.pod_target_xcconfig = {
'DEFINES_MODULE' => 'YES'
}
Ah, found out that this error is not crashing my app, it's just a warning:
/Users/lbialy/Projects/private/xyz-flutter/xyz/macos/Pods/Pods.xcodeproj: warning: The macOS deployment target 'MACOSX_DEPLOYMENT_TARGET' is set to 10.11, but the range of supported deployment target versions is 10.13 to 14.0.99. (in target 'sqlite3' from project 'Pods')
I've had a completely different error in my code - directory for the database did not exist and the exception was confusing (ClosedException).
@simolus3 I believe the reason why you might not have been able to recreate it is that newer versions of flutter seemed to have bumped the version requirement; for other reasons I needed to start a clean macOS folder in my existing project, and I found that this issue popped up:
/macos/Pods/Pods.xcodeproj: warning: The macOS deployment target 'MACOSX_DEPLOYMENT_TARGET' is set to 10.11, but the range of supported deployment target versions is 10.13 to 14.0.99. (in target 'sqlite3' from project 'Pods')
It looks like it's not isolated to only this package, many packages seem to also be on older deployment targets as well.
I'm developing an app also for MacOs. The app may not be built, and log gives an error "The macOS deployment target 'MACOSX_DEPLOYMENT_TARGET' is set to 10.11, but the range of supported deployment target versions is 10.13 to 13.3.99. (in target 'sqlite3' from project 'Pods')". It seems to me that latest Drift 2.11.1 may not be used with Xcode Version 14.3.1. May be it is possible to upgrade Drift to conform latests versions of Xcode.