You have violations in your swift code and that's how swiftlint
is telling you. It should be outputting those violations to the console so you can see what they are.
Also cd ..
is weak; use something like cd $PROJECT_DIR
instead:
#!/bin/bashif [[ $CI_XCODEBUILD_ACTION = 'build' ]]; then which swiftlint >/dev/null || brew install swiftlint (cd $PROJECT_DIR; swiftlint --strict)fi
Also you should be running swiftlint
in a pre-commit hook so such errors are can be fixed before they reach your CI.