Alamofire和Reachability.swift在xCode8-beta5上不起作用 [英] Alamofire and Reachability.swift not working on xCode8-beta5

查看:133
本文介绍了Alamofire和Reachability.swift在xCode8-beta5上不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个在swift2.3中创建的自定义CocoaPod,它在项目内部具有Alamofire和Reachability库。我的意思是我确实将Alamofire和Reachability手动集成到了项目中。

I have a custom CocoaPod created in swift2.3 and it has Alamofire and Reachability libraries inside the project. I mean I did integrate Alamofire and Reachability into the project manually.

它在xCode7.3.1上仍然可以完美运行,我将在xCode8-Beta5上将其更新为swift3。我尝试更新它,但无法成功完成。

It still works perfectly on xCode7.3.1 and I am going to update it to swift3 on xCode8-Beta5. I tried to update it but I couldn't get it done successfully.

这是我所做的更新。



  • 中的swift3替换了项目文件夹中的Alamofire和可达性 https://github.com/Alamofire/Alamofire/tree/swift3

  • 打开xCode8-Beta5并进行转换所有文件均采用Swift3语法(实际上,xCode在打开旧版本项目时会询问它)。因此,转换是由xCode自动完成的。

  • 我尝试构建Cocoapod,但会产生很多错误。

如何解决此问题并成功更新Cocoapod?

How can I solve this problem and update the Cocoapod successfully?

我尝试在xCode8-beta6上更新两个Cocoapods,但是Alamofire仍然不工作。这是屏幕截图。

I tried to update two Cocoapods on xCode8-beta6 but Alamofire is still not working. Here is a screenshot.

https://www.dropbox.com/s/gm8ud67qc1ixffb/Screen%20Shot%202016-08-20%20at%2011.06.31%20AM .png?dl = 0

推荐答案

我可以在xCode8-beta6上成功构建Alamofire和可达性框架来自以下分支。

I could build Alamofire and Reachability frameworks successfully on xCode8-beta6 without any problem from the following branches.

https://github.com/ Alamofire / Alamofire / tree / swift3
https:// github.com/ashleymills/Reachability.swift/tree/feature/ios10

这篇关于Alamofire和Reachability.swift在xCode8-beta5上不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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