【问题标题】:Cant make Alamofire work不能让 Alamofire 工作
【发布时间】:2017-02-18 05:18:02
【问题描述】:

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

我的豆荚:

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

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

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

【问题讨论】:

  • 在 iOS 10 中使用 Alamofire 4.0。
  • 我尝试更换为 iOS 8.0 和 Alamofire 3.5 并遇到了同样的问题
  • @Graciano,你的 cocoapods 更新了吗?如果没有,请更新它并尝试使用 pod update 来获取最新版本的 Alamofire,它与 Swift 3 完美配合

标签: alamofire xcode8 swift2.3


【解决方案1】:

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

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

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

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2015-03-03
    • 2016-04-04
    • 2014-11-30
    • 2014-04-05
    • 2012-09-23
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多