Skip to content

Update availability check for MenuLabel to support macOS 11.0 or later#7445

Open
iCMDdev wants to merge 2 commits into
utmapp:mainfrom
iCMDdev:patch-1
Open

Update availability check for MenuLabel to support macOS 11.0 or later#7445
iCMDdev wants to merge 2 commits into
utmapp:mainfrom
iCMDdev:patch-1

Conversation

@iCMDdev

@iCMDdev iCMDdev commented Oct 4, 2025

Copy link
Copy Markdown

This PR updates an availability check for a SwiftUI .titleAndIcon label, which allows decreasing the minimum deployment to macOS 11.0.

This allows UTM 4.x to build & run on earlier versions of macOS Big Sur (11.x < 11.3).

@iCMDdev

iCMDdev commented Oct 4, 2025

Copy link
Copy Markdown
Author

Note that I haven't changed the minimum deployment-related Xcode files in this PR, yet.

@iCMDdev

iCMDdev commented Oct 4, 2025

Copy link
Copy Markdown
Author

Now it should be done.

@osy

osy commented Oct 4, 2025

Copy link
Copy Markdown
Contributor

Have you tried building and testing it?

@iCMDdev

iCMDdev commented Oct 5, 2025

Copy link
Copy Markdown
Author

I followed the instructions here (downloaded sysroot-macOS-arm64 from GitHub Actions) and succesfully built from Xcode 26 (on macOS 26). I didn't get any build errors, but I haven't tested the resulted app on macOS 11.x < 11.3.

Earlier (before making this change), I had access to a Mac on 11.2.3, and I manually changed the minimum version of the official (latest) binary using vtool, which resulted in an Undefined symbol crash (in SwiftUI if I recall correctly). I think that was likely caused by the .titleAndIcon label style, which is unavailable on macOS versions < 11.3.

Xcode indeed throws this error if I change the minimum deployment on the currrent main branch (unmodified) code:

Xcode error

@iCMDdev

iCMDdev commented Oct 5, 2025

Copy link
Copy Markdown
Author

Visually, I haven't seen anything else that requires macOS 11.3 or later, other than this, but I could be wrong - though building seems fine.

@osy

osy commented Oct 5, 2025

Copy link
Copy Markdown
Contributor

If I remember correctly, there was a number of SwiftUI bugs that was fixed in 11.3. I don't recall the full list off the bat, but I would try testing VM creation, config (all the tabs, changing all the options), app preferences, and moving around VMs on the home screen.

@iCMDdev

iCMDdev commented Oct 5, 2025

Copy link
Copy Markdown
Author

I'll test and see. Either way, if you consider it's better to keep 11.3 as a minimum target, I think it's fine (and people can / should upgrade either way).

@iCMDdev

iCMDdev commented Oct 26, 2025

Copy link
Copy Markdown
Author

Sorry for the delay; unfortunately, my Mac doesn’t support a version that low, so I haven’t been able to test this yet. If anyone is willing to test it, I’d appreciate it. However, as I mentioned earlier, I don’t believe this is an urgent matter, as people should upgrade to later versions regardless.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants