googlesamples / unity-jar-resolver

Unity plugin which resolves Android & iOS dependencies and performs version management
Other
1.22k stars 339 forks source link

Speed up iOS resolver by 10-15 minutes #502

Closed Nezz closed 2 years ago

Nezz commented 2 years ago

CocoaPods has introduced their CDN in 2019 and made it the default source. EDM's iOS resolver explicitly specifies the old source which has become extremely slow. The old source takes 10-15 minutes to clone on our build agents, making iOS builds needlessly slow. Using the CDN allows us to skip this step and start resolving dependencies right away.

This isn't obvious in local development because it only happens once and gets cached in ~/.cocoapods, but disposable build agents have to run it with every single build. Caching the repo is slow because it's around a gigabyte and contains over one million files.

Resolves #470.

chkuang-g commented 2 years ago

Thank you for the fix!

chkuang-g commented 2 years ago

I'm putting together a fix for https://github.com/firebase/quickstart-unity/issues/1178. Once that is done, I'll make another release for EDM4U.