Skip to content

SkiaSharp 3.119.4 (iOS 26.2 assets) breaks iOS <26.2 builds (canaries + consumer apps, e.g. Uno.Chefs) #23680

Done

Description

@agneszitte

Summary

SkiaSharp.Views.Uno.WinUI 3.119.4 ships its Apple platform assets pinned to 26.2 (net10.0-ios26.2, MacCatalyst 26.2) — one minor above the iOS 26.1 workload our CI, canaries, and most users build against. There is no fixed 3.119.x to move to: the correction (26.2 → 26.0, mono/SkiaSharp#3798) shipped only on main/v4, so the dev feed keeps resolving the broken 3.119.4.

This breaks Uno canaries and real consumer / reference apps (e.g. Uno.Chefs) in several distinct ways depending on the rendering model / how the app pins SkiaSharp / the Xcode (iOS SDK) version. This issue tracks the framework-level root cause — the fix belongs in the SkiaSharp release line and/or the Uno.Sdk SkiaSharp pin, not per-app.

Affected canaries and apps

1. Uno.Gallery — native-iOS Release → MT0099 (red daily since 2026-05-25)
For a net10.0-ios26.1 consumer, net10.0-ios26.2 is incompatible, so NuGet falls back to the platform-neutral net10.0 assembly, whose SKSwapChainPanel is not ObjC-[Register]'d. In native-iOS mode (FrameworkElement is an NSObject), the managed-static registrar then fails:

ILLINK : error MT0099: Can't create a token reference to an unregistered type when using
         the managed static registrar: SkiaSharp.Views.Windows.SKSwapChainPanel
ILLINK : error MT2362: The linker step 'Registrar' failed during processing: ...SKSwapChainPanel
error NETSDK1144: Optimizing assemblies for size failed.

The Skia-renderer iOS build avoids MT0099 (there FrameworkElement is pure-managed, so the neutral no-[Register] assembly is correct at link time) — but it is not immune: that same neutral net10.0 assembly also lacks the native libSkiaSharp binding, so a 26.1 Skia-renderer build fails at runtime instead (see manifestation 6).

2. Uno.Themes — all 8 sample-app heads (Material + Cupertino × Android/iOS/Wasm/Desktop) → NU1605
The dev Uno.Material.WinUI / Uno.WinUI.Lottie require SkiaSharp.Views.Uno.WinUI (and SkiaSharp.Skottie) ≥ 3.119.4, but the sample apps resolve 3.119.2 (the last iOS-safe version) from the Uno.Sdk → package-downgrade error:

error NU1605: Detected package downgrade: SkiaSharp.Views.Uno.WinUI from 3.119.4 to 3.119.2

The apps can't simply move to 3.119.4 — that's the exact version that triggers Gallery's MT0099 on native iOS. So they're wedged between 3.119.2 (iOS-safe, below the dev floor) and 3.119.4 (satisfies the floor, breaks iOS).

3. Uno.Toolkit — Material + Cupertino sample apps → NU1605
Same downgrade as Uno.Themes: the dev Uno.Material.WinUI / Uno.WinUI.Lottie floor is ≥ 3.119.4, but the samples resolve 3.119.2:

error NU1605: Detected package downgrade: SkiaSharp.Views.Uno.WinUI from 3.119.4 to 3.119.2

4. uno.extensions — sample apps → NU1605
Same downgrade against its centrally-defined pin: the dev floor is ≥ 3.119.4, but SkiaSharp resolves 3.119.1:

error NU1605: Detected package downgrade: SkiaSharp.Views.Uno.WinUI from 3.119.4 to 3.119.1

5. Uno.Chefs — Skia-renderer iOS Release → runtime DllNotFoundException: libSkiaSharp (black screen) — the consumer-app / runtime manifestation (not a build error).
On a net10.0-ios26.1 build (i.e. Xcode < 26.2), NuGet selects the neutral net10.0 SkiaSharp assembly, which has no native libSkiaSharp P/Invoke binding, so the first SkiaSharp call (font preloading) throws at runtime → splash → black screen:

fail: Microsoft.UI.Xaml.Application[0] Unexpected error during font preloading
System.TypeInitializationException: ... SkiaSharp.SKTypeface
 ---> System.DllNotFoundException: libSkiaSharp
       at SkiaSharp.SKTypeface..cctor()

Bisected to the SkiaSharp 3.119.2 → 3.119.4 bump (Uno.Sdk 6.6.10 works / 6.6.12 breaks); confirmed fixed by pinning <SkiaSharpVersion>3.119.2</SkiaSharpVersion>. Tracked at unoplatform/uno.chefs#1750.

6. (Cross-org signal) Avalonia hit the same 3.119.4 regression on MacCatalyst — mono/SkiaSharp#4031.

Root cause

SkiaSharp 3.119.4's SkiaSharp.Build.props sets TPViOSCurrent / TPVMacCatalystCurrent = 26.2 (part of the .NET 10 upgrade), one minor above the 26.1 workload. mono/SkiaSharp#3798 corrected this to 26.0 on main/v4 (4.148.0 ships net10.0-ios26.0), but no 3.119.5 backport exists on nuget.org.

Native-iOS detail (Gallery path): SkiaSharp.Views.Uno.WinUI ships two flavors of SKSwapChainPanel — net10.0-ios26.2 (derives from native UIView, carries the Uno-generated ObjC [Register]) and net10.0 (pure-managed, no [Register]). On a 26.1 workload NuGet selects the neutral net10.0 one, which lacks [Register], so the native managed-static registrar rejects it.

Xcode / iOS-SDK correlation (why it repros on some machines only): the consumer iOS TFM is set by the installed Xcode's iOS SDK. Xcode 26.2 builds net10.0-ios26.2 → matches the 3.119.4 asset → works. Xcode 26.0 / 26.1 builds net10.0-ios26.0/26.1 → the 26.2 asset is incompatible → neutral fallback → MT0099 (native mode) or runtime libSkiaSharp DllNotFound (Skia-renderer). Same app, same SDK, different Xcode ⇒ different outcome.

NuGet.Frameworks selection (SkiaSharp.Views.Uno.WinUI 3.119.4 lib TFMs, verified with FrameworkReducer.GetNearest):

Consumer Selected asset Model
net10.0-ios26.1 (our CI) net10.0 (generic) no [Register] → MT0099 in native mode
net10.0-ios26.1 vs 3.119.2 (pre-regression) net8.0-ios17.0 [Register] → was green (but < 3.119.4 → NU1605 vs the dev floor)
net10.0-ios26.1 vs v4.148.0 (ios26.0 asset) net10.0-ios26.0 [Register] → fixed

Suggested fix (ranked)

  1. Backport Fix Apple platform TFMs: use 26.0 for libraries, unversioned for apps mono/SkiaSharp#3798 → ship SkiaSharp 3.119.5 (TPViOSCurrent 26.2 → 26.0) on the release/3.119.x line, then bump the Uno.Sdk SkiaSharp pin to it. A net10.0-ios26.0 asset is selectable by 26.1 consumers → Gallery's native build links the [Register]'d assembly, and Themes' floor (≥ 3.119.4) is satisfied by 3.119.5. One fix clears every affected canary + downstream.
  2. Move the Uno.Sdk SkiaSharp pin to v4 (4.148.0+) — already carries the fix, but v4 has breaking changes (obsoletes → errors, singleton lifecycle rework); not a drop-in.
  3. Stopgap only: raise the app/Uno.Sdk iOS target to 26.2 — undesirable, since CI agents and most users are on the 26.1 workload.

Impact beyond canaries

  • Any native-iOS Uno app on the iOS 26.1 workload that pulls SkiaSharp.Views (via Lottie / Svg / MediaElement / Skia) and builds Release with the managed-static registrar → MT0099.
  • Any repo pinning SkiaSharp below the dev Uno.Material.WinUI / Uno.WinUI.Lottie floor → NU1605 downgrade.
  • Any Skia-renderer iOS app on the iOS <26.2 workload (Xcode < 26.2) that pulls SkiaSharp → runtime DllNotFoundException: libSkiaSharp / black screen, even though it links cleanly (e.g. Uno.Chefs, Chefs doesn't launch when built for net10.0-ios uno.chefs#1750).
  • The same Xcode-version-dependent iOS black-screen pattern has surfaced in a separate internally-tracked iOS report — very likely the same root cause rather than an Xcode bug.

References

Activity

  1. added
    kind/bug
    on Jul 2, 2026
  2. agneszitte commented on Jul 6, 2026

    @agneszitte
    MemberAuthor

    @MartinZikmund , @ramezgerges
    Full analysis + suggested fixes in the issue description here your review/decision, please

    Thanks in advance for your feedback please

    (Also related-but-distinct SkiaSharp/Uno.Sdk asset-resolution issue as #23658 / uno/pull/23659/changes I think, but to confirm)

  3. changed the title [-][Gallery][Canary][iOS] Native iOS Release build fails at managed-static registrar (MT0099 on SKSwapChainPanel) since 2026-05-25 — SkiaSharp.Views.Uno.WinUI 3.119.4 net10.0-ios26.2 vs iOS 26.1 asset fallback[/-] [+][Canary] SkiaSharp 3.119.4 (net10.0-ios26.2) breaks canaries on the iOS 26.1 workload — Gallery (MT0099) & Uno.Themes (NU1605); needs 3.119.5 backport of mono/SkiaSharp#3798[/+] on Jul 8, 2026
  4. agneszitte commented on Jul 8, 2026

    @agneszitte
    MemberAuthor

    I have also left a comment on the SkiaSharp-related PR regarding the possibility for the fix to be backported:

  5. changed the title [-][Canary] SkiaSharp 3.119.4 (net10.0-ios26.2) breaks canaries on the iOS 26.1 workload — Gallery (MT0099) & Uno.Themes (NU1605); needs 3.119.5 backport of mono/SkiaSharp#3798[/-] [+][Canary] SkiaSharp 3.119.4 (iOS 26.2 assets) breaks multiple canaries on iOS 26.1 — needs 3.119.5 (backport of #3798)[/+] on Jul 8, 2026
  6. changed the title [-][Canary] SkiaSharp 3.119.4 (iOS 26.2 assets) breaks multiple canaries on iOS 26.1 — needs 3.119.5 (backport of #3798)[/-] [+]SkiaSharp 3.119.4 (iOS 26.2 assets) breaks iOS <26.2 builds (canaries + consumer apps, e.g. Uno.Chefs) — needs 3.119.5 (backport of #3798)[/+] on Jul 10, 2026
  7. changed the title [-]SkiaSharp 3.119.4 (iOS 26.2 assets) breaks iOS <26.2 builds (canaries + consumer apps, e.g. Uno.Chefs) — needs 3.119.5 (backport of #3798)[/-] [+]SkiaSharp 3.119.4 (iOS 26.2 assets) breaks iOS <26.2 builds (canaries + consumer apps, e.g. Uno.Chefs)[/+] on Jul 10, 2026
  8. agneszitte commented on Jul 13, 2026

    @agneszitte
    MemberAuthor

    Unpin / cleanup follow-up tracked in #23739 — remove the SkiaSharp 3.119.2 pin + updater excludes once 3.119.5 (mono/SkiaSharp#3798) ships or on the v4 move at Uno.Sdk 7.0.

  9. github-actions commented on Nov 11, 2026

    @github-actions
    Contributor

    This issue has had no activity for 120 days. It will be closed in 10 days if there is no further activity. Remove the Stale label or leave a comment to keep it open.

  10. added
    stale
    on Nov 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

kind/bugstale

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions