Reply to "Swiftlint" Error Message in the Terminal What worked for me: open your project in xcode, go to preferences, tab 'locations'. change in 'command line tools' (reselect your current if only one available). it will prompt you then for your pwd. once done your swiftlint will work fine. Developer Tools & Services Xcode May ’23