Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Flutter - build on iOS very slowly, how fix it?

I have flutter's app. I run it app in debug mode on iPhone from Android Studio(on Mac). It is very slowly(about 10 minutes). if I run my project from xCode it is much faster - about a minute.

enter image description here

this is a "medium" project, it uses some firebase packages:

 firebase_messaging: ^10.0.3
 firebase_analytics: ^8.1.2
 firebase_remote_config: ^0.10.0+2
 firebase_core: ^1.3.0

but I did not find any problems on the net related to these plugins, only for cloud_firestore. how can I determine what is the problem with the long build? any advice?

like image 368
FetFrumos Avatar asked Nov 24 '25 15:11

FetFrumos


1 Answers

Try to add FirebaseFirestore github firebase sdk to your project's podfile under runner target as below:

target 'Runner' do
  use_frameworks!
  use_modular_headers!

  flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
  target 'RunnerTests' do
    inherit! :search_paths
  end
  pod 'FirebaseFirestore', :git => 'https://github.com/invertase/firestore-ios-sdk-frameworks.git', :tag => '7.11.0'
end
like image 190
bhargav Vagadiya Avatar answered Nov 26 '25 05:11

bhargav Vagadiya



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!