Created
September 1, 2019 10:20
-
-
Save fxm90/4e5c8399cebc9e96dc3947b27e1cb096 to your computer and use it in GitHub Desktop.
Check "SwiftFormat" installed via CocoaPods. Add a new "Run Script Phase" with this gist.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SWIFTFORMAT="${PODS_ROOT}/SwiftFormat/CommandLineTool/swiftformat" | |
if [ ! -f "$SWIFTFORMAT" ]; then | |
echo "warning: SwiftFormat not installed!" | |
exit 1 | |
fi | |
$SWIFTFORMAT ./ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment