2

It is the content of my podfile:

platform :ios, '7.0'
pod 'RedditKit', '~> 1.3' 

It is placed at the root of my iOS project (i.e. not a workspace)

When I ran pod install I got this error message:

$ pod install
Analyzing dependencies
[!] An error occurred while performing `git pull` on repo `master`.
[!] /usr/bin/git pull --ff-only

fatal: Not possible to fast-forward, aborting.

I have already run gem update --system to update my ruby installation

More information of my cocoapod installation

$ gem which cocoapods
/Users/antkong/.rvm/gems/ruby-2.1.2@global/gems/cocoapods-0.33.1/lib/cocoapods.rb
Anthony Kong
  • 37,791
  • 46
  • 172
  • 304
  • possible duplicate of [CocoaPods - pod setup Failed: /usr/bin/git checkout master](http://stackoverflow.com/questions/16825715/cocoapods-pod-setup-failed-usr-bin-git-checkout-master) – Keith Smiley Aug 11 '14 at 21:52
  • @KeithSmiley The possible duplicate you cited is related to a totally different error message and root cause – Anthony Kong Aug 11 '14 at 23:54

1 Answers1

5

It is caused by a bug in libgit2. Details and solution can be found in this bug report https://github.com/CocoaPods/CocoaPods/issues/2213

Anthony Kong
  • 37,791
  • 46
  • 172
  • 304
  • 1
    this worked for me, i had updated from an older version of cocoapods so i had to run $ pod repo remove master then $ pod setup. – mihai Sep 03 '14 at 19:53