【问题标题】:What is the best solution to fix defects after migrating to Alamofire 4 and Swift3迁移到 Alamofire 4 和 Swift3 后修复缺陷的最佳解决方案是什么
【发布时间】:2017-03-16 19:50:30
【问题描述】:

我将我的项目代码转换为 Swift 3。我大量使用了 Alamofire。我将它更新到 Almofire 4,但我遇到了许多与方法名称和参数顺序更改有关的错误。

解决所有这些问题的最佳解决方案是什么?

【问题讨论】:

  • 请提出具体问题。你卡在哪里了!?
  • 我的意思是解决所有这些问题的最佳解决方案是什么?
  • 将 Alamofire 4 1build settings legacy version 设置为 true1,这将对您有所帮助

标签: ios swift swift3 alamofire


【解决方案1】:

迁移到 Alamofire 4 和 Swift3 后我认为的最佳解决方案: 手动重命名方法并将参数重新命名为新样式。

我在this guidethe Alamofire main 页面中搜索正确名称和参数的每个错误。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2013-04-09
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2010-10-08
    • 1970-01-01
    • 2013-05-01
    相关资源
    最近更新 更多