Skip to content

Run a virtual iPhone on an Apple Silicon Mac.

Swift
399 B
Raw Blame
#!/bin/zsh
set -euo pipefail

launchpad="${0:a:h:h}"
temporary="$(/usr/bin/mktemp -d)"
trap '/bin/rm -rf "$temporary"' EXIT

/usr/bin/xcrun swiftc -swift-version 6 -strict-concurrency=complete \
    -parse-as-library \
    "$launchpad/VPhoneLaunchpadShared/VPhoneLaunchpadControl.swift" \
    "$launchpad/Tests/ControlTests.swift" \
    -o "$temporary/control-tests"
"$temporary/control-tests" "$@"