From 0ac3bf7c8866d0c996300f474b294252631d0a9a Mon Sep 17 00:00:00 2001 From: F1248 Date: Sat, 24 Aug 2024 17:22:48 +0200 Subject: [PATCH 1/2] Fix code format --- .github/workflows/Build-Genius.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/Build-Genius.yml b/.github/workflows/Build-Genius.yml index 14444a4..b8eb169 100644 --- a/.github/workflows/Build-Genius.yml +++ b/.github/workflows/Build-Genius.yml @@ -60,7 +60,7 @@ jobs: - name: Select Xcode version run: | /usr/bin/sudo /usr/bin/xcode-select --switch /Applications/Xcode_16.1.app - /bin/echo "$(/usr/bin/xcodebuild -version | /usr/bin/tr "\n" " ")selected" + /bin/echo "$(/usr/bin/xcodebuild -version | /usr/bin/tr "\n" " ")selected" - name: Build Genius run: | From dfb6c60dab93ed4c726c0f112b71c557ab46fc3e Mon Sep 17 00:00:00 2001 From: F1248 Date: Sat, 24 Aug 2024 17:52:48 +0200 Subject: [PATCH 2/2] Improve SwiftFormat run script phase --- Genius.xcodeproj/project.pbxproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Genius.xcodeproj/project.pbxproj b/Genius.xcodeproj/project.pbxproj index 2b61163..add9355 100644 --- a/Genius.xcodeproj/project.pbxproj +++ b/Genius.xcodeproj/project.pbxproj @@ -143,7 +143,7 @@ ); runOnlyForDeploymentPostprocessing = 0; shellPath = /bin/zsh; - shellScript = "if [ \"${CONFIGURATION}\" = \"Debug\" ]; then\n if which swiftformat >/dev/null; then\n swiftformat --lint .\n else\n echo \"warning: SwiftFormat not installed, download from https://github.com/nicklockwood/SwiftFormat\"\n fi\nfi\n"; + shellScript = "if [ \"${CONFIGURATION}\" = \"Debug\" ]; then\n if /usr/bin/which -s swiftformat; then\n swiftformat --lint .\n else\n echo \"warning: SwiftFormat is not installed, see https://github.com/nicklockwood/SwiftFormat#command-line-tool for installation instructions\"\n fi\nfi\n"; }; /* End PBXShellScriptBuildPhase section */