xcode中的cocoapods安装错误 [英] cocoapods installation error in xcode

查看:56
本文介绍了xcode中的cocoapods安装错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

――― MARKDOWN TEMPLATE ――――――――――――――――――――――――――――――――――――――――――――

命令




/ usr / local / bin / pod安装



报告




  • 您做了什么?


  • 您期望发生什么? / p>


  • 发生了什么事?




Stack




CocoaPods:1.4.0
Ruby:ruby 2.0.0p648(2015-12-16修订版53162)[通用.x86_64-darwin16]
RubyGems:2.0.14.1
主机:Mac OS X 10.12.6(16G29)
Xcode:7.3.1(7D1014)
Git:git版本2.7 .4(Apple Git-66)
Ruby lib目录:/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib
存储库:



插件




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



< h3> Podfile

ruby​​
源'https://github.com/CocoaPods/Specs.git'
目标'Maps_Google'做
pod'GoogleMaps'
结尾



错误




LoadError-无法加载此类文件-nanaimo
/Users/aliapple/.gem/ruby/2.0.0/gems/xcodeproj- 1.5.4 / lib / xcodeproj / plist.rb:23:位于'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:在inspect_targets_to_integrate的'block(2 level)'中
/ 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 / cocoapod s / installer / analyzer.rb:906: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:在`analyze'
/Library/Ruby/Gems/2.0.0/gems/cocoapods- 1.4.0 / lib / cocoapods / installer.rb:243:在ʻanalyze
/库/Ruby/Gems/2.0.0/gems/cocoapods-1.4.0/lib/cocoapods/installer.rb:154 :in在`resolve_dependencies'中的块
/Library/Ruby/Gems/2.0.0/gems/cocoapods-1.4.0/lib/cocoapods/user_interface.rb:64:在`section'中
/ Library /Ruby/Gems/2.0.0/gems/cocoapods-1.4.0/lib/cocoapods/installer.rb:153:在`resolve_dependencies'
/库/Ruby/Gems/2.0.0/gems/cocoapods- 1.4.0 / lib / cocoapods / installer.rb:116:在安装!中
/Library/Ruby/Gems/2.0.0/gems/cocoapods-1.4.0/lib/cocoapods/command/install。 rb:41:在`run'
/用户/aliapple/.gem/ruby/2.0.0/gems/claide-1.0.2/lib/claide/command.rb:334:在`run'
/图书馆/Ruby/Gems/2.0.0/gems/cocoapods-1.4.0/lib/cocoapods/command.rb:52:在`run'
中/Library/Ruby/Gems/2.0.0/gems/cocoapods- 1.4.0 / bin / pod:55:in`< top(必需)>'
/ 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:在 connect'中:SSL_connect返回= 1 errno = 0状态= SSLv2 / v3读取服务器问候A:tlsv1警报协议版本(OpenSSL :: SSL :: SSLError)
来自/ System / Library / Frameworks / Ruby.framework / Versions / 2.0 / usr / lib / ruby​​ / 2.0.0 / net / http.rb:921:in
从/ System /中连接
库/框架/Ruby.framework/版本/2.0/usr/lib/ruby/2.0.0/timeout.rb:52:in timeout'
from / System / Libra ry / Frameworks / Ruby.framework / Versions / 2.0 / usr / lib / ruby​​ / 2.0.0 / net / http.rb:921:in
connect'
来自/ 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
从'/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'
来自/Users/aliapple/.gem/ruby/2.0.0/gems/ gh_inspector-1.0.3 / lib / gh_inspector / sidekick.rb:26:在/Users/aliapple/.gem/ruby/2.0.0/gems/gh_inspector-1.0 search'
中。 3 / lib / gh_inspector / inspector.rb:65:in
search_query'
from /Users/aliapple/.gem/ruby/2.0.0/gems/gh_inspector-1.0.3/lib /gh_inspector/inspector.rb:59:in search_exception'
来自/Library/Ruby/Gems/2.0 .0 / gems / cocoapods-1.4.0 / lib / cocoapods / user_interface / error_report.rb:119:in
search_for_exceptions的
来自/Library/Ruby/Gems/2.0.0/gems /cocoapods-1.4.0/lib/cocoapods/command.rb:67:来自/Users/aliapple/.gem/ruby/2.0.0/gems/claide-1.0的 report_error'
.2 / lib / claide / command.rb:396:in
handle_exception'
来自/Users/aliapple/.gem/ruby/2.0.0/gems/claide-1.0.2/ lib / claide / command.rb:337:在营救中'
来自/Users/aliapple/.gem/ruby/2.0.0/gems/claide-1.0.2/lib/ claide / command.rb:325:in
从/Library/Ruby/Gems/2.0.0/gems/cocoapods-1.4.0/lib/cocoapods/command.rb运行
: 52:在中运行'
from /Library/Ruby/Gems/2.0.0/gems/cocoapods-1.4.0/bin/pod:55:in
'
来自/ usr / local / bin / pod:23:in load'
来自/ usr / local / bin / pod:23:in
'
aliapples-MacBook-Pro:Maps_Google aliapple $

解决方案

似乎可可豆荚的版本存在问题我们正在使用版本1.8.4,但使用命令后

  $ sudo gem install cocoapods --pre 

来自链接:
https://guides.cocoapods.org/using/getting-started.html#getting-started



算出来,目前工作正常。


――― MARKDOWN TEMPLATE ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――

Command

/usr/local/bin/pod install

Report

  • What did you do?

  • What did you expect to happen?

  • What happened instead?

Stack

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 :

Plugins

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

Podfile

ruby source 'https://github.com/CocoaPods/Specs.git' target 'Maps_Google' do pod 'GoogleMaps' end

Error

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>'

――― TEMPLATE END ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――

[!] Oh no, an error occurred.

Search for existing GitHub issues similar to yours: https://github.com/CocoaPods/CocoaPods/search?q=cannot+load+such+file+--+nanaimo&type=Issues

If none exists, create a ticket, with the template displayed above, on: https://github.com/CocoaPods/CocoaPods/issues/new

Be sure to first read the contributing guide for details on how to properly submit a ticket: https://github.com/CocoaPods/CocoaPods/blob/master/CONTRIBUTING.md

Don't forget to anonymize any private data!

Looking for related issues on 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:inblock in connect' from /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:inconnect' from /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:instart' from /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:inget_api_results' from /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:insearch_query' from /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:insearch_for_exceptions' from /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:inhandle_exception' from /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:inrun' from /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' from /usr/local/bin/pod:23:in load' from /usr/local/bin/pod:23:in' aliapples-MacBook-Pro:Maps_Google aliapple$

解决方案

Seems there is problem with the version of cocoa pod for as we were using version 1.8.4 but after using command

$ sudo gem install cocoapods --pre

from link: https://guides.cocoapods.org/using/getting-started.html#getting-started

worked out and it is currently working fine.

这篇关于xcode中的cocoapods安装错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆