Run a virtual iPhone on an Apple Silicon Mac.
Swift
Build on the Xcode 27 runner so the escalator keeps arm64e.x1
Jacky4b440aa29346
diff --git a/.github/workflows/build.yml b/.github/workflows/build.ymlindex e8633e20..80cb7f8b 100644--- a/.github/workflows/build.yml+++ b/.github/workflows/build.yml@@ -11,7 +11,7 @@ permissions:jobs:build:- runs-on: macos-26+ runs-on: xcode-27steps:- name: Checkoutuses: actions/checkout@v4@@ -56,6 +56,18 @@ jobs:zsh VPhoneExecutable/VPhoneVirtualization/Build/ValidateBundle.sh \.build/XcodeBundle/Build/Products/Debug/VPhone.bundle+ # Xcode before 27 drops arm64e.x1 without a warning, and M6 hosts need+ # that slice of the AMFI allowlist tool.+ - name: Verify vphone-escalator slices+ run: |+ set -euo pipefail+ helper=.build/XcodeBundle/Build/Products/Debug/VPhone.bundle/Contents/MacOS/vphone-escalator+ archs=" $(lipo -archs "$helper") "+ echo "vphone-escalator:$archs"+ for arch in arm64e arm64e.x1; do+ [[ "$archs" == *" $arch "* ]] || { echo "::error::vphone-escalator lacks $arch"; exit 1; }+ done+- name: Guest component testsrun: |make -C VPhoneGuestComponents test-loader-linksdiff --git a/.github/workflows/package.yml b/.github/workflows/package.ymlindex 938dfb0c..d371e4bb 100644--- a/.github/workflows/package.yml+++ b/.github/workflows/package.yml@@ -8,7 +8,7 @@ permissions:jobs:package:- runs-on: macos-26+ runs-on: xcode-27steps:- name: Checkoutuses: actions/checkout@v4@@ -28,6 +28,12 @@ jobs:set -euo pipefailbundle=.build/XcodeBundle/Build/Products/Release/VPhone.bundlezsh VPhoneExecutable/VPhoneVirtualization/Build/ValidateBundle.sh "$bundle"+ # Xcode before 27 drops arm64e.x1 without a warning, and M6 hosts+ # need that slice of the AMFI allowlist tool.+ archs=" $(lipo -archs "$bundle/Contents/MacOS/vphone-escalator") "+ for arch in arm64e arm64e.x1; do+ [[ "$archs" == *" $arch "* ]] || { echo "::error::vphone-escalator lacks $arch"; exit 1; }+ doneditto -c -k --keepParent "$bundle" "VPhone-${GITHUB_SHA}.zip"- name: Build vphone-launchpad.appdiff --git a/.github/workflows/release.yml b/.github/workflows/release.ymlindex 334802d0..8a55f1da 100644--- a/.github/workflows/release.yml+++ b/.github/workflows/release.yml@@ -20,7 +20,7 @@ permissions:jobs:build:- runs-on: macos-26+ runs-on: xcode-27steps:- name: Checkoutuses: actions/checkout@v4@@ -67,6 +67,18 @@ jobs:zsh VPhoneExecutable/VPhoneVirtualization/Build/ValidateBundle.sh \.build/XcodeBundle/Build/Products/Release/VPhone.bundle+ # Xcode before 27 drops arm64e.x1 without a warning, and M6 hosts need+ # that slice of the AMFI allowlist tool.+ - name: Verify vphone-escalator slices+ run: |+ set -euo pipefail+ helper=.build/XcodeBundle/Build/Products/Release/VPhone.bundle/Contents/MacOS/vphone-escalator+ archs=" $(lipo -archs "$helper") "+ echo "vphone-escalator:$archs"+ for arch in arm64e arm64e.x1; do+ [[ "$archs" == *" $arch "* ]] || { echo "::error::vphone-escalator lacks $arch"; exit 1; }+ done+- name: Package bundleenv:TAG: ${{ github.event.release.tag_name || inputs.tag }}@@ -82,7 +94,7 @@ jobs:run: gh release upload "$TAG" "VPhone-${TAG}.zip" --clobberlaunchpad:- runs-on: macos-26+ runs-on: xcode-27steps:- name: Checkoutuses: actions/checkout@v4