惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

博客园 - 三生石上(FineUI控件)
J
Java Code Geeks
Apple Machine Learning Research
Apple Machine Learning Research
Jina AI
Jina AI
博客园_首页
C
Check Point Blog
小众软件
小众软件
博客园 - 叶小钗
Blog — PlanetScale
Blog — PlanetScale
Engineering at Meta
Engineering at Meta
美团技术团队
Martin Fowler
Martin Fowler
Vercel News
Vercel News
D
Docker
罗磊的独立博客
B
Blog RSS Feed
The Cloudflare Blog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
酷 壳 – CoolShell
酷 壳 – CoolShell
博客园 - 聂微东
Last Week in AI
Last Week in AI
T
Tailwind CSS Blog
雷峰网
雷峰网
博客园 - Franky

博客园 - MobileGeek

Swift全栈开发 App Submission Issues 番茄钟App(Pomodoro Tracker) WatchKit App Submission Issues Watch​Kit Learning Resources Scrum Planning Card 如何在DigitalOcean安装Ghost Swift学习资源 Xcode 6 模拟器路径 Android AutoCompleteTextView,Spinner和ListView的使用 Android Layout 布局 Android消息提示框和对话框 Silverlight Exception: “The URI prefix is not recognized.” Silverlight4中使用WebClient类下载压缩成zip格式的图片 “Unable to start debugging. The Silverlight Developer Runtime is not installed. Please install a matching version.” 解决办法 Android Project Structure(项目结构) Hello Android Introducing Android 使用Git和Repo获取Android源码
How to get cocoapods work on Yosemite
MobileGeek · 2014-10-17 · via 博客园 - MobileGeek

查看原文:http://leancodingnow.com/how-to-get-cocoapods-work-on-yosemite/

今天升级了Mac OS X 10.10-Yosemite以后运行pod install遇到下面的错误: /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/fileutils.rb:245:in 'mkdir': Permission denied - /Library/Ruby/Gems/2.0.0/extensions/universal-darwin-14 (Errno::EACCES)

一番折腾后找到解决方案如下:

  1. 分别执行下面命令卸载cocoapods和xcodeproj,如果你的机器上面有多个版本,选择All versions卸载 
    $ sudo gem uninstall cocoapods

    $ sudo gem uninstall xcodeproj

  2. 分别执行下面命令安装xcodeproj和cocoapods 
    $ sudo gem install xcodeproj

    $ sudo gem install cocoapods

接下来尝试执行pod install,如果您还遇到下面的错误Error loading the plugin with path '/Library/Ruby/Gems/2.0.0/gems/cocoapods-plugins-0.3.1/lib/cocoapods_plugin.rb'. Errno::EACCES - Permission denied - /Library/Ruby/Gems/2.0.0/extensions/universal-darwin-14

运行命令$ gem update --system即可。

如果您还遇到这样的错误Unable to load a specification for the plugin '/Library/Ruby/Gems/2.0.0/gems/cocoapods-try-release-fix-0.1.2',运行命令sudo gem uninstall cocoapods-try-release-fix后再运行sudo gem install cocoapods

其它博文:

More blog posts on http://leancodingnow.com/ 

欢迎关注我的微信公众号

Hope this helps, 
Michael