当我尝试初始化pod文件以cocoapods通过终端使用时,它给了我这个错误.如何解决它.
/Library/Ruby/Gems/2.0.0/gems/cocoapods-1.2.0/lib/cocoapods/command.rb:128:in `verify_minimum_git_version!': [!] You need at least git version 1.8.5 to use CocoaPods (Pod::Informative)
Run Code Online (Sandbox Code Playgroud) 我需要帮助。我正在尝试将 CocoaPods 安装到我的 mac,当我进入该过程的“pod setup”部分时收到以下错误。有任何想法吗?
Nathans-MacBook-Air:~ nathannoel$ pod setup --verbose
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.3/lib/cocoapods/command.rb:118:in
`git_version': Failed to extract git version from `git --version`
("xcrun: error: invalid active developer path
(/Applications/Xcode.app/Contents/Developer), missing xcrun at:
/Applications/Xcode.app/Contents/Developer/usr/bin/xcrun\n") (RuntimeError)
from /Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.3/lib/cocoapods/command.rb:130:in
`verify_minimum_git_version!'
from /Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.3/lib/cocoapods/command.rb:49:in `run'
from /Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.3/bin/pod:55:in `<top (required)>'
from /usr/local/bin/pod:22:in `load'
from /usr/local/bin/pod:22:in `<main>'
Nathans-MacBook-Air:~ nathannoel$
Run Code Online (Sandbox Code Playgroud)