Skip to content

fix: build with Xcode 27 - #277

Merged
ethanndickson merged 2 commits into
chore/bump-nixpkgsfrom
fix/xcode-27
Nov 9, 2026
Merged

ethanndickson merged 2 commits into
chore/bump-nixpkgsfrom
fix/xcode-27

Conversation

@ethanndickson

@ethanndickson ethanndickson commented Oct 29, 2026 •

Copy link
Copy Markdown
Member

I'm only doing this because I can't test the damn changes in #275 otherwise. I'm on Xcode 27 locally, and the app doesn't compile with it:

Coder-Desktop/Coder-Desktop/Views/ButtonRow.swift:6:9: error: variable 'self.label' used before being initialized

ButtonRowView had @ViewBuilder on a stored closure property, which we also assigned from a custom init, and the newer compiler rejects that. The fix is just to move @ViewBuilder onto the init parameter and store the built view instead of the closure, which is how SwiftUI's own containers do it. I also set the initial @State with State(initialValue:) rather than assigning to the wrapped value.

The rest is small cleanups from building with Xcode 27, i.e. dropping redundant Sendable conformances on internal types (they're inferred), and filter { ... }.count to count(where:).

CI still pins Xcode 26.5, so it never hit this. I haven't built this on 26.5 locally, but CI will.

@ethanndickson

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 9, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-09T05:43:40.488909Z 987a1db Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Bravo.

Reviewed commit: 987a1db9b3

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@ethanndickson
ethanndickson marked this pull request as ready for review November 9, 2026 05:41
Xcode warns "No App Category is set for target 'Coder Desktop'" on every
build. Set LSApplicationCategoryType through the generated Info.plist,
the same way we set LSUIElement.
@ethanndickson
ethanndickson merged commit ed62e9d into main Nov 9, 2026
5 of 6 checks passed
@ethanndickson
ethanndickson deleted the fix/xcode-27 branch November 9, 2026 05:58
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