How to run a Build-Phase script when building a standalone Swift Package in Xcode?

Just to be clear, we also can't add the swiftlint code to the scheme, under Run > Pre-actions?