nicklockwood / SwiftFormat

A command-line tool and Xcode Extension for formatting Swift code
MIT License
7.9k stars 639 forks source link

'brew install swiftformat' on M1 Mac: can't find the formula for swiftformat #1185

Closed rudifa closed 2 years ago

rudifa commented 2 years ago

Asking for a friend @epajot:

On his M1 Mac, brew install swiftformat returns errors

Warning: No available formula with the name "swiftformat".
==> Searching for similarly named formulae...
Error: No similarly named formulae found.
==> Searching for a previously deleted formula (in the last month)...
Error: No previously deleted formula found.
==> Searching taps on GitHub...
Error: No formulae found in taps

He also tried the rosetta terminal, with similar result.

Please advise.

@rudifa

nicklockwood commented 2 years ago

I'm not really a a brew expert, so you might have more luck asking on the homebrew issues page, but some things you could try are:

brew update
brew install swiftformat

or

arch -arm64 brew install swiftformat
epajot commented 2 years ago

Thx you Nick,

By upgrading Brew, SwiftFormat was updated automatically on my M1, (no need to use the Rosetta Terminal)

Really appreciate your way and congrats for your work and contribution for the swift's users,

Best regards Eric