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.
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: