我想升級到CocoaPods 1.2.1,但無法卸載CocoaPods 0.39.0。不能升級過去CocoaPods 0.39.0
我已閱讀了許多關於此問題的文章。顯然0.39.0導致了很多問題。我沒有足夠的信譽點來附加所有我已經查看的鏈接,但是有關該主題的幾個StackOverFlow問題和GitHub問題顯然存在一些問題。這裏有兩個的很多帖子我回顧了:
StackOverflow的問題: Cocoa Pods need to completely re-install
的CocoaPods博客文章分片和v.0.39.0: http://blog.cocoapods.org/Sharding/
這裏是我的 '寶石ENV' 的輸出:
RubyGems Environment:
- RUBYGEMS VERSION: 2.6.12
- RUBY VERSION: 2.3.1 (2016-04-26 patchlevel 112) [x86_64-darwin15]
- INSTALLATION DIRECTORY:
/Users/johndoe/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0
- USER INSTALLATION DIRECTORY: /Users/johndoe/.gem/ruby/2.3.0
- RUBY EXECUTABLE: /Users/johndoe/.rbenv/versions/2.3.1/bin/ruby
- EXECUTABLE DIRECTORY: /Users/johndoe/.rbenv/versions/2.3.1/bin
- SPEC CACHE DIRECTORY: /Users/johndoe/.gem/specs
- SYSTEM CONFIGURATION DIRECTORY:
/Users/johndoe/.rbenv/versions/2.3.1/etc
- RUBYGEMS PLATFORMS:
- ruby
- x86_64-darwin-15
- GEM PATHS:
- /Users/johndoe/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0
- /Users/johndoe/.gem/ruby/2.3.0
- GEM CONFIGURATION:
- :update_sources => true
- :verbose => true
- :backtrace => false
- :bulk_threshold => 1000
- REMOTE SOURCES:
- https://rubygems.org/
- SHELL PATH:
- /Users/johndoe/.rbenv/versions/2.3.1/bin
- /usr/local/Cellar/rbenv/1.1.1/libexec
- /usr/local/bin
- /usr/local/sbin
- /Users/johndoe/.rbenv/shims
- /Users/johndoe/.rbenv/shims
- /usr/local/bin
- /usr/bin
- /bin
- /usr/sbin
- /sbin
- /Applications/Postgres.app/Contents/Versions/latest/bin
- /Users/johndoe/.rbenv/versions/2.3.1/bin
這裏是我的'寶石列表 - 本地|的grep的CocoaPods'輸出:
cocoapods (1.2.1)
cocoapods-core (1.2.1, 1.2.0, 0.39.0)
cocoapods-deintegrate (1.0.1)
cocoapods-downloader (1.1.3, 0.9.3)
cocoapods-plugins (1.0.0, 0.4.2)
cocoapods-search (1.0.0, 0.1.0)
cocoapods-stats (1.0.0, 0.6.2)
cocoapods-trunk (1.2.0, 0.6.4)
cocoapods-try (1.1.0, 0.5.1)
我試圖通過以下方法解決:
1)‘命令寶石卸載的CocoaPods’,然後‘須藤寶石安裝的CocoaPods’和關閉,並且在每個步驟之後重新打開終端
2)我修改了.bash_profile以確保我回聲$ PATH包括 - 可執行文件目錄:從我的寶石ENV
3)試圖 「寶石原始--all」
確信2104)我的家釀酒是最新
5)重新安裝rbenv
6)嘗試過各種組合:
$ sudo rm -fr ~/Library/Caches/CocoaPods/
$ sudo rm -fr ~/.cocoapods/repos/master/
$ sudo rm -fr Pods/
,然後卸載並重新安裝的CocoaPods ...
7)手動應用「sudo gem uninstall」到我的「gem list --local |的輸出中的每個元素grep的的CocoaPods」然後......
rm -rf ~/.cocoapods/repos/master
sudo gem install cocoapods
8)試圖 $ sudo的創業板更新的CocoaPods
9)我想: sudo的創業板安裝的CocoaPods:1.2.1
但是當我嘗試
pod _1.2.1_ version
或
pod —version
它說0.39.0
10)的輸出「這莢」是: 在/ usr/local/bin目錄/莢
11)我不記得,如果我第一次嘗試「sudo的寶石卸載cocoapods「,它給了我專門卸載0.39.0的選項。我選擇了「所有版本」儘管如此
12)我想「須藤喬敦 - R的‘$(WHOAMI)’在/ usr /本地/庫/ rbenv」,以確保它不是一個權限問題
13 !?!)我使用Mac OS塞拉利昂10.12.5
任何幫助,將不勝感激幫助