【问题标题】:Unable to build Alamofire framework in new Xcode 10.2 (iOS 12.2)无法在新的 Xcode 10.2 (iOS 12.2) 中构建 Alamofire 框架
【发布时间】:2019-08-16 14:47:20
【问题描述】:

由于以下错误,我无法在 Xcode 10.2、iOS 12.2 中为 swift 5 构建 Alamofire

SWIFT_VERSION '3.0' is unsupported, supported versions are: 4.0, 4.2, 5.0. (in target 'Alamofire iOS')

有解决办法吗?

【问题讨论】:

  • 您是否添加了正确的 pod 版本 pod 'Alamofire', '~> 5.0.0-beta.3' ?该分支应与 Swift 4 及更高版本兼容
  • 我正在使用 carthage,但我会尝试在 carthage 中定位它,看看它是否会构建。谢谢

标签: swift xcode alamofire carthage


【解决方案1】:

至于迦太基使用

       github "Alamofire/Alamofire" "5.0.0-beta.3"

在您的购物车文件中

【讨论】:

    猜你喜欢
    • 2017-08-31
    • 1970-01-01
    • 1970-01-01
    • 2021-02-26
    • 2022-01-06
    • 2019-12-14
    • 2019-08-17
    • 1970-01-01
    • 2016-07-24
    相关资源
    最近更新 更多