Member-only story
How to create & publish cocoapods library ?
As an iOS developer, we all are aware of cocoapods libraries. During the development phase, We all used public cocoapods libraries which are developed by others. Have you ever thought of creating your own cocoapod library? If yes, then today in this article, we’ll learn how to create & publish custom cocoapods libraries.
Get Started
Create Library:
There are several steps to create a library. I wrote an article already on this. You can refer to that article to create a library. But I’ll mention the steps here.
Step 1: Install Cocoapods
Step 2: Create public repository on github
Step 3: Clone repository in machine
Step 4: Add README.md file (if not added)
Step 5: Create xcode library
Step 6: Write code in library
Step 7: Push your code
Step 8: Create podspec file
Step 9: Update podspec file
Step 10: Validate podspec file
Step 11: Add & push tag (release version)
Follow above steps from my last article: Article Link
Publish Library:
Now, we’ll publish our library on cocoapods.
Step12: Register Email ID