Sebastian Dobrincu

View Original

How to Update your CocoaPods Library Version

If you are anything like me, you often forget how to publish a new version of your Cocoapods library. Although it's a really easy process, you can easily forget it if you don't do it in a while. 

So here's a quick cheat sheet for doing that: 

1. Update the pod version in your Podspec file. Make sure this matches the GitHub tag version you will create next. 

 

2. Push all the new files to your master branch.

 

3. Create a tag for your new Pod version and push it:

See this content in the original post

4. Check if your Pod passes verification using: 

See this content in the original post

5. Push your new Pod version using trunk:

See this content in the original post

 

Hope I saved you a few minutes of searching :)