Upgrading and Releasing New Pod Versions on CocoaPods
This guide assumes you already maintain a pod and are one of its authors. If not, start here: Getting set up with Trunk.
I don’t release new pod versions very often, and I tend to forget the exact steps—so this is a note to myself.
Upgrade pod on CocoaPods
- Update the
.podspecfile for s.version and s.source with the new git tag. - Create a new git tag.
- Push the
.podspeccommit 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!