Ali
Ali

Reputation: 265

Running pod install on OSX Yosemite

I just updated to the latest seed and ran cocoapods on one of my projects. Everytime I run it I get the following error:

[!] An error occurred while performing git pull on repo lcl. [!] /usr/bin/git pull --ff-only

fatal: Not possible to fast-forward, aborting.

I've tried reinstalling cocoapods, setting up the master repo and still no luck..

Any help appreciated.

Upvotes: 1

Views: 686

Answers (2)

Varsha Vijayvargiya
Varsha Vijayvargiya

Reputation: 771

You should try this:

  1. Open Xcode 6
  2. Open Preferences
  3. Click the Locations tab
  4. Change the Command Line Tools version to Xcode 6.0
  5. Uninstall cocoapods $ sudo gem uninstall cocoapods 6 Install xcodeproj $ sudo gem install xcodeproj
  6. Install cocoapods $ sudo gem install cocoapods
  7. Run pod --version to verify that it worked

Upvotes: 0

Keith Smiley
Keith Smiley

Reputation: 63984

This probably means you have something stopping you from doing a git pull in the specs repository in ~/.cocoapods/repos/master. The easiest way to deal with this is just remove it:

rm -rf ~/.cocoapods
pod setup

Upvotes: 4

Related Questions