Alamofire与XCode 8 Beta 6集成

时间:2021-06-14 20:21:40

I'm trying to add Alamofire in XCode 8 Beta 6. I have Cocoapods 1.1.0.beta.2 and I'm using this pod:

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

platform :ios, '9.0'

target ‘TestProject’ do

目标'TestProject'做

use_frameworks! pod 'Alamofire', :git => 'https://github.com/Alamofire/Alamofire.git', :branch => 'swift3’

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

end

结束

When I run pod install it seems like everything is ok. However, when I try and build the project, several errors in the Alamofire code occur. Most of them are of type: "@escaping attribute only applies to function types" Can anyone help?

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

1 个解决方案

#1


2  

It turned out to be a problem with XCode itself. When I downloaded the newest XCode version - XCode GM, no more errors were present.

结果证明XCode本身存在问题。当我下载最新的XCode版本 - XCode GM时,不再出现错误。

#1


2  

It turned out to be a problem with XCode itself. When I downloaded the newest XCode version - XCode GM, no more errors were present.

结果证明XCode本身存在问题。当我下载最新的XCode版本 - XCode GM时,不再出现错误。