CocoaPods:无法找到可执行文件git [英] CocoaPods: Unable to locate the executable `git`

查看:139
本文介绍了CocoaPods:无法找到可执行文件git的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经成功安装了一个pod(SDWebImage),现在尝试添加一个名为 MFSideMenu的库。我的Podfile如下所示:

I've already installed a pod successfully (SDWebImage) and now trying to add a Library called "MFSideMenu". My Podfile looks the following:

platform :ios, '6.0'

pod 'SDWebImage', '3.2'
pod 'MFSideMenu'

当我执行 pod安装时,我得到以下(错误)输出:

When i do a "pod install", i get the following (error-) output:

Analyzing dependencies
Downloading dependencies
Installing MFSideMenu (0.4.8)
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems                 
/custom_require.rb:31: command not found: git config remote.origin.url
[!] Unable to locate the executable `git`

有人知道吗

预先感谢!

推荐答案

没有安装git。使用CocoaPods分发的大多数软件使用github进行托管,使用git进行分发。您需要安装git

You don't have git installed. Most software distributed using CocoaPods uses github for hosting and git for distribution. You need to install git.

这篇关于CocoaPods:无法找到可执行文件git的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆