Learning iOS Development

How to Share iOS Library (Pod) With Others

Making your personal iOS podspecs repository

Photo by Ben White on Unsplash

Previously I shared about how to get iOS library dependencies with Cocoapod, and how to modularize your iOS app. What about if you like to share your iOS library with others? This will write on the steps to do so…

There are a few available articles that provide detailed steps as pointed out in the references section below. I still got confused at a high level about how it is done.

Hence here I will begin with a high-level picture of how it is done.

Personal Podspecs Repository just points to all the Pod Library Repositories

At a high level, you’ll just need to create to repository i.e.

  1. A Pod Library (or many others) to be shared — An example here.
  2. The Personal Podspecs Repository that points to the pods to be shared — An example here.

To complete the work, I break them into 3 parts as below.

1. Create your shareable pod

This may look similar to how to modularize your iOS app, but slightly different. Instead of creating…

--

--