Using cocoapods-binary to build dependencies only once

CocoaPods offers a helpful guide to avoid repeatedly building dependencies. It explains how to use the cocoapods-binary extension during pod install execution. This extension links prebuilt xcframework or static library binaries to your project instead of actual source codes for each dependency.

Furthermore, it provides granularity, allowing you to specify which dependencies you want to link as binaries and which you still want to keep as source code.

  1. Add plugin 'cocoapods-binary' to the top of your Podfile.
  2. Add :binary => true to those dependencies you want to link as a prebuilt binary.
  3. Run pod install again.
Cristian Ortega
Cristian Ortega
I’m an iOS developer based in Barcelona, Spain. I'm passionate about crafting intuitive mobile experiences. On this page, I share insights and lessons from my professional journey to inspire fellow developers