Skip to content

ci: build with the newest Xcode on macos-26 - #13

Draft
rob-stout wants to merge 3 commits into
mainfrom
fix/ci-newer-xcode
Draft

rob-stout wants to merge 3 commits into
mainfrom
fix/ci-newer-xcode

Conversation

@rob-stout

Copy link
Copy Markdown
Owner

Before: every CI run on main since Nov 4 fails in "Build & Test" with type 'WidgetFamily' has no member 'systemExtraLargePortrait'. CI runs on the macos-15 runner with Xcode 16.4 (macOS 15.5 SDK), and that widget size only exists in the macOS 27 SDK.

After: CI runs on the macos-26 runner and switches to the newest non-beta Xcode installed there, so it builds against the same SDK generation the app now targets.

How: runs-on: macos-15 → macos-26, plus a "Select newest Xcode" step that picks the highest /Applications/Xcode_*.app (skipping betas) with xcode-select. No app code changes; the existing #available(macOS 27.0, *) check still guards the widget size at runtime.


Generated by Claude Code

main has failed CI since Nov 4: the widget uses WidgetFamily.systemExtraLargePortrait
(macOS 27 SDK), which Xcode 16.4 on the macos-15 runner doesn't have.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The newest hosted runner Xcode (26.6, macOS 26.5 SDK) marks
WidgetFamily.systemExtraLargePortrait unavailable on macOS, and Xcode 16
doesn't have it at all. Builds with those SDKs now skip the size via a
PRE_MACOS27_SDK condition set in project.yml; macOS 27 SDK builds keep it.
CI also prints the Swift version.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…n CI

- distantFuture is Sunday evening in US time zones but Monday in UTC (CI),
  so the two 'isTheBugThisFixPrevents' tests now compare against the local
  weekday instead of a hard-coded Sunday.
- CI gives each test a 60s allowance so a hang fails by name instead of
  running out the 20-minute job timeout.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

Copy link
Copy Markdown
Owner Author

CI status: the build itself now passes on Xcode 26.6 (run 45430604118). That run's unit tests then showed two time-zone-dependent failures (fixed in b709d84) and a test that hung until the 20-minute job timeout; b709d84 adds 60-second per-test timeouts so the next run names it.

The run on b709d84 hasn't executed yet: both attempts of run 45436952284 ended with "The job was not acquired by Runner of type hosted" (GitHub macOS arm64 capacity), so nothing was tested on that commit. It needs a re-run once runners are available.


Generated by Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants