Run a virtual iPhone on an Apple Silicon Mac.
Swift
#!/bin/zsh
# vphone-tier: build
set -euo pipefail
root="$(cd "${0:a:h}/../../.." && pwd)"
out="$root/.build/gyroscope-tests"
mkdir -p "$out"
xcrun --sdk macosx swiftc -swift-version 6 -parse-as-library \
-target arm64-apple-macos15.0 -module-cache-path "$out/module-cache" \
"$root/VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/Panels/Motion/VPhoneMotionModel.swift" \
"${0:a:h}/GyroscopeModelTests.swift" -o "$out/GyroscopeModelTests"
"$out/GyroscopeModelTests"