formatting: fix SwiftLint
- fix path for Mac silicon
- fix autocorrect for SwiftLint version 0.43.0 and higher
Change-Id: I1b6181f9e6ee6fb7256b1031a218b8b42ed4307d
diff --git a/Ring/Ring.xcodeproj/project.pbxproj b/Ring/Ring.xcodeproj/project.pbxproj
index 7fc56cc..dc66811 100644
--- a/Ring/Ring.xcodeproj/project.pbxproj
+++ b/Ring/Ring.xcodeproj/project.pbxproj
@@ -2505,7 +2505,7 @@
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
- shellScript = "if [ \\\"${CONFIGURATION}\\\" != \\\"Release\\\" ]; then\n if which swiftlint > /dev/null; then\n swiftlint autocorrect > /dev/null\n swiftlint\n else\n echo \\\"warning: SwiftLint not installed, download from https://github.com/realm/SwiftLint\\\"\n fi\nfi;\n";
+ shellScript = "if [ \\\"${CONFIGURATION}\\\" != \\\"Release\\\" ]; then\n export PATH=\"$PATH:/opt/homebrew/bin\"\n if which swiftlint > /dev/null; then\n swiftlint autocorrect > /dev/null\n swiftlint lint --fix --format\n swiftlint\n else\n echo \\\"warning: SwiftLint not installed, download from https://github.com/realm/SwiftLint\\\"\n fi\nfi;\n";
};
1ABE07C41F0D779F00D36361 /* ⚙️ SwiftGen Code Generation */ = {
isa = PBXShellScriptBuildPhase;