I accidentally ran pod update
instead of pod install
, and now I have compile errors in my project.
Is there any easy way of reverting to my previous pods?
I'm thinking of hacking it -- I have my Podfile.lock file under source control, so I can grab the version numbers off that, then lock down the Podfile to those numbers e.g.:
pod 'AFNetworking', '2.6.3'
But is there a simple command like pod revert
or pod undo
or something?
Otherwise I'll probably just suck it up and update my project code to be compatible to the new pods.
If you use git or other version control system, just reset changes in Podfile.lock
and run $ pod install
in terminal.
The best way is to remove the pods directory from your project and update and install it again.
rm -rf Pods
bundle exec pod repo update
bundle exec pod install
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With