Error in podfile
snarshad opened this issue · comments
I'm trying to create a new workspace and use a Podfile. This is on the Mavericks beta, so not sure if that's part of the problem.
Two issues.
1), If I have a podfile with just
pod 'LIFXKit'
I get the following error when doing pod install:
[!] An error occurred while performing `git pull` on repo `master`.
[!] /usr/bin/git pull --ff-only
fatal: Not possible to fast-forward, aborting.
- For some reason, the Readme.md that I pulled instructs me to have the following in the Podfile:
ruby pod 'LIFXKit'
I'm pretty sure that "ruby" shouldn't be in there.
But the first issue is the real blocker for me - any idea why that might not be working?
OK for some reason I was looking at the Readme on the develop branch.
The master branch has the following instruction, but I still am getting an error.
pod 'LIFXKit', :git => 'https://github.com/LIFX/LIFXKit.git', :tag => 'v0.5'
Error is:
[!] An error occurred while performing git pull
on repo master
.
[!] /usr/bin/git pull --ff-only
pod install -v showed me more about the error:
NoMethodError - undefined method `ansi' for nil:NilClass
/Users/arshad/.rvm/gems/ruby-2.1.2@global/gems/claide-0.6.1/lib/claide/command/validation_helper.rb:77:in `prettify_validation_suggestion'
/Users/arshad/.rvm/gems/ruby-2.1.2@global/gems/claide-0.6.1/lib/claide/command/validation_helper.rb:21:in `argument_suggestion'
/Users/arshad/.rvm/gems/ruby-2.1.2@global/gems/claide-0.6.1/lib/claide/command.rb:436:in `validate!'
/Users/arshad/.rvm/gems/ruby-2.1.2@global/gems/claide-0.6.1/lib/claide/command.rb:280:in `run'
/Users/arshad/.rvm/gems/ruby-2.1.2/gems/cocoapods-0.33.1/lib/cocoapods/command.rb:48:in `run'
/Users/arshad/.rvm/gems/ruby-2.1.2/gems/cocoapods-0.33.1/bin/pod:33:in `<top (required)>'
/Users/arshad/.rvm/gems/ruby-2.1.2/bin/pod:23:in `load'
/Users/arshad/.rvm/gems/ruby-2.1.2/bin/pod:23:in `<main>'
/Users/arshad/.rvm/gems/ruby-2.1.2/bin/ruby_executable_hooks:15:in `eval'
/Users/arshad/.rvm/gems/ruby-2.1.2/bin/ruby_executable_hooks:15:in `<main>'
Then I tried this:
sudo rm -rf ~/.cocoapods && sudo rm -fr ~/.cocoapods/repos/master && pod setup && pod install
Which got farther, but then failed at:
Pre-downloading: LIFXKit
from https://github.com/LIFX/LIFXKit.git
, tag v0.5
[!] /usr/bin/git fetch origin tags/v0.5 2>&1
fatal: Couldn't find remote ref tags/v0.5
Finally, I changed Podfile to add a ".0":
pod 'LIFXKit', :git => 'https://github.com/LIFX/LIFXKit.git', :tag => 'v0.5.0'
And then pod install finally worked.
So I suppose the solution is to update the Readme to include the full tag name.
cannot reproduce