ci: build iOS on the Mac Studio runners (canary), Xcode 27 (#3872)
What changed, and why it matters
This is a routine update to the project's automated iOS build pipeline. It changes which Apple computer (runner) and Xcode version are used to compile and upload the iPhone app, so the app meets Apple's upcoming App Store requirement to use the iOS 27 SDK. There is no user-facing change and no security fix or vulnerability introduced in the code itself.
No security action needed. Review as a normal CI/infrastructure change.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The commit modifies .github/workflows/pr_test_build_ios.yml only. It switches the iOS build and TestFlight jobs from the macos-26 GitHub-hosted runner to a variable-driven runner (self-hosted Mac Studio pool or GitHub’s xcode-27 image) and explicitly selects Xcode 27.1 before building. This ensures archives are built and exported with the iOS 27 SDK required by App Store Connect from April 2027 (ITMS-90725). The diff contains no application code, dependency, cryptographic, signing-key, or secret-handling changes.
Changed components
.github/workflows/pr_test_build_ios.ymlInspect captured patch +22 / −2
### .github/workflows/pr_test_build_ios.yml
@@ -73,7 +73,10 @@ jobs:
build:
needs: [torch, monero]
if: github.event.pull_request.head.repo.fork == false
- runs-on: macos-26
+ # The repository variable IOS_BUILD_RUNNER (JSON) picks the runner: ["self-hosted","cake-m5-ultra"] is the Mac
+ # Studio pool (a throwaway VM per job, Xcode 27.1 only). Unset, it falls back to GitHub's xcode-27 image. The
+ # first step pins Xcode 27.1 on either pool, so the archive is built with the Xcode testflight exports with.
+ runs-on: ${{ fromJSON(vars.IOS_BUILD_RUNNER || '"xcode-27"') }}
outputs:
build_number: ${{ steps.config.outputs.build_number }}
@@ -85,6 +88,16 @@ jobs:
GO_VERSION: "1.24.1"
steps:
+ - name: Select Xcode 27.1
+ run: |
+ # GitHub's xcode-27 image ships several versions; the Mac Studio template has only 27.1, as Xcode.app.
+ if [ -d /Applications/Xcode_27.1.app ]; then sudo xcode-select -s /Applications/Xcode_27.1.app; fi
+ if [ "$(xcodebuild -version | sed -n 1p)" != "Xcode 27.1" ]; then
+ xcodebuild -version
+ echo "::error::build needs Xcode 27.1, the version the testflight job exports with"
+ exit 1
+ fi
+
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
with:
ref: ${{ github.event.pull_request.head.sha }}
@@ -308,10 +321,17 @@ jobs:
testflight:
needs: build
- runs-on: macos-26
+ # Exports with the Xcode that built the archive (27.1, either pool). From April 2027 App Store Connect only
+ # accepts builds made with the iOS 27 SDK (ITMS-90725).
+ runs-on: xcode-27
environment: testflight
steps:
+ - name: Select Xcode 27.1
+ run: |
+ sudo xcode-select -s /Applications/Xcode_27.1.app
+ xcodebuild -version
+
- name: Download unsigned archive
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
with:Why this scored 15/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.