Skip to content

Commit 7613f87

Browse files
committed
fix: workmanager update broke ios build
Error: The plugin "workmanager_apple" requires a higher minimum iOS deployment version than your application is targeting. To build, increase your application's deployment target to at least 13.0 as described at https://flutter.dev/to/ios-deploy
1 parent 3290194 commit 7613f87

File tree

5 files changed

+6
-10
lines changed

5 files changed

+6
-10
lines changed

.github/workflows/ios.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,7 @@ jobs:
4040
architecture: x64
4141

4242
- name: Install Codemagic CLI Tools
43-
run: |
44-
brew install pipx
45-
pipx install codemagic-cli-tools
43+
run: pipx install codemagic-cli-tools
4644

4745
- name: Setup keychain
4846
run: |
@@ -62,7 +60,6 @@ jobs:
6260
run: flutter config --no-cli-animations
6361

6462
- run: flutter pub get
65-
- run: find . -name "Podfile" -execdir pod install \;
6663

6764
- name: Build for iOS
6865
run: |

.github/workflows/macos.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ jobs:
6565
run: flutter config --no-cli-animations
6666

6767
- run: flutter pub get
68-
- run: find . -name "Podfile" -execdir pod install \;
6968

7069
- name: Build for macOS
7170
run: |

ios/Podfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Uncomment this line to define a global platform for your project
2-
# platform :ios, '12.0'
2+
# platform :ios, '13.0'
33

44
# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
55
ENV['COCOAPODS_DISABLE_STATS'] = 'true'

ios/Runner.xcodeproj/project.pbxproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,7 @@
472472
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
473473
GCC_WARN_UNUSED_FUNCTION = YES;
474474
GCC_WARN_UNUSED_VARIABLE = YES;
475-
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
475+
IPHONEOS_DEPLOYMENT_TARGET = 13.0;
476476
MTL_ENABLE_DEBUG_INFO = NO;
477477
SDKROOT = iphoneos;
478478
SUPPORTED_PLATFORMS = iphoneos;
@@ -604,7 +604,7 @@
604604
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
605605
GCC_WARN_UNUSED_FUNCTION = YES;
606606
GCC_WARN_UNUSED_VARIABLE = YES;
607-
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
607+
IPHONEOS_DEPLOYMENT_TARGET = 13.0;
608608
MTL_ENABLE_DEBUG_INFO = YES;
609609
ONLY_ACTIVE_ARCH = YES;
610610
SDKROOT = iphoneos;
@@ -655,7 +655,7 @@
655655
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
656656
GCC_WARN_UNUSED_FUNCTION = YES;
657657
GCC_WARN_UNUSED_VARIABLE = YES;
658-
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
658+
IPHONEOS_DEPLOYMENT_TARGET = 13.0;
659659
MTL_ENABLE_DEBUG_INFO = NO;
660660
SDKROOT = iphoneos;
661661
SUPPORTED_PLATFORMS = iphoneos;

ios/Runner/AppDelegate.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import UIKit
22
import Flutter
3-
import workmanager
3+
import workmanager_apple
44

55
@main
66
@objc class AppDelegate: FlutterAppDelegate {

0 commit comments

Comments
 (0)