Cocoapods最新版本1.2.0引入Alamofire编译有时出错的解决办法

在使用Cocoapods 1.2.0更新Alamofire时遇到编译错误,指定Alamofire 3.5版本也无法避免。通过执行`pod deintegrate && pod _1.1.1_ install`成功解决了400多个错误,问题来源于Swift 3的AFError.swift。
摘要由CSDN通过智能技术生成

xcode7.3,

一开始用Cocoapods最新版本1.2.0引入Alamofire编译是完全通过编译和运行的,

指定了版本 pod 'Alamofire', '3.5'

后来增删pods文件里的列表,有时就编译不同过了,都是Alamofire的错误,400多个,

从svn上回复回去又是可以编译通过的哦,

执行了pod update或pod install就出现了400多个错误,


找了半天,看链接:具体内容看文章末尾: 

Alamofire 4.0, Swift 3 AFError.Swift

在终端执行这句解决问题: pod deintegrate && pod _1.1.1_ install

果然stackoverflow上什么都有



文章内容:

Background:

I am relatively new to programming and am updating my current iOS project which uses Alamofire & Swift 3. The project was working fine until I updated to Alamofire ~4.0 which presented me with 530 errors.

I'm opening up the xcworkspaceproject in Xcode8.1

I tried clearing up the problem using the suggestions in this StackOverflow Thread: Alamofire XCode8 Swift 3 results in 786 Compile Errors

including:

gem install cocoapods --pre

and also downgrading the cocoapod version cocoapods-1.2.0.beta.1 from the current beta version down to 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值