Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cocoapods - 'pod --version' gives me 0.31.1 after updating to 0.32.1

I have basically the same question as this post: when running pod install I get The `master` repo requires CocoaPods 0.32.1, try updating but still in 0.31 but the answer doesn't help me (I'm not allowed to comment on things yet haha!)

I try to run 'pod install' or 'pod setup' and I get an error saying:

[!] The `master` repo requires CocoaPods 0.32.1 - 
Update CocoaPods, or checkout the appropriate tag in the repo.
/Library/Ruby/Gems/2.0.0/gems/claide-0.5.0/lib/claide/command.rb:281:in `rescue in run': undefined method `verbose?' for nil:NilClass (NoMethodError)
    from /Library/Ruby/Gems/2.0.0/gems/claide-0.5.0/lib/claide/command.rb:274:in `run'
    from /Library/Ruby/Gems/2.0.0/gems/cocoapods-0.31.1/lib/cocoapods/command.rb:51:in `run'
    from /Library/Ruby/Gems/2.0.0/gems/cocoapods-0.31.1/bin/pod:33:in `<top (required)>'
    from /usr/bin/pod:23:in `load'
    from /usr/bin/pod:23:in `<main>'

Then I run 'sudo gem install cocoapods' and I get:

CHANGELOG:

## 0.32.1

##### Bug Fixes

* Fixed the Podfile `default_subspec` attribute in nested subspecs.  
  [Fabio Pelosin][irrationalfab]
  [#2050](https://github.com/CocoaPods/CocoaPods/issues/2050)


Successfully installed cocoapods-0.32.1
Parsing documentation for cocoapods-0.32.1
Done installing documentation for cocoapods after 1 seconds
1 gem installed

Even after this, I run 'pod --version' and I still get 0.31.1. Is there another step I need to take to successfully update to 0.32.1?

like image 480
EAB Avatar asked Apr 20 '14 00:04

EAB


People also ask

How do I know if I have the latest version of Pod?

To check the version, enter kubectl version . In this exercise you will use kubectl to fetch all of the Pods running in a cluster, and format the output to pull out the list of Containers for each.

What is the difference between POD install and pod update?

The difference between pod install and pod update lies in how they interact with the Podfile. lock file. This file is used to store the exact version of each pod that is currently installed in your project.

How do I know what version of Pod SDK I have?

You can check the version number by opening the Podfile. lock file. The file can be opened with any text editor. In the example, the Mobile SDK version is 2.2.

How do I specify pod version in Podfile?

<Specifying pod versions Later on in the project you may want to freeze to a specific version of a Pod, in which case you can specify that version number. Besides no version, or a specific one, it is also possible to use logical operators: '> 0.1' Any version higher than 0.1. '>= 0.1' Version 0.1 and any higher version.


1 Answers

I am using bundle, so bundle update cocoapods works for me.

like image 97
Muzammil Avatar answered Sep 21 '22 15:09

Muzammil