Home > Mobile >  Flutter run takes too long
Flutter run takes too long

Time:07-17

I'm trying to run Flutter in debug mode.

The "Running Xcode Build" takes 30 minutes.

Flutter doctor looks normal.

These are my dependencies:

  flutter_lints: ^2.0.0
  firebase_core: ^1.19.2
  cloud_firestore: ^3.3.0
  firebase_auth: ^3.4.2

Did I configure something wrong?

CodePudding user response:

This is normal, this happened to me while building on a Tablet it took 25 minutes.

When I then switched to building on my iPhone it took about 8 minutes. So, there's nothing wrong with your Mac.

See also Xcode is running really slow:

When you build a project for the first time do it normally (it will take a while like you described)

After the first build Go to Product -> Scheme -> Edit Scheme. Select Build in left side column and uncheck Find implicit dependencies.

This appears to be a well known problem: https://forums.developer.apple.com/thread/62737

CodePudding user response:

Caused by the Firestore Package. Took 1,5 hours to build. When following this step of Firebase it reduced the build times to 10 minutes

https://firebase.flutter.dev/docs/firestore/overview
  • Related