Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Optimizing Xcode Build time when using Firebase library

Since I'm building using FireStore and few other Firebase library, the build time has doubled down. I'm wondering if there is a way to avoid compiling it every time I clean & build my project.

like image 295
Jaythaking Avatar asked Nov 08 '19 19:11

Jaythaking


1 Answers

Don't clean & build, just build. ;)

Disclaimer: Before doing releases, a clean build is preferred, of course.


UPDATE with better answer: Use cocoapods-binary plugin.

https://guides.cocoapods.org/plugins/pre-compiling-dependencies.html

One solution for this is to not give Xcode the chance to re-compile code. CocoaPods Binary will pre-compile your Pods during pod install, and then add the binary assets (e.g. .framework files) into the generated Xcode projects instead of the source code.

Like this.

plugin 'cocoapods-binary'
use_frameworks!

target "MyApp" do
  pod "NeededPod", :binary => true
end
like image 72
heyfrank Avatar answered Nov 10 '22 14:11

heyfrank