Skip to content

fix(cli): fall back from .icon app icons on older Xcode - #2658

Merged
oneo-me merged 2 commits into
nsgo-dev:mainfrom
abenoharukas:fix/legacy-actool-icon-fallback
Nov 29, 2026
Merged

oneo-me merged 2 commits into
nsgo-dev:mainfrom
abenoharukas:fix/legacy-actool-icon-fallback

Conversation

@abenoharukas

@abenoharukas abenoharukas commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Fall back to a sibling .icns or icon.png (encoded as AppIcon.icns) on macOS when the project uses an Icon Composer .icon and Xcode's actool predates Xcode 26. Also document the iOS/watchOS fallback gap in docs/roadmap.md.

Targets

  • Shared code (core, base, ui, tsx, the nsgo tool)
  • macOS
  • iOS
  • tvOS
  • watchOS
  • Android
  • Windows
  • Linux
  • Web
  • Mini programs
  • Docs or website only

Screenshots

None.

Verification

  • head: ea1089cd5
  • base: 1d16f441d
  • commands:
    • go tool nsgo check → 0
    • go tool nsgo test -timeout 30m ./cmd/nsgo → 0
  • result: pass
  • not covered: a real Xcode older than 26 (simulated with an xcrun shim reporting actool 16.4, which exercised the .icns, PNG and missing-fallback paths in a macOS build), iOS and watchOS, the other packages' suites, Windows, Linux, the Android emulator and the browser jobs

Checklist

  • The title is a Conventional Commit, such as fix(linux): keep the caret after a paste; a squash merge uses it as the commit subject.
  • Docs whose facts change are updated, and a capability users can see has a line in a changelog.d/ fragment, not in CHANGELOG.md.
  • New third-party code, assets and dependencies name their source and license.

Rebased onto main and amended by the maintainer: the macOS .icon path now reads actool's version once.

🤖 Claude Opus 5.5

@github-actions

Copy link
Copy Markdown

Thanks for your first pull request! Before it is merged:

  • Write the title as a Conventional Commit, such as fix(linux): ...; a squash merge uses it as the commit subject.
  • Run go tool nsgo check and go tool nsgo test, and say in the description what you ran on which targets and what you could not.
  • Making a change says what a pull request needs, and AGENTS.md and ARCHITECTURE.md how the code is organized.

@github-actions github-actions Bot added bug Something isn't working size/M documentation Improvements or additions to documentation cli labels Nov 27, 2026
@abenoharukas
abenoharukas force-pushed the fix/legacy-actool-icon-fallback branch from 9262a41 to 85ae6bc Compare November 27, 2026 13:18
@abenoharukas

Copy link
Copy Markdown
Contributor Author

Local Android verification passed on an arm64 API 37 emulator:

  • go tool nsgo dev -target android examples/hello built, installed, and started successfully.
  • go tool nsgo test -target android -device emulator-5554 -timeout 2m -run '^TestGreets$' ./examples/hello passed.
  • go tool nsgo dev -target android examples/gallery built, installed, and started successfully.

The required Android CI is still action_required because this is a fork PR. Could a maintainer approve and run the workflows so the required android check can report?

🤖 HungerG Free

@abenoharukas
abenoharukas force-pushed the fix/legacy-actool-icon-fallback branch 2 times, most recently from f7e872c to e5d2b66 Compare November 28, 2026 04:02
@oneo-me
oneo-me enabled auto-merge (rebase) November 29, 2026 09:38
@oneo-me
oneo-me force-pushed the fix/legacy-actool-icon-fallback branch from e5d2b66 to ea1089c Compare November 29, 2026 13:48
@github-actions github-actions Bot added the local-ci-pass The head commit declares that its local checks passed label Nov 29, 2026
@oneo-me
oneo-me merged commit f59bb7a into nsgo-dev:main Nov 29, 2026
72 of 75 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working cli documentation Improvements or additions to documentation local-ci-pass The head commit declares that its local checks passed size/M

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants