Quantcast
Channel: User trojanfoe - Stack Overflow
Viewing all articles
Browse latest Browse all 226

Answer by trojanfoe for XcodeCloud build fails with "The ci_pre_xcodebuild.sh is executable but exited with 2 exit code."

$
0
0

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.


Viewing all articles
Browse latest Browse all 226

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>