Skip to content

TodoApp.Uno: MT7156 duplicate BundleResource icon/splash assets ignored on ios-maccatalyst #541

Description

@adrianhall

Summary

The ios-maccatalyst head emits several MT7156 warnings about duplicate bundle resources during build:

warning MT7156: The BundleResource item 'obj/Debug/net10.0-ios/iossimulator-arm64/unoresizetizer/r/Assets/Icons/icon_foreground.png' was ignored, because there's another item with the same LogicalName ('Assets/Icons/icon_foreground.png')
warning MT7156: The BundleResource item '.../unoresizetizer/r/Assets/Icons/icon_foreground.scale-100.png' was ignored, because there's another item with the same LogicalName ('Assets/Icons/icon_foreground.png')
warning MT7156: The BundleResource item '.../unoresizetizer/r/Assets/Images/back.png' was ignored, because there's another item with the same LogicalName ('Assets/Images/back.png')
warning MT7156: The BundleResource item '.../unoresizetizer/r/Assets/Images/back.scale-100.png' was ignored, because there's another item with the same LogicalName ('Assets/Images/back.png')
warning MT7156: The BundleResource item '.../unoresizetizer/r/splash_screen.png' was ignored, because there's another item with the same LogicalName ('splash_screen.png')
warning MT7156: The BundleResource item '.../unoresizetizer/r/splash_screen.scale-100.png' was ignored, because there's another item with the same LogicalName ('splash_screen.png')

CI run: https://github.com/CommunityToolkit/Datasync/actions/runs/29093946725 (todoapp-uno / ios-maccatalyst job)

Root cause (tentative - needs investigation)

The project supplies SVG source assets (Assets/Icons/icon_foreground.svg, Assets/Splash/splash_screen.svg) that Uno's unoresizetizer MSBuild tooling rasterizes into multiple PNG variants (base + scale-100, etc.) under obj/.../unoresizetizer/r/.... On the ios/maccatalyst heads specifically, the generated scale-100 variant appears to collapse to the same LogicalName as the unscaled base variant (or an already-bundled back.png/splash_screen.png from elsewhere in the resource pipeline), so one copy silently wins and the other is dropped. The build still succeeds and produces a working icon/splash - this is a warning about redundant bundling, not a missing asset - but it's worth confirming nothing visually regresses (e.g. wrong icon scale bundled) since we can't visually verify the iOS/macCatalyst app locally (no Xcode/simulator available in this environment).

back.png doesn't correspond to any file directly under samples/todoapp/TodoApp.Uno/TodoApp.Uno/Assets/ - it may be a default asset pulled in via Uno.Toolkit/Uno.Extensions.Navigation (the project uses both via UnoFeatures) for a default back-navigation icon.

Suggested fix

  1. Investigate whether this is expected, benign unoresizetizer behavior for any Uno Single Project app with SVG-sourced icons/splash screens on ios/maccatalyst (in which case it may not be actionable in this repo at all, similar to Investigate resolving NU1903 for Tmds.DBus in Uno desktop sample #506/Major-version bump: Uno Platform 5 -> 6 (TodoApp.Uno sample) #524's now-resolved Uno.Wasm.Bootstrap-style ecosystem quirks), or a genuine duplicate-inclusion bug in how this project's Assets folder/UnoIcon/UnoSplashScreen items are wired up.
  2. If it's the latter, identify and remove the duplicate resource inclusion.
  3. If it's expected/benign, consider whether it's worth reporting upstream to Uno Platform, or just documenting/suppressing here.

Activity

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions