2016-10-09 92 views
0

我想用xCode启动Alamofire项目,但我在Alamofire上得到195个编译错误。不能让Alamofire工作

enter image description here

我荚:

source 'https://github.com/CocoaPods/Specs.git' 
platform :ios, '10.0' 
use_frameworks! 

target 'AlamoTest' do 
    pod 'Alamofire', '~> 3.5' 
end 

我试图设置 “使用传统的雨燕语言版本” 到 “YES” 但还是同样的问题。 任何想法?

+0

在iOS系统10 Alamofire 4.0工作使用。 –

+0

我试图改变到iOS 8.0和Alamofire 3.5并且有相同的问题 – Graciano

+0

@Graciano,你的cocoapods更新了吗?如果没有,请更新它并尝试使用pod更新来获取Alamofire的最新版本,该版本可与Swift 3完美配合 –

回答

0

如果你的目标是iOS的10,您应该与最新版本的Alamofire

source 'https://github.com/CocoaPods/Specs.git' 
platform :ios, '10.0' 
use_frameworks! 

target 'AlamoTest' do 
    pod 'Alamofire', '~> 4.3' 
end