【问题标题】:Apple Swift-Format tool for Xcode 11.4适用于 Xcode 11.4 的 Apple Swift 格式工具
【发布时间】:2020-03-25 15:56:39
【问题描述】:

将 Xcode 更新到 11.4 版后使用 https://github.com/apple/swift-format 开始出现错误:

“无法 lint xxxx.swift:SwiftSyntax 解析器库不兼容。”

我们如何解决这个问题?更改 SwiftSyntax 版本没有帮助。

【问题讨论】:

    标签: swift xcode swift5.2 xcode11.4


    【解决方案1】:

    最后,swift-5.2-branch 创建了https://github.com/apple/swift-format/tree/swift-5.2-branch。通过移动新版本的 SwiftSyntax 解析器库解决了这个问题。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2020-06-23
      • 2016-08-07
      • 2018-11-27
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多