You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
SwiftPM very slow fetching remote dependencies for first time #183659
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.
flutter create my_app && cd my_app
flutter config --enable-swift-package-manager
flutter pub add firebase_analytics
rm -rf $HOME/Library/Caches/org.swift.swiftpm
rm -rf $HOME/Library/org.swift.swiftpm
rm -rf $HOME/Library/Developer/Xcode/DerivedData
cd ios
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.
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.
Activity
vashworth commentedon Mar 13, 2026
This is a common SwiftPM problem:
https://forums.swift.org/t/why-is-fetching-dependencies-with-swiftpm-so-slow/67191/23
https://ahmdyasser.medium.com/why-fetching-packages-using-swift-package-manger-takes-too-much-time-138982a0fba5
swiftlang/swift-package-manager#6062
vashworth commentedon Mar 13, 2026
When I run
du -sh *in the Derived Data directory created for the app, the size of the packages downloaded is 1.3GWarn about slow SwiftPM downloads and centralize SwiftPM cache (#183747)
Warn about slow SwiftPM downloads and centralize SwiftPM cache (flutt…
Warn about slow SwiftPM downloads and centralize SwiftPM cache (flutt…
vashworth commentedon Aug 25, 2026
We've done what we can: #183747
Closing.
github-actions commentedon Sep 8, 2026
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 -vand a minimal reproduction of the issue.