本文介绍了无法开始工作 CocoaPods 和 Yosemite的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!
问题描述
我已经尝试过这些步骤:
I already tried this steps:
- 打开 Xcode 6 打开首选项
- 点击位置标签
- 将命令行工具版本更改为 Xcode 6.0
- 卸载 cocoapods
- 一个.$sudo gem 卸载 cocoapods 安装 xcodeproj
- 一个.$ sudo gem 安装
- xcodeproj 安装 cocoapods
- 一个.$ sudo gem 安装 cocoapods
- 运行 pod --version 以验证它是否有效
但是当我执行 pod install 或 pod --version 时,我仍然会得到这个:
But I'm still gettings this when I do pod install or pod --version:
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- xcodeproj/prebuilt/universal.x86_64-darwin14-2.0.0/xcodeproj_ext (LoadError)
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /Library/Ruby/Gems/2.0.0/gems/xcodeproj-0.17.0/lib/xcodeproj/ext.rb:6:in `rescue in <top (required)>'
from /Library/Ruby/Gems/2.0.0/gems/xcodeproj-0.17.0/lib/xcodeproj/ext.rb:3:in `<top (required)>'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /Library/Ruby/Gems/2.0.0/gems/xcodeproj-0.17.0/lib/xcodeproj.rb:30:in `<top (required)>'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /Library/Ruby/Gems/2.0.0/gems/cocoapods-0.33.1/lib/cocoapods.rb:2:in `<top (required)>'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /Library/Ruby/Gems/2.0.0/gems/cocoapods-0.33.1/bin/pod:32:in `<top (required)>'
from /usr/bin/pod:23:in `load'
from /usr/bin/pod:23:in `<main>'
推荐答案
如果其他人遇到同样的问题,我这样做是为了解决我的问题:
In case someone else got the same issue, I did this to fix my issue:
更新宝石
Update Gems
sudo gem update --system
已卸载 xcodeproj
Uninstalled xcodeproj
sudo gem 卸载 xcodeproj
确保选择所有版本
卸载的 Cocoapods
Uninstalled Cocoapods
sudo gem 卸载 cocoapods
安装 xcodeproj
Install xcodeproj
sudo gem install xcodeproj
安装 cocoapods
Install cocoapods
sudo gem install cocoapods
运行
pod --version 进行测试.
这篇关于无法开始工作 CocoaPods 和 Yosemite的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!
本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!