Steps to reproduce
When I try to upgrade my flutter version from 3.44.0 to 3.44.2 (the latest as of this issue), the following message is outputted:
Your flutter checkout has local changes that would be erased by upgrading. If you want to keep these changes, it is recommended that
you stash them via "git stash" or else commit the changes to a local branch. If it is okay to remove local changes, then re-run this
command with "--force".
It turns out my previous installation, when upgraded to 3.41.9 to 3.44.0, has changed the version of objective_c from 9.2.3 to 9.3.0, resulting in a modified pubpeck.lock, as seen in git diff pubspeck.lock in my Flutter directory:
diff --git a/pubspec.lock b/pubspec.lock
index 04fdb5b8219..782d065891d 100644
--- a/pubspec.lock
+++ b/pubspec.lock
@@ -558,10 +558,10 @@ packages:
dependency: transitive
description:
name: objective_c
- sha256: "9922a1ad59ac5afb154cc948aa6ded01987a75003651d0a2866afc23f4da624e"
+ sha256: "100a1c87616ab6ed41ec263b083c0ef3261ee6cd1dc3b0f35f8ddfa4f996fe52"
url: "https://pub.dev"
source: hosted
- version: "9.2.3"
+ version: "9.3.0"
package_config:
dependency: "direct main"
description:
I tried to upgrade from a newly installation of 3.44.0 (downloaded from the SDK archive) to 3.44.2, the pubspec.lock modification applies in that case as well.
I found a similar issue #183259 that was closed as a duplicate of #178777, HOWEVER, this current issue and #183259 have occurred on the STABLE channel and not on the MAIN channel like #178777. So my issue is NOT a duplicate of #178777.
Expected results
I should be able to upgrade without the --force option
Actual results
I'm required to use the --force option when I upgrade
Code sample
N/A, this is a problem with the flutter tool
Screenshots or Video
N/A
Logs
Logs
user@machine:~$ flutter upgrade --force --verbose
[ +25 ms] executing: uname -m
[ +4 ms] Exit code 0 from: uname -m
[ ] x86_64
[ +9 ms] Artifact Instance of 'MaterialFonts' is not required, skipping update.
[ ] Artifact Instance of 'GradleWrapper' is not required, skipping update.
[ ] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[ ] Artifact Instance of 'LegacyCanvasKitRemover' is not required, skipping update.
[ ] Artifact Instance of 'FlutterSdk' is not required, skipping update.
[ ] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[ ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'FontSubsetArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'PubDependencies' is not required, skipping update.
[ +73 ms] executing: [/home/user/bin/flutter/] git tag --points-at HEAD
[ +7 ms] Exit code 0 from: git tag --points-at HEAD
[ ] 3.44.0
[ +1 ms] executing: [/home/user/bin/flutter/] git fetch --tags
[ +479 ms] executing: [/home/user/bin/flutter/] git rev-parse --verify @{upstream}
[ +8 ms] c9a6c484230f8b5e408ec57be1ef71dee1e77020
[ ] executing: [/home/user/bin/flutter/] git tag --points-at c9a6c484230f8b5e408ec57be1ef71dee1e77020
[ +7 ms] Exit code 0 from: git tag --points-at c9a6c484230f8b5e408ec57be1ef71dee1e77020
[ ] 3.44.2
[ +3 ms] Upgrading Flutter to 3.44.2 from 3.44.0 in /home/user/bin/flutter...
[ ] executing: [/home/user/bin/flutter/] git reset --hard c9a6c484230f8b5e408ec57be1ef71dee1e77020
[ +103 ms] HEAD est maintenant à c9a6c484230 Update `engine.version` for 3.44.2 stable release (#187805)
[ +2 ms] executing: [/home/user/bin/flutter/] bin/flutter upgrade --continue --continue-started-at 2026-06-13T15:03:43.775873 --no-version-check
[ +48 ms] Downloading Linux x64 Dart SDK from Flutter engine 77e2e94772b6eb43759e34ed1ad7da4674e19cab...
[ +12 ms] % Total % Received % Xferd Average Speed Time Time Time Current
[ ] Dload Upload Total Spent Left Speed
[ +831 ms] 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
[+1001 ms] 0 222M 0 1406k 0 0 1691k 0 0:02:14 --:--:-- 0:02:14 1690k
[ +999 ms] 2 222M 2 6496k 0 0 3546k 0 0:01:04 0:00:01 0:01:03 3545k
[ +999 ms] 5 222M 5 11.3M 0 0 4118k 0 0:00:55 0:00:02 0:00:53 4117k
[+1000 ms] 7 222M 7 16.9M 0 0 4530k 0 0:00:50 0:00:03 0:00:47 4530k
[ +999 ms] 10 222M 10 22.5M 0 0 4787k 0 0:00:47 0:00:04 0:00:43 4787k
[+1002 ms] 12 222M 12 27.0M 0 0 4743k 0 0:00:47 0:00:05 0:00:42 5251k
[ +997 ms] 14 222M 14 32.3M 0 0 4843k 0 0:00:47 0:00:06 0:00:41 5319k
[+1000 ms] 16 222M 16 37.3M 0 0 4884k 0 0:00:46 0:00:07 0:00:39 5318k
[ +998 ms] 19 222M 19 43.0M 0 0 4995k 0 0:00:45 0:00:08 0:00:37 5353k
[+1001 ms] 21 222M 21 48.2M 0 0 5028k 0 0:00:45 0:00:09 0:00:36 5260k
[+1002 ms] 23 222M 23 52.7M 0 0 4990k 0 0:00:45 0:00:10 0:00:35 5278k
[ +995 ms] 26 222M 26 58.5M 0 0 5065k 0 0:00:44 0:00:11 0:00:33 5368k
[+1002 ms] 28 222M 28 62.9M 0 0 5020k 0 0:00:45 0:00:12 0:00:33 5232k
[ +999 ms] 30 222M 30 68.4M 0 0 5066k 0 0:00:44 0:00:13 0:00:31 5192k
[ +998 ms] 33 222M 33 74.2M 0 0 5122k 0 0:00:44 0:00:14 0:00:30 5307k
[ +999 ms] 35 222M 35 78.8M 0 0 5101k 0 0:00:44 0:00:15 0:00:29 5341k
[ +999 ms] 37 222M 37 84.1M 0 0 5117k 0 0:00:44 0:00:16 0:00:28 5241k
[+1002 ms] 39 222M 39 88.6M 0 0 5089k 0 0:00:44 0:00:17 0:00:27 5267k
[+1004 ms] 42 222M 42 94.4M 0 0 5133k 0 0:00:44 0:00:18 0:00:26 5318k
[ +992 ms] 44 222M 44 99.9M 0 0 5156k 0 0:00:44 0:00:19 0:00:25 5258k
[ +999 ms] 47 222M 47 105M 0 0 5169k 0 0:00:44 0:00:20 0:00:24 5382k
[+1000 ms] 49 222M 49 110M 0 0 5175k 0 0:00:43 0:00:21 0:00:22 5369k
[ +999 ms] 52 222M 52 115M 0 0 5199k 0 0:00:43 0:00:22 0:00:21 5590k
[+1000 ms] 54 222M 54 121M 0 0 5209k 0 0:00:43 0:00:23 0:00:20 5493k
[+1000 ms] 56 222M 56 126M 0 0 5224k 0 0:00:43 0:00:24 0:00:19 5495k
[+1000 ms] 59 222M 59 132M 0 0 5243k 0 0:00:43 0:00:25 0:00:18 5555k
[ +999 ms] 61 222M 61 136M 0 0 5214k 0 0:00:43 0:00:26 0:00:17 5385k
[ +999 ms] 63 222M 63 142M 0 0 5226k 0 0:00:43 0:00:27 0:00:16 5353k
[+1002 ms] 66 222M 66 147M 0 0 5225k 0 0:00:43 0:00:28 0:00:15 5302k
[ +999 ms] 68 222M 68 152M 0 0 5248k 0 0:00:43 0:00:29 0:00:14 5365k
[ +998 ms] 71 222M 71 158M 0 0 5266k 0 0:00:43 0:00:30 0:00:13 5382k
[ +999 ms] 73 222M 73 163M 0 0 5254k 0 0:00:43 0:00:31 0:00:12 5468k
[ +999 ms] 75 222M 75 168M 0 0 5264k 0 0:00:43 0:00:32 0:00:11 5475k
[+1000 ms] 78 222M 78 174M 0 0 5277k 0 0:00:43 0:00:33 0:00:10 5577k
[+1000 ms] 80 222M 80 179M 0 0 5280k 0 0:00:43 0:00:34 0:00:09 5473k
[+1000 ms] 83 222M 83 185M 0 0 5296k 0 0:00:42 0:00:35 0:00:07 5484k
[+1000 ms] 85 222M 85 190M 0 0 5288k 0 0:00:43 0:00:36 0:00:07 5507k
[ +998 ms] 88 222M 88 196M 0 0 5311k 0 0:00:42 0:00:37 0:00:05 5621k
[ +999 ms] 90 222M 90 201M 0 0 5317k 0 0:00:42 0:00:38 0:00:04 5587k
[+1004 ms] 93 222M 93 207M 0 0 5325k 0 0:00:42 0:00:39 0:00:03 5641k
[ +995 ms] 95 222M 95 212M 0 0 5323k 0 0:00:42 0:00:40 0:00:02 5518k
[+1004 ms] 97 222M 97 216M 0 0 5310k 0 0:00:42 0:00:41 0:00:01 5472k
[ +25 ms] 99 222M 99 222M 0 0 5310k 0 0:00:42 0:00:42 --:--:-- 5303k
[ ] 100 222M 100 222M 0 0 5311k 0 0:00:42 0:00:42 --:--:-- 5258k
[+6219 ms] Building flutter tool...
[ +25 ms] Resolving dependencies...
[ +801 ms] Downloading packages...
[ +6 ms] Got dependencies.
[+26117 ms] Upgrading engine...
[ +249 ms] [1/4] Flutter SDK
[ +329 ms] ├─ [1/5] sky_engine 331ms
[ +103 ms] ├─ [2/5] flutter_gpu 16ms
[ +739 ms] ├─ [3/5] flutter_patched_sdk 723ms
[ +826 ms] ├─ [4/5] flutter_patched_sdk_product 703ms
[+5345 ms] └─ [5/5] linux-x64 5,2s
[+1340 ms] [4/4] linux-x64/font-subset 509ms
[ +303 ms] Flutter 3.44.2 • channel stable • https://github.com/flutter/flutter.git
[ ] Framework • revision c9a6c48423 (il y a 3 jours) • 2026-06-10 15:52:41 -0700
[ ] Engine • hash 04efd7c093d4e9281d5526ebcad6ecc60ba8badf (revision 77e2e94772) (2 days ago) • 2026-06-10 19:59:06.000Z
[ ] Tools • Dart 3.12.2 • DevTools 2.57.0
[ +73 ms] Resolving dependencies...
[+1447 ms] Downloading packages...
[ +13 ms] _fe_analyzer_shared 95.0.0 (103.0.0 available)
[ ] adaptive_breakpoints 0.1.7 (discontinued)
[ ] analyzer 10.1.0 (13.3.0 available)
[ ] animations 2.1.2 (2.2.0 available)
[ ] archive 3.6.1 (4.0.9 available)
[ ] cli_util 0.4.2 (0.5.1 available)
[ ] code_assets 1.0.0 (1.2.1 available)
[ ] coverage 1.15.0 (1.15.1 available)
[ ] dart_style 3.1.7 (3.1.9 available)
[ ] data_assets 0.19.6 (0.20.0 available)
[ ] device_info 2.0.3 (discontinued replaced by device_info_plus)
[ ] gcloud 0.8.19 (0.9.0 available)
[ ] google_fonts 6.3.3 (8.1.0 available)
[ ] google_mobile_ads 5.1.0 (9.0.0 available)
[ ] googleapis 14.0.0 (16.0.0 available)
[ ] googleapis_auth 2.0.0 (2.3.2 available)
[ ] hooks 1.0.2 (2.0.2 available)
[ ] isolate 2.1.1 (discontinued)
[ ] js 0.7.2 (discontinued)
[ ] json_annotation 4.11.0 (4.12.0 available)
[ ] matcher 0.12.19 (0.12.20 available)
[ ] meta 1.18.0 (1.18.3 available)
[ ] native_toolchain_c 0.17.6 (0.19.1 available)
[ ] > objective_c 9.3.0 (was 9.2.3) (9.4.1 available)
[ ] package_config 2.2.0 (3.0.0 available)
[ ] pedantic 1.11.1 (discontinued replaced by lints)
[ ] standard_message_codec 0.0.1+4 (0.0.1+5 available)
[ ] test 1.31.0 (1.31.1 available)
[ ] test_api 0.7.11 (0.7.12 available)
[ ] test_core 0.6.17 (0.6.18 available)
[ ] url_launcher_android 6.3.29 (6.3.32 available)
[ ] url_launcher_web 2.4.2 (2.4.3 available)
[ ] vector_math 2.2.0 (2.4.0 available)
[ ] video_player_android 2.9.5 (2.9.6 available)
[ ] video_player_avfoundation 2.9.4 (2.9.7 available)
[ ] video_player_platform_interface 6.6.0 (6.7.0 available)
[ ] vm_service 15.0.2 (15.2.0 available)
[ ] webview_flutter 4.9.0 (4.14.0 available)
[ ] webview_flutter_android 3.16.9 (4.13.0 available)
[ ] webview_flutter_wkwebview 3.24.2 (3.26.0 available)
[ ] xml 6.6.1 (7.0.1 available)
[ ] Changed 1 dependency!
[ ] 5 packages are discontinued.
[ ] 36 packages have newer versions incompatible with dependency constraints.
[ ] Try `flutter pub outdated` for more information.
[ +28 ms] Running flutter doctor...
[ +324 ms] Doctor summary (to see all details, run flutter doctor -v):
[ +117 ms] [✓] Flutter (Channel stable, 3.44.2, on LMDE 7 (gigi) 6.12.90+deb13.1-amd64, locale fr_FR.UTF-8)
[+4054 ms] [✓] Android toolchain - develop for Android devices (Android SDK version 37.0.0)
[ +26 ms] [✗] Chrome - develop for the web (Cannot find Chrome executable at google-chrome)
[ +2 ms] ! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable.
[ +31 ms] [✓] Linux toolchain - develop for Linux desktop
[ +26 ms] [✓] Connected device (1 available)
[ +27 ms] [✓] Network resources
[ ] ! Doctor found issues in 1 category.
[ +178 ms] Took 1,5m
[ +152 ms] "flutter upgrade" took 92 530ms.
[ +68 ms] Running 1 shutdown hook
[ +1 ms] Shutdown hooks complete
[ +66 ms] exiting with code 0
Please note in the "Resolving dependencies..." step that objective_c was switched from 9.2.3 to 9.3.0
Flutter Doctor output
Doctor output
[✓] Flutter (Channel stable, 3.44.2, on LMDE 7 (gigi) 6.12.90+deb13.1-amd64, locale fr_FR.UTF-8) [56ms]
• Flutter version 3.44.2 on channel stable at /home/user/bin/flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision c9a6c48423 (il y a 2 jours), 2026-06-10 15:52:41 -0700
• Engine revision 77e2e94772
• Dart version 3.12.2
• DevTools version 2.57.0
• Feature flags: enable-web, enable-linux-desktop, enable-macos-desktop, enable-windows-desktop, enable-android, enable-ios,
cli-animations, enable-native-assets, enable-swift-package-manager, omit-legacy-version-file, enable-lldb-debugging,
enable-uiscene-migration
[✓] Android toolchain - develop for Android devices (Android SDK version 37.0.0) [3,1s]
• Android SDK at /home/user/Android/Sdk
• Emulator version 36.6.11.0 (build_id 15507667) (CL:N/A)
• Platform android-37.0, build-tools 37.0.0
• Java binary at: /home/user/bin/android-studio/jbr/bin/java
This is the JDK bundled with the latest Android Studio installation on this machine.
To manually set the JDK path, use: `flutter config --jdk-dir="path/to/jdk"`.
• Java version OpenJDK Runtime Environment (build 21.0.10+-14961533-b1163.108)
• All Android licenses accepted.
[✗] Chrome - develop for the web (Cannot find Chrome executable at google-chrome) [19ms]
! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable.
[✓] Linux toolchain - develop for Linux desktop [1 163ms]
• Debian clang version 19.1.7 (3+b1)
• cmake version 3.31.6
• ninja version 1.12.1
• pkg-config version 1.8.1
• OpenGL core renderer: Mesa Intel(R) HD Graphics 4400 (HSW GT2) (X11)
• OpenGL core version: 4.6 (Core Profile) Mesa 25.0.7-2 (X11)
• OpenGL core shading language version: 4.60 (X11)
• OpenGL ES renderer: Mesa Intel(R) HD Graphics 4400 (HSW GT2) (X11)
• OpenGL ES version: OpenGL ES 3.2 Mesa 25.0.7-2 (X11)
• OpenGL ES shading language version: OpenGL ES GLSL ES 3.20 (X11)
• GL_EXT_framebuffer_blit: yes (X11)
• GL_EXT_texture_format_BGRA8888: yes (X11)
[✓] Connected device (1 available) [160ms]
• Linux (desktop) • linux • linux-x64 • LMDE 7 (gigi) 6.12.90+deb13.1-amd64
[✓] Network resources [330ms]
• All expected network resources are available.
! Doctor found issues in 1 category.
Steps to reproduce
When I try to upgrade my flutter version from 3.44.0 to 3.44.2 (the latest as of this issue), the following message is outputted:
It turns out my previous installation, when upgraded to 3.41.9 to 3.44.0, has changed the version of
objective_cfrom 9.2.3 to 9.3.0, resulting in a modifiedpubpeck.lock, as seen ingit diff pubspeck.lockin my Flutter directory:I tried to upgrade from a newly installation of 3.44.0 (downloaded from the SDK archive) to 3.44.2, the
pubspec.lockmodification applies in that case as well.I found a similar issue #183259 that was closed as a duplicate of #178777, HOWEVER, this current issue and #183259 have occurred on the STABLE channel and not on the MAIN channel like #178777. So my issue is NOT a duplicate of #178777.
Expected results
I should be able to upgrade without the
--forceoptionActual results
I'm required to use the
--forceoption when I upgradeCode sample
N/A, this is a problem with the flutter tool
Screenshots or Video
N/A
Logs
Logs
Please note in the "Resolving dependencies..." step that
objective_cwas switched from 9.2.3 to 9.3.0Flutter Doctor output
Doctor output