0

我正在尝试使用带有 xCode 的 Alamofire 启动一个项目,但我在 Alamofire 上收到 195 个编译错误。

在此处输入图像描述

我的豆荚:

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

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

我尝试将“使用旧版 Swift 语言版本”设置为“是”,但仍然存在同样的问题。有任何想法吗?

4

1 回答 1

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
于 2017-02-15T00:39:10.297 回答