我正在尝试升级到CocoaPods 1.2.1,但无法卸载CocoaPods 0.39.0。
我查看了很多有关此问题的帖子。显然0.39.0引起了很多问题。我没有足够的声誉点来附加我所评论的所有链接,但是有关于该主题的几个StackOverFlow问题和GitHub问题,因为v.0.39.0显然存在一些问题。以下是我审核的众多帖子中的两篇:
STACKOVERFLOW问题: Cocoa Pods need to completely re-install
COCOAPODS BLOG POST THE SHARDING和v.0.39.0: http://blog.cocoapods.org/Sharding/
这是我的'gem 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)“sudo gem uninstall cocoapods”然后“sudo gem install cocoapods”并关闭并在每一步后重新打开终端
2)我修改了我的.bash_profile,以确保我的echo $ PATH包含 - EXECUTABLE DIRECTORY:from my gem env
3)尝试“宝石原始 - 所有”
4)确保我的家酿是最新的
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 gem update cocoapods
9)我试过: sudo gem install cocoapods:1.2.1
但是当我尝试
时pod _1.2.1_ version
或
pod —version
它说0.39.0
10)“哪个pod”的输出是: 的/ usr / local / bin中/荚
11)我不记得如果我第一次尝试“sudo gem uninstall cocoapods”它给了我特别卸载0.39.0的选项。不过我选择了“所有版本”12)我尝试了“sudo chown -R”$(whoami)“/ usr / local / Cellar / rbenv”以确保它不是权限问题
13我正在使用Mac OS Sierra 10.12.5任何帮助都会非常感激!救命啊!?!
答案 0 :(得分:0)
我的问题的解决方案是:
$(function() {
$('.dropdown-menu a#1').click(function(e) {
e.preventDefault();
alert("hi");
$("#caseReport").css("display","block");
});
});
这是我摆脱0.39.0并安装最新版CocoaPods的唯一方法......
我找到了这个解决方案,并在以下链接中解释了为什么这是一个问题:
https://github.com/CocoaPods/CocoaPods/issues/3736
万岁!