Delete the original cocoapods, version, and then download the specified version of the Pods
Macbook-pro:sarrs_develop mac.pro$ pod--version
Macbook-pro:sarrs_develop mac.pro$ Gem List
Macbook-pro:sarrs_develop mac.pro$ Gem List cocoa
Macbook-pro:sarrs_develop mac.pro$ Gem Uninstall cocoapods
Macbook-pro:sarrs_develop mac.pro$ Gem List cocoa
Macbook-pro:sarrs_develop mac.pro$ Gem Uninstall Cocoapods-core
Macbook-pro:sarrs_develop mac.pro$ Gem Uninstall Cocoapods-downloader
Macbook-pro:sarrs_develop mac.pro$ Gem Uninstall cocoapods-deintegrate
Macbook-pro:sarrs_develop mac.pro$ gem install cocoapods-v 0.39
Macbook-pro:sarrs_develop mac.pro$ Gem List cocoa
Macbook-pro:sarrs_develop mac.pro$./pod_manager
[!] ' Xcodeproj ' is renamed to ' Project '. Please update your podfile accordingly.
The file/users/mac.pro/desktop/letv/gitlab/sarrs/sarrs_develop/*.xcworkspace does not exist.
Macbook-pro:sarrs_develop mac.pro$ pod--version
1.2.0.beta.1
Macbook-pro:sarrs_develop mac.pro$ Gem List
Local GEMS * * *
Activesupport (5.0.0, 4.2.7.1)
BigDecimal (1.2.8)
Cfpropertylist (2.3.4)
Claide (1.0.1, 1.0.0)
Cocoapods (1.2.0.beta.1, 1.0.1)
Cocoapods-core (1.2.0.beta.1, 1.0.1)
Cocoapods-deintegrate (1.0.1, 1.0.0)
Cocoapods-downloader (1.1.2, 1.1.0)
Cocoapods-plugins (1.0.0)
Cocoapods-search (1.0.0)
Cocoapods-stats (1.0.0)
Cocoapods-trunk (1.1.1, 1.0.0)
Cocoapods-try (1.1.0)
Colored (1.2)
Concurrent-ruby (1.0.2)
Did_you_mean (1.0.0)
Escape (0.0.4)
Fourflusher (2.0.1, 0.3.2)
Fuzzy_match (2.0.4)
Gh_inspector (1.0.2)
i18n (0.7.0)
Io-console (0.4.5)
JSON (1.8.3)
Minitest (5.8.3)
Molinillo (0.5.4, 0.4.5)
Nanaimo (0.2.3)
NAP (1.1.0)
Net-telnet (0.1.1)
NETRC (0.7.8)
Power_assert (0.2.6)
Psych (2.0.17)
Rake (10.4.2)
RDoc (4.2.1)
Ruby-macho (0.2.6)
Test-unit (3.1.5)
Thread_safe (0.3.5)
Tzinfo (1.2.2)
Xcodeproj (1.4.1, 1.2.0)
Macbook-pro:sarrs_develop mac.pro$ Gem List cocoa
Local GEMS * * *
Cocoapods (1.2.0.beta.1, 1.0.1)
Cocoapods-core (1.2.0.beta.1, 1.0.1)
Cocoapods-deintegrate (1.0.1, 1.0.0)
Cocoapods-downloader (1.1.2, 1.1.0)
Cocoapods-plugins (1.0.0)
Cocoapods-search (1.0.0)
Cocoapods-stats (1.0.0)
Cocoapods-trunk (1.1.1, 1.0.0)
Cocoapods-try (1.1.0)
Macbook-pro:sarrs_develop mac.pro$ Gem Uninstall cocoapods
Select Gem to uninstall:
1. cocoapods-1.0.1
2. Cocoapods-1.2.0.beta.1
3. All versions
> 3
Successfully uninstalled cocoapods-1.0.1
Remove Executables:
Pod, sandbox-pod
In addition to the gem? [Yn] Y
Removing pod
removing sandbox-pod
Successfully uninstalled cocoapods-1.2.0.beta.1
Macbook-pro:sarrs_develop mac.pro$ Gem List cocoa
Local GEMS * * *
Cocoapods-core (1.2.0.beta.1, 1.0.1)
Cocoapods-deintegrate (1.0.1, 1.0.0)
Cocoapods-downloader (1.1.2, 1.1.0)
Cocoapods-plugins (1.0.0)
Cocoapods-search (1.0.0)
Cocoapods-stats (1.0.0)
Cocoapods-trunk (1.1.1, 1.0.0)
Cocoapods-try (1.1.0)
Macbook-pro:sarrs_develop mac.pro$ Gem Uninstall Cocoapods-core
Select Gem to uninstall:
1. cocoapods-core-1.0.1
2. Cocoapods-core-1.2.0.beta.1
3. All versions
> 3
Successfully uninstalled cocoapods-core-1.0.1
Successfully uninstalled cocoapods-core-1.2.0.beta.1
Macbook-pro:sarrs_develop mac.pro$ Gem Uninstall Cocoapods-downloader
Select Gem to uninstall:
1. cocoapods-downloader-1.1.0
2. cocoapods-downloader-1.1.2
3. All versions
> 3
Successfully uninstalled cocoapods-downloader-1.1.0
Successfully uninstalled cocoapods-downloader-1.1.2
Macbook-pro:sarrs_develop mac.pro$ Gem Uninstall Cocoapods-plugins
Successfully uninstalled Cocoapods-plugins-1.0.0macbook-pro
Macbook-pro:sarrs_develop mac.pro$ Gem Uninstall Cocoapods-search
Successfully uninstalled cocoapods-search-1.0.0
Macbook-pro:sarrs_develop mac.pro$ Gem Uninstall cocoapods-stats
Successfully uninstalled cocoapods-stats-1.0.0
Macbook-pro:sarrs_develop mac.pro$ Gem Uninstall Cocoapods-trunk
Select Gem to uninstall:
1. cocoapods-trunk-1.0.0
2. cocoapods-trunk-1.1.1
3. All versions
> 3
Successfully uninstalled cocoapods-trunk-1.0.0
Successfully uninstalled cocoapods-trunk-1.1.1
Macbook-pro:sarrs_develop mac.pro$ Gem Uninstall Cocoapods-tyr
Macbook-pro:sarrs_develop mac.pro$ Gem Uninstall cocoapods-try
Successfully uninstalled cocoapods-try-1.1.0
Macbook-pro:sarrs_develop mac.pro$ Gem List cocoa
Local GEMS * * *
Cocoapods-deintegrate (1.0.1, 1.0.0)
Macbook-pro:sarrs_develop mac.pro$ Gem Uninstall cocoapods-deintegrate
Select Gem to uninstall:
1. cocoapods-deintegrate-1.0.0
2. cocoapods-deintegrate-1.0.1
3. All versions
> 3
Successfully uninstalled cocoapods-deintegrate-1.0.0
Successfully uninstalled cocoapods-deintegrate-1.0.1
Macbook-pro:sarrs_develop mac.pro$ Gem List cocoa
Local GEMS * * *
Macbook-pro:sarrs_develop mac.pro$ ls
Macbook-pro:sarrs_develop mac.pro$
Macbook-pro:sarrs_develop mac.pro$
Macbook-pro:sarrs_develop mac.pro$ gem install Cocoapods v 0.39
Fetching:cocoapods-core-1.1.1.gem (38%)
Fetching:cocoapods-core-1.1.1.gem (77%)
Fetching:cocoapods-core-1.1.1.gem (100%)
Successfully installed cocoapods-core-1.1.1
Fetching:cocoapods-deintegrate-1.0.1.gem (100%)
Error:while Executing gem ... (errno::eacces)
Permission denied @ rb_sysopen-/usr/local/lib/ruby/gems/2.3.0/gems/cocoapods-deintegrate-1.0.1/license
Macbook-pro:sarrs_develop mac.pro$
Macbook-pro:sarrs_develop mac.pro$
Macbook-pro:sarrs_develop mac.pro$
Macbook-pro:sarrs_develop mac.pro$ gem install cocoapods v0.39
Error:while Executing gem ... (errno::eacces)
Permission denied @ rb_sysopen-/usr/local/lib/ruby/gems/2.3.0/gems/cocoapods-deintegrate-1.0.1/license
Macbook-pro:sarrs_develop mac.pro$ Gem List cocoa
Local GEMS * * *
Cocoapods-core (1.1.1)
Macbook-pro:sarrs_develop mac.pro$ Gem Uninstall Cocoapods-core
Successfully uninstalled cocoapods-core-1.1.1
Macbook-pro:sarrs_develop mac.pro$ Gem Uninstall Cocoapods-search
Macbook-pro:sarrs_develop mac.pro$
Macbook-pro:sarrs_develop mac.pro$
Macbook-pro:sarrs_develop mac.pro$ gem Install--help
Usage:gem install Gemname [gemname ...] [Options]----build-flags [options]
Options:
--platform platform Specify the platform of gem to install
-V,--version version specify version of gem to install
--[no-]prerelease Allow Prerelease versions of a gem
To be installed. (only for listed gems)
Deprecated Options:
--[no-]rdoc Generate RDoc for installed Gems
&nbs