Apple Swift-Format tool for Xcode 11.4

902 Views Asked by At

Uses https://github.com/apple/swift-format after update Xcode to version 11.4 start getting error:

"Unable to lint xxxx.swift: SwiftSyntax parser library isn't compatible."

How do we solve that issue? Changing SwiftSyntax version does not help.

1

There are 1 best solutions below

0
On

Finally, swift-5.2-branch was created https://github.com/apple/swift-format/tree/swift-5.2-branch. The issue was solved by moving the new version of SwiftSyntax parser library.