Repository navigation
Description
Current behavior 🐛
Since Uno 6.5, Uno.WinUI.Runtime.Skia.MacOS depends on Uno.icu-macos, which ships libicuuc.dylib and libicudata.dylib under runtimes/osx/native. Every published version of that package is stamped with a macOS 15.0 minimum (LC_BUILD_VERSION minos 15.0, sdk 15.5) on both x86_64 and arm64:
| Uno.icu-macos | Pulled in by | minos (x86_64 / arm64) |
|---|---|---|
| 77.1.2 | Uno.WinUI.Runtime.Skia.MacOS 6.5.x | 15.0 / 15.0 |
| 77.2.1 | Uno.WinUI.Runtime.Skia.MacOS 6.6.x | 15.0 / 15.0 |
| 77.3.2 | Uno.WinUI.Runtime.Skia.MacOS 6.7.103 | 15.0 / 15.0 |
The rest of the stack does not agree with that floor:
libUnoNativeMac.dylibin the same 6.7.103 package is stampedminos 10.15(x86_64) /11.0(arm64), matchingMACOSX_DEPLOYMENT_TARGET = 10.15in its Xcode project.- .NET 8/9/10 officially support macOS 14, 15 and 26 (supported-os.md).
- The Uno requirements page says Skia Desktop apps run on "macOS 10.15 and above".
A user upgrading from Uno 6.4 (which had no ICU dependency on macOS) to 6.7 noticed the discrepancy and asked whether macOS 15 is now an intentional requirement. It is not: the stamp is a build artifact (see root cause below).
Expected behavior 🎯
The ICU dylibs should carry an explicit deployment target consistent with the rest of the macOS Skia stack: 10.15 to match libUnoNativeMac (arm64 clamps to 11.0 automatically), or at minimum 14.0 to match the .NET support matrix. Ideally the CI should also assert the stamp so it cannot silently drift again when the runner image is bumped.
How to reproduce it (as minimally and precisely as possible) 🔬
Restore any Uno 6.7 app with a net10.0-desktop head on macOS, then:
f=~/.nuget/packages/uno.icu-macos/77.3.2/runtimes/osx/native/libicuuc.dylib
for arch in x86_64 arm64; do
echo "[$arch]"; otool -arch $arch -l "$f" | grep -A4 LC_BUILD_VERSION | grep -E "minos|sdk"
done
# both print: minos 15.0 / sdk 15.5
f=~/.nuget/packages/uno.winui.runtime.skia.macos/6.7.103/runtimes/osx/native/libUnoNativeMac.dylib
otool -arch x86_64 -l "$f" | grep -m1 minos # minos 10.15
otool -arch arm64 -l "$f" | grep -m1 minos # minos 11.0Workaround 🛠️
None should be needed at runtime (see the impact analysis below). There is no consumer-side switch to change the stamp; the fix has to land in the Uno.icu-macos build.
Renderer 🎨
- Skia
- Native
Affected platforms 📱💻🖥️
- Desktop (macOS)
Uno.Sdk version (and other relevant versions) 📦
- Uno.Sdk / Uno.WinUI.Runtime.Skia.MacOS 6.7.103 → Uno.icu-macos 77.3.2
- Also affects 6.5.x (Uno.icu-macos 77.1.2) and 6.6.x (Uno.icu-macos 77.2.1)
mastercurrently pinsUnoICUVersion77.3.0-dev.4 (same stamp)
IDE version 🧑💻
N/A
Anything else we need to know? 💬
Root cause. In unoplatform/uno.icu, the build_libicu_osx job runs ./runConfigureICU macOS --with-data-packaging=archive on macos-15 / macos-15-intel runners with no MACOSX_DEPLOYMENT_TARGET or -mmacosx-version-min (main.yml#L126-L141). Clang defaults the deployment target to the host OS, so the dylibs inherit the runner's version. The iOS and tvOS jobs in the same workflow explicitly pass -mios-version-min=13.4 / -mtvos-version-min=13.4, so the macOS job is the odd one out.
Impact analysis (why this is a stamp bug, not a real macOS 15 requirement).
- dyld does not refuse to load a dylib whose minOS is newer than the running OS. The
(built for macOS X which is newer than running OS)text people see in crash logs isLoader::tooNewErrorAddendum, which is only appended to a load that already failed for another reason (typically a missing symbol). Verified locally: a test dylib stampedminos 27.0loads fine throughNativeLibrary.Loadon macOS 26.6, which is the API Uno uses inUnicodeText.ICU.cs. libicuuc.dylib77.3.2 imports only long-standing libSystem symbols (dlopen,fopen,mmap,strtod,__chkstk_darwin, …) plus 12 libc++/libc++abi symbols (std::mutex,std::condition_variable,std::__call_once,operator delete,std::terminate, type_info vtables).libicudata.dylibimports nothing. None of those need macOS 15.- So on macOS 14 the dylibs are expected to load and work. This was not runtime-tested on a macOS 14 machine, only inferred from the imports.
Even so, the stamp is wrong and worth fixing: it misrepresents the minimum to anyone auditing the bundle, produces ld "built for newer macOS version than being linked" warnings for anyone who links against it, and would turn into a real launch crash the day an ICU build picks up a 15-only symbol without an availability guard (Uno loads ICU from a generated [ModuleInitializer] in the app head and throws Failed to load libicudata. if the load fails).
Proposed fix.
- In
uno.icu'sbuild_libicu_osxjob, exportMACOSX_DEPLOYMENT_TARGET=10.15(or pass-mmacosx-version-min=10.15viaCFLAGS/CXXFLAGS/LDFLAGS) beforerunConfigureICU, and add anotool -l | grep minosassertion in the universal-merge job. - Publish a new
Uno.icu-macos, bumpUnoICUVersioninsrc/Directory.Build.targets, and backport to the active release branches. - Refresh the macOS minimum on the requirements page so it matches the .NET support matrix.
Related: the same package is what Uno.UI.UnitTests needs locally on macOS (Failed to load libicudata), so a re-stamped build should be validated with that project too.
Activity
ajpinedam commentedon Sep 12, 2026
Fix for the build stamp is up in unoplatform/uno.icu#35: the macOS job now exports an explicit deployment target (10.15, arm64 clamps to 11.0) and the universal-merge job verifies the stamp so it cannot drift again. Once a corrected
Uno.icu-macosships,UnoICUVersionwill be bumped here and backported to the active release branches, and the requirements page will be updated to reflect the .NET support matrix (macOS 14+).