Repository navigation
fix(sdk): Stop compiling leftover Platforms/MacCatalyst and MacOS folders - #25832
Conversation
Removing Mac Catalyst in 7.0 also dropped the folder from the platform ignore list, so a Platforms/MacCatalyst folder from a pre-7.0 template compiled into every head but desktop and failed on UIKit. The Uno.Sdk leaves it out of every target framework again, as 6.x did for non-Catalyst heads, and warns with UNOB0033 to move what's needed to Platforms/Desktop. Fixes unoplatform#24870 Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
|
🤖 Your Docs stage site is ready! Visit it here: https://unodocsprstaging.z13.web.core.windows.net/pr-25832/docs/index.html |
|
🤖 Your WebAssembly Sample App stage site is ready! Visit it here: |
|
|
|
/azp run |
|
Azure Pipelines successfully started running 2 pipeline(s). |
|
🤖 Your Docs stage site is ready! Visit it here: https://unodocsprstaging.z13.web.core.windows.net/pr-25832/docs/index.html |
|
🤖 Your WebAssembly Sample App stage site is ready! Visit it here: |
|
|
Uno.Sdk 6.5 also kept Platforms/MacOS (the native macOS head's folder) out of every other head; 6.7 dropped that, so projects upgraded from older templates compile it into every head and fail on AppKit. It gets the same treatment as Platforms/MacCatalyst, including UNOB0033. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
|
🤖 Your Docs stage site is ready! Visit it here: https://unodocsprstaging.z13.web.core.windows.net/pr-25832/docs/index.html |
|
🤖 Your WebAssembly Sample App stage site is ready! Visit it here: |
|
This pull request does not currently match the merge queue conditions, so it cannot be queued from here. The box comes back if it matches again. |
GitHub Issue: closes #24870, closes unoplatform/uno-private#2458
PR Type:
🐞 Bugfix
What changed? 🚀
Removing Mac Catalyst in 7.0 (#23772) also dropped its folder from the platform ignore list in
Uno.Common.targets, and the native macOS head'sPlatforms/MacOS/folder had already been dropped from it before 6.7. Folders left over from older templates therefore compiled into every head except desktop, and failed onUIKitorAppKit:Fix (
src/Uno.Sdk/targets/Uno.Common.targets)Platforms/MacCatalyst/andPlatforms/MacOS/(or root-levelMacCatalyst//MacOS/, which 6.5 also handled) are left out of every target framework again, through the same_IgnorePlatformFilesitem as the other platform folders. Their files becomeNoneitems. Uno.Sdk 6.5 excluded both; 6.7 had already droppedMacOS(8d0ad809d0), and 7.0 droppedMacCatalyst.Platforms/Desktopand delete the folder.Docs
uno-build-error-codes.md: new UNOB0033 entry.migrating-to-uno-7.md: the "Mac Catalyst is removed" section said the folder "is no longer picked up"; it now says it is not built and links UNOB0033.Validation, with the issue's repro project, against the published Uno.Sdk
7.0.0-dev.113and the same SDK with only thisUno.Common.targetsswapped in (dev.113's copy is identical to master's):Compile,net10.0-browserwasmCompile,net10.0-androidCompile,net10.0-desktopPlatforms/Android/Main.csinCompileon android (control)dotnet build -f net10.0-browserwasmCS0246 'UIKit'The same check with both a
Platforms/MacCatalyst/(using UIKit) and aPlatforms/MacOS/(using AppKit) folder: dev.113 compiles both intobrowserwasmandandroidand fails withCS0246onUIKitandAppKit; with this PR neither is inCompile, the build succeeds, and UNOB0033 is reported once per folder.The Android, iOS and Windows heads weren't built (the Android result above is from evaluation). markdownlint and cspell (CI versions) pass on both docs.
Note:
https://aka.platform.uno/UNOB0033follows the existing pattern; I couldn't tell from outside whether new codes need an entry in the short-link service.Related but separate: #24500 (a
net*-maccatalystTFM is accepted silently).PR Checklist ✅
Screenshots Compare Test Runresults.🤖 Generated with Claude Code