Skip to content

flutter clean and xcode build is too slow when using SPM #180758

Closed as duplicate

Description

@RomanKapshuk

Steps to reproduce

  1. Use latest flutter
  2. Use few dozen libraries in project (some of them does not suppor SPM)
  3. Enable SPM https://docs.flutter.dev/packages-and-plugins/swift-package-manager/for-app-developers
  4. Add packages (in my case Amplify, but could be anything)
  5. Try to flutter clean and build xcode

If you need something specific, please, let me know.

Expected results

Build time and clean time at least ALMOST the same

Actual results

Xcode build time 10-15 minutes. Best case for flutter clean 25-30 minutes.

Code sample

Code sample

Screenshots or Video

Image Image

[Upload media here]

Logs

Logs
[Paste your logs here]

Flutter Doctor output

Doctor output
[✓] Flutter (Channel stable, 3.38.5, on macOS 26.1 25B78 darwin-arm64, locale en-UA) [865ms]
    • Flutter version 3.38.5 on channel stable at /Users/user/fvm/versions/3.38.5
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision f6ff1529fd (4 weeks ago), 2025-12-11 11:50:07 -0500
    • Engine revision 1527ae0ec5
    • Dart version 3.10.4
    • DevTools version 2.51.1
    • Feature flags: enable-web, enable-linux-desktop, no-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

[✓] Android toolchain - develop for Android devices (Android SDK version 36.1.0) [3.8s]
    • Android SDK at /Users/user/Library/Android/sdk
    • Emulator version 36.2.12.0 (build_id 14214601) (CL:N/A)
    • Platform android-36, build-tools 36.1.0
    • ANDROID_HOME = /Users/user/Library/Android/sdk
    • Java binary at: /opt/homebrew/opt/openjdk@17/bin/java
      This JDK is specified in your Flutter configuration.
      To change the current JDK, run: `flutter config --jdk-dir="path/to/jdk"`.
    • Java version OpenJDK Runtime Environment Homebrew (build 17.0.14+0)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 26.2) [12.0s]
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 17C52
    • CocoaPods version 1.16.2

[✓] Chrome - develop for the web [8ms]
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Connected device (2 available) [10.2s]
    • Roman’s iPhone (mobile) • 00008130-001204D11E31001C • ios            • iOS 18.7.1 22H31
    • Chrome (web)            • chrome                    • web-javascript • Google Chrome 143.0.7499.193

[✓] Network resources [488ms]
    • All expected network resources are available.

Activity

  1. darshankawar commented on Jan 12, 2026

    @darshankawar
    Member

    Seems similar to #173940, so please follow-up in it for further updates. You may share your findings in it for better tracking. Closing this as a duplicate. If you disagree, write in comments and I'll reopen it.

  2. added
    r: duplicateIssue is closed as a duplicate of an existing issue
    and removed
    in triagePresently being triaged by the triage team
    on Jan 12, 2026
  3. github-actions commented on Jan 26, 2026

    @github-actions

    This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

  4. locked as resolved and limited conversation to collaborators on Jan 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    r: duplicateIssue is closed as a duplicate of an existing issue

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions