Description
Xcode 16 now packages swift-format
$ xcrun --find swift-format
Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift-format
The format
command should first check if --swift-format-path
is passed in, then if swift-format
is on the PATH
, and then fallback to the results of the xcrun --find swift-format
. And if that returns nothing, then fail.