Can't get to work CocoaPods and Yosemite

后端 未结 6 1776
南笙
南笙 2020-12-19 05:24

I already tried this steps:

  1. Open Xcode 6 Open Preferences
  2. Click the Locations tab
  3. Change the Command Line Tools version to Xcode 6.0
6条回答
  •  情书的邮戳
    2020-12-19 06:01

    The error 'require': cannot load such file indicates that you some missing or broken gem package. You can probably fix it by re-installing cocoapods:

    gem uninstall cocoapods # Follow by sudo if necessary
    gem install cocoapods --verbose # Follow by sudo if necessary
    

    And make sure that your xcodeproj is present:

    gem install xcodeproj --verbose # Follow by sudo if necessary
    

    If won't help, try to install it by using older Ruby:

    sudo ln -s /Library/Ruby/Gems/1.8/gems/rubygems-update-1.8.12/bin/gem /usr/bin/gem18
    sudo gem18 install cocoapods
    

    See:

    • Managing Rails Versions and Gems

提交回复
热议问题