chore(ci): pin Xcode 16.4 to fix Xcode_16.0.app not found
The macos-14 runner image no longer ships Xcode 16.0; the default is now Xcode 16.4. Pin the runner to that version explicitly so `xcode-select -s /Applications/Xcode_16.4.app` succeeds. Also drops the build matrix `xcode` field, since the runner only has one Xcode available and we do not test across multiple Xcode versions on the audit/appstore-prep branch. Refs: AUDIT_APPSTORE.md P0-1
This commit is contained in:
@@ -17,14 +17,23 @@ jobs:
|
|||||||
# =========================================================
|
# =========================================================
|
||||||
lint:
|
lint:
|
||||||
name: SwiftLint
|
name: SwiftLint
|
||||||
|
# macos-14 runner ships Xcode 16.x (default 16.4 in 2026). We pin to
|
||||||
|
# 16.4 instead of hard-coding a path because the runner image is
|
||||||
|
# refreshed regularly and `/Applications/Xcode_16.0.app` is no
|
||||||
|
# longer pre-installed — that's the bug this PR fixes.
|
||||||
runs-on: macos-14
|
runs-on: macos-14
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- name: Select Xcode
|
- name: Select Xcode 16.4
|
||||||
run: sudo xcode-select -s /Applications/Xcode_16.0.app
|
run: sudo xcode-select -s /Applications/Xcode_16.4.app
|
||||||
- name: Install SwiftLint
|
- name: Install SwiftLint
|
||||||
run: brew install swiftlint
|
run: brew install swiftlint
|
||||||
- name: Run SwiftLint
|
- name: Run SwiftLint
|
||||||
|
# Run twice: --quiet to fail on errors only, --strict to fail
|
||||||
|
# on warnings too. The current .swiftlint.yml is intentionally
|
||||||
|
# permissive (line_length, file_length, function_body_length,
|
||||||
|
# type_body_length are all disabled) so this should pass on
|
||||||
|
# the audit/appstore-prep branch.
|
||||||
run: |
|
run: |
|
||||||
swiftlint lint --quiet
|
swiftlint lint --quiet
|
||||||
swiftlint lint --quiet --strict
|
swiftlint lint --quiet --strict
|
||||||
@@ -41,12 +50,10 @@ jobs:
|
|||||||
matrix:
|
matrix:
|
||||||
destination:
|
destination:
|
||||||
- generic/platform=iOS Simulator
|
- generic/platform=iOS Simulator
|
||||||
xcode:
|
|
||||||
- "16.0"
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- name: Select Xcode ${{ matrix.xcode }}
|
- name: Select Xcode 16.4
|
||||||
run: sudo xcode-select -s /Applications/Xcode_${{ matrix.xcode }}.app
|
run: sudo xcode-select -s /Applications/Xcode_16.4.app
|
||||||
- name: Install XcodeGen
|
- name: Install XcodeGen
|
||||||
run: brew install xcodegen
|
run: brew install xcodegen
|
||||||
- name: Generate project
|
- name: Generate project
|
||||||
@@ -71,8 +78,8 @@ jobs:
|
|||||||
runs-on: macos-14
|
runs-on: macos-14
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- name: Select Xcode
|
- name: Select Xcode 16.4
|
||||||
run: sudo xcode-select -s /Applications/Xcode_16.0.app
|
run: sudo xcode-select -s /Applications/Xcode_16.4.app
|
||||||
- name: Install XcodeGen
|
- name: Install XcodeGen
|
||||||
run: brew install xcodegen
|
run: brew install xcodegen
|
||||||
- name: Generate project
|
- name: Generate project
|
||||||
|
|||||||
Reference in New Issue
Block a user