Member-only story

Swift: Build a Public Pod Library

The Blue Prototype
4 min readApr 30, 2020

--

In this post, we’ll learn how to upload public swift libraries on GitHub and access it through a pod, while also covering the versioning system of the library.

Get Started

Step 1: Install cocoapods

Open the terminal application and goto the root directory, then install Cocoapods by commands. Once installation is done check the pod version

sudo gem install cocoapods

sudo pod — version

Step 2: Create a public repository on GitHub

Select the plus icon in the upper right corner, and click on the new repository option:

Step 3: Clone this repository on your system

Step 4: Add README.md

Follow the commands as per described in the above image to add the README.md file in the repository or you can directly add on your GitHub account.

--

--

Responses (1)