/Users/Softwind/Libs/Ruby/bin/pod update --no-repo-update
What did you do?
What did you expect to happen?
What happened instead?
CocoaPods : 1.1.1
Ruby : ruby 2.0.0p648 (2015-12-16 revision 53162) [universal.x86_64-darwin16]
RubyGems : 2.4.8
Host : Mac OS X 10.12.1 (16B2555)
Xcode : 8.1 (8B62)
Git : git version 2.9.3 (Apple Git-75)
Ruby lib dir : /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib
Repositories : master - https://github.com/CocoaPods/Specs.git @ 7521966080522462029381a00b9930ecbec163fb
qianka-specs - [email protected]:v3/Specs.git @ 1e8ca49a372ba0e68d55c17ff653e050f69f5acb
cocoapods-deintegrate : 1.0.1
cocoapods-plugins : 1.0.0
cocoapods-search : 1.0.0
cocoapods-stats : 1.0.0
cocoapods-trunk : 1.1.1
cocoapods-try : 1.1.0
platform :ios, '7.0'
target 'Chengpin' do
pod 'WebViewJavascriptBridge', '~> 5.0'
pod 'LiteAPI', :git => '[email protected]:softwind/LiteAPI.git'
pod 'QKPush', :git => '[email protected]:ios/QKPush.git'
pod 'KGBPBase', :git => '[email protected]:liu.lihui/KGBPBase.git'
pod 'com.kagou.chengpin', :git => '[email protected]:liu.lihui/QKBPSocialService.git'
pod 'QKBPHotFix', :git => '[email protected]:liu.lihui/QKBPHotFix.git'
pod 'QKUMPure', :git => '[email protected]:softwind/QKUMLib.git'
pod 'FMDB'
end
NoMethodError - undefined method `dirname' for nil:NilClass
/Users/Softwind/Libs/Ruby/gems/cocoapods-1.1.1/lib/cocoapods/validator.rb:261:in `dot_swift_version'
/Users/Softwind/Libs/Ruby/gems/cocoapods-1.1.1/lib/cocoapods/validator.rb:145:in `failure_reason'
/Users/Softwind/Libs/Ruby/gems/cocoapods-1.1.1/lib/cocoapods/external_sources/abstract_external_source.rb:176:in `validate_podspec'
/Users/Softwind/Libs/Ruby/gems/cocoapods-1.1.1/lib/cocoapods/external_sources/abstract_external_source.rb:163:in `store_podspec'
/Users/Softwind/Libs/Ruby/gems/cocoapods-1.1.1/lib/cocoapods/external_sources/abstract_external_source.rb:119:in `block in pre_download'
/Users/Softwind/Libs/Ruby/gems/cocoapods-1.1.1/lib/cocoapods/user_interface.rb:85:in `titled_section'
/Users/Softwind/Libs/Ruby/gems/cocoapods-1.1.1/lib/cocoapods/external_sources/abstract_external_source.rb:112:in `pre_download'
/Users/Softwind/Libs/Ruby/gems/cocoapods-1.1.1/lib/cocoapods/external_sources/downloader_source.rb:13:in `fetch'
/Users/Softwind/Libs/Ruby/gems/cocoapods-1.1.1/lib/cocoapods/installer/analyzer.rb:639:in `fetch_external_source'
/Users/Softwind/Libs/Ruby/gems/cocoapods-1.1.1/lib/cocoapods/installer/analyzer.rb:615:in `block (2 levels) in fetch_external_sources'
/Users/Softwind/Libs/Ruby/gems/cocoapods-1.1.1/lib/cocoapods/installer/analyzer.rb:614:in `each'
/Users/Softwind/Libs/Ruby/gems/cocoapods-1.1.1/lib/cocoapods/installer/analyzer.rb:614:in `block in fetch_external_sources'
/Users/Softwind/Libs/Ruby/gems/cocoapods-1.1.1/lib/cocoapods/user_interface.rb:64:in `section'
/Users/Softwind/Libs/Ruby/gems/cocoapods-1.1.1/lib/cocoapods/installer/analyzer.rb:613:in `fetch_external_sources'
/Users/Softwind/Libs/Ruby/gems/cocoapods-1.1.1/lib/cocoapods/installer/analyzer.rb:73:in `analyze'
/Users/Softwind/Libs/Ruby/gems/cocoapods-1.1.1/lib/cocoapods/installer.rb:236:in `analyze'
/Users/Softwind/Libs/Ruby/gems/cocoapods-1.1.1/lib/cocoapods/installer.rb:150:in `block in resolve_dependencies'
/Users/Softwind/Libs/Ruby/gems/cocoapods-1.1.1/lib/cocoapods/user_interface.rb:64:in `section'
/Users/Softwind/Libs/Ruby/gems/cocoapods-1.1.1/lib/cocoapods/installer.rb:149:in `resolve_dependencies'
/Users/Softwind/Libs/Ruby/gems/cocoapods-1.1.1/lib/cocoapods/installer.rb:110:in `install!'
/Users/Softwind/Libs/Ruby/gems/cocoapods-1.1.1/lib/cocoapods/command/update.rb:60:in `run'
/Library/Ruby/Gems/2.0.0/gems/claide-1.0.1/lib/claide/command.rb:334:in `run'
/Users/Softwind/Libs/Ruby/gems/cocoapods-1.1.1/lib/cocoapods/command.rb:50:in `run'
/Users/Softwind/Libs/Ruby/gems/cocoapods-1.1.1/bin/pod:55:in `<top (required)>'
/Users/Softwind/Libs/Ruby/bin/pod:23:in `load'
/Users/Softwind/Libs/Ruby/bin/pod:23:in `<main>'
This occurs when I update the cocoapods to 1.1.1, and now I can't do pod install. Can anyone help me please?
This should be fixed in 1.2.0.beta.1
@segiddins Thanks. After I updated the version to 1.2.0.bata.1, my cocoapods worked well. It's very good that the error logs are more clear in 1.2.0.beta.1 than before.
i want to updated the version to 1.2.0.bata.1 . so i uninstall all pod. then : sudo gem install -n /usr/local/bin cocoapods 1.2.0.beta.1
Successfully installed cocoapods-1.1.1
Parsing documentation for cocoapods-1.1.1
ERROR: Could not find a valid gem '1.2.0.beta.1' (>= 0) in any repository
1 gem installed
@jieson try sudo gem install -n /usr/local/bin cocoapods --pre
I can confirm, it fixes it for me in 1.2.0.
Most helpful comment
@jieson try
sudo gem install -n /usr/local/bin cocoapods --pre