Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[cloud_firestore] Xcode build extremely slow (Flutter macOS) #3185

Closed
nilsreichardt opened this issue Aug 15, 2020 · 7 comments
Closed

[cloud_firestore] Xcode build extremely slow (Flutter macOS) #3185

nilsreichardt opened this issue Aug 15, 2020 · 7 comments
Assignees
Labels
impact: crowd Affects many people, though not necessarily a specific customer with an assigned label. (P2) platform: macos Issues / PRs which are specifically for MacOS. plugin: cloud_firestore type: bug Something isn't working

Comments

@nilsreichardt
Copy link
Contributor

nilsreichardt commented Aug 15, 2020

Summary of Issue

Simply adding cloud_firestore to pubspec.yaml results in a huge increase in Flutter macOS XCode build times. The issue can be recreate with nothing more than a simple flutter create application and minor changes to pubspec.yaml.

Build Times

Default App without cloud_firestore: ^0.13.7

IMG_0024

Default App with cloud_firestore: ^0.13.7

IMG_0025

Default App without cloud_firestore: ^0.14.0-dev.1

IMG_0026

Default App with cloud_firestore: ^0.14.0-dev.1

IMG_0027

Tested by @TahaTesser

There is also already an closed issue (#349), but this issue is only for the iOS XCode build problem.

Flutter doctor
[✓] Flutter (Channel master, 1.21.0-10.0.pre.55, on Mac OS X 10.15.5 19F101,
    locale en-DE)
 
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
[✓] Xcode - develop for iOS and macOS (Xcode 11.6)
[✓] Chrome - develop for the web
[✓] Android Studio (version 3.6)
[✓] VS Code (version 1.48.0)
[✓] Connected device (3 available)
    ! Error: iPhone von Roland is not connected. Xcode will continue when iPhone
      von Roland is connected. (code -13)

• No issues found!
@TahaTesser
Copy link

TahaTesser commented Aug 17, 2020

Default App without cloud_firestore: ^0.13.7

IMG_0024

Default App with cloud_firestore: ^0.13.7

IMG_0025

Default App without cloud_firestore: ^0.14.0-dev.1

IMG_0026

Default App with cloud_firestore: ^0.14.0-dev.1

IMG_0027

flutter doctor -v
[✓] Flutter (Channel master, 1.21.0-10.0.pre.114, on Mac OS X 10.15.6 19G2021, locale en-GB)
    • Flutter version 1.21.0-10.0.pre.114 at /Users/tahatesser/Code/flutter_master
    • Framework revision b2c0970aa7 (27 hours ago), 2020-08-16 06:11:02 -0400
    • Engine revision b300be3df3
    • Dart version 2.10.0 (build 2.10.0-34.0.dev)

 
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.1)
    • Android SDK at /Users/tahatesser/Code/sdk
    • Platform android-30, build-tools 30.0.1
    • ANDROID_HOME = /Users/tahatesser/Code/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 11.6)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 11.6, Build version 11E708
    • CocoaPods version 1.9.3

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

[✓] Android Studio (version 4.0)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 48.1.2
    • Dart plugin version 193.7361
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)

[✓] VS Code (version 1.48.0)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.13.2

[✓] Connected device (4 available)
    • iPhone 11 (mobile) • A63D6F51-59F3-4A75-961F-3769709F3A92 • ios            • com.apple.CoreSimulator.SimRuntime.iOS-13-6
      (simulator)
    • macOS (desktop)    • macos                                • darwin-x64     • Mac OS X 10.15.6 19G2021
    • Web Server (web)   • web-server                           • web-javascript • Flutter Tools
    • Chrome (web)       • chrome                               • web-javascript • Google Chrome 84.0.4147.125

• No issues found!

@TahaTesser TahaTesser added platform: macos Issues / PRs which are specifically for MacOS. plugin: cloud_firestore type: bug Something isn't working impact: crowd Affects many people, though not necessarily a specific customer with an assigned label. (P2) labels Aug 17, 2020
@nilsreichardt
Copy link
Contributor Author

@TahaTesser Thank you for testing! 😍 I added the result to the ticket description 👍

@cbalmeida
Copy link

More than a year and still waiting for some solution. It's very frustrating when you see they give a s* about this issue.

@nilsreichardt
Copy link
Contributor Author

@cbalmeida Luckily they found a workaround for iOS after more than half a year. Maybe we will have a workaround in 2021 ;)

@Salakar
Copy link
Member

Salakar commented Aug 26, 2020

Some context as to why this doesn't work for macOS: invertase/firestore-ios-sdk-frameworks#11 (comment)

@Salakar
Copy link
Member

Salakar commented Jan 16, 2021

https://github.com/invertase/firestore-ios-sdk-frameworks is now supported on macOS since Firebase iOS SDK v7.4.0, see #4698 for a detailed example of integrating.

Please try it out and let me know how much it helps, thanks

@russellwheatley
Copy link
Member

As Mike has mentioned, you may now use the precompiled iOS version. For (if) any further updates regarding macOs build times, I'd follow #4698.

@firebase firebase locked and limited conversation to collaborators May 21, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
impact: crowd Affects many people, though not necessarily a specific customer with an assigned label. (P2) platform: macos Issues / PRs which are specifically for MacOS. plugin: cloud_firestore type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants