CI: brew install xcodegen fails on macOS 12 runner (run 31390) #109

Closed
opened 2026-09-12 08:33:04 +01:00 by gronod · 0 comments
Owner

Run 31390 (job 33190) failed at the Ensure host tools step on the macos-12 runner.

The runner has no xcodegen preinstalled, so the workflow ran brew install xcodegen, which resolved to xcodegen 2.46.0. That formula requires Xcode 15.3, which cannot be installed on macOS 12 (runner has Xcode 14.2). The job died before Generate Xcode project.

ICCery.xcodeproj is gitignored, so xcodegen is mandatory. The package job will hit the same failure via xcodegen generate in scripts/package-release.sh.

Fix: replace Homebrew for xcodegen with a shared bootstrap script (scripts/ensure-host-tools.sh) that downloads a pinned prebuilt XcodeGen release (2.38.0, Xcode 14-era, macOS 12 compatible) from GitHub releases and installs dmgbuild via pip3. Call it from both jobs in .gitea/workflows/macos.yml.

Run 31390 (job 33190) failed at the `Ensure host tools` step on the macos-12 runner. The runner has no `xcodegen` preinstalled, so the workflow ran `brew install xcodegen`, which resolved to xcodegen 2.46.0. That formula requires Xcode 15.3, which cannot be installed on macOS 12 (runner has Xcode 14.2). The job died before `Generate Xcode project`. `ICCery.xcodeproj` is gitignored, so xcodegen is mandatory. The `package` job will hit the same failure via `xcodegen generate` in `scripts/package-release.sh`. Fix: replace Homebrew for xcodegen with a shared bootstrap script (`scripts/ensure-host-tools.sh`) that downloads a pinned prebuilt XcodeGen release (2.38.0, Xcode 14-era, macOS 12 compatible) from GitHub releases and installs dmgbuild via pip3. Call it from both jobs in `.gitea/workflows/macos.yml`.
gronod added the
Priority
High
2
Project/ICCery-v2Bug/DevOps
labels 2026-09-12 08:33:04 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: gronod/iccery-v2-mac#109