Skip to content

Instantly share code, notes, and snippets.

@mccaffers
Last active September 2, 2024 14:53
Show Gist options
  • Select an option

  • Save mccaffers/285e267e03025f5112eb320ca69072f9 to your computer and use it in GitHub Desktop.

Select an option

Save mccaffers/285e267e03025f5112eb320ca69072f9 to your computer and use it in GitHub Desktop.
Unit test iOS from the command line
# Wipe the simulators
xcrun simctl erase all
# Run the unit tests
xcodebuild -scheme TestProject \
-destination 'platform=iOS Simulator,name=iPhone 15,OS=latest' \
-resultBundlePath TestResult/ \
-enableCodeCoverage YES \
clean build test \
CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment