Search code examples
rubyxcodegitios7cocoapods

pod install command shows error


I'm trying to install a pod file with the following contents

>platform :ios, '7.0'

>pod 'Brightcove-Player-SDK', '~> 4.1.5'

But when i used the command 'pod install' in Terminal, i got the following error.

[!] Unable to locate the executable `git`
/Library/Ruby/Gems/1.8/gems/claide-0.4.0/lib/claide/command.rb:217:in `run':undefined method `verbose?' for nil:NilClass (NoMethodError)
from /Library/Ruby/Gems/1.8/gems/cocoapods-0.29.0/lib/cocoapods/command.rb:51:in `run'
from /Library/Ruby/Gems/1.8/gems/cocoapods-0.29.0/bin/pod:24
from /usr/bin/pod:23:in `load'
from /usr/bin/pod:23

Could someone please explain what the problem is? I checked this solution on https://stackoverflow.com/a/18356219/3150731 according to that, installing github should have fixed the problem but, that also did not work in my case.

Thanks in advance


Solution

  • The problems where not with the downloading i downloaded everything and installed cocoa pods but was not able to install my pod file in my project workspace as i didn't create an username and email for the git. After doing that i was able to install my pod file

    following are the codes to set your username and emailid for your git using terminal

    git config --global user.name "Firstname Lastname"
    git config --global user.email "[email protected]"