From a8d7855ae10502259920a42306ad7a560512878a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Harun=20=C5=9E=C4=B0M=C5=9EEK?= Date: Fri, 21 Aug 2026 18:17:30 +0300 Subject: [PATCH 1/2] fix(ios): raise SPM platform to iOS 13.0 to match FlutterFramework The iOS Package.swift declared a minimum platform of iOS 11.0 while depending on the FlutterFramework package, which Flutter generates with a minimum of iOS 13.0. Swift Package Manager rejects a package that depends on another package with a higher minimum platform version, so any app using wakelock_plus with SPM enabled fails during package resolution: Target Integrity (Xcode): The package product 'FlutterFramework' requires minimum platform version 13.0 for the iOS platform, but this target supports 12.0 Raising the app's own deployment target does not help, because the violation is between the two package manifests. iOS 13.0 is Flutter's own minimum (flutter_tools/lib/src/darwin/darwin.dart), so this does not reduce the plugin's effective support matrix. The macOS manifest already declares 10.15, which matches Flutter's macOS minimum and needs no change. --- wakelock_plus/ios/wakelock_plus/Package.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wakelock_plus/ios/wakelock_plus/Package.swift b/wakelock_plus/ios/wakelock_plus/Package.swift index 8429b7e..3877507 100644 --- a/wakelock_plus/ios/wakelock_plus/Package.swift +++ b/wakelock_plus/ios/wakelock_plus/Package.swift @@ -6,7 +6,7 @@ import PackageDescription let package = Package( name: "wakelock_plus", platforms: [ - .iOS("11.0") + .iOS("13.0") ], products: [ .library(name: "wakelock-plus", targets: ["wakelock_plus"]) From ac337f58f63c642dfddf126f92a59864f5b0f205 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Harun=20=C5=9E=C4=B0M=C5=9EEK?= Date: Fri, 21 Aug 2026 18:17:30 +0300 Subject: [PATCH 2/2] chore(ios): align podspec deployment target with Flutter's iOS 13.0 minimum The podspec declared iOS 12.0 while the SPM manifest declared 11.0 and Flutter itself requires 13.0. This is a consistency fix only: CocoaPods builds already work because flutter_additional_ios_build_settings raises pods below Flutter's minimum at install time. Split into its own commit so it can be dropped independently of the Package.swift fix. --- wakelock_plus/ios/wakelock_plus.podspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wakelock_plus/ios/wakelock_plus.podspec b/wakelock_plus/ios/wakelock_plus.podspec index 22b77bd..03df01d 100644 --- a/wakelock_plus/ios/wakelock_plus.podspec +++ b/wakelock_plus/ios/wakelock_plus.podspec @@ -16,7 +16,7 @@ Plugin that allows you to keep the device screen awake, i.e. prevent the screen s.source_files = 'wakelock_plus/Sources/wakelock_plus/**/*.{h,m}' s.public_header_files = 'wakelock_plus/Sources/wakelock_plus/include/**/*.h' s.dependency 'Flutter' - s.platform = :ios, '12.0' + s.platform = :ios, '13.0' # Flutter.framework does not contain a i386 slice. s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES', 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'i386' }