mirror of
https://github.com/utmapp/UTM.git
synced 2026-10-12 02:24:01 +00:00
ASIF drives for Apple Virtualization are created, inspected and resized through the private DiskImages2 framework, loaded by path and called via NSInvocation. macOS 27 ships DiskImageKit, a public Swift-only framework that covers the same operations and is what Virtualization.framework now consumes directly. Add UTMAppleDiskImage, a Swift wrapper that uses DiskImageKit on macOS 27 and later and falls back to the existing UTMASIFImage helper on macOS 13 through 26. The legacy path is confined to one private extension so it can be deleted together with UTMASIFImage once the minimum host is macOS 27. DiskImageKit is weak linked because the deployment target is below macOS 27. Callers switch to the wrapper; the resize path no longer force-unwraps the helper. Assisted-by: Claude:claude-fable-5-1