ios - Alamofire 与 XCode 8 Beta 6 的集成

标签 ios xcode alamofire swift3

我正在尝试在 XCode 8 Beta 6 中添加 Alamofire。我有 Cocoapods 1.1.0.beta.2,我正在使用这个 pod:

平台:ios,'9.0'

目标“TestProject”做

使用_frameworks!
pod 'Alamofire',
:git => ' https://github.com/Alamofire/Alamofire.git ',
:branch => 'swift3'

结尾

当我运行 pod install 时,似乎一切正常。但是,当我尝试构建项目时,Alamofire 代码中出现了几个错误。其中大多数是类型:“@escaping 属性仅适用于函数类型”
任何人都可以帮忙吗?

最佳答案

原来是 XCode 本身的问题。当我下载最新的 XCode 版本 - XCode GM 时,不再出现错误。

关于ios - Alamofire 与 XCode 8 Beta 6 的集成,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39389400/

相关文章:

ios - 无法使用类型为 (('WeatherResponse?, NSError?) -> Void 的参数列表调用 'responseObject'

iphone - 如何在不损坏文件的情况下重命名 xcode 项目中的文件夹名称

xcode - 检测应用程序是否打开 x 次

ios - 用于可变日期类型字符串的 Swift dateFormat

iphone - Objective-C RabbitMQ 客户端未接收消息

ios - 尝试制作存档时 Xcode tmp/strip 错误

swift - 如何使用 Alamofire 1.3 连接到自签名服务器

swift - [ swift ,Alamofire] : responseValidationFailed with error code 400

ios - Tableview 不使用 Objective-c 显示 NewsFeed

ios - 在类中添加 NavigationController 而不是在 appdelegate 中