Skip to content

SwiftPM very slow fetching remote dependencies for first time #183659

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.

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
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions