Skip to content

Commit 56f6b3b

Browse files
committed
Added support for Homebrew directory on Apple Silicon in SwiftFormat/SwiftLint build phases
1 parent 188bedf commit 56f6b3b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

CryptomatorCryptoLib.xcodeproj/project.pbxproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,7 @@
399399
);
400400
runOnlyForDeploymentPostprocessing = 0;
401401
shellPath = /bin/sh;
402-
shellScript = "if which swiftformat >/dev/null; then\n swiftformat --lint --lenient .\nelse\n echo \"warning: SwiftFormat not installed, download from https://github.com/nicklockwood/SwiftFormat\"\nfi\n";
402+
shellScript = "PATH=$PATH:/opt/homebrew/bin\nif which swiftformat >/dev/null; then\n swiftformat --lint --lenient .\nelse\n echo \"warning: SwiftFormat not installed, download from https://github.com/nicklockwood/SwiftFormat\"\nfi\n";
403403
};
404404
749441272616051400435B0B /* Lint With SwiftLint */ = {
405405
isa = PBXShellScriptBuildPhase;
@@ -417,7 +417,7 @@
417417
);
418418
runOnlyForDeploymentPostprocessing = 0;
419419
shellPath = /bin/sh;
420-
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";
420+
shellScript = "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";
421421
};
422422
/* End PBXShellScriptBuildPhase section */
423423

0 commit comments

Comments
 (0)