https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
k

Kurt Renzo Acosta

06/23/2021, 7:16 PM
Hi. When I’m building my project using cocoapods, it takes a really long time on my first build. Specifically the
podBuild<Library>Iphoneos
and ``podBuild<Library>Iphonesimulator` tasks. They run up to 20 mins when I invalidate caches on my IDE… Does anyone have an idea on why this is happening? Thanks!
e

Evan

06/24/2021, 5:32 PM
I’ve seen similar performance on a coworker’s machine, it takes 20 minutes to build all the versions of our KMM app. It takes about 10 minutes on my machine that’s newer / higher specs. I don’t know why it takes so long, but subsequent builds are usually faster. I’ve found it helpful to only build the desired product by customizing the gradle commands I’m executing. (e.g. only build androidDebug, or debug on X64)
k

Kurt Renzo Acosta

06/28/2021, 3:39 PM
If anyone was wondering, I think it was because the pods of
FirebaseFirestore
depended on more libraries. The pods for
FirebaseMessaging
and
FirebaseStorage
only take up to a minute on the first run. These also only happen on the first project sync. After that, it’s good to go. It’s just a pain to wait for an hour if I have some changes that would require it to do the process all over again
5 Views