1

I have created a pod project. It is pushed and workes properly. Then I decided to make couple of updates. I've created a new tag, validated the code and pushed again.

git tag 0.1.2
git push origin 0.1.2
pod spec lint PlaybuzzSDK.podspec
pod trunk push PlaybuzzSDK.podspec 

The process was successful. But when I try to do

pod update

In my EmapleProject, the pod roles back to what it was before. What am I missing?

rmaddy
  • 314,917
  • 42
  • 532
  • 579
Luda
  • 7,282
  • 12
  • 79
  • 139

2 Answers2

5

Try this in terminal:

rm -rf ~/Library/Caches/Cocoapods
rm -rf ~/.cocoapods/repos

Cocoapods has it's own local cache of all the pods you're using locally. Sometimes when pushing a new pod spec up, the cache doesn't pick up the changes. Removing the cached repos and pod specs forces a fresh download the next time you do a pod install.

If you're not seeing it at that point, I'd make sure you've successfully pushed all tags (git push --tags origin) and that you didn't have any errors when you did pod spec lint PlaybuzzSDK.podspec.

Jake
  • 13,097
  • 9
  • 44
  • 73
3

Try pushing the podspec to the trunk again, version 0.1.2 doesn't seem to exist there:

enter image description here

You can also check your pod's status from https://cocoapods.org/pods/[podname], in your case: https://cocoapods.org/pods/PlaybuzzSDK.

xoudini
  • 7,001
  • 5
  • 23
  • 37