macoshomebrewswiftlint

How could I downgrade the swiftlint on my m1 pro mac


I want to downgrade the swiftlint version on my MBP M1 Pro.
I installed it using brew install swiftlint
In homebrew/Cellar/swiftlint the folder is 0.49.1 which I guess is the version installed on my machine.

I googled and tried a few methods. But non of them worked for me.

First: brew install <url of older github raw file> is not working

Second: brew install swiftlint@0.47.0 was also not working

Third:

Can anyone help me out what I am doing wrong, and what should be the correct steps.
I am new to macOS.


Solution

  • I have found a work around. Earlier I wasn't aware how files, applictions works in MacOS, where does the data for applications go.

    I am writing down the steps for swiftlint, maybe similar steps might be used to downgrade any other tool on MacOS (on M1 pro macbook).

    What worked for me was:

    Then this exact version of swiftlint was installed for me, and now it works fine.
    Hope this helps someone.