Skip to content

Commit

Permalink
Add architecture detection to Xcode script configuration (realm#4873)
Browse files Browse the repository at this point in the history
  • Loading branch information
FradSer authored Apr 17, 2023
1 parent f9b0e9f commit 5814ec1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,10 @@ folder by default. To instruct Xcode where to find SwiftLint, you can either add
`/opt/homebrew/bin` to the `PATH` environment variable in your build phase

```bash
export PATH="$PATH:/opt/homebrew/bin"
if [[ "$(uname -m)" == arm64 ]]; then
export PATH="/opt/homebrew/bin:$PATH"
fi

if which swiftlint > /dev/null; then
swiftlint
else
Expand Down

0 comments on commit 5814ec1

Please sign in to comment.