简体   繁体   中英

Apple Swift-Format tool for Xcode 11.4

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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM