Upgrading and Releasing New Pod Versions on CocoaPods
I assume you’ve already maintained a pod and are the author of it. If not, you should start here: Getting setup with Trunk.
I don’t frequently release new versions of pods, and when I have to, I tend to forget the steps.
Hence, this is a note for myself.
Upgrade pod on CocoaPods
- Update the
.podspec
file for s.version and s.source with the new git tag. - Create a new git tag.
- Push the
.podspec
commit and tag to the remote. - Run
pod spec lint --allow-warnings
. - Run
pod trunk register mail@example.com 'Name'
for verifing the session. - Run
arch -x86_64 pod trunk push --allow-warnings
.
Fetch newly updated pods on local environment
CocoaDocs receives notifications from the CocoaPods/Specs repo on GitHub whenever a CocoaPod is updated. This process can take around 15 minutes after your Podspec is merged.
from:How do I get my library on CocoaDocs?
Run arch -x86_64 pod repo update
.
That’s it. Happy upgrading!