Skip to content

Uno.Sdk 7.0 builds a net10.0-maccatalyst library asset silently, with no platform identity and no runtime behind it #24500

Open

Description

@MartinZikmund

Symptom

Mac Catalyst is removed in 7.0 - doc/articles/migrating-to-uno-7.md says so plainly
("maccatalyst is not a recognized TargetFramework"). But a library that still lists it
does not fail, and does not warn. It just builds:

MauiUI -> D:\Throwaway\Maui7Probe\MauiUI\bin\Release\net10.0-maccatalyst\MauiUI.dll
Build succeeded.
    0 Warning(s)

Root cause

targets/Uno.IsPlatform.props has <When> branches for android, ios, tvos,
windows10, browserwasm and desktop - and none for maccatalyst. In fact
grep -i maccatalyst over every .props/.targets in
D:\Packages\NuGet\uno.sdk.private\7.0.0-dev.701\targets\ returns zero matches.

So on a net10.0-maccatalyst leg every Is* property is false, no
Uno.Implicit.Packages.ProjectSystem.<platform>.targets fires, and no
Uno.WinUI.Runtime.Skia.* package is added. NuGet then falls the library back onto the
base assets. Compare the two legs of the same probe project (project.assets.json):

leg Uno.WinUI runtime host package
net10.0-android lib/net10.0 Uno.WinUI.Runtime.Skia.Android lib/net10.0-android36.0
net10.0-maccatalyst lib/net10.0 none

The result is a package asset compiled against the Skia Uno.UI with nothing that can host
it - Uno.WinRT ships net10.0, net10.0-android30.0, net10.0-ios26.0,
net10.0-tvos26.0 and no maccatalyst asset either.

Impact

Medium, and it is exactly the kind of thing that survives a retarget unnoticed. Every
first-party repo being moved to 7.0 has Build_MacCatalyst defaults and
net*-maccatalyst entries in its TFM props files (in uno.extensions,
src/tfms-ui-maui.props:8 and
src/Uno.Extensions.Maui.WinUI.Runtime.Skia/Uno.Extensions.Maui.WinUI.Runtime.Skia.csproj:4
still add it). Those legs build green, pack, and ship a lib/net10.0-maccatalyst/ folder
that a consumer's maccatalyst head would prefer over the working net10.0 one - a dead
asset that looks supported.

An unrecognized-TFM warning from Uno.Common.targets ("net*-maccatalyst is not supported
in Uno Platform 7.0; see the migration guide") would turn a silent ship into a one-line
build fix.

Workaround

Delete net*-maccatalyst from <TargetFrameworks> everywhere, and stop honouring
Build_MacCatalyst. There is no build-time signal that tells you to.

Related

uno--sdk-70-drops-maccatalyst-platform-folder.md covers the other half of the same
removal: Platforms/MacCatalyst/ was dropped from @(_IgnorePlatformFiles), so its sources
leak into every head. That one fails loudly; this one fails silently.

Evidence

  • D:\Packages\NuGet\uno.sdk.private\7.0.0-dev.701\targets\Uno.IsPlatform.props - no maccatalyst branch
  • grep -ril maccatalyst D:\Packages\NuGet\uno.sdk.private\7.0.0-dev.701\targets\ - no hits
  • D:\Work\uno\doc\articles\migrating-to-uno-7.md:55-73 - "Mac Catalyst is removed"
  • Probe: D:\Throwaway\Maui7Probe\MauiUI\ (net10.0-android;net10.0-ios;net10.0-maccatalyst;net10.0)

Found while retargeting Uno.Extensions to Uno Platform 7.0 (unoplatform/uno.extensions#3181).

🤖 Generated with Claude Code

https://claude.ai/code/session_01XKVS6HsqQKi8xT8dQ3REDT

Activity

  1. MartinZikmund commented on Oct 1, 2026

    @MartinZikmund
    MemberAuthor

    Related: #24870 covers the other half of the Mac Catalyst removal - a leftover Platforms/MacCatalyst/ folder is now compiled into every non-Desktop head (CS0246 on UIKit). Distinct from this TFM-diagnostic issue, but one "Mac Catalyst is not supported" diagnostic could cover both.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions