diff --git a/CHANGELOG.md b/CHANGELOG.md index 94c566c5c8..7fa4b6e606 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,7 +2,22 @@ #### Breaking -* None. +* If you are referring to the `swiftlint` binary from an Artifact Bundle consumed via Swift Package Manager + in an Xcode Run Script Build Phase, make sure to update the path from + + ```bash + "$SWIFT_PACKAGE_DIR"/swiftlintplugins/SwiftLintBinary/SwiftLintBinary.artifactbundle/swiftlint-*/bin/swiftlint + ``` + + to + + ```bash + "$SWIFT_PACKAGE_DIR"/swiftlintplugins/SwiftLintBinary/SwiftLintBinary.artifactbundle/swiftlint-*-macos/bin/swiftlint + ``` + + in order to make Xcode use the binary built for macOS. + [SimplyDanny](https://github.com/SimplyDanny) + [#5954](https://github.com/realm/SwiftLint/issues/5954) #### Experimental diff --git a/README.md b/README.md index ec07285e0c..c2b70e245f 100644 --- a/README.md +++ b/README.md @@ -339,7 +339,7 @@ following way: ```bash SWIFT_PACKAGE_DIR="${BUILD_DIR%Build/*}SourcePackages/artifacts" -SWIFTLINT_CMD=$(ls "$SWIFT_PACKAGE_DIR"/swiftlintplugins/SwiftLintBinary/SwiftLintBinary.artifactbundle/swiftlint-*/bin/swiftlint | head -n 1) +SWIFTLINT_CMD=$(ls "$SWIFT_PACKAGE_DIR"/swiftlintplugins/SwiftLintBinary/SwiftLintBinary.artifactbundle/swiftlint-*-macos/bin/swiftlint | head -n 1) if test -f "$SWIFTLINT_CMD" 2>&1 then