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

  1. Update the .podspec file for s.version and s.source with the new git tag.
  2. Create a new git tag.
  3. Push the .podspec commit and tag to the remote.
  4. Run pod spec lint --allow-warnings.
  5. Run pod trunk register mail@example.com 'Name' for verifing the session.
  6. 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!