Run a virtual iPhone on an Apple Silicon Mac.
Swift
#!/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" "$@"