--- MARKDOWN TEMPLATE ------------------------------------------ -----------------
/usr/local/bin/pod install
你做了什么?
您期望发生什么?
反而发生了什么?
CocoaPods : 1.4.0
Ruby : ruby 2.0.0p648 (2015-12-16 revision 53162) [universal.x86_64-darwin16]
RubyGems : 2.0.14.1
Host : Mac OS X 10.12.6 (16G29)
Xcode : 7.3.1 (7D1014)
Git : git version 2.7.4 (Apple Git-66)
Ruby lib dir : /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib
Repositories :
cocoapods-deintegrate : 1.0.2
cocoapods-plugins : 1.0.0
cocoapods-search : 1.0.0
cocoapods-stats : 1.0.0
cocoapods-trunk : 1.3.0
cocoapods-try : 1.1.0
ruby
source 'https://github.com/CocoaPods/Specs.git'
target 'Maps_Google' do
pod 'GoogleMaps'
end
LoadError - cannot load such file -- nanaimo
/Users/aliapple/.gem/ruby/2.0.0/gems/xcodeproj-1.5.4/lib/xcodeproj/plist.rb:23:in `read_from_path'
/Users/aliapple/.gem/ruby/2.0.0/gems/xcodeproj-1.5.4/lib/xcodeproj/project.rb:200:in `initialize_from_file'
/Users/aliapple/.gem/ruby/2.0.0/gems/xcodeproj-1.5.4/lib/xcodeproj/project.rb:102:in `open'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-1.4.0/lib/cocoapods/installer/analyzer.rb:907:in `block (2 levels) in inspect_targets_to_integrate'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-1.4.0/lib/cocoapods/installer/analyzer.rb:906:in `each'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-1.4.0/lib/cocoapods/installer/analyzer.rb:906:in `block in inspect_targets_to_integrate'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-1.4.0/lib/cocoapods/user_interface.rb:64:in `section'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-1.4.0/lib/cocoapods/installer/analyzer.rb:901:in `inspect_targets_to_integrate'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-1.4.0/lib/cocoapods/installer/analyzer.rb:75:in `analyze'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-1.4.0/lib/cocoapods/installer.rb:243:in `analyze'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-1.4.0/lib/cocoapods/installer.rb:154:in `block in resolve_dependencies'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-1.4.0/lib/cocoapods/user_interface.rb:64:in `section'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-1.4.0/lib/cocoapods/installer.rb:153:in `resolve_dependencies'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-1.4.0/lib/cocoapods/installer.rb:116:in `install!'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-1.4.0/lib/cocoapods/command/install.rb:41:in `run'
/Users/aliapple/.gem/ruby/2.0.0/gems/claide-1.0.2/lib/claide/command.rb:334:in `run'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-1.4.0/lib/cocoapods/command.rb:52:in `run'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-1.4.0/bin/pod:55:in `<top (required)>'
/usr/local/bin/pod:23:in `load'
/usr/local/bin/pod:23:in `<main>'
---模板结束------------------------------------------ ----------------------
[!]哦不,发生了错误。
搜索与您类似的现有GitHub问题: https://github.com/CocoaPods/CocoaPods/search?q=cannot+load+such+file+--+nanaimo&type=Issues
如果不存在,请创建一个上面显示模板的故障单: https://github.com/CocoaPods/CocoaPods/issues/new
请务必先阅读参与指南,了解有关如何正确提交故障单的详细信息: https://github.com/CocoaPods/CocoaPods/blob/master/CONTRIBUTING.md
不要忘记匿名任何私人数据!
寻找有关cocoapods / cocoapods的相关问题......
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/net/http.rb:921:in connect': SSL_connect returned=1 errno=0 state=SSLv2/v3 read server hello A: tlsv1 alert protocol version (OpenSSL::SSL::SSLError)
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/net/http.rb:921:in
阻止连接&#39;
来自/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/timeout.rb:52:in timeout'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/net/http.rb:921:in
connect&#39;
来自/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/net/http.rb:862:in do_start'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/net/http.rb:851:in
开始&#39;
来自/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/net/http.rb:1373:in request'
from /Users/aliapple/.gem/ruby/2.0.0/gems/gh_inspector-1.0.3/lib/gh_inspector/sidekick.rb:72:in
get_api_results&#39;
来自/Users/aliapple/.gem/ruby/2.0.0/gems/gh_inspector-1.0.3/lib/gh_inspector/sidekick.rb:26:in search'
from /Users/aliapple/.gem/ruby/2.0.0/gems/gh_inspector-1.0.3/lib/gh_inspector/inspector.rb:65:in
search_query&#39;
来自/Users/aliapple/.gem/ruby/2.0.0/gems/gh_inspector-1.0.3/lib/gh_inspector/inspector.rb:59:in search_exception'
from /Library/Ruby/Gems/2.0.0/gems/cocoapods-1.4.0/lib/cocoapods/user_interface/error_report.rb:119:in
search_for_exceptions&#39;
来自/Library/Ruby/Gems/2.0.0/gems/cocoapods-1.4.0/lib/cocoapods/command.rb:67:in report_error'
from /Users/aliapple/.gem/ruby/2.0.0/gems/claide-1.0.2/lib/claide/command.rb:396:in
handle_exception&#39;
来自/Users/aliapple/.gem/ruby/2.0.0/gems/claide-1.0.2/lib/claide/command.rb:337:in rescue in run'
from /Users/aliapple/.gem/ruby/2.0.0/gems/claide-1.0.2/lib/claide/command.rb:325:in
运行&#39;
来自/Library/Ruby/Gems/2.0.0/gems/cocoapods-1.4.0/lib/cocoapods/command.rb:52:in run'
from /Library/Ruby/Gems/2.0.0/gems/cocoapods-1.4.0/bin/pod:55:in
&#39;
来自/ usr / local / bin / pod:23:load'
from /usr/local/bin/pod:23:in
&#39;
aliapples-MacBook-Pro:Maps_Google aliapple $
答案 0 :(得分:0)
问题发生在Xcode9.3上,我试图通过xcode9.3实例化pod,出现了同样的问题。
*我正在与您分享如何解决我的问题。通过xcode 9.1或9.2创建项目,并通过Xcode 9.3 *
实例化pod,而不是打开项目答案 1 :(得分:0)
“ pod install”命令中的nanimo也有问题。
对于我来说,已解决了在全球范围内卸载cocoapods和nanimo的问题。我把答案放在了cocapods回购的问题中:
答案 2 :(得分:0)
似乎可可豆荚的版本存在问题,因为我们使用的是1.8.4版本,但是在使用命令之后
$ sudo gem install cocoapods --pre
来自链接: https://guides.cocoapods.org/using/getting-started.html#getting-started
工作了,目前工作正常。