Skip to content

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.yml
index 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-27
steps:
- name: Checkout
uses: 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 tests
run: |
make -C VPhoneGuestComponents test-loader-links
diff --git a/.github/workflows/package.yml b/.github/workflows/package.yml
index 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-27
steps:
- name: Checkout
uses: actions/checkout@v4
@@ -28,6 +28,12 @@ jobs:
set -euo pipefail
bundle=.build/XcodeBundle/Build/Products/Release/VPhone.bundle
zsh 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; }
+ done
ditto -c -k --keepParent "$bundle" "VPhone-${GITHUB_SHA}.zip"
- name: Build vphone-launchpad.app
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 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-27
steps:
- name: Checkout
uses: 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 bundle
env:
TAG: ${{ github.event.release.tag_name || inputs.tag }}
@@ -82,7 +94,7 @@ jobs:
run: gh release upload "$TAG" "VPhone-${TAG}.zip" --clobber
launchpad:
- runs-on: macos-26
+ runs-on: xcode-27
steps:
- name: Checkout
uses: actions/checkout@v4