zoukankan      html  css  js  c++  java
  • OS X升级到10.10使用后pod故障解决方案出现

    最新的mac 10.10强大的好奇心,所以,你的系统升级到10.10。结果表明,使用pod出现下述问题:
    /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>'


    经过一番乱搜,详细的解决过程例如以下:

      1. 打开 Xcode 6
      2. 进入 Preferences
      3. 点击Locations选项
      4. 将 Command Line Tools 版本号变成 Xcode 6.0
      5. 卸载 cocoapods,在终端中输入 

    $ sudo gem uninstall cocoapods


      6. 安装xcodeproj,在终端中输入
    $ sudo gem install xcodeproj


      7. 安装cocoapods,在终端中输入
    $ sudo gem install cocoapods


      8. 测试pod成功安装,输入在终端

    $ pod --version 



  • 相关阅读:
    ubuntu网速慢解决方法
    SQL优化指南
    Java 并发:volatile 关键字解析
    java集成WebSocket向所有用户发送消息
    java集成WebSocket向指定用户发送消息
    windows下使用批处理脚本实现多个版本的JDK切换
    String.format()格式化日期(2)
    String.format(2)
    String.format()用法
    获得这两个时间的所有天数及其周几
  • 原文地址:https://www.cnblogs.com/mengfanrong/p/5017674.html
Copyright © 2011-2022 走看看