cocoapods执行命令行报错: You need at least git version 1.8.5 to use CocoaPods
来源:互联网 发布:java连接数据库的框架 编辑:程序博客网 时间:2024/05/21 08:01
今天使用cocoapods的 pod init 命令创建一个Podfile 文件时报错:
/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’
from /Library/Ruby/Gems/2.0.0/gems/cocoapods-1.2.0/lib/cocoapods/command.rb:49:in
from /Library/Ruby/Gems/2.0.0/gems/cocoapods-1.2.0/bin/pod:55:in <top (required)>'
load’
from /usr/local/bin/pod:22:in
from /usr/local/bin/pod:22:in `’
我的cocoapods版本是 1.2.0;
这个问题可能是由于没有链接到 xcode,或者链接到的xcode版本过低。 前几天刚安装了一个 xcode8.3.3,我把新安装的xcode放到了Applications(应用程序)下,名字改成了xcode8.3.3; 导致pod 按原来的链接路径找不到xcode相应的目录;
解决办法:
方法1. 将新装的Xcode8.3.3 的名字修改为原来版本Xcode的名字;
方法2. 修改链接Xcode路径,命令是:
sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer
(sudo xcode-select -switch /Xcode应用所在的文件路径/Contents/Developer)
- cocoapods执行命令行报错: You need at least git version 1.8.5 to use CocoaPods
- cocoapods报错问题You need at least git version 1.8.5 to use CocoaPods
- 报错:You need at least git version 1.8.5 to use CocoaPods
- iOS开发之cocoapods报错问题You need at least git version 1.8.5 to use CocoaPods
- Cocoapods 报错CocoaPods-version.yml解决方法
- Delphi:GLScene报错Need at least OpenGL version 1.1的解决方法
- 编译mcrypt时,报错:You need at least libmhash 0.8.15
- 报错 You need to use a Theme.AppCompat theme (or descendant) with this activity.
- Studio报错 You need to use a Theme.AppCompat theme的两种解决办法
- DiaLogUtils报错java.lang. IllegalStateException You need to use a Theme.AppCompat theme
- 报错You need to use a Theme.AppCompat theme的两种解决办法
- 报错方案:You need to use a Theme.AppCompat theme (or descendant) with this activity.
- 对话框报错 You need to use a Theme.AppCompat theme (or descendant) with this activity.
- 安装Cocoapods 报错ERROR: Error installing cocoapods: activesupport requires Ruby version >= 2.2.2.
- 关于新版SDK报错You need to use a Theme.AppCompat theme的两种解决办法
- 关于新版SDK报错You need to use a Theme.AppCompat theme的两种解决办法
- android 引入ActionBar报错Caused by: java.lang.IllegalStateException: You need to use a Theme.AppCompat t
- 使用AlertDialog报错 You need to use a Theme.AppCompat theme (or descendant) with this activity.之解决
- TCP协议首部中URG与PSH
- 使用卷积神经网络进行图片分类 2
- Linux运维常用shell脚本实例
- androidListViewItem倒序显示
- 微信小程序学习笔记——wxss使view填充整个页面
- cocoapods执行命令行报错: You need at least git version 1.8.5 to use CocoaPods
- 如何修改自己电脑的IP地址
- float,double精度
- DELETE_FAILED_INTERNAL_ERROR
- memcached,mongodb和redis三者区别,以及memcached项目实践
- html-鼠标移动后自动旋转
- Fedora 25
- 激光雷达学习笔记(三)特征提取
- Heap size check 堆大小检查