Skip to content

SwiftPM very slow fetching remote dependencies for first time #183659

Closed

Description

@vashworth

Add a firebase plugin like firebase_analytics to a vanilla Flutter project and time how long it takes to download the dependencies from a clean environment.

  1. flutter create my_app && cd my_app
  2. flutter config --enable-swift-package-manager
  3. flutter pub add firebase_analytics
  4. rm -rf $HOME/Library/Caches/org.swift.swiftpm
  5. rm -rf $HOME/Library/org.swift.swiftpm
  6. rm -rf $HOME/Library/Developer/Xcode/DerivedData
  7. cd ios
  8. time xcodebuild -resolvePackageDependencies

The "real" time outputted is usually around 4 minutes

4 minutes to download 1 plugin and it's dependencies is pretty bad

I don't think it's related to my internet connection because I'm getting 120 Mbps down.

Activity

  1. added
    platform-iosiOS applications specifically
    toolAffects the "flutter" command-line tool. See also t: labels.
    platform-macosBuilding on or for macOS specifically
    team-iosOwned by iOS platform team
    on Mar 13, 2026
  2. vashworth commented on Mar 13, 2026

    @vashworth
    ContributorAuthor

    When I run du -sh * in the Derived Data directory created for the app, the size of the packages downloaded is 1.3G

  3. added
    P1High-priority issues at the top of the work list
    triaged-iosTriaged by iOS platform team
    on Mar 19, 2026
  4. self-assigned this
    on Mar 19, 2026
  5. vashworth commented on Aug 25, 2026

    @vashworth
    ContributorAuthor

    We've done what we can: #183747

    Closing.

  6. github-actions commented on Sep 8, 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.

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

Metadata

Metadata

Assignees

Labels

P1High-priority issues at the top of the work listplatform-iosiOS applications specificallyplatform-macosBuilding on or for macOS specificallyteam-iosOwned by iOS platform teamtoolAffects the "flutter" command-line tool. See also t: labels.triaged-iosTriaged by iOS platform team

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions