Home > Software design >  Running Xcode build is taking a very long time in flutter
Running Xcode build is taking a very long time in flutter

Time:10-19

I am using Firebase as a part of my App, after installing firebase_core: ^1.22.0 & cloud_firestore: ^3.4.9 the Running Xcode build is taking between 15 to 20 min. while earlier it was taking 1 to 3 min. only, the same is applicable for physical devices & simulators... I have no issues uploading to Android devices, the uploading time is between 2 to 3 min only, moreover it is slowing the App performance... can anybody help me in this

CodePudding user response:

Firebase provides Precompiled Firestore iOS SDK xcframework files. Really cuts down on compile times.

You can read more here: https://github.com/invertase/firestore-ios-sdk-frameworks#supported-firebase-ios-sdk-versions

and here:

https://firebase.google.com/docs/ios/installation-methods

CodePudding user response:

Firestore iOS SDK depends on some 500k lines of mostly C . That's why it takes too much time in build. You need to add this line in Podfile:

target 'Runner' do
  use_frameworks!
  use_modular_headers!
  #This line. The tag depends on what Firebase SDK you have installed.
  pod 'FirebaseFirestore', :git => 'https://github.com/invertase/firestore-ios-sdk-frameworks.git', :tag => '9.5.0'
  flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
end

For more information: https://github.com/invertase/firestore-ios-sdk-frameworks

  • Related