Home / Programming /
Run Script build phase with the following script:
#!/bin/bash
bN=$(/usr/libexec/PlistBuddy -c "Print CFBundleVersion" "$INFOPLIST_FILE")
bN=$((bN += 1))
bN=$(printf "%d" $bN)
/usr/libexec/PlistBuddy -c "Set :CFBundleVersion $bN" "$INFOPLIST_FILE"Run Script phase to Increment Build Scriptbrew install swiftlint (alternatives exist for installing swiftlint)Run Script build phase with the following script:
if which swiftlint >/dev/null; then
swiftlint
else
echo "warning: SwiftLint not installed, download from https://github.com/realm/SwiftLint"
fi or Option while hovering over a bracket with your mouse to see the scope highlightedTabs from the Prefer indent using: dropdown.this document last modified: May 04 2019 13:25
Home / Programming /