更新到CocoaPods的最新版本? [英] Updating to latest version of CocoaPods?

查看:189
本文介绍了更新到CocoaPods的最新版本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在将 Alamofire 4.0 安装到我的项目中时遇到了一些问题。

I'm having some issues installing Alamofire 4.0 into my project.

我有最新的 Xcode 的版本,运行 Swift 3 ,当我尝试安装alamofire时,我遇到了800个编译器错误。

I've got the latest version of Xcode, running Swift 3, and when I try to install alamofire I'm getting like 800 compiler errors.

显然


构建Alamofire 4.0需要CocoaPods 1.1.0+。 0 +

CocoaPods 1.1.0+ is required to build Alamofire 4.0.0+

我查看了终端中的CocoaPods版本,它说我在1.0.1。

I looked at the version of CocoaPods I have in terminal and it says I'm at 1.0.1.

运行更新无效我猜是因为 CocoaPods 1.1处于测试阶段。

Running an update didn't work I guess because CocoaPods 1.1 is in beta.

所以我不确定如何将其更新到我好去的地方。
除非过时不强制800编译器错误?这听起来像是其他问题吗?

So I'm not exactly sure how to update it up to where I'm good to go. Unless being out of date doesn't force like 800 compiler errors? Does that sound like some other issue?

推荐答案

在终端上执行以下操作以获取最新稳定版本

Execute the following on your terminal to get the latest stable version:

sudo gem install cocoapods

添加 - 前以获取最新的预发行版:

Add --pre to get the latest pre release:

sudo gem install cocoapods --pre

这篇关于更新到CocoaPods的最新版本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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