Adjust swiftlint setup for Apple Silicon

This commit is contained in:
Justin Mazzocchi 2022-05-05 18:13:45 -07:00
parent 032e0040ed
commit 8ab37d62b9
1 changed files with 1 additions and 1 deletions

View File

@ -1149,7 +1149,7 @@
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "if which swiftlint >/dev/null; then\n swiftlint\nelse\n echo \"warning: SwiftLint not installed, download from https://github.com/realm/SwiftLint\"\nfi\n";
shellScript = "export PATH=\"$PATH:/opt/homebrew/bin\"\nif which swiftlint > /dev/null; then\n swiftlint\nelse\n echo \"warning: SwiftLint not installed, download from https://github.com/realm/SwiftLint\"\nfi\n";
};
/* End PBXShellScriptBuildPhase section */