在我的旧项目更新Alamofire到4.0版期间遇到错误

时间:2016-10-12 12:48:17

标签: ios cocoapods alamofire xcode8

我在一个旧项目中使用Alamofire的旧版本,现在我想将其更新为swift 3.0,我想将Alamofire更新到4.0版但是在pod文件中添加版本号到pod alamofire并制作pod再次安装我一直有这个错误,我试图让pod更新,但这个过程需要很长时间,没有任何结果,如无限过程

enter image description here

已更新:

我通过终端“pod update”尝试了此命令,但等待15分钟后出现此错误。

enter image description here

我在这个问题上进行了搜索,它来自网络,但我尝试了3个网络并得到了相同的结果。 我现在怎么解决这个问题?

1 个答案:

答案 0 :(得分:0)

你需要:

  1. 在您的podfile更新中:pod 'Alamofire', '~> 4.0'
  2. 在您的podfile更新中:platform :ios, '9.0'(或更高版本)
  3. 将Xcode中的部署目标更改为iOS 9.0或更高版本
  4. 执行pod update