Skip to content

Commit db88093

Browse files
committed
Applied some potential fixes to SwiftLint build phase
1 parent fdc02c7 commit db88093

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Template.xcodeproj/project.pbxproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -271,8 +271,8 @@
271271
buildConfigurationList = 1FAC1FBD2A6AF4840083E64C /* Build configuration list for PBXNativeTarget "Template" */;
272272
buildPhases = (
273273
1F9E0E912A717167006CD009 /* Gather Open Source Licenses */,
274-
1F65A1DD2A71538500FBA141 /* SwiftLint */,
275274
1FAC1FAA2A6AF4830083E64C /* Sources */,
275+
1F65A1DD2A71538500FBA141 /* SwiftLint */,
276276
1FAC1FAB2A6AF4830083E64C /* Frameworks */,
277277
1FAC1FAC2A6AF4830083E64C /* Resources */,
278278
);
@@ -377,7 +377,7 @@
377377
);
378378
runOnlyForDeploymentPostprocessing = 0;
379379
shellPath = /bin/sh;
380-
shellScript = "# Don't run this during index builds \nif [ $ACTION = \"indexbuild\" ]; then echo 'Index build detected.'; exit 0; fi\n\n# Don't run this during CI builds.\nif [ $CI = 'TRUE' ]; then echo 'CI detected.'; exit 0; fi\n\n# Don't run during SwiftUI previews, to prevent `Preview paused`.\nif [ $ENABLE_PREVIEWS = 'YES' ]; then echo 'Preview detected.'; exit 0; fi\n\nexport PATH=\"$PATH:/opt/homebrew/bin\" # Adds support for Apple Silicon brew directory.\nif mint which swiftlint; then\n mint run swiftlint $(sed \"s|\\$(SRCROOT)|$SRCROOT|g\" $SCRIPT_INPUT_FILE_LIST_0)\nelse\n echo 'warning: SwiftLint not installed, please run ´bundle exec fastlane setup´ to install it via brew.'\nfi\n";
380+
shellScript = "# Don't run this during index builds \nif [ $ACTION = \"indexbuild\" ]; then echo 'Index build detected.'; exit 0; fi\n\n# Don't run this during CI builds.\nif [ $CI = 'TRUE' ]; then echo 'CI detected.'; exit 0; fi\n\n# Don't run during SwiftUI previews, to prevent `Preview paused`.\nif [ $ENABLE_PREVIEWS = 'YES' ]; then echo 'Preview detected.'; exit 0; fi\n\nexport PATH=\"/opt/homebrew/bin:$PATH\" # Adds support for Apple Silicon brew directory.\nif mint which swiftlint; then\n mint run swiftlint $(sed \"s|\\$(SRCROOT)|$SRCROOT|g\" $SCRIPT_INPUT_FILE_LIST_0)\nelse\n echo 'warning: SwiftLint not installed, please run ´bundle exec fastlane setup´ to install it via brew.'\nfi\n";
381381
};
382382
1F65A1FD2A7169CA00FBA141 /* SwiftLint */ = {
383383
isa = PBXShellScriptBuildPhase;

0 commit comments

Comments
 (0)