Skip to content

chore(app-icon): per-platform appiconset (closes AppIcon warning §未決) - #114

Merged
wei18 merged 1 commit into
mainfrom
chore/appicon-multiplatform-2
May 23, 2026
Merged

wei18 merged 1 commit into
mainfrom
chore/appicon-multiplatform-2

Conversation

@wei18

@wei18 wei18 commented May 23, 2026

Copy link
Copy Markdown
Owner

Path A from #61 §未決. Splits AppIcon into iOS .appiconset (platform:ios) + macOS .appiconset (10 PNG ladder). Project.swift SDK-conditional ASSETCATALOG_COMPILER_APPICON_NAME. iOS + macOS BUILD SUCCEEDED, warning gone.

…g §未決)

Resolves the "AppIcon has 3 unassigned children" warning that XCC was
emitting after PR #70 dropped platform:ios for cross-platform support.
Path A: per-platform image sets.

iOS — App/Assets.xcassets/AppIcon.appiconset/Contents.json
  Restored platform:"ios" on 3 entries (light / dark / tinted). Reverts
  the iOS portion of PR #70 — the cross-platform "universal" shape was
  the source of "unassigned children" because AppKit's macOS asset
  pipeline requires a discrete size ladder (16/32/128/256/512 @1x/@2x).

macOS — NEW App/Assets.xcassets/AppIcon-macOS.appiconset/ (10 PNGs)
  Generated from AppIcon-Light.png via Pillow Lanczos at the 10 standard
  Mac icon sizes. PR #74's 24% rounded clip is baked into the source so
  the downscales preserve the shape.

Project.swift
  + appTargetSettings with ASSETCATALOG_COMPILER_APPICON_NAME = "AppIcon"
  + SDK-conditional override [sdk=macosx*] = "AppIcon-macOS"
  Switches the App target to .settings(base: appTargetSettings).

Verification:
- mise exec -- tuist generate ✓
- xcodebuild -destination 'generic/platform=iOS' build: SUCCEEDED, no
  unassigned-children warning
- xcodebuild -destination 'platform=macOS' build: SUCCEEDED, no warning

§未決 (impl-notes)
- 16×16/32×32 Lanczos downscale visual review (may smudge detailed Light
  icon — hand-tuned small variants candidate for future iteration)
- macOS currently uses Light at all sizes; dark/tinted variant not
  surfaced on macOS (acceptable — macOS doesn't tint icons like iOS)

Co-Authored-By: Claude Opus 4.7 <[email protected]>
@wei18
wei18 merged commit bbad011 into main May 23, 2026
@wei18
wei18 deleted the chore/appicon-multiplatform-2 branch May 23, 2026 13:59
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.

1 participant