- pod repo push failure after xcodeproj / fourflusher updates
参考:https://github.com/CocoaPods/CocoaPods/issues/5445
环境:CocoaPods : 1.0.1
Ruby : ruby 2.2.1p85 (2015-02-26 revision 49769) [x86_64-darwin14]
pod install 后的报错信息:
LoadError - cannot load such file -- fourflusher
/Users/marin/.rvm/gems/ruby-2.2.1@global/gems/cocoapods-1.0.1/lib/cocoapods/validator.rb:717:in `xcodebuild'
/Users/marin/.rvm/gems/ruby-2.2.1@global/gems/cocoapods-1.0.1/lib/cocoapods/validator.rb:478:in `block in build_pod'
/Users/marin/.rvm/gems/ruby-2.2.1@global/gems/cocoapods-1.0.1/lib/cocoapods/user_interface.rb:141:in `message'
/Users/marin/.rvm/gems/ruby-2.2.1@global/gems/cocoapods-1.0.1/lib/cocoapods/validator.rb:477:in `build_pod'
/Users/marin/.rvm/gems/ruby-2.2.1@global/gems/cocoapods-1.0.1/lib/cocoapods/validator.rb:274:in `block in perform_extensive_analysis'
/Users/marin/.rvm/gems/ruby-2.2.1@global/gems/cocoapods-1.0.1/lib/cocoapods/validator.rb:263:in `each'
/Users/marin/.rvm/gems/ruby-2.2.1@global/gems/cocoapods-1.0.1/lib/cocoapods/validator.rb:263:in `perform_extensive_analysis'
/Users/marin/.rvm/gems/ruby-2.2.1@global/gems/cocoapods-1.0.1/lib/cocoapods/validator.rb:81:in `validate'
/Users/marin/.rvm/gems/ruby-2.2.1/gems/cocoapods-trunk-1.0.0/lib/pod/command/trunk/push.rb:109:in `validate_podspec'
/Users/marin/.rvm/gems/ruby-2.2.1/gems/cocoapods-trunk-1.0.0/lib/pod/command/trunk/push.rb:61:in `run'
/Users/marin/.rvm/gems/ruby-2.2.1/gems/claide-1.0.0/lib/claide/command.rb:334:in `run'
/Users/marin/.rvm/gems/ruby-2.2.1@global/gems/cocoapods-1.0.1/lib/cocoapods/command.rb:50:in `run'
解决方案:
1. 卸载fourflusher 的所有版本
sudo gem uninstall fourflusher
// Select to uninstall all versions
2. 重新安装 0.3.0 版本:
sudo gem install fourflusher --version 0.3.0
查看已安装版本命令:gem list
$ gem list
*** LOCAL GEMS ***
activesupport (4.2.6)
bigdecimal (1.2.0)
bundler-unload (1.0.2)
CFPropertyList (2.3.5)
claide (1.0.1, 1.0.0, 0.9.1)
cocoapods (1.0.1, 0.39.0)
cocoapods-core (1.2.0, 1.1.1, 1.0.1, 0.39.0)
cocoapods-deintegrate (1.0.1, 1.0.0)
cocoapods-downloader (1.1.3, 1.1.0, 1.0.0, 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.1.2, 1.0.0, 0.6.4)
cocoapods-try (1.1.0, 1.0.0, 0.5.1)
colored (1.2)
escape (0.0.4)
executable-hooks (1.3.2)
fourflusher (0.3.0)
网友评论