Skip to content

People have dreamed of running macOS on iPad for more than a decade. Today, that dream comes true. With Virtual Mac, iPad finally breaks free from iPadOS, enabling pro apps like Xcode, Terminal, Final Cut Pro, Logic Pro, and Pixelmator Pro to run directly on device. Requires iPad Pro (M1, M2) or iPad Air (M1) running iPadOS 14 up to 16.3.1.

Shell

Update 1.2

nfzeroxf5587321e182
diff --git a/.gitignore b/.gitignore
index a54dc7e..4b2490d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -5,6 +5,7 @@ __pycache__/
build/
artifacts/
DerivedData/
+DeviceDiagnostics/
# Apple restore/runtime artifacts and VM state never belong in Git.
*.ipsw
diff --git a/README.md b/README.md
index 2543e54..31ed42d 100644
--- a/README.md
+++ b/README.md
@@ -1,10 +1,10 @@
# Virtual Mac on iPad
-People have dreamed of running macOS on iPad for [more](https://www.macstories.net/stories/macpad-how-i-created-the-hybrid-mac-ipad-laptop-and-tablet-that-apple-wont-make/) [than](https://github.com/khanhduytran0/MacWSBootingGuide) [a](https://khronokernel.com/apple/silicon/2021/01/17/QEMU-AS.html) [decade](https://worthdoingbadly.com/macappsios/). Today, that dream comes true. With Virtual Mac, iPad finally breaks free from iPadOS, enabling pro apps like Xcode and Terminal to run directly on device. Requires iPad Pro (M1, M2) or iPad Air (M1) running iPadOS 14 up to 16.3.1.
+People have dreamed of running macOS on iPad for [more](https://www.macstories.net/stories/macpad-how-i-created-the-hybrid-mac-ipad-laptop-and-tablet-that-apple-wont-make/) [than](https://github.com/khanhduytran0/MacWSBootingGuide) [a](https://khronokernel.com/apple/silicon/2021/01/17/QEMU-AS.html) [decade](https://worthdoingbadly.com/macappsios/). Today, that dream comes true. With Virtual Mac, iPad finally breaks free from iPadOS, enabling pro apps like Xcode, Terminal, Final Cut Pro, Logic Pro, and Pixelmator Pro to run directly on device. Requires iPad Pro (M1, M2) or iPad Air (M1) running iPadOS 14 up to 16.3.1.
![Screenshot of Virtual Mac on iPad](VirtualMac/screenshots/VirtualMac.png)
-As seen on: [iGeneration](https://www.igen.fr/ipad/2026/08/virtual-mac-fait-tourner-macos-sur-certains-ipad-jailbreakes-157355), [ifun.de](https://www.ifun.de/open-source-projekt-bringt-macos-auf-das-ipad-285132/), [La Manzana Mordida](https://lamanzanamordida.net/noticias/instalar-macos-ipad-virtualmac/), [すまほん!!](https://smhn.info/202608-apple-ipad-virtual-mac-macos-jailbreak-hypervisor), [IT Home](https://www.ithome.com/0/985/545.htm), [ezone](https://ezone.hk/article/20104816/ipad%E7%B5%82%E6%96%BC%E5%8F%AF%E4%BB%A5%E8%B7%91macos-%E6%B0%91%E9%96%93%E7%A5%9E%E4%BA%BA%E9%87%8B%E5%87%BA%E9%96%8B%E6%BA%90%E5%B7%A5%E5%85%B7-%E6%94%AF%E6%8F%B4gpu%E5%8A%A0%E9%80%9F-%E5%AF%ABcode-%E5%8D%B3%E7%9D%87%E6%94%AF%E6%8F%B4%E6%A9%9F%E5%9E%8B%E8%88%87%E7%B3%BB%E7%B5%B1), [KOCPC](https://www.kocpc.com.tw/archives/664343), and [Bilibili (video)](https://www.bilibili.com/video/BV1EZuN63EoS/). Virtual Mac on iPad is a community project and is not affiliated with Dopamine, UTM, VirtualBuddy, or Apple. Contributions are welcome!
+As seen on: [iGeneration](https://www.igen.fr/ipad/2026/08/virtual-mac-fait-tourner-macos-sur-certains-ipad-jailbreakes-157355), [ifun.de](https://www.ifun.de/open-source-projekt-bringt-macos-auf-das-ipad-285132/), [La Manzana Mordida](https://lamanzanamordida.net/noticias/instalar-macos-ipad-virtualmac/), [すまほん!!](https://smhn.info/202608-apple-ipad-virtual-mac-macos-jailbreak-hypervisor), [鵺間飛行 (video)](https://www.bilibili.com/video/BV1Nfue6PExJ/), [IT Home](https://www.ithome.com/0/985/545.htm), [ezone](https://ezone.hk/article/20104816/ipad%E7%B5%82%E6%96%BC%E5%8F%AF%E4%BB%A5%E8%B7%91macos-%E6%B0%91%E9%96%93%E7%A5%9E%E4%BA%BA%E9%87%8B%E5%87%BA%E9%96%8B%E6%BA%90%E5%B7%A5%E5%85%B7-%E6%94%AF%E6%8F%B4gpu%E5%8A%A0%E9%80%9F-%E5%AF%ABcode-%E5%8D%B3%E7%9D%87%E6%94%AF%E6%8F%B4%E6%A9%9F%E5%9E%8B%E8%88%87%E7%B3%BB%E7%B5%B1), [KOCPC](https://www.kocpc.com.tw/archives/664343), and [Bilibili (video)](https://www.bilibili.com/video/BV1PfuR69EoC/). Virtual Mac on iPad is a community project and is not affiliated with Dopamine, UTM, VirtualBuddy, or Apple. Contributions are welcome!
## Installation
@@ -21,9 +21,9 @@ Virtual Mac on iPad requires an iPad Pro (M1, M2) or iPad Air (M1) running iPadO
### Which versions of macOS does this support?
-Virtual Mac on iPad fully supports macOS 12 Monterey up to macOS 26 Tahoe, with experimental support for macOS 27 Golden Gate. macOS 13 Ventura up to macOS 15 Sequoia are the recommended versions to install. Because signing into iCloud or Apple Account is not supported, choose Set Up Later when asked.
+Virtual Mac on iPad supports macOS 12 Monterey up to macOS 26 Tahoe, with experimental support for macOS 27 Golden Gate. macOS 15 Sequoia is the recommended version to install. [You can download the latest compatible version of Xcode, Final Cut Pro Trial, Logic Pro Trial, and Pixelmator Pro Trial](https://nfzerox.github.io/virtual-mac/app/).
-To use Xcode in Virtual Mac on iPad, download [Xcode 26.3](https://developer.apple.com/services-account/download?path=/Developer_Tools/Xcode_26.3/Xcode_26.3_Apple_silicon.xip) for macOS 15 Sequoia, [Xcode 16.2](https://developer.apple.com/services-account/download?path=/Developer_Tools/Xcode_16.2/Xcode_16.2.xip) for macOS 14 Sonoma, [Xcode 15.2](https://developer.apple.com/services-account/download?path=/Developer_Tools/Xcode_15.2/Xcode_15.2.xip) for macOS 13 Ventura, and [Xcode 14.2](https://developer.apple.com/services-account/download?path=/Developer_Tools/Xcode_14.2/Xcode_14.2.xip) for macOS 12 Monterey. You can also [download Logic Pro Trial from Wayback Machine](https://web.archive.org/web/20260405163845/https://secure-appldnld.apple.com/LogicPro/082-59694-20250731-47EF8912-A031-471B-97B2-6EA2F7501E4B/LogicProTrial.dmg) for macOS 14 Sonoma and later.
+Metal acceleration is available in all supported macOS versions. Final Cut Pro and OpenGL/OpenCL acceleration require macOS 14 Sonoma or later. Because signing into iCloud or Apple Account is not supported, choose Set Up Later when asked.
### Do I need a Magic Keyboard?
@@ -39,15 +39,17 @@ Supporting iPadOS 16.4 or later presents additional challenges because [Hypervis
### What kind of performance does Virtual Mac on iPad offer?
-Virtual Mac on iPad uses hardware CPU virtualization and supports graphics acceleration, providing excellent performance for everyday tasks. Because it uses an extracted and modified version of Apple's macOS virtualization stack, it provides roughly the same class of CPU and GPU performance as VirtualBuddy or UTM virtualizing macOS on an M1 or M2 Mac.
+Virtual Mac on iPad uses hardware CPU virtualization and supports paravirtualized graphics acceleration, providing excellent performance for everyday tasks. Because it uses an extracted and modified version of Apple's macOS virtualization stack, it provides roughly the same class of CPU and Metal performance as VirtualBuddy or UTM virtualizing macOS on an M1 or M2 Mac.
+
+With the latest update, Virtual Mac on iPad also goes beyond what VirtualBuddy and UTM offers, being first to ever support Final Cut Pro and OpenGL/OpenCL acceleration [through modified GLDRendererMetal](VirtualMac/vz/guest/OpenGLPVGCompat.m) in virtualized environments.
### What if I encounter crashes, bugs, or other issues?
First, open Sileo and update to the latest version of Virtual Mac. If the issue remains, try these fixes for common issues:
+- Virtual Mac does not support the Dopamine-roothide environment. To use Virtual Mac, remove the roothide jailbreak from Dopamine-roothide > Settings > Remove Jailbreak, then [switch to the official version of Dopamine](https://ios.cfw.guide/installing-dopamine-trollstore/).
- If you see "[install-launcher failed: Permission denied](https://github.com/nfzerox/VirtualMacOniPad/issues/10)", update to the latest version of Virtual Mac. If the issue remains, open Filza and [follow this screenshot](VirtualMac/screenshots/troubleshooting/troubleshooting-permission.png), changing access permissions of `/var/root` to "Read, Execute" for "Others".
- If you see "[Unexpected device state 'DFU' expected 'RestoreOS' (Probably forced into DFU mode externally)](https://github.com/nfzerox/VirtualMacOniPad/issues/11)", update to the latest version of Virtual Mac. If the issue remains, open Sileo > Packages, search for usbmuxd and [temporarily uninstall it](VirtualMac/screenshots/troubleshooting/troubleshooting-usbmuxd.png).
- If you see "launcher cannot become root: Operation not permitted" or "Internal Virtualization error. The virtual machine failed to start", and have Choicy installed, open Settings > Choicy > Applications > Virtual Mac, and turn off "Disable Tweak Injection". You can also uninstall Choicy.
-- On some versions of iPadOS, Virtual Mac may crash [if you have a non-English keyboard](https://github.com/nfzerox/VirtualMacOniPad/issues/6). If Virtual Mac crashes when using the keyboard, enable Keyboard Crash Workaround from Virtual Mac's in app Settings. If the issue remains, temporarily remove non-English keyboards from Settings > General > Keyboard.
- Virtual Mac may conflict with certain other tweaks. If problems remain, remove other tweaks one at a time to narrow down the conflict.
[Open a GitHub issue](https://github.com/nfzerox/VirtualMacOniPad/issues?q=is%3Aissue) when you encounter a crash, bug, or other problem. Include clear reproduction steps, a screenshot or screen recording, and diagnostics file from Virtual Mac's in app Settings > Export Diagnostics.
diff --git a/VirtualMac/assets/GuestToolsSymbols.xcassets/Contents.json b/VirtualMac/assets/GuestToolsSymbols.xcassets/Contents.json
new file mode 100644
index 0000000..73c0059
--- /dev/null
+++ b/VirtualMac/assets/GuestToolsSymbols.xcassets/Contents.json
@@ -0,0 +1,6 @@
+{
+ "info" : {
+ "author" : "xcode",
+ "version" : 1
+ }
+}
diff --git a/VirtualMac/assets/GuestToolsSymbols.xcassets/vm.laptopcomputer.badge.checkmark.symbolset/Contents.json b/VirtualMac/assets/GuestToolsSymbols.xcassets/vm.laptopcomputer.badge.checkmark.symbolset/Contents.json
new file mode 100644
index 0000000..d651dae
--- /dev/null
+++ b/VirtualMac/assets/GuestToolsSymbols.xcassets/vm.laptopcomputer.badge.checkmark.symbolset/Contents.json
@@ -0,0 +1,12 @@
+{
+ "symbols" : [
+ {
+ "filename" : "vm.laptopcomputer.badge.checkmark.svg",
+ "idiom" : "universal"
+ }
+ ],
+ "info" : {
+ "author" : "xcode",
+ "version" : 1
+ }
+}
diff --git a/VirtualMac/assets/GuestToolsSymbols.xcassets/vm.laptopcomputer.symbolset/Contents.json b/VirtualMac/assets/GuestToolsSymbols.xcassets/vm.laptopcomputer.symbolset/Contents.json
new file mode 100644
index 0000000..c84bac2
--- /dev/null
+++ b/VirtualMac/assets/GuestToolsSymbols.xcassets/vm.laptopcomputer.symbolset/Contents.json
@@ -0,0 +1,12 @@
+{
+ "symbols" : [
+ {
+ "filename" : "vm.laptopcomputer.svg",
+ "idiom" : "universal"
+ }
+ ],
+ "info" : {
+ "author" : "xcode",
+ "version" : 1
+ }
+}
diff --git a/VirtualMac/assets/VirtualMacGuest.png b/VirtualMac/assets/VirtualMacGuest.png
new file mode 100644
index 0000000..c22bd3d
Binary files /dev/null and b/VirtualMac/assets/VirtualMacGuest.png differ
diff --git a/VirtualMac/assets/developers/ma-syu.jpg b/VirtualMac/assets/developers/ma-syu.jpg
new file mode 100644
index 0000000..09ae875
Binary files /dev/null and b/VirtualMac/assets/developers/ma-syu.jpg differ
diff --git a/VirtualMac/assets/icons/vm.laptopcomputer.badge.checkmark.svg b/VirtualMac/assets/icons/vm.laptopcomputer.badge.checkmark.svg
new file mode 100644
index 0000000..08a8ba0
--- /dev/null
+++ b/VirtualMac/assets/icons/vm.laptopcomputer.badge.checkmark.svg
@@ -0,0 +1,160 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--Generator: Apple Native CoreSVG 362-->
+<!DOCTYPE svg
+PUBLIC "-//W3C//DTD SVG 1.1//EN"
+ "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
+<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 3300 2200">
+ <g id="Notes">
+ <rect height="2200" id="artboard" style="fill:white;opacity:1" width="3300" x="0" y="0"/>
+ <line style="fill:none;stroke:black;opacity:1;stroke-width:0.5;" x1="263" x2="3036" y1="292" y2="292"/>
+ <text style="stroke:none;fill:black;font-family:sans-serif;font-size:13;font-weight:bold;" transform="matrix(1 0 0 1 263 322)">Weight/Scale Variations</text>
+ <text style="stroke:none;fill:black;font-family:sans-serif;font-size:13;text-anchor:middle;" transform="matrix(1 0 0 1 559.711 322)">Ultralight</text>
+ <text style="stroke:none;fill:black;font-family:sans-serif;font-size:13;text-anchor:middle;" transform="matrix(1 0 0 1 856.422 322)">Thin</text>
+ <text style="stroke:none;fill:black;font-family:sans-serif;font-size:13;text-anchor:middle;" transform="matrix(1 0 0 1 1153.13 322)">Light</text>
+ <text style="stroke:none;fill:black;font-family:sans-serif;font-size:13;text-anchor:middle;" transform="matrix(1 0 0 1 1449.84 322)">Regular</text>
+ <text style="stroke:none;fill:black;font-family:sans-serif;font-size:13;text-anchor:middle;" transform="matrix(1 0 0 1 1746.56 322)">Medium</text>
+ <text style="stroke:none;fill:black;font-family:sans-serif;font-size:13;text-anchor:middle;" transform="matrix(1 0 0 1 2043.27 322)">Semibold</text>
+ <text style="stroke:none;fill:black;font-family:sans-serif;font-size:13;text-anchor:middle;" transform="matrix(1 0 0 1 2339.98 322)">Bold</text>
+ <text style="stroke:none;fill:black;font-family:sans-serif;font-size:13;text-anchor:middle;" transform="matrix(1 0 0 1 2636.69 322)">Heavy</text>
+ <text style="stroke:none;fill:black;font-family:sans-serif;font-size:13;text-anchor:middle;" transform="matrix(1 0 0 1 2933.4 322)">Black</text>
+ <line style="fill:none;stroke:black;opacity:1;stroke-width:0.5;" x1="263" x2="3036" y1="1903" y2="1903"/>
+ <g transform="matrix(0.2 0 0 0.2 263 1933)">
+ <path d="m46.2402 4.15039c21.7773 0 39.4531-17.627 39.4531-39.4043s-17.6758-39.4043-39.4531-39.4043c-21.7285 0-39.4043 17.627-39.4043 39.4043s17.6758 39.4043 39.4043 39.4043Zm0-7.42188c-17.6758 0-31.9336-14.3066-31.9336-31.9824s14.2578-31.9824 31.9336-31.9824 31.9824 14.3066 31.9824 31.9824-14.3066 31.9824-31.9824 31.9824Zm3.61328-17.7734v-28.4668c0-2.24609-1.46484-3.75977-3.71094-3.75977-2.14844 0-3.61328 1.51367-3.61328 3.75977v28.4668c0 2.19727 1.46484 3.71094 3.61328 3.71094 2.24609 0 3.71094-1.51367 3.71094-3.71094Zm-17.8223-10.5957h28.418c2.19727 0 3.71094-1.46484 3.71094-3.61328 0-2.19727-1.51367-3.71094-3.71094-3.71094h-28.418c-2.24609 0-3.75977 1.51367-3.75977 3.71094 0 2.14844 1.51367 3.61328 3.75977 3.61328Z"/>
+ </g>
+ <g transform="matrix(0.2 0 0 0.2 281.506 1933)">
+ <path d="m58.5449 14.5508c27.4902 0 49.8047-22.3145 49.8047-49.8047s-22.3145-49.8047-49.8047-49.8047-49.8047 22.3145-49.8047 49.8047 22.3145 49.8047 49.8047 49.8047Zm0-8.30078c-22.9492 0-41.5039-18.5547-41.5039-41.5039s18.5547-41.5039 41.5039-41.5039 41.5039 18.5547 41.5039 41.5039-18.5547 41.5039-41.5039 41.5039Zm4.05273-23.0957v-36.9141c0-2.49023-1.70898-4.19922-4.15039-4.19922-2.39258 0-4.05273 1.70898-4.05273 4.19922v36.9141c0 2.44141 1.66016 4.15039 4.05273 4.15039 2.44141 0 4.15039-1.66016 4.15039-4.15039Zm-22.5586-14.4043h36.9629c2.44141 0 4.15039-1.61133 4.15039-4.00391 0-2.44141-1.70898-4.15039-4.15039-4.15039h-36.9629c-2.49023 0-4.15039 1.70898-4.15039 4.15039 0 2.39258 1.66016 4.00391 4.15039 4.00391Z"/>
+ </g>
+ <g transform="matrix(0.2 0 0 0.2 304.924 1933)">
+ <path d="m74.8535 28.3203c35.1074 0 63.623-28.4668 63.623-63.5742s-28.5156-63.623-63.623-63.623-63.5742 28.5156-63.5742 63.623 28.4668 63.5742 63.5742 63.5742Zm0-9.08203c-30.127 0-54.4922-24.3652-54.4922-54.4922s24.3652-54.4922 54.4922-54.4922 54.4922 24.3652 54.4922 54.4922-24.3652 54.4922-54.4922 54.4922Zm4.44336-30.3223v-48.4863c0-2.73438-1.85547-4.63867-4.54102-4.63867-2.58789 0-4.44336 1.9043-4.44336 4.63867v48.4863c0 2.68555 1.85547 4.58984 4.44336 4.58984 2.68555 0 4.54102-1.85547 4.54102-4.58984Zm-28.7109-19.7754h48.4863c2.68555 0 4.58984-1.80664 4.58984-4.39453 0-2.73438-1.85547-4.58984-4.58984-4.58984h-48.4863c-2.73438 0-4.58984 1.85547-4.58984 4.58984 0 2.58789 1.85547 4.39453 4.58984 4.39453Z"/>
+ </g>
+ <text style="stroke:none;fill:black;font-family:sans-serif;font-size:13;font-weight:bold;" transform="matrix(1 0 0 1 263 1953)">Design Variations</text>
+ <text style="stroke:none;fill:black;font-family:sans-serif;font-size:13;" transform="matrix(1 0 0 1 263 1971)">Symbols are supported in up to nine weights and three scales.</text>
+ <text style="stroke:none;fill:black;font-family:sans-serif;font-size:13;" transform="matrix(1 0 0 1 263 1989)">For optimal layout with text and other symbols, vertically align</text>
+ <text style="stroke:none;fill:black;font-family:sans-serif;font-size:13;" transform="matrix(1 0 0 1 263 2007)">symbols with the adjacent text.</text>
+ <line style="fill:none;stroke:#00AEEF;stroke-width:0.5;opacity:1.0;" x1="776" x2="776" y1="1919" y2="1933"/>
+ <g transform="matrix(0.2 0 0 0.2 776 1933)">
+ <path d="m16.5527 0.78125c2.58789 0 3.85742-0.976562 4.78516-3.71094l20.5566-57.5195h0.244141l20.6055 57.5195c0.927734 2.73438 2.19727 3.71094 4.73633 3.71094 2.58789 0 4.24805-1.5625 4.24805-4.00391 0-0.830078-0.146484-1.61133-0.537109-2.63672l-22.9004-60.9863c-1.12305-2.97852-3.125-4.49219-6.25-4.49219-3.02734 0-5.07812 1.46484-6.15234 4.44336l-22.9004 61.084c-0.390625 1.02539-0.537109 1.80664-0.537109 2.63672 0 2.44141 1.5625 3.95508 4.10156 3.95508Zm10.2051-20.9473h30.6641c2.00195 0 3.66211-1.66016 3.66211-3.66211 0-2.05078-1.66016-3.66211-3.66211-3.66211h-30.6641c-2.00195 0-3.66211 1.61133-3.66211 3.66211 0 2.00195 1.66016 3.66211 3.66211 3.66211Z"/>
+ </g>
+ <line style="fill:none;stroke:#00AEEF;stroke-width:0.5;opacity:1.0;" x1="792.836" x2="792.836" y1="1919" y2="1933"/>
+ <text style="stroke:none;fill:black;font-family:sans-serif;font-size:13;font-weight:bold;" transform="matrix(1 0 0 1 776 1953)">Margins</text>
+ <text style="stroke:none;fill:black;font-family:sans-serif;font-size:13;" transform="matrix(1 0 0 1 776 1971)">Leading and trailing margins on the left and right side of each symbol</text>
+ <text style="stroke:none;fill:black;font-family:sans-serif;font-size:13;" transform="matrix(1 0 0 1 776 1989)">can be adjusted by modifying the x-location of the margin guidelines.</text>
+ <text style="stroke:none;fill:black;font-family:sans-serif;font-size:13;" transform="matrix(1 0 0 1 776 2007)">Modifications are automatically applied proportionally to all</text>
+ <text style="stroke:none;fill:black;font-family:sans-serif;font-size:13;" transform="matrix(1 0 0 1 776 2025)">scales and weights.</text>
+ <g transform="matrix(0.2 0 0 0.2 1289 1933)">
+ <path d="m14.209 13.1348 7.86133 7.86133c4.29688 4.39453 9.32617 4.10156 13.8672-1.02539l60.6934-68.2129-4.88281-4.88281-60.2539 67.6758c-1.80664 1.95312-3.4668 2.44141-5.81055 0.0976562l-5.17578-5.12695c-2.29492-2.29492-1.80664-3.95508 0.195312-5.81055l67.4805-62.1582-4.88281-4.83398-68.0664 62.5977c-4.98047 4.58984-5.32227 9.47266-1.02539 13.8184Zm44.873-97.4609c-2.05078 2.00195-2.24609 4.88281-1.07422 6.78711 1.12305 1.80664 3.4668 3.02734 6.5918 2.24609 5.85938-1.66016 12.5977-2.39258 18.8965 0.927734l-2.68555 7.12891c-1.61133 4.00391-0.732422 6.88477 1.70898 9.42383l10.2539 10.3027c2.34375 2.39258 4.54102 2.44141 7.08008 1.95312l4.44336-0.732422 2.58789 2.53906-0.195312 2.24609c-0.0976562 2.29492 0.537109 4.29688 2.7832 6.49414l3.36914 3.32031c2.29492 2.29492 5.51758 2.49023 7.8125 0.195312l12.9883-13.0371c2.29492-2.34375 2.14844-5.37109-0.195312-7.66602l-3.41797-3.41797c-2.19727-2.19727-4.05273-3.02734-6.34766-2.88086l-2.34375 0.244141-2.44141-2.44141 1.02539-4.6875c0.634766-2.73438-0.244141-4.98047-2.88086-7.61719l-11.2793-11.1816c-12.9395-12.8418-35.5957-11.0352-46.6797-0.146484Zm7.08008 2.05078c8.78906-6.39648 25.9766-5.66406 33.6914 1.95312l12.3047 12.207c1.02539 1.02539 1.2207 1.80664 0.927734 3.32031l-1.46484 6.64062 6.73828 6.68945 4.39453-0.244141c1.12305-0.0488281 1.51367 0.0488281 2.34375 0.878906l2.53906 2.49023-10.8398 10.8398-2.49023-2.49023c-0.830078-0.878906-0.976562-1.2207-0.927734-2.39258l0.292969-4.3457-6.68945-6.73828-6.83594 1.17188c-1.41602 0.292969-2.05078 0.195312-3.17383-0.878906l-8.93555-8.88672c-1.07422-1.02539-1.17188-1.70898-0.488281-3.36914l4.58984-11.4746c-6.10352-6.34766-17.041-7.51953-25.5859-4.58984-0.683594 0.244141-0.927734-0.390625-0.390625-0.78125Z"/>
+ </g>
+ <text style="stroke:none;fill:black;font-family:sans-serif;font-size:13;font-weight:bold;" transform="matrix(1 0 0 1 1289 1953)">Exporting</text>
+ <text style="stroke:none;fill:black;font-family:sans-serif;font-size:13;" transform="matrix(1 0 0 1 1289 1971)">Symbols should be outlined when exporting to ensure the</text>
+ <text style="stroke:none;fill:black;font-family:sans-serif;font-size:13;" transform="matrix(1 0 0 1 1289 1989)">design is preserved when submitting to Xcode.</text>
+ <text id="template-version" style="stroke:none;fill:black;font-family:sans-serif;font-size:13;text-anchor:end;" transform="matrix(1 0 0 1 3036 1933)">Template v.2.0</text>
+ <text style="stroke:none;fill:black;font-family:sans-serif;font-size:13;text-anchor:end;" transform="matrix(1 0 0 1 3036 1951)">Requires Xcode 12 or greater</text>
+ <text id="descriptive-name" style="stroke:none;fill:black;font-family:sans-serif;font-size:13;text-anchor:end;" transform="matrix(1 0 0 1 3036 1969)">Generated from laptopcomputer.badge.checkmark</text>
+ <text style="stroke:none;fill:black;font-family:sans-serif;font-size:13;text-anchor:end;" transform="matrix(1 0 0 1 3036 1987)">Typeset at 100.0 points</text>
+ <text style="stroke:none;fill:black;font-family:sans-serif;font-size:13;" transform="matrix(1 0 0 1 263 726)">Small</text>
+ <text style="stroke:none;fill:black;font-family:sans-serif;font-size:13;" transform="matrix(1 0 0 1 263 1156)">Medium</text>
+ <text style="stroke:none;fill:black;font-family:sans-serif;font-size:13;" transform="matrix(1 0 0 1 263 1586)">Large</text>
+ </g>
+ <g id="Guides">
+ <g id="H-reference" style="fill:#27AAE1;stroke:none;" transform="matrix(1 0 0 1 339 696)">
+ <path d="M0.993654 0L3.63775 0L29.3281-67.1323L30.0303-67.1323L30.0303-70.459L28.1226-70.459ZM11.6885-24.4799L46.9815-24.4799L46.2315-26.7285L12.4385-26.7285ZM55.1196 0L57.7637 0L30.6382-70.459L29.4326-70.459L29.4326-67.1323Z"/>
+ </g>
+ <line id="Baseline-S" style="fill:none;stroke:#27AAE1;opacity:1;stroke-width:0.5;" x1="263" x2="3036" y1="696" y2="696"/>
+ <line id="Capline-S" style="fill:none;stroke:#27AAE1;opacity:1;stroke-width:0.5;" x1="263" x2="3036" y1="625.541" y2="625.541"/>
+ <g id="H-reference" style="fill:#27AAE1;stroke:none;" transform="matrix(1 0 0 1 339 1126)">
+ <path d="M0.993654 0L3.63775 0L29.3281-67.1323L30.0303-67.1323L30.0303-70.459L28.1226-70.459ZM11.6885-24.4799L46.9815-24.4799L46.2315-26.7285L12.4385-26.7285ZM55.1196 0L57.7637 0L30.6382-70.459L29.4326-70.459L29.4326-67.1323Z"/>
+ </g>
+ <line id="Baseline-M" style="fill:none;stroke:#27AAE1;opacity:1;stroke-width:0.5;" x1="263" x2="3036" y1="1126" y2="1126"/>
+ <line id="Capline-M" style="fill:none;stroke:#27AAE1;opacity:1;stroke-width:0.5;" x1="263" x2="3036" y1="1055.54" y2="1055.54"/>
+ <g id="H-reference" style="fill:#27AAE1;stroke:none;" transform="matrix(1 0 0 1 339 1556)">
+ <path d="M0.993654 0L3.63775 0L29.3281-67.1323L30.0303-67.1323L30.0303-70.459L28.1226-70.459ZM11.6885-24.4799L46.9815-24.4799L46.2315-26.7285L12.4385-26.7285ZM55.1196 0L57.7637 0L30.6382-70.459L29.4326-70.459L29.4326-67.1323Z"/>
+ </g>
+ <line id="Baseline-L" style="fill:none;stroke:#27AAE1;opacity:1;stroke-width:0.5;" x1="263" x2="3036" y1="1556" y2="1556"/>
+ <line id="Capline-L" style="fill:none;stroke:#27AAE1;opacity:1;stroke-width:0.5;" x1="263" x2="3036" y1="1485.54" y2="1485.54"/>
+ <line id="right-margin" style="fill:none;stroke:#00AEEF;stroke-width:0.5;opacity:1.0;" x1="1532.69" x2="1532.69" y1="1030.79" y2="1150.12"/>
+ <line id="left-margin" style="fill:none;stroke:#00AEEF;stroke-width:0.5;opacity:1.0;" x1="1367" x2="1367" y1="1030.79" y2="1150.12"/>
+ </g>
+ <g id="Symbols">
+ <g id="Black-L" transform="matrix(1 0 0 1 2817.98 1556)">
+ <path d="M27.076 22.3101L145.968 22.3101C142.318 16.6876 138.939 10.3692 138.333 0.379177L58.8647 0.379177L58.8647-67.6341C58.8647-71.3669 60.5935-72.8829 64.0938-72.8829L166.756-72.8829C170.256-72.8829 172.006-71.3669 172.006-67.6341L172.006-45.5794C175.239-46.4024 178.547-46.832 181.996-46.832C185.426-46.832 188.791-46.4024 191.987-45.5794L191.987-72.2685C191.987-85.3472 184.428-92.8627 171.351-92.8627L59.4987-92.8627C46.5669-92.8627 38.8628-85.3472 38.8628-72.2685L38.8628 0.379177L27.076 0.379177C21.1111 0.379177 16.084 5.3491 16.084 11.3545C16.084 17.3402 21.1111 22.3101 27.076 22.3101ZM181.996 31.0496C200.504 31.0496 215.887 15.5914 215.887-2.90071C215.887-21.4125 200.567-36.7538 181.996-36.7538C163.427-36.7538 148.105-21.4113 148.105-2.90071C148.105 15.6331 163.427 31.0496 181.996 31.0496ZM177.747 15.8047C175.984 15.8047 173.963 15.3246 172.696 13.8971L162.437 2.9062C161.287 1.61752 160.404 0.0691586 160.404-1.65038C160.404-5.85683 163.643-8.00618 166.836-8.00618C168.685-8.00618 170.27-7.48083 171.378-6.15576L177.177 0.556498L190.376-17.6181C191.643-19.3584 193.543-20.3903 195.665-20.3903C199.186-20.3903 202-17.5805 202-14.0541C202-12.9811 201.679-11.6352 200.886-10.5825L182.859 13.5038C181.788 14.9313 179.77 15.8047 177.747 15.8047Z"/>
+ </g>
+ <g id="Heavy-L" transform="matrix(1 0 0 1 2523.44 1556)">
+ <path d="M26.0784 20.729L144.316 20.729C140.834 15.4688 137.721 9.54872 136.969 0.733286L55.8738 0.733286L55.8738-68.224C55.8738-72.0805 57.6826-73.741 61.3662-73.741L165.128-73.741C168.811-73.741 170.65-72.0805 170.65-68.224L170.65-46.1644C173.487-46.8406 176.376-47.1832 179.401-47.1832C182.401-47.1832 185.329-46.8406 188.151-46.1644L188.151-72.3834C188.151-84.4354 181.284-91.2358 169.238-91.2358L57.2559-91.2358C45.4208-91.2358 38.3432-84.4354 38.3432-72.3834L38.3432 0.733286L26.0784 0.733286C20.6423 0.733286 16.084 5.25262 16.084 10.7434C16.084 16.2096 20.6423 20.729 26.0784 20.729ZM179.401 29.2769C197.612 29.2769 212.796 14.0642 212.796-4.16872C212.796-22.4262 197.708-37.5497 179.401-37.5497C161.104-37.5497 146.005-22.4206 146.005-4.16872C146.005 14.1245 161.104 29.2769 179.401 29.2769ZM175.253 14.1473C173.664 14.1473 171.821 13.676 170.676 12.3764L160.333 1.24112C159.284 0.0665947 158.552-1.36815 158.552-2.89083C158.552-6.60815 161.416-8.64936 164.345-8.64936C166.071-8.64936 167.515-8.10086 168.504-6.91751L174.779 0.188996L188.489-18.726C189.627-20.2789 191.335-21.2335 193.289-21.2335C196.45-21.2335 199.018-18.7116 199.018-15.4995C199.018-14.5136 198.702-13.3001 197.977-12.3153L179.914 12.0427C178.939 13.3422 177.107 14.1473 175.253 14.1473Z"/>
+ </g>
+ <g id="Bold-L" transform="matrix(1 0 0 1 2229.48 1556)">
+ <path d="M24.8338 18.7621L142.436 18.7621C139.169 13.985 136.364 8.60145 135.435 1.19365L52.1105 1.19365L52.1105-68.8571C52.1105-72.9269 54.0489-74.7866 58.0151-74.7866L162.98-74.7866C166.947-74.7866 168.923-72.9269 168.923-68.8571L168.923-46.7973C171.275-47.3042 173.641-47.5466 176.144-47.5466C178.622-47.5466 181.004-47.3042 183.365-46.7973L183.365-72.3728C183.365-83.2388 177.299-89.2151 166.447-89.2151L54.549-89.2151C43.9621-89.2151 37.6307-83.2388 37.6307-72.3728L37.6307 1.19365L24.8338 1.19365C20.051 1.19365 16.084 5.14468 16.084 9.99027C16.084 14.8111 20.051 18.7621 24.8338 18.7621ZM176.144 27.0049C193.987 27.0049 208.902 12.1068 208.902-5.79596C208.902-23.7235 194.114-38.5631 176.144-38.5631C158.2-38.5631 143.386-23.7103 143.386-5.79596C143.386 12.1828 158.2 27.0049 176.144 27.0049ZM172.104 11.9987C170.723 11.9987 169.103 11.5427 168.104 10.3969L157.699-0.870439C156.772-1.90656 156.21-3.19547 156.21-4.48723C156.21-7.61991 158.628-9.50804 161.226-9.50804C162.799-9.50804 164.066-8.93631 164.916-7.92221L171.739-0.361291L186.019-20.0939C187.003-21.4236 188.481-22.2785 190.22-22.2785C192.942-22.2785 195.203-20.1027 195.203-17.2824C195.203-16.3967 194.894-15.3446 194.254-14.4517L176.204 10.1325C175.345 11.2782 173.751 11.9987 172.104 11.9987Z"/>
+ </g>
+ <g id="Semibold-L" transform="matrix(1 0 0 1 1934.66 1556)">
+ <path d="M23.9759 17.4062L141.14 17.4062C138.021 12.9621 135.428 7.94841 134.377 1.51102L49.5161 1.51102L49.5161-69.2936C49.5161-73.5104 51.5439-75.5074 55.7049-75.5074L161.5-75.5074C165.661-75.5074 167.732-73.5104 167.732-69.2936L167.732-47.2337C169.75-47.6237 171.757-47.7971 173.899-47.7971C176.016-47.7971 178.022-47.6237 180.065-47.2337L180.065-72.3655C180.065-82.4139 174.552-87.822 164.522-87.822L52.6828-87.822C42.9564-87.822 37.1395-82.4139 37.1395-72.3655L37.1395 1.51102L23.9759 1.51102C19.6433 1.51102 16.084 5.07027 16.084 9.47106C16.084 13.847 19.6433 17.4062 23.9759 17.4062ZM173.899 25.4385C191.487 25.4385 206.218 10.7574 206.218-6.91777C206.218-24.6178 191.636-39.2618 173.899-39.2618C156.199-39.2618 141.58-24.5994 141.58-6.91777C141.58 10.8441 156.199 25.4385 173.899 25.4385ZM169.933 10.5175C168.696 10.5175 167.229 10.072 166.331 9.03227L155.882-2.32614C155.041-3.26684 154.595-4.45521 154.595-5.58778C154.595-8.31741 156.706-10.1 159.076-10.1C160.543-10.1 161.688-9.51227 162.443-8.61484L169.643-0.740656L184.316-21.0369C185.194-22.2128 186.513-22.9989 188.104-22.9989C190.524-22.9989 192.572-21.0617 192.572-18.5116C192.572-17.6948 192.269-16.754 191.687-15.9246L173.647 8.81562C172.867 9.85532 171.437 10.5175 169.933 10.5175Z"/>
+ </g>
+ <g id="Medium-L" transform="matrix(1 0 0 1 1639.39 1556)">
+ <path d="M23.3253 16.3781L140.157 16.3781C137.15 12.1864 134.719 7.45324 133.575 1.75166L47.5489 1.75166L47.5489-69.6246C47.5489-73.9528 49.6445-76.0539 53.9532-76.0539L160.377-76.0539C164.686-76.0539 166.829-73.9528 166.829-69.6246L166.829-47.5645C168.594-47.866 170.327-47.987 172.196-47.987C174.04-47.987 175.762-47.866 177.564-47.5645L177.564-72.3599C177.564-81.7884 172.469-86.7657 163.063-86.7657L51.2678-86.7657C42.1939-86.7657 36.7671-81.7884 36.7671-72.3599L36.7671 1.75166L23.3253 1.75166C19.3342 1.75166 16.084 5.01385 16.084 9.07737C16.084 13.1159 19.3342 16.3781 23.3253 16.3781ZM172.196 24.2508C189.592 24.2508 204.183 9.73425 204.183-7.76837C204.183-25.296 189.757-39.7915 172.196-39.7915C154.681-39.7915 140.21-25.2735 140.21-7.76837C140.21 9.82914 154.681 24.2508 172.196 24.2508ZM168.288 9.39443C167.158 9.39443 165.808 8.95684 164.987 7.99754L154.505-3.4299C153.728-4.29826 153.371-5.4104 153.371-6.42226C153.371-8.84628 155.248-10.5489 157.446-10.5489C158.832-10.5489 159.885-9.94898 160.568-9.14002L168.053-1.02831L183.024-21.7519C183.823-22.8112 185.021-23.5452 186.499-23.5452C188.69-23.5452 190.578-21.7889 190.578-19.4436C190.578-18.6792 190.279-17.8227 189.741-17.0414L171.708 7.81712C170.989 8.77641 169.683 9.39443 168.288 9.39443Z"/>
+ </g>
+ <g id="Regular-L" transform="matrix(1 0 0 1 1344.55 1556)">
+ <path d="M22.4768 15.0371L138.875 15.0371C136.015 11.1748 133.794 6.80737 132.529 2.06554L44.983 2.06554L44.983-70.0562C44.983-74.5299 47.1671-76.7668 51.6684-76.7668L158.913-76.7668C163.415-76.7668 165.652-74.5299 165.652-70.0562L165.652-47.9961C167.086-48.182 168.463-48.2348 169.976-48.2348C171.464-48.2348 172.813-48.182 174.3-47.9961L174.3-72.3527C174.3-80.9725 169.752-85.388 161.16-85.388L49.4222-85.388C41.1993-85.388 36.2813-80.9725 36.2813-72.3527L36.2813 2.06554L22.4768 2.06554C18.931 2.06554 16.084 4.94026 16.084 8.56386C16.084 12.1624 18.931 15.0371 22.4768 15.0371ZM169.976 22.7017C187.12 22.7017 201.528 8.39968 201.528-8.87785C201.528-26.1805 187.306-40.4825 169.976-40.4825C152.701-40.4825 138.424-26.1528 138.424-8.87785C138.424 8.50521 152.701 22.7017 169.976 22.7017ZM166.141 7.92952C165.153 7.92952 163.955 7.50231 163.233 6.6479L152.709-4.8696C152.015-5.6436 151.774-6.6563 151.774-7.51071C151.774-9.53612 153.347-11.1343 155.319-11.1343C156.601-11.1343 157.533-10.5186 158.121-9.82504L165.98-1.4035L181.34-22.6846C182.034-23.5918 183.074-24.2577 184.406-24.2577C186.298-24.2577 187.977-22.7373 187.977-20.6592C187.977-19.963 187.683-19.2167 187.203-18.498L169.179 6.51472C168.538 7.36913 167.395 7.92952 166.141 7.92952Z"/>
+ </g>
+ <g id="Light-L" transform="matrix(1 0 0 1 1050.08 1556)">
+ <path d="M21.5607 13.6248L138.646 13.6248C135.977 10.3159 133.832 6.59744 132.472 2.52359L42.0057 2.52359L42.0057-69.8654C42.0057-74.8735 44.476-77.3775 49.5309-77.3775L156.585-77.3775C161.64-77.3775 164.144-74.8735 164.144-69.8654L164.144-47.8434C165.292-47.9911 166.288-48.0248 167.457-48.0248C168.639-48.0248 169.587-47.9911 170.77-47.8434L170.77-71.3603C170.77-79.7129 166.412-83.9566 158.106-83.9566L48.0098-83.9566C39.9397-83.9566 35.3462-79.7129 35.3462-71.3603L35.3462 2.52359L21.5607 2.52359C18.4539 2.52359 16.084 4.94026 16.084 8.06764C16.084 11.2081 18.4539 13.6248 21.5607 13.6248ZM167.457 20.6405C184.334 20.6405 198.417 6.62475 198.417-10.3665C198.417-27.3447 184.482-41.3604 167.457-41.3604C150.525-41.3604 136.496-27.2979 136.496-10.3665C136.496 6.69211 150.525 20.6405 167.457 20.6405ZM163.583 5.83014C162.691 5.83014 161.664 5.4411 161 4.66303L150.705-6.64454C150.087-7.34219 149.846-8.22129 149.846-8.99936C149.846-10.7576 151.228-12.1267 152.953-12.1267C154.12-12.1267 154.919-11.5301 155.469-10.9129L163.423-2.39594L178.783-23.6007C179.4-24.4124 180.326-24.9829 181.467-24.9829C183.111-24.9829 184.561-23.6343 184.561-21.8425C184.561-21.1654 184.286-20.5145 183.863-19.9103L166.221 4.54893C165.637 5.32701 164.704 5.83014 163.583 5.83014Z"/>
+ </g>
+ <g id="Thin-L" transform="matrix(1 0 0 1 756.318 1556)">
+ <path d="M20.3491 11.7569L138.343 11.7569C135.927 9.18004 133.882 6.31978 132.396 3.12939L38.0679 3.12939L38.0679-69.613C38.0679-75.3278 40.9169-78.1852 46.7038-78.1852L153.505-78.1852C159.292-78.1852 162.15-75.3278 162.15-69.613L162.15-47.6414C162.92-47.7387 163.41-47.7472 164.125-47.7472C164.903-47.7472 165.322-47.7387 166.1-47.6414L166.1-70.0477C166.1-78.0469 161.994-82.0634 154.067-82.0634L46.142-82.0634C38.2737-82.0634 34.1093-78.0469 34.1093-70.0477L34.1093 3.12939L20.3491 3.12939C17.8229 3.12939 16.084 4.94026 16.084 7.41136C16.084 9.946 17.8229 11.7569 20.3491 11.7569ZM164.125 17.9144C180.649 17.9144 194.302 4.27726 194.302-12.3354C194.302-28.8844 180.746-42.5215 164.125-42.5215C147.648-42.5215 133.947-28.8125 133.947-12.3354C133.947 4.29414 147.648 17.9144 164.125 17.9144ZM160.201 3.05354C159.435 3.05354 158.635 2.71499 158.047 2.03788L148.054-8.99202C147.538-9.58871 147.297-10.2911 147.297-10.9682C147.297-12.373 148.427-13.4393 149.823-13.4393C150.839-13.4393 151.461-12.8679 151.96-12.3517L160.04-3.70851L175.4-24.8123C175.917-25.4978 176.691-25.9421 177.58-25.9421C178.896-25.9421 180.042-24.8207 180.042-23.4075C180.042-22.7557 179.793-22.231 179.446-21.7782L162.308 1.94903C161.8 2.62613 161.145 3.05354 160.201 3.05354Z"/>
+ </g>
+ <g id="Ultralight-L" transform="matrix(1 0 0 1 461.119 1556)">
+ <path d="M19.7285 10.8001L138.188 10.8001C135.901 8.59825 133.908 6.17756 132.358 3.43968L36.0511 3.43968L36.0511-69.4837C36.0511-75.5605 39.094-78.599 45.2558-78.599L151.928-78.599C158.09-78.599 161.128-75.5605 161.128-69.4837L161.128-47.538C161.704-47.6094 161.936-47.605 162.418-47.605C162.99-47.605 163.137-47.6094 163.708-47.538L163.708-69.3754C163.708-77.1937 159.732-81.0938 151.999-81.0938L45.1852-81.0938C37.4204-81.0938 33.4758-77.1937 33.4758-69.3754L33.4758 3.43968L19.7285 3.43968C17.4996 3.43968 16.084 4.94026 16.084 7.07521C16.084 9.29957 17.4996 10.8001 19.7285 10.8001ZM162.418 16.518C178.761 16.518 192.195 3.07489 192.195-13.3438C192.195-29.6731 178.832-43.1163 162.418-43.1163C146.174-43.1163 132.641-29.5882 132.641-13.3438C132.641 3.06591 146.174 16.518 162.418 16.518ZM158.469 1.63138C157.767 1.63138 157.084 1.31868 156.534 0.693294L146.697-10.1944C146.232-10.7394 145.991-11.3513 145.991-11.9767C145.991-13.2005 146.991-14.1116 148.22-14.1116C149.158-14.1116 149.689-13.5532 150.163-13.0886L158.308-4.38081L173.668-25.4329C174.133-26.0538 174.829-26.4334 175.589-26.4334C176.737-26.4334 177.728-25.4284 177.728-24.209C177.728-23.5702 177.491-23.1101 177.183-22.735L160.304 0.617367C159.835 1.24276 159.322 1.63138 158.469 1.63138Z"/>
+ </g>
+ <g id="Black-M" transform="matrix(1 0 0 1 2842.41 1126)">
+ <path d="M21.7103 10.5164L114.476 10.5164C111.529 5.9239 108.694 0.774435 108.337-7.88423L47.772-7.88423L47.772-59.8019C47.772-62.66 49.0814-63.7464 51.7108-63.7464L130.276-63.7464C132.905-63.7464 134.22-62.66 134.22-59.8019L134.22-42.7246C137.028-43.4831 139.899-43.8882 142.889-43.8882C145.874-43.8882 148.802-43.4831 151.558-42.7246L151.558-63.6919C151.558-74.6707 145.134-81.0847 134.154-81.0847L47.8323-81.0847C36.8917-81.0847 30.4286-74.6707 30.4286-63.6919L30.4286-7.88423L21.7103-7.88423C16.6939-7.88423 12.4609-3.70863 12.4609 1.31898C12.4609 6.34081 16.6939 10.5164 21.7103 10.5164ZM142.889 17.3639C157.446 17.3639 169.491 5.21568 169.491-9.29495C169.491-23.8113 157.462-35.8454 142.889-35.8454C128.315-35.8454 116.287-23.8116 116.287-9.29495C116.287 5.22666 128.315 17.3639 142.889 17.3639ZM139.505 5.44888C138.003 5.44888 136.308 5.07448 135.227 3.86892L127.384-4.49363C126.417-5.57979 125.602-6.85892 125.602-8.34996C125.602-11.993 128.408-13.7201 131.075-13.7201C132.598-13.7201 133.929-13.3356 134.885-12.1976L138.98-7.3232L148.768-20.7571C149.849-22.2536 151.47-23.1065 153.233-23.1065C156.238-23.1065 158.598-20.7055 158.598-17.7421C158.598-16.8384 158.348-15.6949 157.683-14.8366L143.799 3.51565C142.895 4.72121 141.199 5.44888 139.505 5.44888Z"/>
+ </g>
+ <g id="Heavy-M" transform="matrix(1 0 0 1 2547.62 1126)">
+ <path d="M20.8195 9.10101L112.882 9.10101C110.082 4.81171 107.5-0.00827546 107.009-7.58033L45.1229-7.58033L45.1229-60.3962C45.1229-63.3258 46.4841-64.5289 49.2415-64.5289L128.9-64.5289C131.657-64.5289 133.035-63.3258 133.035-60.3962L133.035-43.3105C135.48-43.9291 137.977-44.2509 140.584-44.2509C143.178-44.2509 145.716-43.9291 148.134-43.3105L148.134-63.8958C148.134-73.8956 142.368-79.6263 132.371-79.6263L45.7701-79.6263C35.8875-79.6263 30.0069-73.8956 30.0069-63.8958L30.0069-7.58033L20.8195-7.58033C16.2797-7.58033 12.4609-3.80295 12.4609 0.767412C12.4609 5.32364 16.2797 9.10101 20.8195 9.10101ZM140.584 15.8212C154.877 15.8212 166.757 3.88644 166.757-10.3972C166.757-24.695 154.928-36.5424 140.584-36.5424C126.245-36.5424 114.412-24.6927 114.412-10.3972C114.412 3.91926 126.245 15.8212 140.584 15.8212ZM137.303 4.02227C135.962 4.02227 134.425 3.65299 133.459 2.56546L125.512-5.95762C124.636-6.93923 123.969-8.11961 123.969-9.42525C123.969-12.6148 126.427-14.2573 128.858-14.2573C130.271-14.2573 131.477-13.8484 132.32-12.8419L136.873-7.59091L147.159-21.7557C148.122-23.0777 149.566-23.8639 151.182-23.8639C153.857-23.8639 155.998-21.7285 155.998-19.0459C155.998-18.2257 155.751-17.2028 155.147-16.4002L141.193 2.26863C140.377 3.35617 138.844 4.02227 137.303 4.02227Z"/>
+ </g>
+ <g id="Bold-M" transform="matrix(1 0 0 1 2253.06 1126)">
+ <path d="M19.823 7.51768L111.099 7.51768C108.464 3.56757 106.164-0.88385 105.523-7.24036L42.1594-7.24036L42.1594-61.0609C42.1594-64.0707 43.5786-65.4043 46.4793-65.4043L127.36-65.4043C130.261-65.4043 131.708-64.0707 131.708-61.0609L131.708-43.966C133.749-44.4281 135.827-44.6565 138.006-44.6565C140.162-44.6565 142.263-44.4281 144.304-43.966L144.304-64.1239C144.304-73.0285 139.275-77.9949 130.376-77.9949L43.4633-77.9949C34.7642-77.9949 29.5351-73.0285 29.5351-64.1239L29.5351-7.24036L19.823-7.24036C15.8162-7.24036 12.4609-3.90846 12.4609 0.150403C12.4609 4.18578 15.8162 7.51768 19.823 7.51768ZM138.006 14.0954C152.002 14.0954 163.698 2.39949 163.698-11.6302C163.698-25.6834 152.093-37.3222 138.006-37.3222C123.93-37.3222 112.314-25.6783 112.314-11.6302C112.314 2.45674 123.93 14.0954 138.006 14.0954ZM134.839 2.42641C133.679 2.42641 132.318 2.06285 131.482 1.10734L123.418-7.5953C122.644-8.45995 122.143-9.52987 122.143-10.6281C122.143-13.3104 124.21-14.8583 126.378-14.8583C127.669-14.8583 128.733-14.4221 129.45-13.5626L134.515-7.89037L145.359-22.8727C146.19-23.9996 147.436-24.7112 148.888-24.7112C151.193-24.7112 153.089-22.8728 153.089-20.5045C153.089-19.7776 152.845-18.8895 152.31-18.1493L138.277 0.873673C137.561 1.82918 136.21 2.42641 134.839 2.42641Z"/>
+ </g>
+ <g id="Semibold-M" transform="matrix(1 0 0 1 1957.83 1126)">
+ <path d="M19.136 6.42613L109.87 6.42613C107.348 2.70987 105.243-1.48747 104.498-7.00599L40.1164-7.00599L40.1164-61.5192C40.1164-64.5842 41.5756-66.0078 44.575-66.0078L126.298-66.0078C129.298-66.0078 130.794-64.5842 130.794-61.5192L130.794-44.4178C132.556-44.7721 134.345-44.9362 136.229-44.9362C138.082-44.9362 139.882-44.7721 141.663-44.4178L141.663-64.2812C141.663-72.4308 137.143-76.8702 129-76.8702L41.8729-76.8702C33.9897-76.8702 29.2099-72.4308 29.2099-64.2812L29.2099-7.00599L19.136-7.00599C15.4968-7.00599 12.4609-3.9812 12.4609-0.274959C12.4609 3.40135 15.4968 6.42613 19.136 6.42613ZM136.229 12.9056C150.02 12.9056 161.589 1.3744 161.589-12.4802C161.589-26.3648 150.139-37.8597 136.229-37.8597C122.333-37.8597 110.868-26.3577 110.868-12.4802C110.868 1.44848 122.333 12.9056 136.229 12.9056ZM133.141 1.32623C132.104 1.32623 130.865 0.966611 130.118 0.102125L121.974-8.72431C121.271-9.50833 120.884-10.5021 120.884-11.4574C120.884-13.7899 122.682-15.2726 124.668-15.2726C125.874-15.2726 126.842-14.8175 127.472-14.0595L132.889-8.09682L144.118-23.6428C144.858-24.6351 145.967-25.2953 147.306-25.2953C149.357-25.2953 151.084-23.6617 151.084-21.51C151.084-20.8475 150.842-20.0524 150.354-19.3552L136.268-0.0880051C135.619 0.776481 134.394 1.32623 133.141 1.32623Z"/>
+ </g>
+ <g id="Medium-M" transform="matrix(1 0 0 1 1662.24 1126)">
+ <path d="M18.6152 5.59848L108.938 5.59848C106.502 2.05952 104.545-1.94515 103.722-6.82828L38.5673-6.82828L38.5673-61.8667C38.5673-64.9736 40.0568-66.4653 43.1311-66.4653L125.493-66.4653C128.568-66.4653 130.101-64.9736 130.101-61.8667L130.101-44.7604C131.651-45.0329 133.221-45.1483 134.881-45.1483C136.506-45.1483 138.078-45.0329 139.661-44.7604L139.661-64.4004C139.661-71.9775 135.526-76.0174 127.957-76.0174L40.6671-76.0174C33.4025-76.0174 28.9633-71.9775 28.9633-64.4004L28.9633-6.82828L18.6152-6.82828C15.2545-6.82828 12.4609-4.03636 12.4609-0.597487C12.4609 2.80656 15.2545 5.59848 18.6152 5.59848ZM134.881 12.0035C148.518 12.0035 159.99 0.597132 159.99-13.1248C159.99-26.8815 148.657-38.2673 134.881-38.2673C121.123-38.2673 109.772-26.8729 109.772-13.1248C109.772 0.683985 121.123 12.0035 134.881 12.0035ZM131.853 0.492026C130.911 0.492026 129.764 0.1354 129.085-0.660072L120.879-9.58037C120.229-10.3033 119.929-11.2393 119.929-12.0861C119.929-14.1535 121.523-15.5867 123.372-15.5867C124.514-15.5867 125.408-15.1174 125.972-14.4363L131.657-8.25336L143.177-24.2267C143.847-25.117 144.854-25.7382 146.106-25.7382C147.965-25.7382 149.563-24.2599 149.563-22.2725C149.563-21.6587 149.323-20.9341 148.871-20.2695L134.744-0.81719C134.147-0.0217182 133.017 0.492026 131.853 0.492026Z"/>
+ </g>
+ <g id="Regular-M" transform="matrix(1 0 0 1 1367 1126)">
+ <path d="M17.9357 4.51893L107.723 4.51893C105.398 1.21124 103.634-2.54214 102.709-6.59648L36.5468-6.59648L36.5468-62.32C36.5468-65.4814 38.0758-67.0621 41.2478-67.0621L124.444-67.0621C127.616-67.0621 129.196-65.4814 129.196-62.32L129.196-45.2073C130.471-45.3731 131.755-45.4249 133.123-45.4249C134.45-45.4249 135.723-45.3731 137.05-45.2073L137.05-64.5559C137.05-71.3863 133.417-74.9051 126.597-74.9051L39.0942-74.9051C32.6366-74.9051 28.6416-71.3863 28.6416-64.5559L28.6416-6.59648L17.9357-6.59648C14.9386-6.59648 12.4609-4.1083 12.4609-1.01817C12.4609 2.03075 14.9386 4.51893 17.9357 4.51893ZM133.123 10.8268C146.558 10.8268 157.905-0.416696 157.905-13.9655C157.905-27.5554 146.724-38.7989 133.123-38.7989C119.544-38.7989 108.341-27.5449 108.341-13.9655C108.341-0.313188 119.544 10.8268 133.123 10.8268ZM130.174-0.596063C129.354-0.596063 128.328-0.948789 127.736-1.65424L119.452-10.697C118.871-11.3401 118.684-12.2008 118.684-12.9063C118.684-14.6277 120.011-15.9964 121.681-15.9964C122.739-15.9964 123.538-15.5085 124.015-14.9277L130.049-8.45754L141.949-24.9884C142.53-25.7456 143.401-26.3159 144.542-26.3159C146.149-26.3159 147.58-25.0401 147.58-23.267C147.58-22.7168 147.342-22.0842 146.937-21.4621L132.756-1.7683C132.227-1.06285 131.221-0.596063 130.174-0.596063Z"/>
+ </g>
+ <g id="Light-M" transform="matrix(1 0 0 1 1072.29 1126)">
+ <path d="M17.1144 3.25272L107.517 3.25272C105.364 0.441246 103.668-2.73036 102.657-6.18582L33.8775-6.18582L33.8775-62.1489C33.8775-65.7894 35.6631-67.6097 39.3314-67.6097L122.356-67.6097C126.024-67.6097 127.845-65.7894 127.845-62.1489L127.845-45.0704C128.863-45.202 129.805-45.2366 130.864-45.2366C131.917-45.2366 132.832-45.202 133.884-45.0704L133.884-63.6662C133.884-70.257 130.423-73.6217 123.859-73.6217L37.828-73.6217C31.5073-73.6217 27.8032-70.257 27.8032-63.6662L27.8032-6.18582L17.1144-6.18582C14.5108-6.18582 12.4609-4.1083 12.4609-1.46306C12.4609 1.1752 14.5108 3.25272 17.1144 3.25272ZM130.864 8.97882C144.06 8.97882 155.116-2.00801 155.116-15.3001C155.116-28.5992 144.191-39.586 130.864-39.586C117.593-39.586 106.613-28.5715 106.613-15.3001C106.613-1.93873 117.593 8.97882 130.864 8.97882ZM127.881-2.47827C127.147-2.47827 126.274-2.79677 125.734-3.43378L117.655-12.2883C117.143-12.863 116.956-13.6039 116.956-14.2409C116.956-15.7228 118.112-16.8862 119.559-16.8862C120.515-16.8862 121.194-16.4154 121.637-15.903L127.756-9.34731L139.656-25.8097C140.169-26.4814 140.937-26.9661 141.907-26.9661C143.292-26.9661 144.517-25.8444 144.517-24.3278C144.517-23.7948 144.296-23.2477 143.943-22.7283L130.104-3.53073C129.626-2.89372 128.809-2.47827 127.881-2.47827Z"/>
+ </g>
+ <g id="Thin-M" transform="matrix(1 0 0 1 778.226 1126)">
+ <path d="M16.0281 1.57806L107.246 1.57806C105.319-0.577131 103.713-2.97929 102.59-5.64269L30.3471-5.64269L30.3471-61.9226C30.3471-66.1968 32.4722-68.3339 36.7967-68.3339L119.595-68.3339C123.92-68.3339 126.057-66.1968 126.057-61.9226L126.057-44.8894C126.735-44.9757 127.225-44.9877 127.877-44.9877C128.568-44.9877 129.007-44.9757 129.698-44.8894L129.698-62.4894C129.698-68.7634 126.462-71.9244 120.239-71.9244L36.1533-71.9244C30.0137-71.9244 26.6943-68.7634 26.6943-62.4894L26.6943-5.64269L16.0281-5.64269C13.945-5.64269 12.4609-4.1083 12.4609-2.05145C12.4609 0.0436722 13.945 1.57806 16.0281 1.57806ZM127.877 6.53471C140.756 6.53471 151.427-4.11266 151.427-17.0653C151.427-29.9797 140.842-40.627 127.877-40.627C115.013-40.627 104.327-29.9294 104.327-17.0653C104.327-4.08863 115.013 6.53471 127.877 6.53471ZM124.848-4.96763C124.227-4.96763 123.559-5.24088 123.086-5.78736L115.279-14.3929C114.857-14.8771 114.67-15.4596 114.67-16.0061C114.67-17.1712 115.6-18.063 116.753-18.063C117.573-18.063 118.093-17.6148 118.491-17.1929L124.724-10.5241L136.624-26.896C137.046-27.4545 137.679-27.8261 138.422-27.8261C139.512-27.8261 140.467-26.908 140.467-25.7309C140.467-25.2205 140.268-24.7866 139.982-24.403L126.596-5.86168C126.186-5.31519 125.618-4.96763 124.848-4.96763Z"/>
+ </g>
+ <g id="Ultralight-M" transform="matrix(1 0 0 1 482.871 1126)">
+ <path d="M15.4718 0.720302L107.107 0.720302C105.296-1.09874 103.736-3.1068 102.555-5.36449L28.5389-5.36449L28.5389-61.8066C28.5389-66.4054 30.8379-68.7048 35.4985-68.7048L118.181-68.7048C122.842-68.7048 125.141-66.4054 125.141-61.8066L125.141-44.7966C125.646-44.8598 125.903-44.8602 126.347-44.8602C126.852-44.8602 127.048-44.8598 127.553-44.7966L127.553-61.8866C127.553-67.9984 124.434-71.0551 118.384-71.0551L35.2956-71.0551C29.2487-71.0551 26.1263-67.9984 26.1263-61.8866L26.1263-5.36449L15.4718-5.36449C13.6552-5.36449 12.4609-4.1083 12.4609-2.35283C12.4609-0.535892 13.6552 0.720302 15.4718 0.720302ZM126.347 5.28285C139.063 5.28285 149.538-5.19065 149.538-17.9694C149.538-30.6867 139.126-41.1602 126.347-41.1602C113.692-41.1602 103.157-30.6248 103.157-17.9694C103.157-5.18981 113.692 5.28285 126.347 5.28285ZM123.295-6.24267C122.732-6.24267 122.168-6.49273 121.73-6.99285L114.062-15.4709C113.686-15.9087 113.499-16.4101 113.499-16.9102C113.499-17.913 114.314-18.6657 115.316-18.6657C116.066-18.6657 116.505-18.2292 116.88-17.8536L123.17-11.1268L135.071-27.4524C135.446-27.9529 136.009-28.2665 136.637-28.2665C137.577-28.2665 138.392-27.4528 138.392-26.4496C138.392-25.9507 138.204-25.5748 137.954-25.2608L124.799-7.05558C124.424-6.55546 123.983-6.24267 123.295-6.24267Z"/>
+ </g>
+ <g id="Black-S" transform="matrix(1 0 0 1 2861.62 696)">
+ <path d="M17.2363 0.976562L90.1855 0.976562C87.8418-2.68555 85.5469-6.78711 85.3027-13.8672L38.0859-13.8672L38.0859-54.2969C38.0859-56.543 39.1113-57.373 41.1621-57.373L102.393-57.373C104.443-57.373 105.469-56.543 105.469-54.2969L105.469-40.918C107.764-41.5527 110.107-41.8945 112.549-41.8945C114.99-41.8945 117.383-41.5527 119.629-40.918L119.629-57.4219C119.629-66.3086 114.404-71.5332 105.518-71.5332L38.0371-71.5332C29.1504-71.5332 23.9258-66.3086 23.9258-57.4219L23.9258-13.8672L17.2363-13.8672C13.1836-13.8672 9.76562-10.498 9.76562-6.44531C9.76562-2.39258 13.1836 0.976562 17.2363 0.976562ZM112.549 6.34766C124.023 6.34766 133.496-3.22266 133.496-14.6484C133.496-26.0742 124.023-35.5469 112.549-35.5469C101.074-35.5469 91.6016-26.0742 91.6016-14.6484C91.6016-3.22266 101.074 6.34766 112.549 6.34766ZM109.863-3.02734C108.643-3.02734 107.275-3.32031 106.396-4.29688L100.293-10.791C99.5117-11.6699 98.8281-12.6953 98.8281-13.916C98.8281-16.8945 101.123-18.2617 103.271-18.2617C104.492-18.2617 105.566-17.9688 106.348-17.041L109.424-13.3301L116.943-23.6328C117.822-24.8535 119.141-25.5371 120.557-25.5371C122.998-25.5371 124.902-23.584 124.902-21.1914C124.902-20.459 124.707-19.5312 124.17-18.8477L113.33-4.58984C112.598-3.61328 111.23-3.02734 109.863-3.02734Z"/>
+ </g>
+ <g id="Heavy-S" transform="matrix(1 0 0 1 2566.3 696)">
+ <path d="M16.5794-0.0721639L88.8487-0.0721639C86.6087-3.53836 84.5212-7.43248 84.1733-13.6597L36.1614-13.6597L36.1614-54.827C36.1614-57.0731 37.1983-57.9723 39.2951-57.9723L101.482-57.9723C103.579-57.9723 104.627-57.0731 104.627-54.827L104.627-41.4366C106.646-41.9561 108.713-42.2287 110.866-42.2287C113.008-42.2287 115.112-41.9561 117.105-41.4366L117.105-57.71C117.105-65.79 112.422-70.4499 104.342-70.4499L36.4352-70.4499C28.4359-70.4499 23.6722-65.79 23.6722-57.71L23.6722-13.6597L16.5794-13.6597C12.884-13.6597 9.76562-10.5787 9.76562-6.86019C9.76562-3.15319 12.884-0.0721639 16.5794-0.0721639ZM110.866 5.26436C122.145 5.26436 131.514-4.15614 131.514-15.4206C131.514-26.6965 122.18-36.0424 110.866-36.0424C99.553-36.0424 90.2186-26.6965 90.2186-15.4206C90.2186-4.13309 99.553 5.26436 110.866 5.26436ZM108.273-4.00692C107.179-4.00692 105.927-4.29989 105.14-5.18426L98.9216-11.8397C98.2095-12.638 97.6526-13.5942 97.6526-14.6651C97.6526-17.2864 99.671-18.6075 101.647-18.6075C102.787-18.6075 103.769-18.2914 104.458-17.4674L107.914-13.4453L115.86-24.3819C116.647-25.4643 117.827-26.1018 119.139-26.1018C121.327-26.1018 123.07-24.3561 123.07-22.171C123.07-21.5077 122.875-20.6722 122.384-20.0232L111.44-5.43113C110.777-4.54676 109.525-4.00692 108.273-4.00692Z"/>
+ </g>
+ <g id="Bold-S" transform="matrix(1 0 0 1 2271.14 696)">
+ <path d="M15.8447-1.24512L87.3535-1.24512C85.2295-4.49219 83.374-8.1543 82.9102-13.4277L34.0088-13.4277L34.0088-55.4199C34.0088-57.666 35.0586-58.6426 37.207-58.6426L100.464-58.6426C102.612-58.6426 103.687-57.666 103.687-55.4199L103.687-42.0166C105.396-42.4072 107.153-42.6025 108.984-42.6025C110.791-42.6025 112.573-42.4072 114.282-42.0166L114.282-58.0322C114.282-65.21 110.205-69.2383 103.027-69.2383L34.6436-69.2383C27.6367-69.2383 23.3887-65.21 23.3887-58.0322L23.3887-13.4277L15.8447-13.4277C12.5488-13.4277 9.76562-10.6689 9.76562-7.32422C9.76562-4.00391 12.5488-1.24512 15.8447-1.24512ZM108.984 4.05273C120.044 4.05273 129.297-5.2002 129.297-16.2842C129.297-27.3926 120.117-36.5967 108.984-36.5967C97.8516-36.5967 88.6719-27.3926 88.6719-16.2842C88.6719-5.15137 97.8516 4.05273 108.984 4.05273ZM106.494-5.10254C105.542-5.10254 104.419-5.39551 103.735-6.17676L97.3877-13.0127C96.7529-13.7207 96.3379-14.5996 96.3379-15.5029C96.3379-17.7246 98.0469-18.9941 99.8291-18.9941C100.879-18.9941 101.758-18.6523 102.344-17.9443L106.226-13.5742L114.648-25.2197C115.332-26.1475 116.357-26.7334 117.554-26.7334C119.458-26.7334 121.021-25.2197 121.021-23.2666C121.021-22.6807 120.825-21.9482 120.386-21.3379L109.326-6.37207C108.74-5.59082 107.617-5.10254 106.494-5.10254Z"/>
+ </g>
+ <g id="Semibold-S" transform="matrix(1 0 0 1 1975.5 696)">
+ <path d="M15.3382-2.05381L86.3227-2.05381C84.2786-5.1498 82.5831-8.65195 82.0393-13.2678L32.5247-13.2678L32.5247-55.8287C32.5247-58.0748 33.5834-59.1047 35.7674-59.1047L99.7618-59.1047C101.946-59.1047 103.038-58.0748 103.038-55.8287L103.038-42.4165C104.533-42.7183 106.078-42.8603 107.687-42.8603C109.263-42.8603 110.823-42.7183 112.336-42.4165L112.336-58.2544C112.336-64.8101 108.677-68.4029 102.121-68.4029L33.4083-68.4029C27.0857-68.4029 23.1932-64.8101 23.1932-58.2544L23.1932-13.2678L15.3382-13.2678C12.3178-13.2678 9.76562-10.7312 9.76562-7.64414C9.76562-4.59043 12.3178-2.05381 15.3382-2.05381ZM107.687 3.21738C118.595 3.21738 127.768-5.92002 127.768-16.8796C127.768-27.8725 118.695-36.9788 107.687-36.9788C96.6785-36.9788 87.6055-27.8725 87.6055-16.8796C87.6055-5.85342 96.6785 3.21738 107.687 3.21738ZM105.268-5.85791C104.413-5.85791 103.379-6.15088 102.767-6.86104L96.3302-13.8214C95.7487-14.4672 95.4314-15.2928 95.4314-16.0806C95.4314-18.0268 96.9271-19.2607 98.5761-19.2607C99.5637-19.2607 100.371-18.9012 100.886-18.2731L105.061-13.6631L113.813-25.7974C114.426-26.6185 115.344-27.1688 116.461-27.1688C118.169-27.1688 119.608-25.8151 119.608-24.022C119.608-23.4894 119.412-22.828 119.008-22.2443L107.869-7.0208C107.336-6.31064 106.302-5.85791 105.268-5.85791Z"/>
+ </g>
+ <g id="Medium-S" transform="matrix(1 0 0 1 1679.6 696)">
+ <path d="M14.9541-2.66699L85.541-2.66699C83.5576-5.64844 81.9834-9.0293 81.3789-13.1465L31.3994-13.1465L31.3994-56.1387C31.3994-58.3848 32.4648-59.4551 34.6758-59.4551L99.2295-59.4551C101.44-59.4551 102.546-58.3848 102.546-56.1387L102.546-42.7197C103.88-42.9541 105.263-43.0557 106.703-43.0557C108.104-43.0557 109.495-42.9541 110.86-42.7197L110.86-58.4229C110.86-64.5068 107.518-67.7695 101.434-67.7695L32.4717-67.7695C26.668-67.7695 23.0449-64.5068 23.0449-58.4229L23.0449-13.1465L14.9541-13.1465C12.1426-13.1465 9.76562-10.7783 9.76562-7.88672C9.76562-5.03516 12.1426-2.66699 14.9541-2.66699ZM106.703 2.58398C117.497 2.58398 126.609-6.46582 126.609-17.3311C126.609-28.2363 117.617-37.2686 106.703-37.2686C95.7891-37.2686 86.7969-28.2363 86.7969-17.3311C86.7969-6.38574 95.7891 2.58398 106.703 2.58398ZM104.338-6.43066C103.558-6.43066 102.591-6.72363 102.032-7.37988L95.5283-14.4346C94.9873-15.0332 94.7441-15.8184 94.7441-16.5186C94.7441-18.2559 96.0781-19.4629 97.626-19.4629C98.5664-19.4629 99.3203-19.0898 99.7812-18.5225L104.179-13.7305L113.18-26.2354C113.738-26.9756 114.576-27.499 115.632-27.499C117.192-27.499 118.536-26.2666 118.536-24.5947C118.536-24.1025 118.341-23.4951 117.964-22.9316L106.764-7.5127C106.271-6.85645 105.305-6.43066 104.338-6.43066Z"/>
+ </g>
+ <g id="Regular-S" transform="matrix(1 0 0 1 1383.95 696)">
+ <path d="M14.4531-3.4668L84.5215-3.4668C82.6172-6.29883 81.2012-9.52148 80.5176-12.9883L29.9316-12.9883L29.9316-56.543C29.9316-58.7891 31.0059-59.9121 33.252-59.9121L98.5352-59.9121C100.781-59.9121 101.904-58.7891 101.904-56.543L101.904-43.1152C103.027-43.2617 104.199-43.3105 105.42-43.3105C106.592-43.3105 107.764-43.2617 108.936-43.1152L108.936-58.6426C108.936-64.1113 106.006-66.9434 100.537-66.9434L31.25-66.9434C26.123-66.9434 22.8516-64.1113 22.8516-58.6426L22.8516-12.9883L14.4531-12.9883C11.9141-12.9883 9.76562-10.8398 9.76562-8.20312C9.76562-5.61523 11.9141-3.4668 14.4531-3.4668ZM105.42 1.75781C116.064 1.75781 125.098-7.17773 125.098-17.9199C125.098-28.7109 116.211-37.6465 105.42-37.6465C94.6289-37.6465 85.7422-28.7109 85.7422-17.9199C85.7422-7.08008 94.6289 1.75781 105.42 1.75781ZM103.125-7.17773C102.441-7.17773 101.562-7.4707 101.074-8.05664L94.4824-15.2344C93.9941-15.7715 93.8477-16.5039 93.8477-17.0898C93.8477-18.5547 94.9707-19.7266 96.3867-19.7266C97.2656-19.7266 97.9492-19.3359 98.3398-18.8477L103.027-13.8184L112.354-26.8066C112.842-27.4414 113.574-27.9297 114.551-27.9297C115.918-27.9297 117.139-26.8555 117.139-25.3418C117.139-24.9023 116.943-24.3652 116.602-23.8281L105.322-8.1543C104.883-7.56836 104.004-7.17773 103.125-7.17773Z"/>
+ </g>
+ <g id="Light-S" transform="matrix(1 0 0 1 1089.01 696)">
+ <path d="M13.7266-4.58691L84.3398-4.58691C82.5869-6.97998 81.2314-9.68799 80.4722-12.625L27.5703-12.625L27.5703-56.3916C27.5703-59.0615 28.8716-60.3965 31.5567-60.3965L96.6885-60.3965C99.3735-60.3965 100.709-59.0615 100.709-56.3916L100.709-42.9941C101.605-43.1104 102.474-43.144 103.422-43.144C104.352-43.144 105.206-43.1104 106.135-42.9941L106.135-57.8555C106.135-63.1123 103.357-65.8081 98.1153-65.8081L30.1299-65.8081C25.124-65.8081 22.1099-63.1123 22.1099-57.8555L22.1099-12.625L13.7266-12.625C11.5356-12.625 9.76562-10.8398 9.76562-8.59668C9.76562-6.37206 11.5356-4.58691 13.7266-4.58691ZM103.422 0.12306C113.855 0.12306 122.63-8.58544 122.63-19.1006C122.63-29.6343 113.971-38.3428 103.422-38.3428C92.9033-38.3428 84.2134-29.6191 84.2134-19.1006C84.2134-8.51806 92.9033 0.12306 103.422 0.12306ZM101.097-8.84276C100.489-8.84276 99.7461-9.10546 99.3032-9.63085L92.8931-16.6421C92.4653-17.1186 92.3189-17.7451 92.3189-18.2705C92.3189-19.5234 93.2905-20.5137 94.5098-20.5137C95.2979-20.5137 95.8755-20.1382 96.2359-19.7104L100.999-14.6055L110.325-27.5332C110.753-28.0923 111.395-28.5049 112.22-28.5049C113.39-28.5049 114.429-27.5669 114.429-26.2803C114.429-25.8559 114.249-25.3945 113.953-24.9482L102.976-9.71337C102.582-9.18798 101.87-8.84276 101.097-8.84276Z"/>
+ </g>
+ <g id="Thin-S" transform="matrix(1 0 0 1 794.642 696)">
+ <path d="M12.7656-6.06834L84.0996-6.06834C82.5469-7.88085 81.2715-9.9082 80.4121-12.1445L24.4473-12.1445L24.4473-56.1914C24.4473-59.4219 26.0489-61.0371 29.3145-61.0371L94.2461-61.0371C97.5117-61.0371 99.127-59.4219 99.127-56.1914L99.127-42.834C99.7227-42.9102 100.191-42.9238 100.779-42.9238C101.389-42.9238 101.822-42.9102 102.432-42.834L102.432-56.8145C102.432-61.791 99.8536-64.3067 94.9122-64.3067L28.6485-64.3067C23.8028-64.3067 21.1289-61.791 21.1289-56.8145L21.1289-12.1445L12.7656-12.1445C11.0352-12.1445 9.76562-10.8398 9.76562-9.11718C9.76562-7.37303 11.0352-6.06834 12.7656-6.06834ZM100.779-2.03903C110.932-2.03903 119.367-10.4472 119.367-20.6621C119.367-30.8555 111.008-39.2637 100.779-39.2637C90.6211-39.2637 82.1914-30.8203 82.1914-20.6621C82.1914-10.4199 90.6211-2.03903 100.779-2.03903ZM98.4141-11.0449C97.9063-11.0449 97.3438-11.2675 96.961-11.7129L90.791-18.5039C90.4434-18.9004 90.2969-19.3867 90.2969-19.832C90.2969-20.8047 91.0684-21.5547 92.0274-21.5547C92.6953-21.5547 93.1329-21.1992 93.4532-20.8515L98.3164-15.6465L107.643-28.4941C107.99-28.9531 108.512-29.2656 109.137-29.2656C110.047-29.2656 110.846-28.5078 110.846-27.5215C110.846-27.1172 110.686-26.7558 110.449-26.4297L99.8731-11.7754C99.5391-11.33 99.0469-11.0449 98.4141-11.0449Z"/>
+ </g>
+ <g id="Ultralight-S" transform="matrix(1 0 0 1 499.131 696)">
+ <path d="M12.2735-6.82712L83.9766-6.82712C82.5264-8.34227 81.292-10.021 80.3813-11.8984L22.8477-11.8984L22.8477-56.0889C22.8477-59.6064 24.6031-61.3652 28.1661-61.3652L92.9952-61.3652C96.5581-61.3652 98.3169-59.6064 98.3169-56.0889L98.3169-42.752C98.7588-42.8076 99.0225-42.811 99.4258-42.811C99.8711-42.811 100.089-42.8076 100.535-42.752L100.535-56.2813C100.535-61.1143 98.0591-63.5376 93.2715-63.5376L27.8897-63.5376C23.126-63.5376 20.6265-61.1143 20.6265-56.2813L20.6265-11.8984L12.2735-11.8984C10.7788-11.8984 9.76562-10.8398 9.76562-9.38378C9.76562-7.88572 10.7788-6.82712 12.2735-6.82712ZM99.4258-3.14645C109.435-3.14645 117.696-11.4008 117.696-21.4619C117.696-31.4809 109.49-39.7353 99.4258-39.7353C89.4522-39.7353 81.1558-31.4355 81.1558-21.4619C81.1558-11.394 89.4522-3.14645 99.4258-3.14645ZM97.0401-12.1728C96.5835-12.1728 96.1133-12.375 95.7613-12.7793L89.7144-19.4575C89.4078-19.813 89.2613-20.2275 89.2613-20.6318C89.2613-21.4609 89.9302-22.0879 90.7559-22.0879C91.3624-22.0879 91.7281-21.7427 92.0279-21.436L96.9424-16.1797L106.269-28.9863C106.575-29.394 107.035-29.6553 107.558-29.6553C108.335-29.6553 109.01-28.9897 109.01-28.1572C109.01-27.7632 108.86-27.4531 108.655-27.1885L98.2837-12.8315C97.9805-12.4272 97.6011-12.1728 97.0401-12.1728Z"/>
+ </g>
+ </g>
+</svg>
diff --git a/VirtualMac/assets/icons/vm.laptopcomputer.svg b/VirtualMac/assets/icons/vm.laptopcomputer.svg
new file mode 100644
index 0000000..f97a2b2
--- /dev/null
+++ b/VirtualMac/assets/icons/vm.laptopcomputer.svg
@@ -0,0 +1,160 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--Generator: Apple Native CoreSVG 362-->
+<!DOCTYPE svg
+PUBLIC "-//W3C//DTD SVG 1.1//EN"
+ "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
+<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 3300 2200">
+ <g id="Notes">
+ <rect height="2200" id="artboard" style="fill:white;opacity:1" width="3300" x="0" y="0"/>
+ <line style="fill:none;stroke:black;opacity:1;stroke-width:0.5;" x1="263" x2="3036" y1="292" y2="292"/>
+ <text style="stroke:none;fill:black;font-family:sans-serif;font-size:13;font-weight:bold;" transform="matrix(1 0 0 1 263 322)">Weight/Scale Variations</text>
+ <text style="stroke:none;fill:black;font-family:sans-serif;font-size:13;text-anchor:middle;" transform="matrix(1 0 0 1 559.711 322)">Ultralight</text>
+ <text style="stroke:none;fill:black;font-family:sans-serif;font-size:13;text-anchor:middle;" transform="matrix(1 0 0 1 856.422 322)">Thin</text>
+ <text style="stroke:none;fill:black;font-family:sans-serif;font-size:13;text-anchor:middle;" transform="matrix(1 0 0 1 1153.13 322)">Light</text>
+ <text style="stroke:none;fill:black;font-family:sans-serif;font-size:13;text-anchor:middle;" transform="matrix(1 0 0 1 1449.84 322)">Regular</text>
+ <text style="stroke:none;fill:black;font-family:sans-serif;font-size:13;text-anchor:middle;" transform="matrix(1 0 0 1 1746.56 322)">Medium</text>
+ <text style="stroke:none;fill:black;font-family:sans-serif;font-size:13;text-anchor:middle;" transform="matrix(1 0 0 1 2043.27 322)">Semibold</text>
+ <text style="stroke:none;fill:black;font-family:sans-serif;font-size:13;text-anchor:middle;" transform="matrix(1 0 0 1 2339.98 322)">Bold</text>
+ <text style="stroke:none;fill:black;font-family:sans-serif;font-size:13;text-anchor:middle;" transform="matrix(1 0 0 1 2636.69 322)">Heavy</text>
+ <text style="stroke:none;fill:black;font-family:sans-serif;font-size:13;text-anchor:middle;" transform="matrix(1 0 0 1 2933.4 322)">Black</text>
+ <line style="fill:none;stroke:black;opacity:1;stroke-width:0.5;" x1="263" x2="3036" y1="1903" y2="1903"/>
+ <g transform="matrix(0.2 0 0 0.2 263 1933)">
+ <path d="m46.2402 4.15039c21.7773 0 39.4531-17.627 39.4531-39.4043s-17.6758-39.4043-39.4531-39.4043c-21.7285 0-39.4043 17.627-39.4043 39.4043s17.6758 39.4043 39.4043 39.4043Zm0-7.42188c-17.6758 0-31.9336-14.3066-31.9336-31.9824s14.2578-31.9824 31.9336-31.9824 31.9824 14.3066 31.9824 31.9824-14.3066 31.9824-31.9824 31.9824Zm3.61328-17.7734v-28.4668c0-2.24609-1.46484-3.75977-3.71094-3.75977-2.14844 0-3.61328 1.51367-3.61328 3.75977v28.4668c0 2.19727 1.46484 3.71094 3.61328 3.71094 2.24609 0 3.71094-1.51367 3.71094-3.71094Zm-17.8223-10.5957h28.418c2.19727 0 3.71094-1.46484 3.71094-3.61328 0-2.19727-1.51367-3.71094-3.71094-3.71094h-28.418c-2.24609 0-3.75977 1.51367-3.75977 3.71094 0 2.14844 1.51367 3.61328 3.75977 3.61328Z"/>
+ </g>
+ <g transform="matrix(0.2 0 0 0.2 281.506 1933)">
+ <path d="m58.5449 14.5508c27.4902 0 49.8047-22.3145 49.8047-49.8047s-22.3145-49.8047-49.8047-49.8047-49.8047 22.3145-49.8047 49.8047 22.3145 49.8047 49.8047 49.8047Zm0-8.30078c-22.9492 0-41.5039-18.5547-41.5039-41.5039s18.5547-41.5039 41.5039-41.5039 41.5039 18.5547 41.5039 41.5039-18.5547 41.5039-41.5039 41.5039Zm4.05273-23.0957v-36.9141c0-2.49023-1.70898-4.19922-4.15039-4.19922-2.39258 0-4.05273 1.70898-4.05273 4.19922v36.9141c0 2.44141 1.66016 4.15039 4.05273 4.15039 2.44141 0 4.15039-1.66016 4.15039-4.15039Zm-22.5586-14.4043h36.9629c2.44141 0 4.15039-1.61133 4.15039-4.00391 0-2.44141-1.70898-4.15039-4.15039-4.15039h-36.9629c-2.49023 0-4.15039 1.70898-4.15039 4.15039 0 2.39258 1.66016 4.00391 4.15039 4.00391Z"/>
+ </g>
+ <g transform="matrix(0.2 0 0 0.2 304.924 1933)">
+ <path d="m74.8535 28.3203c35.1074 0 63.623-28.4668 63.623-63.5742s-28.5156-63.623-63.623-63.623-63.5742 28.5156-63.5742 63.623 28.4668 63.5742 63.5742 63.5742Zm0-9.08203c-30.127 0-54.4922-24.3652-54.4922-54.4922s24.3652-54.4922 54.4922-54.4922 54.4922 24.3652 54.4922 54.4922-24.3652 54.4922-54.4922 54.4922Zm4.44336-30.3223v-48.4863c0-2.73438-1.85547-4.63867-4.54102-4.63867-2.58789 0-4.44336 1.9043-4.44336 4.63867v48.4863c0 2.68555 1.85547 4.58984 4.44336 4.58984 2.68555 0 4.54102-1.85547 4.54102-4.58984Zm-28.7109-19.7754h48.4863c2.68555 0 4.58984-1.80664 4.58984-4.39453 0-2.73438-1.85547-4.58984-4.58984-4.58984h-48.4863c-2.73438 0-4.58984 1.85547-4.58984 4.58984 0 2.58789 1.85547 4.39453 4.58984 4.39453Z"/>
+ </g>
+ <text style="stroke:none;fill:black;font-family:sans-serif;font-size:13;font-weight:bold;" transform="matrix(1 0 0 1 263 1953)">Design Variations</text>
+ <text style="stroke:none;fill:black;font-family:sans-serif;font-size:13;" transform="matrix(1 0 0 1 263 1971)">Symbols are supported in up to nine weights and three scales.</text>
+ <text style="stroke:none;fill:black;font-family:sans-serif;font-size:13;" transform="matrix(1 0 0 1 263 1989)">For optimal layout with text and other symbols, vertically align</text>
+ <text style="stroke:none;fill:black;font-family:sans-serif;font-size:13;" transform="matrix(1 0 0 1 263 2007)">symbols with the adjacent text.</text>
+ <line style="fill:none;stroke:#00AEEF;stroke-width:0.5;opacity:1.0;" x1="776" x2="776" y1="1919" y2="1933"/>
+ <g transform="matrix(0.2 0 0 0.2 776 1933)">
+ <path d="m16.5527 0.78125c2.58789 0 3.85742-0.976562 4.78516-3.71094l20.5566-57.5195h0.244141l20.6055 57.5195c0.927734 2.73438 2.19727 3.71094 4.73633 3.71094 2.58789 0 4.24805-1.5625 4.24805-4.00391 0-0.830078-0.146484-1.61133-0.537109-2.63672l-22.9004-60.9863c-1.12305-2.97852-3.125-4.49219-6.25-4.49219-3.02734 0-5.07812 1.46484-6.15234 4.44336l-22.9004 61.084c-0.390625 1.02539-0.537109 1.80664-0.537109 2.63672 0 2.44141 1.5625 3.95508 4.10156 3.95508Zm10.2051-20.9473h30.6641c2.00195 0 3.66211-1.66016 3.66211-3.66211 0-2.05078-1.66016-3.66211-3.66211-3.66211h-30.6641c-2.00195 0-3.66211 1.61133-3.66211 3.66211 0 2.00195 1.66016 3.66211 3.66211 3.66211Z"/>
+ </g>
+ <line style="fill:none;stroke:#00AEEF;stroke-width:0.5;opacity:1.0;" x1="792.836" x2="792.836" y1="1919" y2="1933"/>
+ <text style="stroke:none;fill:black;font-family:sans-serif;font-size:13;font-weight:bold;" transform="matrix(1 0 0 1 776 1953)">Margins</text>
+ <text style="stroke:none;fill:black;font-family:sans-serif;font-size:13;" transform="matrix(1 0 0 1 776 1971)">Leading and trailing margins on the left and right side of each symbol</text>
+ <text style="stroke:none;fill:black;font-family:sans-serif;font-size:13;" transform="matrix(1 0 0 1 776 1989)">can be adjusted by modifying the x-location of the margin guidelines.</text>
+ <text style="stroke:none;fill:black;font-family:sans-serif;font-size:13;" transform="matrix(1 0 0 1 776 2007)">Modifications are automatically applied proportionally to all</text>
+ <text style="stroke:none;fill:black;font-family:sans-serif;font-size:13;" transform="matrix(1 0 0 1 776 2025)">scales and weights.</text>
+ <g transform="matrix(0.2 0 0 0.2 1289 1933)">
+ <path d="m14.209 13.1348 7.86133 7.86133c4.29688 4.39453 9.32617 4.10156 13.8672-1.02539l60.6934-68.2129-4.88281-4.88281-60.2539 67.6758c-1.80664 1.95312-3.4668 2.44141-5.81055 0.0976562l-5.17578-5.12695c-2.29492-2.29492-1.80664-3.95508 0.195312-5.81055l67.4805-62.1582-4.88281-4.83398-68.0664 62.5977c-4.98047 4.58984-5.32227 9.47266-1.02539 13.8184Zm44.873-97.4609c-2.05078 2.00195-2.24609 4.88281-1.07422 6.78711 1.12305 1.80664 3.4668 3.02734 6.5918 2.24609 5.85938-1.66016 12.5977-2.39258 18.8965 0.927734l-2.68555 7.12891c-1.61133 4.00391-0.732422 6.88477 1.70898 9.42383l10.2539 10.3027c2.34375 2.39258 4.54102 2.44141 7.08008 1.95312l4.44336-0.732422 2.58789 2.53906-0.195312 2.24609c-0.0976562 2.29492 0.537109 4.29688 2.7832 6.49414l3.36914 3.32031c2.29492 2.29492 5.51758 2.49023 7.8125 0.195312l12.9883-13.0371c2.29492-2.34375 2.14844-5.37109-0.195312-7.66602l-3.41797-3.41797c-2.19727-2.19727-4.05273-3.02734-6.34766-2.88086l-2.34375 0.244141-2.44141-2.44141 1.02539-4.6875c0.634766-2.73438-0.244141-4.98047-2.88086-7.61719l-11.2793-11.1816c-12.9395-12.8418-35.5957-11.0352-46.6797-0.146484Zm7.08008 2.05078c8.78906-6.39648 25.9766-5.66406 33.6914 1.95312l12.3047 12.207c1.02539 1.02539 1.2207 1.80664 0.927734 3.32031l-1.46484 6.64062 6.73828 6.68945 4.39453-0.244141c1.12305-0.0488281 1.51367 0.0488281 2.34375 0.878906l2.53906 2.49023-10.8398 10.8398-2.49023-2.49023c-0.830078-0.878906-0.976562-1.2207-0.927734-2.39258l0.292969-4.3457-6.68945-6.73828-6.83594 1.17188c-1.41602 0.292969-2.05078 0.195312-3.17383-0.878906l-8.93555-8.88672c-1.07422-1.02539-1.17188-1.70898-0.488281-3.36914l4.58984-11.4746c-6.10352-6.34766-17.041-7.51953-25.5859-4.58984-0.683594 0.244141-0.927734-0.390625-0.390625-0.78125Z"/>
+ </g>
+ <text style="stroke:none;fill:black;font-family:sans-serif;font-size:13;font-weight:bold;" transform="matrix(1 0 0 1 1289 1953)">Exporting</text>
+ <text style="stroke:none;fill:black;font-family:sans-serif;font-size:13;" transform="matrix(1 0 0 1 1289 1971)">Symbols should be outlined when exporting to ensure the</text>
+ <text style="stroke:none;fill:black;font-family:sans-serif;font-size:13;" transform="matrix(1 0 0 1 1289 1989)">design is preserved when submitting to Xcode.</text>
+ <text id="template-version" style="stroke:none;fill:black;font-family:sans-serif;font-size:13;text-anchor:end;" transform="matrix(1 0 0 1 3036 1933)">Template v.2.0</text>
+ <text style="stroke:none;fill:black;font-family:sans-serif;font-size:13;text-anchor:end;" transform="matrix(1 0 0 1 3036 1951)">Requires Xcode 12 or greater</text>
+ <text id="descriptive-name" style="stroke:none;fill:black;font-family:sans-serif;font-size:13;text-anchor:end;" transform="matrix(1 0 0 1 3036 1969)">Generated from laptopcomputer</text>
+ <text style="stroke:none;fill:black;font-family:sans-serif;font-size:13;text-anchor:end;" transform="matrix(1 0 0 1 3036 1987)">Typeset at 100.0 points</text>
+ <text style="stroke:none;fill:black;font-family:sans-serif;font-size:13;" transform="matrix(1 0 0 1 263 726)">Small</text>
+ <text style="stroke:none;fill:black;font-family:sans-serif;font-size:13;" transform="matrix(1 0 0 1 263 1156)">Medium</text>
+ <text style="stroke:none;fill:black;font-family:sans-serif;font-size:13;" transform="matrix(1 0 0 1 263 1586)">Large</text>
+ </g>
+ <g id="Guides">
+ <g id="H-reference" style="fill:#27AAE1;stroke:none;" transform="matrix(1 0 0 1 339 696)">
+ <path d="M0.993654 0L3.63775 0L29.3281-67.1323L30.0303-67.1323L30.0303-70.459L28.1226-70.459ZM11.6885-24.4799L46.9815-24.4799L46.2315-26.7285L12.4385-26.7285ZM55.1196 0L57.7637 0L30.6382-70.459L29.4326-70.459L29.4326-67.1323Z"/>
+ </g>
+ <line id="Baseline-S" style="fill:none;stroke:#27AAE1;opacity:1;stroke-width:0.5;" x1="263" x2="3036" y1="696" y2="696"/>
+ <line id="Capline-S" style="fill:none;stroke:#27AAE1;opacity:1;stroke-width:0.5;" x1="263" x2="3036" y1="625.541" y2="625.541"/>
+ <g id="H-reference" style="fill:#27AAE1;stroke:none;" transform="matrix(1 0 0 1 339 1126)">
+ <path d="M0.993654 0L3.63775 0L29.3281-67.1323L30.0303-67.1323L30.0303-70.459L28.1226-70.459ZM11.6885-24.4799L46.9815-24.4799L46.2315-26.7285L12.4385-26.7285ZM55.1196 0L57.7637 0L30.6382-70.459L29.4326-70.459L29.4326-67.1323Z"/>
+ </g>
+ <line id="Baseline-M" style="fill:none;stroke:#27AAE1;opacity:1;stroke-width:0.5;" x1="263" x2="3036" y1="1126" y2="1126"/>
+ <line id="Capline-M" style="fill:none;stroke:#27AAE1;opacity:1;stroke-width:0.5;" x1="263" x2="3036" y1="1055.54" y2="1055.54"/>
+ <g id="H-reference" style="fill:#27AAE1;stroke:none;" transform="matrix(1 0 0 1 339 1556)">
+ <path d="M0.993654 0L3.63775 0L29.3281-67.1323L30.0303-67.1323L30.0303-70.459L28.1226-70.459ZM11.6885-24.4799L46.9815-24.4799L46.2315-26.7285L12.4385-26.7285ZM55.1196 0L57.7637 0L30.6382-70.459L29.4326-70.459L29.4326-67.1323Z"/>
+ </g>
+ <line id="Baseline-L" style="fill:none;stroke:#27AAE1;opacity:1;stroke-width:0.5;" x1="263" x2="3036" y1="1556" y2="1556"/>
+ <line id="Capline-L" style="fill:none;stroke:#27AAE1;opacity:1;stroke-width:0.5;" x1="263" x2="3036" y1="1485.54" y2="1485.54"/>
+ <line id="right-margin" style="fill:none;stroke:#00AEEF;stroke-width:0.5;opacity:1.0;" x1="1532.69" x2="1532.69" y1="1030.79" y2="1150.12"/>
+ <line id="left-margin" style="fill:none;stroke:#00AEEF;stroke-width:0.5;opacity:1.0;" x1="1367" x2="1367" y1="1030.79" y2="1150.12"/>
+ </g>
+ <g id="Symbols">
+ <g id="Black-L" transform="matrix(1 0 0 1 2817.98 1556)">
+ <path d="M16.084 11.3545C16.084 17.3402 21.1111 22.3101 27.076 22.3101L203.773 22.3101C209.758 22.3101 214.765 17.3402 214.765 11.3545C214.765 5.3491 209.758 0.379177 203.773 0.379177L191.987 0.379177L191.987-72.2685C191.987-85.3472 184.428-92.8627 171.351-92.8627L59.4987-92.8627C46.5669-92.8627 38.8628-85.3472 38.8628-72.2685L38.8628 0.379177L27.076 0.379177C21.1111 0.379177 16.084 5.3491 16.084 11.3545ZM58.8647 0.379177L58.8647-67.6341C58.8647-71.3669 60.5935-72.8829 64.0938-72.8829L166.756-72.8829C170.256-72.8829 172.006-71.3669 172.006-67.6341L172.006 0.379177Z"/>
+ </g>
+ <g id="Heavy-L" transform="matrix(1 0 0 1 2523.44 1556)">
+ <path d="M16.084 10.7434C16.084 16.2096 20.6423 20.729 26.0784 20.729L200.416 20.729C205.876 20.729 210.41 16.2096 210.41 10.7434C210.41 5.25262 205.876 0.733286 200.416 0.733286L188.151 0.733286L188.151-72.3834C188.151-84.4354 181.284-91.2358 169.238-91.2358L57.2559-91.2358C45.4208-91.2358 38.3432-84.4354 38.3432-72.3834L38.3432 0.733286L26.0784 0.733286C20.6423 0.733286 16.084 5.25262 16.084 10.7434ZM55.8738 0.733286L55.8738-68.224C55.8738-72.0805 57.6826-73.741 61.3662-73.741L165.128-73.741C168.811-73.741 170.65-72.0805 170.65-68.224L170.65 0.733286Z"/>
+ </g>
+ <g id="Bold-L" transform="matrix(1 0 0 1 2229.48 1556)">
+ <path d="M16.084 9.99027C16.084 14.8111 20.051 18.7621 24.8338 18.7621L196.162 18.7621C200.969 18.7621 204.912 14.8111 204.912 9.99027C204.912 5.14468 200.969 1.19365 196.162 1.19365L183.365 1.19365L183.365-72.3728C183.365-83.2388 177.299-89.2151 166.447-89.2151L54.549-89.2151C43.9621-89.2151 37.6307-83.2388 37.6307-72.3728L37.6307 1.19365L24.8338 1.19365C20.051 1.19365 16.084 5.14468 16.084 9.99027ZM52.1105 1.19365L52.1105-68.8571C52.1105-72.9269 54.0489-74.7866 58.0151-74.7866L162.98-74.7866C166.947-74.7866 168.923-72.9269 168.923-68.8571L168.923 1.19365Z"/>
+ </g>
+ <g id="Semibold-L" transform="matrix(1 0 0 1 1934.66 1556)">
+ <path d="M16.084 9.47106C16.084 13.847 19.6433 17.4062 23.9759 17.4062L193.229 17.4062C197.586 17.4062 201.121 13.847 201.121 9.47106C201.121 5.07027 197.586 1.51102 193.229 1.51102L180.065 1.51102L180.065-72.3655C180.065-82.4139 174.552-87.822 164.522-87.822L52.6828-87.822C42.9564-87.822 37.1395-82.4139 37.1395-72.3655L37.1395 1.51102L23.9759 1.51102C19.6433 1.51102 16.084 5.07027 16.084 9.47106ZM49.5161 1.51102L49.5161-69.2936C49.5161-73.5104 51.5439-75.5074 55.7049-75.5074L161.5-75.5074C165.661-75.5074 167.732-73.5104 167.732-69.2936L167.732 1.51102Z"/>
+ </g>
+ <g id="Medium-L" transform="matrix(1 0 0 1 1639.39 1556)">
+ <path d="M16.084 9.07737C16.084 13.1159 19.3342 16.3781 23.3253 16.3781L191.005 16.3781C195.021 16.3781 198.247 13.1159 198.247 9.07737C198.247 5.01385 195.021 1.75166 191.005 1.75166L177.564 1.75166L177.564-72.3599C177.564-81.7884 172.469-86.7657 163.063-86.7657L51.2678-86.7657C42.1939-86.7657 36.7671-81.7884 36.7671-72.3599L36.7671 1.75166L23.3253 1.75166C19.3342 1.75166 16.084 5.01385 16.084 9.07737ZM47.5489 1.75166L47.5489-69.6246C47.5489-73.9528 49.6445-76.0539 53.9532-76.0539L160.377-76.0539C164.686-76.0539 166.829-73.9528 166.829-69.6246L166.829 1.75166Z"/>
+ </g>
+ <g id="Regular-L" transform="matrix(1 0 0 1 1344.55 1556)">
+ <path d="M16.084 8.56386C16.084 12.1624 18.931 15.0371 22.4768 15.0371L188.105 15.0371C191.676 15.0371 194.498 12.1624 194.498 8.56386C194.498 4.94026 191.676 2.06554 188.105 2.06554L174.3 2.06554L174.3-72.3527C174.3-80.9725 169.752-85.388 161.16-85.388L49.4222-85.388C41.1993-85.388 36.2813-80.9725 36.2813-72.3527L36.2813 2.06554L22.4768 2.06554C18.931 2.06554 16.084 4.94026 16.084 8.56386ZM44.983 2.06554L44.983-70.0562C44.983-74.5299 47.1671-76.7668 51.6684-76.7668L158.913-76.7668C163.415-76.7668 165.652-74.5299 165.652-70.0562L165.652 2.06554Z"/>
+ </g>
+ <g id="Light-L" transform="matrix(1 0 0 1 1050.08 1556)">
+ <path d="M16.084 8.06764C16.084 11.2081 18.4539 13.6248 21.5607 13.6248L184.555 13.6248C187.649 13.6248 190.032 11.2081 190.032 8.06764C190.032 4.94026 187.649 2.52359 184.555 2.52359L170.77 2.52359L170.77-71.3603C170.77-79.7129 166.412-83.9566 158.106-83.9566L48.0098-83.9566C39.9397-83.9566 35.3462-79.7129 35.3462-71.3603L35.3462 2.52359L21.5607 2.52359C18.4539 2.52359 16.084 4.94026 16.084 8.06764ZM42.0057 2.52359L42.0057-69.8654C42.0057-74.8735 44.476-77.3775 49.5309-77.3775L156.585-77.3775C161.64-77.3775 164.144-74.8735 164.144-69.8654L164.144 2.52359Z"/>
+ </g>
+ <g id="Thin-L" transform="matrix(1 0 0 1 756.318 1556)">
+ <path d="M16.084 7.41136C16.084 9.946 17.8229 11.7569 20.3491 11.7569L179.86 11.7569C182.323 11.7569 184.125 9.946 184.125 7.41136C184.125 4.94026 182.323 3.12939 179.86 3.12939L166.1 3.12939L166.1-70.0477C166.1-78.0469 161.994-82.0634 154.067-82.0634L46.142-82.0634C38.2737-82.0634 34.1093-78.0469 34.1093-70.0477L34.1093 3.12939L20.3491 3.12939C17.8229 3.12939 16.084 4.94026 16.084 7.41136ZM38.0679 3.12939L38.0679-69.613C38.0679-75.3278 40.9169-78.1852 46.7038-78.1852L153.505-78.1852C159.292-78.1852 162.15-75.3278 162.15-69.613L162.15 3.12939Z"/>
+ </g>
+ <g id="Ultralight-L" transform="matrix(1 0 0 1 461.119 1556)">
+ <path d="M16.084 7.07521C16.084 9.29957 17.4996 10.8001 19.7285 10.8001L177.455 10.8001C179.595 10.8001 181.1 9.29957 181.1 7.07521C181.1 4.94026 179.595 3.43968 177.455 3.43968L163.708 3.43968L163.708-69.3754C163.708-77.1937 159.732-81.0938 151.999-81.0938L45.1852-81.0938C37.4204-81.0938 33.4758-77.1937 33.4758-69.3754L33.4758 3.43968L19.7285 3.43968C17.4996 3.43968 16.084 4.94026 16.084 7.07521ZM36.0511 3.43968L36.0511-69.4837C36.0511-75.5605 39.094-78.599 45.2558-78.599L151.928-78.599C158.09-78.599 161.128-75.5605 161.128-69.4837L161.128 3.43968Z"/>
+ </g>
+ <g id="Black-M" transform="matrix(1 0 0 1 2842.41 1126)">
+ <path d="M12.4609 1.31898C12.4609 6.34081 16.6939 10.5164 21.7103 10.5164L160.277 10.5164C165.299 10.5164 169.526 6.34081 169.526 1.31898C169.526-3.70863 165.299-7.88423 160.277-7.88423L151.558-7.88423L151.558-63.6919C151.558-74.6707 145.134-81.0847 134.154-81.0847L47.8323-81.0847C36.8917-81.0847 30.4286-74.6707 30.4286-63.6919L30.4286-7.88423L21.7103-7.88423C16.6939-7.88423 12.4609-3.70863 12.4609 1.31898ZM47.772-7.88423L47.772-59.8019C47.772-62.66 49.0814-63.7464 51.7108-63.7464L130.276-63.7464C132.905-63.7464 134.22-62.66 134.22-59.8019L134.22-7.88423Z"/>
+ </g>
+ <g id="Heavy-M" transform="matrix(1 0 0 1 2547.62 1126)">
+ <path d="M12.4609 0.767412C12.4609 5.32364 16.2797 9.10101 20.8195 9.10101L157.322 9.10101C161.876 9.10101 165.68 5.32364 165.68 0.767412C165.68-3.80295 161.876-7.58033 157.322-7.58033L148.134-7.58033L148.134-63.8958C148.134-73.8956 142.368-79.6263 132.371-79.6263L45.7701-79.6263C35.8875-79.6263 30.0069-73.8956 30.0069-63.8958L30.0069-7.58033L20.8195-7.58033C16.2797-7.58033 12.4609-3.80295 12.4609 0.767412ZM45.1229-7.58033L45.1229-60.3962C45.1229-63.3258 46.4841-64.5289 49.2415-64.5289L128.9-64.5289C131.657-64.5289 133.035-63.3258 133.035-60.3962L133.035-7.58033Z"/>
+ </g>
+ <g id="Bold-M" transform="matrix(1 0 0 1 2253.06 1126)">
+ <path d="M12.4609 0.150403C12.4609 4.18578 15.8162 7.51768 19.823 7.51768L154.016 7.51768C158.046 7.51768 161.378 4.18578 161.378 0.150403C161.378-3.90846 158.046-7.24036 154.016-7.24036L144.304-7.24036L144.304-64.1239C144.304-73.0285 139.275-77.9949 130.376-77.9949L43.4633-77.9949C34.7642-77.9949 29.5351-73.0285 29.5351-64.1239L29.5351-7.24036L19.823-7.24036C15.8162-7.24036 12.4609-3.90846 12.4609 0.150403ZM42.1594-7.24036L42.1594-61.0609C42.1594-64.0707 43.5786-65.4043 46.4793-65.4043L127.36-65.4043C130.261-65.4043 131.708-64.0707 131.708-61.0609L131.708-7.24036Z"/>
+ </g>
+ <g id="Semibold-M" transform="matrix(1 0 0 1 1957.83 1126)">
+ <path d="M12.4609-0.274959C12.4609 3.40135 15.4968 6.42613 19.136 6.42613L151.737 6.42613C155.407 6.42613 158.412 3.40135 158.412-0.274959C158.412-3.9812 155.407-7.00599 151.737-7.00599L141.663-7.00599L141.663-64.2812C141.663-72.4308 137.143-76.8702 129-76.8702L41.8729-76.8702C33.9897-76.8702 29.2099-72.4308 29.2099-64.2812L29.2099-7.00599L19.136-7.00599C15.4968-7.00599 12.4609-3.9812 12.4609-0.274959ZM40.1164-7.00599L40.1164-61.5192C40.1164-64.5842 41.5756-66.0078 44.575-66.0078L126.298-66.0078C129.298-66.0078 130.794-64.5842 130.794-61.5192L130.794-7.00599Z"/>
+ </g>
+ <g id="Medium-M" transform="matrix(1 0 0 1 1662.24 1126)">
+ <path d="M12.4609-0.597487C12.4609 2.80656 15.2545 5.59848 18.6152 5.59848L150.009 5.59848C153.405 5.59848 156.164 2.80656 156.164-0.597487C156.164-4.03636 153.405-6.82828 150.009-6.82828L139.661-6.82828L139.661-64.4004C139.661-71.9775 135.526-76.0174 127.957-76.0174L40.6671-76.0174C33.4025-76.0174 28.9633-71.9775 28.9633-64.4004L28.9633-6.82828L18.6152-6.82828C15.2545-6.82828 12.4609-4.03636 12.4609-0.597487ZM38.5673-6.82828L38.5673-61.8667C38.5673-64.9736 40.0568-66.4653 43.1311-66.4653L125.493-66.4653C128.568-66.4653 130.101-64.9736 130.101-61.8667L130.101-6.82828Z"/>
+ </g>
+ <g id="Regular-M" transform="matrix(1 0 0 1 1367 1126)">
+ <path d="M12.4609-1.01817C12.4609 2.03075 14.9386 4.51893 17.9357 4.51893L147.756 4.51893C150.794 4.51893 153.23 2.03075 153.23-1.01817C153.23-4.1083 150.794-6.59648 147.756-6.59648L137.05-6.59648L137.05-64.5559C137.05-71.3863 133.417-74.9051 126.597-74.9051L39.0942-74.9051C32.6366-74.9051 28.6416-71.3863 28.6416-64.5559L28.6416-6.59648L17.9357-6.59648C14.9386-6.59648 12.4609-4.1083 12.4609-1.01817ZM36.5468-6.59648L36.5468-62.32C36.5468-65.4814 38.0758-67.0621 41.2478-67.0621L124.444-67.0621C127.616-67.0621 129.196-65.4814 129.196-62.32L129.196-6.59648Z"/>
+ </g>
+ <g id="Light-M" transform="matrix(1 0 0 1 1072.29 1126)">
+ <path d="M12.4609-1.46306C12.4609 1.1752 14.5108 3.25272 17.1144 3.25272L144.573 3.25272C147.184 3.25272 149.227 1.1752 149.227-1.46306C149.227-4.1083 147.184-6.18582 144.573-6.18582L133.884-6.18582L133.884-63.6662C133.884-70.257 130.423-73.6217 123.859-73.6217L37.828-73.6217C31.5073-73.6217 27.8032-70.257 27.8032-63.6662L27.8032-6.18582L17.1144-6.18582C14.5108-6.18582 12.4609-4.1083 12.4609-1.46306ZM33.8775-6.18582L33.8775-62.1489C33.8775-65.7894 35.6631-67.6097 39.3314-67.6097L122.356-67.6097C126.024-67.6097 127.845-65.7894 127.845-62.1489L127.845-6.18582Z"/>
+ </g>
+ <g id="Thin-M" transform="matrix(1 0 0 1 778.226 1126)">
+ <path d="M12.4609-2.05145C12.4609 0.0436722 13.945 1.57806 16.0281 1.57806L140.364 1.57806C142.409 1.57806 143.931 0.0436722 143.931-2.05145C143.931-4.1083 142.409-5.64269 140.364-5.64269L129.698-5.64269L129.698-62.4894C129.698-68.7634 126.462-71.9244 120.239-71.9244L36.1533-71.9244C30.0137-71.9244 26.6943-68.7634 26.6943-62.4894L26.6943-5.64269L16.0281-5.64269C13.945-5.64269 12.4609-4.1083 12.4609-2.05145ZM30.3471-5.64269L30.3471-61.9226C30.3471-66.1968 32.4722-68.3339 36.7967-68.3339L119.595-68.3339C123.92-68.3339 126.057-66.1968 126.057-61.9226L126.057-5.64269Z"/>
+ </g>
+ <g id="Ultralight-M" transform="matrix(1 0 0 1 482.871 1126)">
+ <path d="M12.4609-2.35283C12.4609-0.535892 13.6552 0.720302 15.4718 0.720302L138.208 0.720302C139.963 0.720302 141.219-0.535892 141.219-2.35283C141.219-4.1083 139.963-5.36449 138.208-5.36449L127.553-5.36449L127.553-61.8866C127.553-67.9984 124.434-71.0551 118.384-71.0551L35.2956-71.0551C29.2487-71.0551 26.1263-67.9984 26.1263-61.8866L26.1263-5.36449L15.4718-5.36449C13.6552-5.36449 12.4609-4.1083 12.4609-2.35283ZM28.5389-5.36449L28.5389-61.8066C28.5389-66.4054 30.8379-68.7048 35.4985-68.7048L118.181-68.7048C122.842-68.7048 125.141-66.4054 125.141-61.8066L125.141-5.36449Z"/>
+ </g>
+ <g id="Black-S" transform="matrix(1 0 0 1 2861.62 696)">
+ <path d="M9.76562-6.44531C9.76562-2.39258 13.1836 0.976562 17.2363 0.976562L126.318 0.976562C130.371 0.976562 133.789-2.39258 133.789-6.44531C133.789-10.498 130.371-13.8672 126.318-13.8672L119.629-13.8672L119.629-57.4219C119.629-66.3086 114.404-71.5332 105.518-71.5332L38.0371-71.5332C29.1504-71.5332 23.9258-66.3086 23.9258-57.4219L23.9258-13.8672L17.2363-13.8672C13.1836-13.8672 9.76562-10.498 9.76562-6.44531ZM38.0859-13.8672L38.0859-54.2969C38.0859-56.543 39.1113-57.373 41.1621-57.373L102.393-57.373C104.443-57.373 105.469-56.543 105.469-54.2969L105.469-13.8672Z"/>
+ </g>
+ <g id="Heavy-S" transform="matrix(1 0 0 1 2566.3 696)">
+ <path d="M9.76562-6.86019C9.76562-3.15319 12.884-0.0721639 16.5794-0.0721639L124.198-0.0721639C127.905-0.0721639 131.012-3.15319 131.012-6.86019C131.012-10.5787 127.905-13.6597 124.198-13.6597L117.105-13.6597L117.105-57.71C117.105-65.79 112.422-70.4499 104.342-70.4499L36.4352-70.4499C28.4359-70.4499 23.6722-65.79 23.6722-57.71L23.6722-13.6597L16.5794-13.6597C12.884-13.6597 9.76562-10.5787 9.76562-6.86019ZM36.1614-13.6597L36.1614-54.827C36.1614-57.0731 37.1983-57.9723 39.2951-57.9723L101.482-57.9723C103.579-57.9723 104.627-57.0731 104.627-54.827L104.627-13.6597Z"/>
+ </g>
+ <g id="Bold-S" transform="matrix(1 0 0 1 2271.14 696)">
+ <path d="M9.76562-7.32422C9.76562-4.00391 12.5488-1.24512 15.8447-1.24512L121.826-1.24512C125.146-1.24512 127.905-4.00391 127.905-7.32422C127.905-10.6689 125.146-13.4277 121.826-13.4277L114.282-13.4277L114.282-58.0322C114.282-65.21 110.205-69.2383 103.027-69.2383L34.6436-69.2383C27.6367-69.2383 23.3887-65.21 23.3887-58.0322L23.3887-13.4277L15.8447-13.4277C12.5488-13.4277 9.76562-10.6689 9.76562-7.32422ZM34.0088-13.4277L34.0088-55.4199C34.0088-57.666 35.0586-58.6426 37.207-58.6426L100.464-58.6426C102.612-58.6426 103.687-57.666 103.687-55.4199L103.687-13.4277Z"/>
+ </g>
+ <g id="Semibold-S" transform="matrix(1 0 0 1 1975.5 696)">
+ <path d="M9.76562-7.64414C9.76562-4.59043 12.3178-2.05381 15.3382-2.05381L120.191-2.05381C123.245-2.05381 125.764-4.59043 125.764-7.64414C125.764-10.7312 123.245-13.2678 120.191-13.2678L112.336-13.2678L112.336-58.2544C112.336-64.8101 108.677-68.4029 102.121-68.4029L33.4083-68.4029C27.0857-68.4029 23.1932-64.8101 23.1932-58.2544L23.1932-13.2678L15.3382-13.2678C12.3178-13.2678 9.76562-10.7312 9.76562-7.64414ZM32.5247-13.2678L32.5247-55.8287C32.5247-58.0748 33.5834-59.1047 35.7674-59.1047L99.7618-59.1047C101.946-59.1047 103.038-58.0748 103.038-55.8287L103.038-13.2678Z"/>
+ </g>
+ <g id="Medium-S" transform="matrix(1 0 0 1 1679.6 696)">
+ <path d="M9.76562-7.88672C9.76562-5.03516 12.1426-2.66699 14.9541-2.66699L118.951-2.66699C121.803-2.66699 124.14-5.03516 124.14-7.88672C124.14-10.7783 121.803-13.1465 118.951-13.1465L110.86-13.1465L110.86-58.4229C110.86-64.5068 107.518-67.7695 101.434-67.7695L32.4717-67.7695C26.668-67.7695 23.0449-64.5068 23.0449-58.4229L23.0449-13.1465L14.9541-13.1465C12.1426-13.1465 9.76562-10.7783 9.76562-7.88672ZM31.3994-13.1465L31.3994-56.1387C31.3994-58.3848 32.4648-59.4551 34.6758-59.4551L99.2295-59.4551C101.44-59.4551 102.546-58.3848 102.546-56.1387L102.546-13.1465Z"/>
+ </g>
+ <g id="Regular-S" transform="matrix(1 0 0 1 1383.95 696)">
+ <path d="M9.76562-8.20312C9.76562-5.61523 11.9141-3.4668 14.4531-3.4668L117.334-3.4668C119.922-3.4668 122.021-5.61523 122.021-8.20312C122.021-10.8398 119.922-12.9883 117.334-12.9883L108.936-12.9883L108.936-58.6426C108.936-64.1113 106.006-66.9434 100.537-66.9434L31.25-66.9434C26.123-66.9434 22.8516-64.1113 22.8516-58.6426L22.8516-12.9883L14.4531-12.9883C11.9141-12.9883 9.76562-10.8398 9.76562-8.20312ZM29.9316-12.9883L29.9316-56.543C29.9316-58.7891 31.0059-59.9121 33.252-59.9121L98.5352-59.9121C100.781-59.9121 101.904-58.7891 101.904-56.543L101.904-12.9883Z"/>
+ </g>
+ <g id="Light-S" transform="matrix(1 0 0 1 1089.01 696)">
+ <path d="M9.76562-8.59668C9.76562-6.37206 11.5356-4.58691 13.7266-4.58691L114.519-4.58691C116.728-4.58691 118.48-6.37206 118.48-8.59668C118.48-10.8398 116.728-12.625 114.519-12.625L106.135-12.625L106.135-57.8555C106.135-63.1123 103.357-65.8081 98.1153-65.8081L30.1299-65.8081C25.124-65.8081 22.1099-63.1123 22.1099-57.8555L22.1099-12.625L13.7266-12.625C11.5356-12.625 9.76562-10.8398 9.76562-8.59668ZM27.5703-12.625L27.5703-56.3916C27.5703-59.0615 28.8716-60.3965 31.5567-60.3965L96.6885-60.3965C99.3735-60.3965 100.709-59.0615 100.709-56.3916L100.709-12.625Z"/>
+ </g>
+ <g id="Thin-S" transform="matrix(1 0 0 1 794.642 696)">
+ <path d="M9.76562-9.11718C9.76562-7.37303 11.0352-6.06834 12.7656-6.06834L110.795-6.06834C112.504-6.06834 113.795-7.37303 113.795-9.11718C113.795-10.8398 112.504-12.1445 110.795-12.1445L102.432-12.1445L102.432-56.8145C102.432-61.791 99.8536-64.3067 94.9122-64.3067L28.6485-64.3067C23.8028-64.3067 21.1289-61.791 21.1289-56.8145L21.1289-12.1445L12.7656-12.1445C11.0352-12.1445 9.76562-10.8398 9.76562-9.11718ZM24.4473-12.1445L24.4473-56.1914C24.4473-59.4219 26.0489-61.0371 29.3145-61.0371L94.2461-61.0371C97.5117-61.0371 99.127-59.4219 99.127-56.1914L99.127-12.1445Z"/>
+ </g>
+ <g id="Ultralight-S" transform="matrix(1 0 0 1 499.131 696)">
+ <path d="M9.76562-9.38378C9.76562-7.88572 10.7788-6.82712 12.2735-6.82712L108.888-6.82712C110.34-6.82712 111.396-7.88572 111.396-9.38378C111.396-10.8398 110.34-11.8984 108.888-11.8984L100.535-11.8984L100.535-56.2813C100.535-61.1143 98.0591-63.5376 93.2715-63.5376L27.8897-63.5376C23.126-63.5376 20.6265-61.1143 20.6265-56.2813L20.6265-11.8984L12.2735-11.8984C10.7788-11.8984 9.76562-10.8398 9.76562-9.38378ZM22.8477-11.8984L22.8477-56.0889C22.8477-59.6064 24.6031-61.3652 28.1661-61.3652L92.9952-61.3652C96.5581-61.3652 98.3169-59.6064 98.3169-56.0889L98.3169-11.8984Z"/>
+ </g>
+ </g>
+</svg>
diff --git a/VirtualMac/packaging/DEBIAN/postinst b/VirtualMac/packaging/DEBIAN/postinst
index 7d83af0..099f3b1 100755
--- a/VirtualMac/packaging/DEBIAN/postinst
+++ b/VirtualMac/packaging/DEBIAN/postinst
@@ -74,6 +74,14 @@ if test ! -x "$jbctl"; then
for source_file in "$rootful_payload/usr/libexec/VirtualMac/"*; do
replace_file "$source_file" "/usr/libexec/VirtualMac/${source_file##*/}"
done
+ # The package retains an explicit iPadOS 14 source variant, while the
+ # launch daemon deliberately uses one stable runtime path. A clean
+ # Taurine installation has no pre-existing unsuffixed file, so select the
+ # variant here rather than relying on a leftover from development or an
+ # older package.
+ replace_file \
+ "$rootful_payload/usr/libexec/VirtualMac/InternetSharing.ipados14" \
+ /usr/libexec/VirtualMac/InternetSharing
replace_file "$universal_payload/usr/sbin/rtadvd" \
/usr/sbin/VirtualMac/rtadvd
diff --git a/VirtualMac/resources/Localizations/cs.lproj/Localizable.strings b/VirtualMac/resources/Localizations/cs.lproj/Localizable.strings
index a6b33bc..14a5b7e 100644
--- a/VirtualMac/resources/Localizations/cs.lproj/Localizable.strings
+++ b/VirtualMac/resources/Localizations/cs.lproj/Localizable.strings
@@ -2,6 +2,7 @@
"%.0f%% complete" = "%.0f %% dokončeno";
"%@ CPU · %@ GB RAM · %llu GB · %@%@" = "%@ CPU · %@ GB RAM · %llu GB · %@%@";
"%@ is not supported" = "%@ není podporován";
+"%@ is out of video memory. macOS may appear frozen." = "%@ nemá dostatek videopaměti. macOS může vypadat jako zamrzlý.";
"%@ may encounter performance or graphical issues. For the best experience, use macOS Ventura, macOS Sonoma, or macOS Sequoia.\n\nIf transparency effects cause visual problems, turn on Reduce Transparency in System Settings > Accessibility > Display." = "%@ může mít problémy s výkonem nebo grafikou. Pro nejlepší zážitek použijte macOS Ventura, macOS Sonoma nebo macOS Sequoia.\n\nPokud efekty průhlednosti způsobují problémy se zobrazením, zapněte Omezit průhlednost v Nastavení systému > Zpřístupnění > Zobrazení.";
"%@ remaining" = "Zbývá %@";
"%@\nState: %@\n%@\n\n" = "%@\nStav: %@\n%@\n\n";
@@ -15,12 +16,15 @@
"Add Shared Folder" = "Přidat sdílenou složku";
"Advanced" = "Pokročilé";
"Allowed: %llu–%llu%@" = "Povoleno: %llu–%llu%@";
+"Always On" = "Vždy zapnuto";
"Another usbmuxd service took control of the virtual DFU device before it entered RestoreOS. Uninstall usbmuxd from Sileo and try again." = "Jiná služba usbmuxd převzala virtuální zařízení DFU před přechodem do RestoreOS. Odinstalujte usbmuxd v Sileo a zkuste to znovu.";
"Another Virtual Mac Is Running" = "Je spuštěný jiný virtuální Mac";
+"Apple Pencil Pressure and Tilt" = "Přítlak a náklon Apple Pencilu";
"Audio and Acceleration" = "Zvuk a akcelerace";
"Audio Output" = "Zvukový výstup";
"Available macOS Releases" = "Dostupná vydání macOS";
"Available macOS Versions" = "Dostupné verze macOS";
+"Because OpenGL acceleration requires Virtual Mac guest tools, turning off Virtual Mac guest tools will also turn off OpenGL acceleration. Apps such as Final Cut Pro mostly use Metal, but they check for OpenGL capabilities in order to launch." = "Protože akcelerace OpenGL vyžaduje nástroje hosta Virtual Mac, jejich vypnutím se vypne také akcelerace OpenGL. Aplikace jako Final Cut Pro používají převážně Metal, ale při spuštění kontrolují podporu OpenGL.";
"Boot and Network" = "Spouštění a síť";
"Bottom Left" = "Vlevo dole";
"Bottom Right" = "Vpravo dole";
@@ -42,7 +46,6 @@
"Choose whether Virtual Mac opens its library or starts a Virtual Mac." = "Vyberte, zda Virtual Mac otevře knihovnu, nebo spustí virtuální Mac.";
"Compatibility" = "Kompatibilita";
"Complete Virtual Mac devices and restore images outside Virtual Mac are not removed." = "Dokončené virtuální Macy a obrazy pro obnovení mimo Virtual Mac nebudou odstraněny.";
-"Configuration changes take effect after the Virtual Mac is shut down and started again." = "Změny konfigurace se projeví po vypnutí a opětovném spuštění Virtual Macu.";
"Configuration failed: %@" = "Konfigurace selhala: %@";
"Configure %@" = "Konfigurovat %@";
"Continue" = "Pokračovat";
@@ -58,7 +61,7 @@
"Create Virtual Mac" = "Vytvořit Virtuální Mac";
"Custom" = "Vlastní";
"Debug Logging" = "Protokolování ladění";
-"Debug Logging has been enabled. You can turn it off later in Settings." = "Protokolování ladění bylo zapnuto. Později ho můžete vypnout v Nastavení.";
+"Debug logging has been enabled for the next boot." = "Pro příští spuštění bylo zapnuto protokolování ladění.";
"Debug Logging takes effect the next time a Virtual Mac starts." = "Protokolování ladění se projeví při příštím spuštění Virtual Macu.";
"Delete" = "Smazat";
"Delete All" = "Smazat vše";
@@ -82,7 +85,12 @@
"Display Resolution" = "Rozlišení displeje";
"Display Width" = "Šířka displeje";
"Double-tap to hold or release this modifier" = "Dvojitým klepnutím tuto modifikační klávesu podržíte nebo uvolníte";
+"Download Apple Pencil Support" = "Stáhnout podporu Apple Pencil";
"Download Failed" = "Stahování se nezdařilo";
+"Download Final Cut Pro Trial" = "Stáhnout zkušební verzi Final Cut Pro";
+"Download Logic Pro Trial" = "Stáhnout zkušební verzi Logic Pro";
+"Download Pixelmator Pro Trial" = "Stáhnout zkušební verzi Pixelmator Pro";
+"Download Xcode" = "Stáhnout Xcode";
"Downloading macOS" = "Stahování macOS";
"Enter six hexadecimal octets separated by colons." = "Zadejte šest hexadecimálních oktetů oddělených dvojtečkami.";
"Ethernet (%@)" = "Ethernet (%@)";
@@ -122,6 +130,7 @@
"Keep Virtual Mac open. Your iPad will remain awake until the download finishes." = "Ponechte Virtual Mac otevřený. iPad zůstane aktivní, dokud stahování neskončí.";
"Keyboard" = "Klávesnice";
"Landscape iPad" = "iPad na šířku";
+"Learn More" = "Další informace";
"Library Appearance" = "Vzhled knihovny";
"Loading extracted Apple virtualization frameworks…" = "Načítání extrahovaných frameworků Apple pro virtualizaci…";
"MAC Address" = "MAC adresa";
@@ -130,6 +139,7 @@
"Mac Trackpad" = "Trackpad Mac";
"macOS Installed" = "macOS je nainstalován";
"Memory" = "Paměť";
+"Metal BC Support" = "Podpora Metal BC";
"Microphone Input" = "Vstup mikrofonu";
"Minimum: %llu GB. The upper limit is determined by the filesystem." = "Minimum: %llu GB. Horní limit určuje souborový systém.";
"Move Controls" = "Přesunout ovládací prvky";
@@ -145,10 +155,15 @@
"Off" = "Vypnuto";
"OK" = "OK";
"On" = "Zapnuto";
+"On for Next Boot" = "Zapnuto pro příští spuštění";
"Only about %llu GB is currently available. The disk image is sparse, but installation or later use can fail when storage fills up." = "Aktuálně je k dispozici jen asi %llu GB. Obraz disku je dynamický, ale při zaplnění úložiště může instalace nebo pozdější používání selhat.";
"Open Control Center and start Screen Recording, then reproduce the problem." = "Otevřete Ovládací centrum, spusťte záznam obrazovky a poté problém znovu vyvolejte.";
+"OpenGL Acceleration" = "Akcelerace OpenGL";
+"OpenGL Acceleration Is Off" = "Akcelerace OpenGL je vypnutá";
+"OpenGL Acceleration requires macOS Sonoma or later." = "Akcelerace OpenGL vyžaduje macOS Sonoma nebo novější.";
"Optional" = "Volitelné";
"Options" = "Volby";
+"Out of Video Memory" = "Nedostatek videopaměti";
"People have dreamed of running macOS on iPad for more than a decade. Today, that dream comes true. Create a Virtual Mac to get started." = "Lidé už více než deset let sní o spuštění macOS na iPadu. Dnes se tento sen stává skutečností. Začněte vytvořením virtuálního Macu.";
"Pixels Per Inch" = "Pixelů na palec";
"Pointing Device" = "Polohovací zařízení";
@@ -220,11 +235,14 @@
"These options affect iPadOS only while Virtual Mac is frontmost and a Virtual Mac is running." = "Tyto volby ovlivňují iPadOS jen tehdy, když je Virtuální Mac v popředí a virtuální Mac je spuštěný.";
"This restores all Virtual Mac settings to their defaults. Virtual Macs, restore images, and installation files won’t be removed." = "Tímto se obnoví výchozí hodnoty všech nastavení aplikace Virtual Mac. Virtuální Macy, obrazy pro obnovení ani instalační soubory nebudou odstraněny.";
"this Virtual Mac" = "tento virtuální Mac";
+"To enable OpenGL acceleration, shut down this Virtual Mac, then in its options, enable OpenGL Acceleration." = "Chcete-li zapnout akceleraci OpenGL, vypněte tento Virtual Mac a potom v jeho volbách zapněte Akceleraci OpenGL.";
"To show the controls, touch and hold the Virtual Mac icon on the Home Screen, then choose Show Virtual Mac Controls." = "Chcete-li zobrazit ovládací prvky, podržte ikonu Virtual Macu na ploše a poté zvolte Zobrazit ovládací prvky Virtual Macu.";
+"To use Apple Pencil pressure and tilt, download pencil-probe in %@ Virtual Mac." = "Chcete-li používat přítlak a náklon Apple Pencilu, stáhněte si pencil-probe do virtuálního Macu %@.";
"Top Left" = "Vlevo nahoře";
"Top Right" = "Vpravo nahoře";
"Touch" = "Dotyk";
"Touch and Hold to Secondary Click" = "Klepněte a podržte pro sekundární kliknutí";
+"Turn Off Virtual Mac Guest Tools?" = "Vypnout nástroje hosta Virtual Mac?";
"Two Finger Tap to Secondary Click" = "Klepnutí dvěma prsty pro sekundární kliknutí";
"Unknown" = "Není známo";
"Unsaved changes in macOS may be lost." = "Neuložené změny v macOS mohou být ztraceny.";
@@ -245,6 +263,7 @@
"Virtual Mac devices are stored in %@." = "Virtuální Macy se ukládají do %@.";
"Virtual Mac Display" = "Displej Virtuálního Macu";
"Virtual Mac does not support the Dopamine-roothide environment. Remove the roothide jailbreak from Dopamine-roothide > Settings > Remove Jailbreak, then switch to the official version of Dopamine." = "Virtual Mac nepodporuje prostředí Dopamine-roothide. Odstraňte jailbreak roothide v Dopamine-roothide > Nastavení > Odstranit jailbreak a poté přejděte na oficiální verzi Dopamine.";
+"Virtual Mac Guest Tools" = "Nástroje hosta pro Virtuální Mac";
"Virtual Mac has no published framebuffer" = "Virtuální Mac nemá zveřejněný framebuffer";
"Virtual Mac running — native PVG framebuffer attached" = "Virtuální Mac běží — nativní framebuffer PVG je připojen";
"Virtual Mac running — preparing native PVG display" = "Virtuální Mac běží — připravuje se nativní displej PVG";
diff --git a/VirtualMac/resources/Localizations/da.lproj/Localizable.strings b/VirtualMac/resources/Localizations/da.lproj/Localizable.strings
index d26c6ae..a8cab8f 100644
--- a/VirtualMac/resources/Localizations/da.lproj/Localizable.strings
+++ b/VirtualMac/resources/Localizations/da.lproj/Localizable.strings
@@ -2,6 +2,7 @@
"%.0f%% complete" = "%.0f%% fuldført";
"%@ CPU · %@ GB RAM · %llu GB · %@%@" = "%@ CPU · %@ GB RAM · %llu GB · %@%@";
"%@ is not supported" = "%@ understøttes ikke";
+"%@ is out of video memory. macOS may appear frozen." = "%@ er løbet tør for videohukommelse. macOS kan se ud til at være frosset.";
"%@ may encounter performance or graphical issues. For the best experience, use macOS Ventura, macOS Sonoma, or macOS Sequoia.\n\nIf transparency effects cause visual problems, turn on Reduce Transparency in System Settings > Accessibility > Display." = "%@ kan have problemer med ydeevne eller grafik. Brug macOS Ventura, macOS Sonoma eller macOS Sequoia for at få den bedste oplevelse.\n\nHvis gennemsigtighedseffekter giver visuelle problemer, skal du slå Reducer gennemsigtighed til under Systemindstillinger > Tilgængelighed > Skærm.";
"%@ remaining" = "%@ tilbage";
"%@\nState: %@\n%@\n\n" = "%@\nStatus: %@\n%@\n\n";
@@ -15,12 +16,15 @@
"Add Shared Folder" = "Tilføj delt mappe";
"Advanced" = "Avanceret";
"Allowed: %llu–%llu%@" = "Tilladt: %llu–%llu%@";
+"Always On" = "Altid til";
"Another usbmuxd service took control of the virtual DFU device before it entered RestoreOS. Uninstall usbmuxd from Sileo and try again." = "En anden usbmuxd-tjeneste overtog den virtuelle DFU-enhed, før den nåede RestoreOS. Afinstaller usbmuxd i Sileo, og prøv igen.";
"Another Virtual Mac Is Running" = "En anden Virtual Mac kører";
+"Apple Pencil Pressure and Tilt" = "Tryk og hældning med Apple Pencil";
"Audio and Acceleration" = "Lyd og acceleration";
"Audio Output" = "Lydudgang";
"Available macOS Releases" = "Tilgængelige macOS-udgivelser";
"Available macOS Versions" = "Tilgængelige macOS-versioner";
+"Because OpenGL acceleration requires Virtual Mac guest tools, turning off Virtual Mac guest tools will also turn off OpenGL acceleration. Apps such as Final Cut Pro mostly use Metal, but they check for OpenGL capabilities in order to launch." = "Da OpenGL-acceleration kræver Virtual Mac-gæsteværktøjer, slås OpenGL-acceleration også fra, når gæsteværktøjerne slås fra. Apps som Final Cut Pro bruger primært Metal, men kontrollerer OpenGL-funktioner for at kunne starte.";
"Boot and Network" = "Start og netværk";
"Bottom Left" = "Nederst til venstre";
"Bottom Right" = "Nederst til højre";
@@ -42,7 +46,6 @@
"Choose whether Virtual Mac opens its library or starts a Virtual Mac." = "Vælg, om Virtual Mac skal åbne biblioteket eller starte en Virtual Mac.";
"Compatibility" = "Kompatibilitet";
"Complete Virtual Mac devices and restore images outside Virtual Mac are not removed." = "Færdige Virtual Macs og gendannelsesbilleder uden for Virtual Mac fjernes ikke.";
-"Configuration changes take effect after the Virtual Mac is shut down and started again." = "Konfigurationsændringer træder i kraft, når Virtual Mac er blevet lukket ned og startet igen.";
"Configuration failed: %@" = "Konfiguration mislykkedes: %@";
"Configure %@" = "Konfigurer %@";
"Continue" = "Fortsæt";
@@ -58,7 +61,7 @@
"Create Virtual Mac" = "Opret en Virtuel Mac";
"Custom" = "Tilpasset";
"Debug Logging" = "Fejllogning";
-"Debug Logging has been enabled. You can turn it off later in Settings." = "Logføring af fejlfinding er slået til. Du kan slå det fra senere i Indstillinger.";
+"Debug logging has been enabled for the next boot." = "Fejllogning er slået til ved næste start.";
"Debug Logging takes effect the next time a Virtual Mac starts." = "Fejlfindingslogning træder i kraft, næste gang en Virtual Mac starter.";
"Delete" = "Slet";
"Delete All" = "Slet alle";
@@ -82,7 +85,12 @@
"Display Resolution" = "Skærmopløsning";
"Display Width" = "Skærmbredde";
"Double-tap to hold or release this modifier" = "Tryk to gange for at låse eller frigive denne kombinationstast";
+"Download Apple Pencil Support" = "Download support til Apple Pencil";
"Download Failed" = "Overførsel mislykkedes";
+"Download Final Cut Pro Trial" = "Hent prøveversionen af Final Cut Pro";
+"Download Logic Pro Trial" = "Hent prøveversionen af Logic Pro";
+"Download Pixelmator Pro Trial" = "Hent prøveversionen af Pixelmator Pro";
+"Download Xcode" = "Hent Xcode";
"Downloading macOS" = "Henter macOS";
"Enter six hexadecimal octets separated by colons." = "Indtast seks hexadecimale oktetter adskilt af kolon.";
"Ethernet (%@)" = "Ethernet (%@)";
@@ -122,6 +130,7 @@
"Keep Virtual Mac open. Your iPad will remain awake until the download finishes." = "Hold Virtual Mac åben. Din iPad forbliver aktiv, indtil overførslen er færdig.";
"Keyboard" = "Tastatur";
"Landscape iPad" = "iPad i liggende format";
+"Learn More" = "Læs mere";
"Library Appearance" = "Bibliotekets udseende";
"Loading extracted Apple virtualization frameworks…" = "Indlæser udpakkede Apple-frameworks til virtualisering…";
"MAC Address" = "MAC-adresse";
@@ -130,6 +139,7 @@
"Mac Trackpad" = "Mac-pegefelt";
"macOS Installed" = "macOS installeret";
"Memory" = "Hukommelse";
+"Metal BC Support" = "Understøttelse af Metal BC";
"Microphone Input" = "Mikrofonindgang";
"Minimum: %llu GB. The upper limit is determined by the filesystem." = "Minimum: %llu GB. Den øvre grænse bestemmes af filsystemet.";
"Move Controls" = "Flyt betjeningsmuligheder";
@@ -145,10 +155,15 @@
"Off" = "Fra";
"OK" = "OK";
"On" = "Til";
+"On for Next Boot" = "Til ved næste start";
"Only about %llu GB is currently available. The disk image is sparse, but installation or later use can fail when storage fills up." = "Der er kun ca. %llu GB ledig plads. Diskbilledet er dynamisk, men installationen eller senere brug kan mislykkes, hvis lageret bliver fyldt.";
"Open Control Center and start Screen Recording, then reproduce the problem." = "Åbn Kontrolcenter, start en skærmoptagelse, og genskab derefter problemet.";
+"OpenGL Acceleration" = "OpenGL-acceleration";
+"OpenGL Acceleration Is Off" = "OpenGL-acceleration er slået fra";
+"OpenGL Acceleration requires macOS Sonoma or later." = "OpenGL-acceleration kræver macOS Sonoma eller nyere.";
"Optional" = "Valgfrit";
"Options" = "Indstillinger";
+"Out of Video Memory" = "Ikke mere videohukommelse";
"People have dreamed of running macOS on iPad for more than a decade. Today, that dream comes true. Create a Virtual Mac to get started." = "I mere end et årti har folk drømt om at køre macOS på iPad. I dag bliver drømmen til virkelighed. Opret en virtuel Mac for at komme i gang.";
"Pixels Per Inch" = "Pixels pr. tomme";
"Pointing Device" = "Pegeredskab";
@@ -220,11 +235,14 @@
"These options affect iPadOS only while Virtual Mac is frontmost and a Virtual Mac is running." = "Disse indstillinger påvirker kun iPadOS, når Virtuel Mac er i forgrunden, og en virtuel Mac kører.";
"This restores all Virtual Mac settings to their defaults. Virtual Macs, restore images, and installation files won’t be removed." = "Dette nulstiller alle indstillinger i Virtual Mac til standardværdierne. Virtual Macs, gendannelsesbilleder og installationsfiler fjernes ikke.";
"this Virtual Mac" = "denne Virtual Mac";
+"To enable OpenGL acceleration, shut down this Virtual Mac, then in its options, enable OpenGL Acceleration." = "Sluk denne Virtual Mac, og slå derefter OpenGL-acceleration til i indstillingerne for at aktivere den.";
"To show the controls, touch and hold the Virtual Mac icon on the Home Screen, then choose Show Virtual Mac Controls." = "Du kan vise betjeningen ved at holde en finger på Virtual Mac-symbolet på hjemmeskærmen og derefter vælge Vis Virtual Mac-betjening.";
+"To use Apple Pencil pressure and tilt, download pencil-probe in %@ Virtual Mac." = "Hvis du vil bruge tryk og hældning med Apple Pencil, skal du downloade pencil-probe i den virtuelle Mac %@.";
"Top Left" = "Øverst til venstre";
"Top Right" = "Øverst til højre";
"Touch" = "Berøring";
"Touch and Hold to Secondary Click" = "Tryk og hold for sekundært klik";
+"Turn Off Virtual Mac Guest Tools?" = "Slå Virtual Mac-gæsteværktøjer fra?";
"Two Finger Tap to Secondary Click" = "Tryk med to fingre for sekundært klik";
"Unknown" = "Ukendt";
"Unsaved changes in macOS may be lost." = "Ikke-gemte ændringer i macOS kan gå tabt.";
@@ -245,6 +263,7 @@
"Virtual Mac devices are stored in %@." = "Virtuelle Mac-enheder opbevares i %@.";
"Virtual Mac Display" = "Virtuel Mac-skærm";
"Virtual Mac does not support the Dopamine-roothide environment. Remove the roothide jailbreak from Dopamine-roothide > Settings > Remove Jailbreak, then switch to the official version of Dopamine." = "Virtual Mac understøtter ikke Dopamine-roothide-miljøet. Fjern roothide-jailbreaket i Dopamine-roothide > Indstillinger > Fjern jailbreak, og skift derefter til den officielle version af Dopamine.";
+"Virtual Mac Guest Tools" = "Gæsteværktøjer til Virtuel Mac";
"Virtual Mac has no published framebuffer" = "Virtual Mac har ikke udgivet en framebuffer";
"Virtual Mac running — native PVG framebuffer attached" = "Virtual Mac kører — oprindelig PVG-framebuffer tilsluttet";
"Virtual Mac running — preparing native PVG display" = "Virtual Mac kører — forbereder oprindelig PVG-skærm";
diff --git a/VirtualMac/resources/Localizations/de.lproj/Localizable.strings b/VirtualMac/resources/Localizations/de.lproj/Localizable.strings
index a8207e7..950df6d 100644
--- a/VirtualMac/resources/Localizations/de.lproj/Localizable.strings
+++ b/VirtualMac/resources/Localizations/de.lproj/Localizable.strings
@@ -2,6 +2,7 @@
"%.0f%% complete" = "%.0f%% abgeschlossen";
"%@ CPU · %@ GB RAM · %llu GB · %@%@" = "%@ CPU · %@ GB RAM · %llu GB · %@%@";
"%@ is not supported" = "%@ wird nicht unterstützt";
+"%@ is out of video memory. macOS may appear frozen." = "Für %@ ist kein Grafikspeicher mehr verfügbar. macOS scheint möglicherweise eingefroren.";
"%@ may encounter performance or graphical issues. For the best experience, use macOS Ventura, macOS Sonoma, or macOS Sequoia.\n\nIf transparency effects cause visual problems, turn on Reduce Transparency in System Settings > Accessibility > Display." = "Bei %@ können Leistungs- oder Grafikprobleme auftreten. Verwende für das beste Erlebnis macOS Ventura, macOS Sonoma oder macOS Sequoia.\n\nWenn Transparenzeffekte Darstellungsprobleme verursachen, aktiviere „Transparenz reduzieren“ unter Systemeinstellungen > Bedienungshilfen > Anzeige.";
"%@ remaining" = "Noch %@";
"%@\nState: %@\n%@\n\n" = "%@\nStatus: %@\n%@\n\n";
@@ -15,12 +16,15 @@
"Add Shared Folder" = "Geteilten Ordner hinzufügen";
"Advanced" = "Erweitert";
"Allowed: %llu–%llu%@" = "Zulässig: %llu–%llu%@";
+"Always On" = "Immer ein";
"Another usbmuxd service took control of the virtual DFU device before it entered RestoreOS. Uninstall usbmuxd from Sileo and try again." = "Ein anderer usbmuxd-Dienst hat die Kontrolle über das virtuelle DFU-Gerät übernommen, bevor es RestoreOS erreicht hat. Deinstallieren Sie usbmuxd in Sileo und versuchen Sie es erneut.";
"Another Virtual Mac Is Running" = "Ein anderer Virtual Mac wird ausgeführt";
+"Apple Pencil Pressure and Tilt" = "Druck und Neigung des Apple Pencil";
"Audio and Acceleration" = "Audio und Beschleunigung";
"Audio Output" = "Audioausgabe";
"Available macOS Releases" = "Verfügbare macOS-Versionen";
"Available macOS Versions" = "Verfügbare macOS-Versionen";
+"Because OpenGL acceleration requires Virtual Mac guest tools, turning off Virtual Mac guest tools will also turn off OpenGL acceleration. Apps such as Final Cut Pro mostly use Metal, but they check for OpenGL capabilities in order to launch." = "Da die OpenGL-Beschleunigung die Virtual Mac-Gastwerkzeuge benötigt, wird sie beim Deaktivieren der Gastwerkzeuge ebenfalls deaktiviert. Apps wie Final Cut Pro verwenden hauptsächlich Metal, prüfen zum Starten jedoch die OpenGL-Funktionen.";
"Boot and Network" = "Start und Netzwerk";
"Bottom Left" = "Unten links";
"Bottom Right" = "Unten rechts";
@@ -42,7 +46,6 @@
"Choose whether Virtual Mac opens its library or starts a Virtual Mac." = "Wählen Sie, ob Virtual Mac beim Öffnen die Mediathek anzeigt oder einen Virtual Mac startet.";
"Compatibility" = "Kompatibilität";
"Complete Virtual Mac devices and restore images outside Virtual Mac are not removed." = "Vollständige Virtual Macs und Wiederherstellungsimages außerhalb von Virtual Mac werden nicht entfernt.";
-"Configuration changes take effect after the Virtual Mac is shut down and started again." = "Konfigurationsänderungen werden wirksam, nachdem Virtual Mac heruntergefahren und erneut gestartet wurde.";
"Configuration failed: %@" = "Konfiguration fehlgeschlagen: %@";
"Configure %@" = "%@ konfigurieren";
"Continue" = "Fortfahren";
@@ -58,7 +61,7 @@
"Create Virtual Mac" = "Virtuellen Mac erstellen";
"Custom" = "Eigene";
"Debug Logging" = "Debug-Protokollierung";
-"Debug Logging has been enabled. You can turn it off later in Settings." = "Debug-Protokollierung wurde aktiviert. Du kannst sie später in den Einstellungen deaktivieren.";
+"Debug logging has been enabled for the next boot." = "Die Debug-Protokollierung wurde für den nächsten Start aktiviert.";
"Debug Logging takes effect the next time a Virtual Mac starts." = "Die Debug-Protokollierung wird beim nächsten Start eines Virtual Mac aktiviert.";
"Delete" = "Löschen";
"Delete All" = "Alle löschen";
@@ -82,7 +85,12 @@
"Display Resolution" = "Anzeigeauflösung";
"Display Width" = "Anzeigebreite";
"Double-tap to hold or release this modifier" = "Doppeltippen, um diese Sondertaste festzustellen oder zu lösen";
+"Download Apple Pencil Support" = "Apple Pencil-Unterstützung laden";
"Download Failed" = "Download fehlgeschlagen";
+"Download Final Cut Pro Trial" = "Final Cut Pro-Testversion laden";
+"Download Logic Pro Trial" = "Logic Pro-Testversion laden";
+"Download Pixelmator Pro Trial" = "Pixelmator Pro-Testversion laden";
+"Download Xcode" = "Xcode laden";
"Downloading macOS" = "macOS wird geladen";
"Enter six hexadecimal octets separated by colons." = "Geben Sie sechs durch Doppelpunkte getrennte hexadezimale Oktette ein.";
"Ethernet (%@)" = "Ethernet (%@)";
@@ -122,6 +130,7 @@
"Keep Virtual Mac open. Your iPad will remain awake until the download finishes." = "Lassen Sie Virtual Mac geöffnet. Ihr iPad bleibt aktiv, bis der Download abgeschlossen ist.";
"Keyboard" = "Tastatur";
"Landscape iPad" = "iPad im Querformat";
+"Learn More" = "Weitere Infos";
"Library Appearance" = "Darstellung der Mediathek";
"Loading extracted Apple virtualization frameworks…" = "Extrahierte Apple-Frameworks für Virtualisierung werden geladen …";
"MAC Address" = "MAC-Adresse";
@@ -130,6 +139,7 @@
"Mac Trackpad" = "Mac-Trackpad";
"macOS Installed" = "macOS installiert";
"Memory" = "Speicher";
+"Metal BC Support" = "Metal-BC-Unterstützung";
"Microphone Input" = "Mikrofoneingang";
"Minimum: %llu GB. The upper limit is determined by the filesystem." = "Minimum: %llu GB. Die Obergrenze wird vom Dateisystem bestimmt.";
"Move Controls" = "Bedienelemente verschieben";
@@ -145,10 +155,15 @@
"Off" = "Aus";
"OK" = "Ok";
"On" = "Ein";
+"On for Next Boot" = "Beim nächsten Start ein";
"Only about %llu GB is currently available. The disk image is sparse, but installation or later use can fail when storage fills up." = "Derzeit sind nur etwa %llu GB verfügbar. Das Festplattenimage ist dynamisch, aber die Installation oder spätere Verwendung kann fehlschlagen, wenn der Speicher voll ist.";
"Open Control Center and start Screen Recording, then reproduce the problem." = "Öffne das Kontrollzentrum, starte eine Bildschirmaufnahme und reproduziere anschließend das Problem.";
+"OpenGL Acceleration" = "OpenGL-Beschleunigung";
+"OpenGL Acceleration Is Off" = "OpenGL-Beschleunigung ist aus";
+"OpenGL Acceleration requires macOS Sonoma or later." = "OpenGL-Beschleunigung erfordert macOS Sonoma oder neuer.";
"Optional" = "Optional";
"Options" = "Optionen";
+"Out of Video Memory" = "Nicht genügend Grafikspeicher";
"People have dreamed of running macOS on iPad for more than a decade. Today, that dream comes true. Create a Virtual Mac to get started." = "Seit mehr als einem Jahrzehnt träumen Menschen davon, macOS auf dem iPad auszuführen. Heute wird dieser Traum wahr. Erstellen Sie einen virtuellen Mac, um loszulegen.";
"Pixels Per Inch" = "Pixel pro Zoll";
"Pointing Device" = "Zeigegerät";
@@ -220,11 +235,14 @@
"These options affect iPadOS only while Virtual Mac is frontmost and a Virtual Mac is running." = "Diese Optionen wirken sich nur auf iPadOS aus, solange Virtueller Mac im Vordergrund ist und ein virtueller Mac läuft.";
"This restores all Virtual Mac settings to their defaults. Virtual Macs, restore images, and installation files won’t be removed." = "Dadurch werden alle Einstellungen von Virtual Mac auf die Standardwerte zurückgesetzt. Virtual Macs, Wiederherstellungsimages und Installationsdateien werden nicht entfernt.";
"this Virtual Mac" = "dieser Virtual Mac";
+"To enable OpenGL acceleration, shut down this Virtual Mac, then in its options, enable OpenGL Acceleration." = "Fahre diesen Virtual Mac herunter und aktiviere anschließend in seinen Optionen die OpenGL-Beschleunigung.";
"To show the controls, touch and hold the Virtual Mac icon on the Home Screen, then choose Show Virtual Mac Controls." = "Halte zum Einblenden der Steuerelemente das Virtual Mac-Symbol auf dem Home-Bildschirm gedrückt und wähle dann „Virtual Mac-Steuerelemente einblenden“.";
+"To use Apple Pencil pressure and tilt, download pencil-probe in %@ Virtual Mac." = "Um Druck und Neigung des Apple Pencil zu verwenden, laden Sie pencil-probe auf den virtuellen Mac %@ herunter.";
"Top Left" = "Oben links";
"Top Right" = "Oben rechts";
"Touch" = "Touch";
"Touch and Hold to Secondary Click" = "Berühren und halten Sie für einen sekundären Klick";
+"Turn Off Virtual Mac Guest Tools?" = "Virtual Mac-Gastwerkzeuge deaktivieren?";
"Two Finger Tap to Secondary Click" = "Zwei-Finger-Tippen für sekundären Klick";
"Unknown" = "Unbekannt";
"Unsaved changes in macOS may be lost." = "Nicht gesicherte Änderungen in macOS können verloren gehen.";
@@ -245,6 +263,7 @@
"Virtual Mac devices are stored in %@." = "Virtuelle Macs werden in %@ gespeichert.";
"Virtual Mac Display" = "Anzeige des Virtuellen Mac";
"Virtual Mac does not support the Dopamine-roothide environment. Remove the roothide jailbreak from Dopamine-roothide > Settings > Remove Jailbreak, then switch to the official version of Dopamine." = "Virtual Mac unterstützt die Dopamine-roothide-Umgebung nicht. Entferne den roothide-Jailbreak unter Dopamine-roothide > Einstellungen > Jailbreak entfernen und wechsle dann zur offiziellen Version von Dopamine.";
+"Virtual Mac Guest Tools" = "Gastwerkzeuge für Virtual Mac";
"Virtual Mac has no published framebuffer" = "Virtual Mac hat keinen bereitgestellten Framebuffer";
"Virtual Mac running — native PVG framebuffer attached" = "Virtual Mac läuft — nativer PVG-Framebuffer verbunden";
"Virtual Mac running — preparing native PVG display" = "Virtual Mac läuft — native PVG-Anzeige wird vorbereitet";
diff --git a/VirtualMac/resources/Localizations/el.lproj/Localizable.strings b/VirtualMac/resources/Localizations/el.lproj/Localizable.strings
index bba566e..e1e476f 100644
--- a/VirtualMac/resources/Localizations/el.lproj/Localizable.strings
+++ b/VirtualMac/resources/Localizations/el.lproj/Localizable.strings
@@ -2,6 +2,7 @@
"%.0f%% complete" = "Ολοκληρώθηκε το %.0f%%";
"%@ CPU · %@ GB RAM · %llu GB · %@%@" = "%@ CPU · %@ GB RAM · %llu GB · %@%@";
"%@ is not supported" = "Το %@ δεν υποστηρίζεται";
+"%@ is out of video memory. macOS may appear frozen." = "Το %@ δεν διαθέτει άλλη μνήμη γραφικών. Το macOS ενδέχεται να φαίνεται παγωμένο.";
"%@ may encounter performance or graphical issues. For the best experience, use macOS Ventura, macOS Sonoma, or macOS Sequoia.\n\nIf transparency effects cause visual problems, turn on Reduce Transparency in System Settings > Accessibility > Display." = "Το %@ ενδέχεται να παρουσιάσει προβλήματα απόδοσης ή γραφικών. Για την καλύτερη εμπειρία, χρησιμοποιήστε macOS Ventura, macOS Sonoma ή macOS Sequoia.\n\nΑν τα εφέ διαφάνειας προκαλούν προβλήματα προβολής, ενεργοποιήστε τη Μείωση διαφάνειας στις Ρυθμίσεις συστήματος > Προσβασιμότητα > Οθόνη.";
"%@ remaining" = "Απομένουν %@";
"%@\nState: %@\n%@\n\n" = "%@\nΚατάσταση: %@\n%@\n\n";
@@ -15,12 +16,15 @@
"Add Shared Folder" = "Προσθήκη κοινόχρηστου φακέλου";
"Advanced" = "Για προχωρημένους";
"Allowed: %llu–%llu%@" = "Επιτρέπεται: %llu–%llu%@";
+"Always On" = "Πάντα ενεργό";
"Another usbmuxd service took control of the virtual DFU device before it entered RestoreOS. Uninstall usbmuxd from Sileo and try again." = "Μια άλλη υπηρεσία usbmuxd ανέλαβε τον έλεγχο της εικονικής συσκευής DFU προτού εισέλθει στο RestoreOS. Απεγκαταστήστε το usbmuxd από το Sileo και δοκιμάστε ξανά.";
"Another Virtual Mac Is Running" = "Εκτελείται άλλο Εικονικό Mac";
+"Apple Pencil Pressure and Tilt" = "Πίεση και κλίση Apple Pencil";
"Audio and Acceleration" = "Ήχος και επιτάχυνση";
"Audio Output" = "Έξοδος ήχου";
"Available macOS Releases" = "Διαθέσιμες εκδόσεις macOS";
"Available macOS Versions" = "Διαθέσιμες εκδόσεις macOS";
+"Because OpenGL acceleration requires Virtual Mac guest tools, turning off Virtual Mac guest tools will also turn off OpenGL acceleration. Apps such as Final Cut Pro mostly use Metal, but they check for OpenGL capabilities in order to launch." = "Επειδή η επιτάχυνση OpenGL απαιτεί τα εργαλεία επισκέπτη Virtual Mac, η απενεργοποίησή τους θα απενεργοποιήσει και την επιτάχυνση OpenGL. Εφαρμογές όπως το Final Cut Pro χρησιμοποιούν κυρίως Metal, αλλά ελέγχουν τις δυνατότητες OpenGL για να ανοίξουν.";
"Boot and Network" = "Εκκίνηση και δίκτυο";
"Bottom Left" = "Κάτω αριστερά";
"Bottom Right" = "Κάτω δεξιά";
@@ -42,7 +46,6 @@
"Choose whether Virtual Mac opens its library or starts a Virtual Mac." = "Επιλέξτε αν το Εικονικό Mac θα ανοίγει τη βιβλιοθήκη του ή θα εκκινεί ένα Εικονικό Mac.";
"Compatibility" = "Συμβατότητα";
"Complete Virtual Mac devices and restore images outside Virtual Mac are not removed." = "Τα ολοκληρωμένα Εικονικά Mac και τα είδωλα επαναφοράς εκτός της εφαρμογής δεν αφαιρούνται.";
-"Configuration changes take effect after the Virtual Mac is shut down and started again." = "Οι αλλαγές διαμόρφωσης εφαρμόζονται μετά τον τερματισμό και την επανεκκίνηση του Virtual Mac.";
"Configuration failed: %@" = "Η διαμόρφωση απέτυχε: %@";
"Configure %@" = "Διαμόρφωση %@";
"Continue" = "Συνέχεια";
@@ -58,7 +61,7 @@
"Create Virtual Mac" = "Δημιουργία Εικονικού Mac";
"Custom" = "Προσαρμοσμένο";
"Debug Logging" = "Καταγραφή εντοπισμού σφαλμάτων";
-"Debug Logging has been enabled. You can turn it off later in Settings." = "Η καταγραφή εντοπισμού σφαλμάτων ενεργοποιήθηκε. Μπορείτε να την απενεργοποιήσετε αργότερα στις Ρυθμίσεις.";
+"Debug logging has been enabled for the next boot." = "Η καταγραφή εντοπισμού σφαλμάτων ενεργοποιήθηκε για την επόμενη εκκίνηση.";
"Debug Logging takes effect the next time a Virtual Mac starts." = "Η καταγραφή εντοπισμού σφαλμάτων θα ενεργοποιηθεί την επόμενη φορά που θα ξεκινήσει ένα Virtual Mac.";
"Delete" = "Διαγραφή";
"Delete All" = "Διαγραφή όλων";
@@ -82,7 +85,12 @@
"Display Resolution" = "Ανάλυση οθόνης";
"Display Width" = "Πλάτος οθόνης";
"Double-tap to hold or release this modifier" = "Πατήστε δύο φορές για διατήρηση ή αποδέσμευση αυτού του πλήκτρου τροποποίησης";
+"Download Apple Pencil Support" = "Λήψη υποστήριξης Apple Pencil";
"Download Failed" = "Η λήψη απέτυχε";
+"Download Final Cut Pro Trial" = "Λήψη δοκιμαστικής έκδοσης Final Cut Pro";
+"Download Logic Pro Trial" = "Λήψη δοκιμαστικής έκδοσης Logic Pro";
+"Download Pixelmator Pro Trial" = "Λήψη δοκιμαστικής έκδοσης Pixelmator Pro";
+"Download Xcode" = "Λήψη Xcode";
"Downloading macOS" = "Λήψη του macOS";
"Enter six hexadecimal octets separated by colons." = "Εισαγάγετε έξι δεκαεξαδικές οκτάδες χωρισμένες με άνω και κάτω τελεία.";
"Ethernet (%@)" = "Ethernet (%@)";
@@ -122,6 +130,7 @@
"Keep Virtual Mac open. Your iPad will remain awake until the download finishes." = "Διατηρήστε ανοιχτό το Εικονικό Mac. Το iPad σας θα παραμείνει ενεργό μέχρι να ολοκληρωθεί η λήψη.";
"Keyboard" = "Πληκτρολόγιο";
"Landscape iPad" = "iPad σε οριζόντιο προσανατολισμό";
+"Learn More" = "Μάθετε περισσότερα";
"Library Appearance" = "Εμφάνιση βιβλιοθήκης";
"Loading extracted Apple virtualization frameworks…" = "Φόρτωση εξαχθέντων framework εικονικοποίησης της Apple…";
"MAC Address" = "Διεύθυνση MAC";
@@ -130,6 +139,7 @@
"Mac Trackpad" = "Επιφάνεια αφής Mac";
"macOS Installed" = "Το macOS εγκαταστάθηκε";
"Memory" = "Μνήμη";
+"Metal BC Support" = "Υποστήριξη Metal BC";
"Microphone Input" = "Είσοδος μικροφώνου";
"Minimum: %llu GB. The upper limit is determined by the filesystem." = "Ελάχιστο: %llu GB. Το ανώτατο όριο καθορίζεται από το σύστημα αρχείων.";
"Move Controls" = "Μετακίνηση χειριστηρίων";
@@ -145,10 +155,15 @@
"Off" = "Ανενεργό";
"OK" = "ΟΚ";
"On" = "Ενεργό";
+"On for Next Boot" = "Ενεργό στην επόμενη εκκίνηση";
"Only about %llu GB is currently available. The disk image is sparse, but installation or later use can fail when storage fills up." = "Διατίθενται μόνο περίπου %llu GB. Το είδωλο δίσκου είναι δυναμικό, αλλά η εγκατάσταση ή η μετέπειτα χρήση μπορεί να αποτύχει αν γεμίσει ο χώρος αποθήκευσης.";
"Open Control Center and start Screen Recording, then reproduce the problem." = "Ανοίξτε το Κέντρο ελέγχου, ξεκινήστε εγγραφή οθόνης και, στη συνέχεια, αναπαραγάγετε το πρόβλημα.";
+"OpenGL Acceleration" = "Επιτάχυνση OpenGL";
+"OpenGL Acceleration Is Off" = "Η επιτάχυνση OpenGL είναι ανενεργή";
+"OpenGL Acceleration requires macOS Sonoma or later." = "Η επιτάχυνση OpenGL απαιτεί macOS Sonoma ή νεότερο.";
"Optional" = "Προαιρετικά";
"Options" = "Επιλογές";
+"Out of Video Memory" = "Η μνήμη γραφικών εξαντλήθηκε";
"People have dreamed of running macOS on iPad for more than a decade. Today, that dream comes true. Create a Virtual Mac to get started." = "Για περισσότερο από μια δεκαετία, οι άνθρωποι ονειρεύονται να εκτελούν το macOS σε iPad. Σήμερα, αυτό το όνειρο γίνεται πραγματικότητα. Δημιουργήστε ένα εικονικό Mac για να ξεκινήσετε.";
"Pixels Per Inch" = "Pixel ανά ίντσα";
"Pointing Device" = "Συσκευή κατάδειξης";
@@ -220,11 +235,14 @@
"These options affect iPadOS only while Virtual Mac is frontmost and a Virtual Mac is running." = "Αυτές οι επιλογές επηρεάζουν το iPadOS μόνο όταν το Εικονικό Mac βρίσκεται στο προσκήνιο και εκτελείται ένα εικονικό Mac.";
"This restores all Virtual Mac settings to their defaults. Virtual Macs, restore images, and installation files won’t be removed." = "Αυτό επαναφέρει όλες τις ρυθμίσεις του Εικονικού Mac στις προεπιλογές τους. Τα Εικονικά Mac, τα είδωλα επαναφοράς και τα αρχεία εγκατάστασης δεν θα αφαιρεθούν.";
"this Virtual Mac" = "αυτό το Εικονικό Mac";
+"To enable OpenGL acceleration, shut down this Virtual Mac, then in its options, enable OpenGL Acceleration." = "Για να ενεργοποιήσετε την επιτάχυνση OpenGL, τερματίστε αυτό το Virtual Mac και ενεργοποιήστε την στις επιλογές του.";
"To show the controls, touch and hold the Virtual Mac icon on the Home Screen, then choose Show Virtual Mac Controls." = "Για να εμφανίσετε τα χειριστήρια, αγγίξτε παρατεταμένα το εικονίδιο του Virtual Mac στην οθόνη Αφετηρίας και επιλέξτε «Εμφάνιση χειριστηρίων Virtual Mac».";
+"To use Apple Pencil pressure and tilt, download pencil-probe in %@ Virtual Mac." = "Για να χρησιμοποιήσετε την πίεση και την κλίση του Apple Pencil, κατεβάστε το pencil-probe στο Εικονικό Mac %@.";
"Top Left" = "Πάνω αριστερά";
"Top Right" = "Πάνω δεξιά";
"Touch" = "Αφή";
"Touch and Hold to Secondary Click" = "Αγγίξτε παρατεταμένα για δευτερεύον κλικ";
+"Turn Off Virtual Mac Guest Tools?" = "Απενεργοποίηση εργαλείων επισκέπτη Virtual Mac;";
"Two Finger Tap to Secondary Click" = "Πατήστε με δύο δάχτυλα για δευτερεύον κλικ";
"Unknown" = "Άγνωστο";
"Unsaved changes in macOS may be lost." = "Οι μη αποθηκευμένες αλλαγές στο macOS μπορεί να χαθούν.";
@@ -245,6 +263,7 @@
"Virtual Mac devices are stored in %@." = "Τα Εικονικά Mac αποθηκεύονται στο %@.";
"Virtual Mac Display" = "Οθόνη Εικονικού Mac";
"Virtual Mac does not support the Dopamine-roothide environment. Remove the roothide jailbreak from Dopamine-roothide > Settings > Remove Jailbreak, then switch to the official version of Dopamine." = "Το Virtual Mac δεν υποστηρίζει το περιβάλλον Dopamine-roothide. Αφαιρέστε το jailbreak roothide από Dopamine-roothide > Ρυθμίσεις > Αφαίρεση Jailbreak και μετά μεταβείτε στην επίσημη έκδοση του Dopamine.";
+"Virtual Mac Guest Tools" = "Εργαλεία επισκέπτη Εικονικού Mac";
"Virtual Mac has no published framebuffer" = "Το Εικονικό Mac δεν έχει δημοσιευμένο framebuffer";
"Virtual Mac running — native PVG framebuffer attached" = "Το Εικονικό Mac εκτελείται — συνδέθηκε εγγενές framebuffer PVG";
"Virtual Mac running — preparing native PVG display" = "Το Εικονικό Mac εκτελείται — προετοιμασία εγγενούς οθόνης PVG";
diff --git a/VirtualMac/resources/Localizations/en.lproj/Localizable.strings b/VirtualMac/resources/Localizations/en.lproj/Localizable.strings
index 6091a77..db2f4f5 100644
--- a/VirtualMac/resources/Localizations/en.lproj/Localizable.strings
+++ b/VirtualMac/resources/Localizations/en.lproj/Localizable.strings
@@ -2,6 +2,7 @@
"%.0f%% complete" = "%.0f%% complete";
"%@ CPU · %@ GB RAM · %llu GB · %@%@" = "%@ CPU · %@ GB RAM · %llu GB · %@%@";
"%@ is not supported" = "%@ is not supported";
+"%@ is out of video memory. macOS may appear frozen." = "%@ is out of video memory. macOS may appear frozen.";
"%@ may encounter performance or graphical issues. For the best experience, use macOS Ventura, macOS Sonoma, or macOS Sequoia.\n\nIf transparency effects cause visual problems, turn on Reduce Transparency in System Settings > Accessibility > Display." = "%@ may encounter performance or graphical issues. For the best experience, use macOS Ventura, macOS Sonoma, or macOS Sequoia.\n\nIf transparency effects cause visual problems, turn on Reduce Transparency in System Settings > Accessibility > Display.";
"%@ remaining" = "%@ remaining";
"%@\nState: %@\n%@\n\n" = "%@\nState: %@\n%@\n\n";
@@ -15,12 +16,15 @@
"Add Shared Folder" = "Add Shared Folder";
"Advanced" = "Advanced";
"Allowed: %llu–%llu%@" = "Allowed: %llu–%llu%@";
+"Always On" = "Always On";
"Another usbmuxd service took control of the virtual DFU device before it entered RestoreOS. Uninstall usbmuxd from Sileo and try again." = "Another usbmuxd service took control of the virtual DFU device before it entered RestoreOS. Uninstall usbmuxd from Sileo and try again.";
"Another Virtual Mac Is Running" = "Another Virtual Mac Is Running";
+"Apple Pencil Pressure and Tilt" = "Apple Pencil Pressure and Tilt";
"Audio and Acceleration" = "Audio and Acceleration";
"Audio Output" = "Audio Output";
"Available macOS Releases" = "Available macOS Releases";
"Available macOS Versions" = "Available macOS Versions";
+"Because OpenGL acceleration requires Virtual Mac guest tools, turning off Virtual Mac guest tools will also turn off OpenGL acceleration. Apps such as Final Cut Pro mostly use Metal, but they check for OpenGL capabilities in order to launch." = "Because OpenGL acceleration requires Virtual Mac guest tools, turning off Virtual Mac guest tools will also turn off OpenGL acceleration. Apps such as Final Cut Pro mostly use Metal, but they check for OpenGL capabilities in order to launch.";
"Boot and Network" = "Boot and Network";
"Bottom Left" = "Bottom Left";
"Bottom Right" = "Bottom Right";
@@ -42,7 +46,6 @@
"Choose whether Virtual Mac opens its library or starts a Virtual Mac." = "Choose whether Virtual Mac opens its library or starts a Virtual Mac.";
"Compatibility" = "Compatibility";
"Complete Virtual Mac devices and restore images outside Virtual Mac are not removed." = "Complete Virtual Mac devices and restore images outside Virtual Mac are not removed.";
-"Configuration changes take effect after the Virtual Mac is shut down and started again." = "Configuration changes take effect after the Virtual Mac is shut down and started again.";
"Configuration failed: %@" = "Configuration failed: %@";
"Configure %@" = "Configure %@";
"Continue" = "Continue";
@@ -58,7 +61,7 @@
"Create Virtual Mac" = "Create Virtual Mac";
"Custom" = "Custom";
"Debug Logging" = "Debug Logging";
-"Debug Logging has been enabled. You can turn it off later in Settings." = "Debug Logging has been enabled. You can turn it off later in Settings.";
+"Debug logging has been enabled for the next boot." = "Debug logging has been enabled for the next boot.";
"Debug Logging takes effect the next time a Virtual Mac starts." = "Debug Logging takes effect the next time a Virtual Mac starts.";
"Delete" = "Delete";
"Delete All" = "Delete All";
@@ -82,7 +85,12 @@
"Display Resolution" = "Display Resolution";
"Display Width" = "Display Width";
"Double-tap to hold or release this modifier" = "Double-tap to hold or release this modifier";
+"Download Apple Pencil Support" = "Download Apple Pencil Support";
"Download Failed" = "Download Failed";
+"Download Final Cut Pro Trial" = "Download Final Cut Pro Trial";
+"Download Logic Pro Trial" = "Download Logic Pro Trial";
+"Download Pixelmator Pro Trial" = "Download Pixelmator Pro Trial";
+"Download Xcode" = "Download Xcode";
"Downloading macOS" = "Downloading macOS";
"Enter six hexadecimal octets separated by colons." = "Enter six hexadecimal octets separated by colons.";
"Ethernet (%@)" = "Ethernet (%@)";
@@ -122,6 +130,7 @@
"Keep Virtual Mac open. Your iPad will remain awake until the download finishes." = "Keep Virtual Mac open. Your iPad will remain awake until the download finishes.";
"Keyboard" = "Keyboard";
"Landscape iPad" = "Landscape iPad";
+"Learn More" = "Learn More";
"Library Appearance" = "Library Appearance";
"Loading extracted Apple virtualization frameworks…" = "Loading extracted Apple virtualization frameworks…";
"MAC Address" = "MAC Address";
@@ -130,6 +139,7 @@
"Mac Trackpad" = "Mac Trackpad";
"macOS Installed" = "macOS Installed";
"Memory" = "Memory";
+"Metal BC Support" = "Metal BC Support";
"Microphone Input" = "Microphone Input";
"Minimum: %llu GB. The upper limit is determined by the filesystem." = "Minimum: %llu GB. The upper limit is determined by the filesystem.";
"Move Controls" = "Move Controls";
@@ -145,10 +155,15 @@
"Off" = "Off";
"OK" = "OK";
"On" = "On";
+"On for Next Boot" = "On for Next Boot";
"Only about %llu GB is currently available. The disk image is sparse, but installation or later use can fail when storage fills up." = "Only about %llu GB is currently available. The disk image is sparse, but installation or later use can fail when storage fills up.";
"Open Control Center and start Screen Recording, then reproduce the problem." = "Open Control Center and start Screen Recording, then reproduce the problem.";
+"OpenGL Acceleration" = "OpenGL Acceleration";
+"OpenGL Acceleration Is Off" = "OpenGL Acceleration Is Off";
+"OpenGL Acceleration requires macOS Sonoma or later." = "OpenGL Acceleration requires macOS Sonoma or later.";
"Optional" = "Optional";
"Options" = "Options";
+"Out of Video Memory" = "Out of Video Memory";
"People have dreamed of running macOS on iPad for more than a decade. Today, that dream comes true. Create a Virtual Mac to get started." = "People have dreamed of running macOS on iPad for more than a decade. Today, that dream comes true. Create a Virtual Mac to get started.";
"Pixels Per Inch" = "Pixels Per Inch";
"Pointing Device" = "Pointing Device";
@@ -220,11 +235,14 @@
"These options affect iPadOS only while Virtual Mac is frontmost and a Virtual Mac is running." = "These options affect iPadOS only while Virtual Mac is frontmost and a Virtual Mac is running.";
"This restores all Virtual Mac settings to their defaults. Virtual Macs, restore images, and installation files won’t be removed." = "This restores all Virtual Mac settings to their defaults. Virtual Macs, restore images, and installation files won’t be removed.";
"this Virtual Mac" = "this Virtual Mac";
+"To enable OpenGL acceleration, shut down this Virtual Mac, then in its options, enable OpenGL Acceleration." = "To enable OpenGL acceleration, shut down this Virtual Mac, then in its options, enable OpenGL Acceleration.";
"To show the controls, touch and hold the Virtual Mac icon on the Home Screen, then choose Show Virtual Mac Controls." = "To show the controls, touch and hold the Virtual Mac icon on the Home Screen, then choose Show Virtual Mac Controls.";
+"To use Apple Pencil pressure and tilt, download pencil-probe in %@ Virtual Mac." = "To use Apple Pencil pressure and tilt, download pencil-probe in %@ Virtual Mac.";
"Top Left" = "Top Left";
"Top Right" = "Top Right";
"Touch" = "Touch";
"Touch and Hold to Secondary Click" = "Touch and Hold to Secondary Click";
+"Turn Off Virtual Mac Guest Tools?" = "Turn Off Virtual Mac Guest Tools?";
"Two Finger Tap to Secondary Click" = "Two Finger Tap to Secondary Click";
"Unknown" = "Unknown";
"Unsaved changes in macOS may be lost." = "Unsaved changes in macOS may be lost.";
@@ -245,6 +263,7 @@
"Virtual Mac devices are stored in %@." = "Virtual Mac devices are stored in %@.";
"Virtual Mac Display" = "Virtual Mac Display";
"Virtual Mac does not support the Dopamine-roothide environment. Remove the roothide jailbreak from Dopamine-roothide > Settings > Remove Jailbreak, then switch to the official version of Dopamine." = "Virtual Mac does not support the Dopamine-roothide environment. Remove the roothide jailbreak from Dopamine-roothide > Settings > Remove Jailbreak, then switch to the official version of Dopamine.";
+"Virtual Mac Guest Tools" = "Virtual Mac Guest Tools";
"Virtual Mac has no published framebuffer" = "Virtual Mac has no published framebuffer";
"Virtual Mac running — native PVG framebuffer attached" = "Virtual Mac running — native PVG framebuffer attached";
"Virtual Mac running — preparing native PVG display" = "Virtual Mac running — preparing native PVG display";
diff --git a/VirtualMac/resources/Localizations/es.lproj/Localizable.strings b/VirtualMac/resources/Localizations/es.lproj/Localizable.strings
index 03a0f71..a2fc762 100644
--- a/VirtualMac/resources/Localizations/es.lproj/Localizable.strings
+++ b/VirtualMac/resources/Localizations/es.lproj/Localizable.strings
@@ -2,6 +2,7 @@
"%.0f%% complete" = "%.0f %% completado";
"%@ CPU · %@ GB RAM · %llu GB · %@%@" = "%@ CPU · %@ GB de RAM · %llu GB · %@%@";
"%@ is not supported" = "%@ no es compatible";
+"%@ is out of video memory. macOS may appear frozen." = "%@ se ha quedado sin memoria de vídeo. Puede parecer que macOS está bloqueado.";
"%@ may encounter performance or graphical issues. For the best experience, use macOS Ventura, macOS Sonoma, or macOS Sequoia.\n\nIf transparency effects cause visual problems, turn on Reduce Transparency in System Settings > Accessibility > Display." = "%@ puede presentar problemas de rendimiento o gráficos. Para disfrutar de la mejor experiencia, usa macOS Ventura, macOS Sonoma o macOS Sequoia.\n\nSi los efectos de transparencia causan problemas visuales, activa Reducir transparencia en Ajustes del Sistema > Accesibilidad > Pantalla.";
"%@ remaining" = "Quedan %@";
"%@\nState: %@\n%@\n\n" = "%@\nEstado: %@\n%@\n\n";
@@ -15,12 +16,15 @@
"Add Shared Folder" = "Añadir carpeta compartida";
"Advanced" = "Avanzado";
"Allowed: %llu–%llu%@" = "Permitido: %llu–%llu%@";
+"Always On" = "Siempre activado";
"Another usbmuxd service took control of the virtual DFU device before it entered RestoreOS. Uninstall usbmuxd from Sileo and try again." = "Otro servicio usbmuxd tomó el control del dispositivo DFU virtual antes de que entrara en RestoreOS. Desinstala usbmuxd desde Sileo e inténtalo de nuevo.";
"Another Virtual Mac Is Running" = "Hay otro Virtual Mac en ejecución";
+"Apple Pencil Pressure and Tilt" = "Presión e inclinación del Apple Pencil";
"Audio and Acceleration" = "Audio y aceleración";
"Audio Output" = "Salida de audio";
"Available macOS Releases" = "Versiones disponibles de macOS";
"Available macOS Versions" = "Versiones disponibles de macOS";
+"Because OpenGL acceleration requires Virtual Mac guest tools, turning off Virtual Mac guest tools will also turn off OpenGL acceleration. Apps such as Final Cut Pro mostly use Metal, but they check for OpenGL capabilities in order to launch." = "Como la aceleración OpenGL requiere las herramientas de invitado de Virtual Mac, al desactivarlas también se desactivará OpenGL. Apps como Final Cut Pro usan principalmente Metal, pero comprueban las funciones de OpenGL para poder abrirse.";
"Boot and Network" = "Arranque y red";
"Bottom Left" = "Abajo a la izquierda";
"Bottom Right" = "Abajo a la derecha";
@@ -42,7 +46,6 @@
"Choose whether Virtual Mac opens its library or starts a Virtual Mac." = "Elige si Virtual Mac abre la biblioteca o inicia un Virtual Mac.";
"Compatibility" = "Compatibilidad";
"Complete Virtual Mac devices and restore images outside Virtual Mac are not removed." = "No se eliminarán los Virtual Mac completos ni las imágenes de restauración que estén fuera de Virtual Mac.";
-"Configuration changes take effect after the Virtual Mac is shut down and started again." = "Los cambios de configuración se aplican después de apagar y volver a iniciar Virtual Mac.";
"Configuration failed: %@" = "Error de configuración: %@";
"Configure %@" = "Configurar %@";
"Continue" = "Continuar";
@@ -58,7 +61,7 @@
"Create Virtual Mac" = "Crear un Mac virtual";
"Custom" = "Personalizado";
"Debug Logging" = "Registro de depuración";
-"Debug Logging has been enabled. You can turn it off later in Settings." = "El registro de depuración se ha activado. Puedes desactivarlo más tarde en Ajustes.";
+"Debug logging has been enabled for the next boot." = "El registro de depuración se ha activado para el próximo arranque.";
"Debug Logging takes effect the next time a Virtual Mac starts." = "El registro de depuración se activa la próxima vez que se inicia un Virtual Mac.";
"Delete" = "Eliminar";
"Delete All" = "Eliminar todo";
@@ -82,7 +85,12 @@
"Display Resolution" = "Resolución de pantalla";
"Display Width" = "Anchura de pantalla";
"Double-tap to hold or release this modifier" = "Toca dos veces para bloquear o soltar esta tecla modificadora";
+"Download Apple Pencil Support" = "Descargar compatibilidad con Apple Pencil";
"Download Failed" = "Error de descarga";
+"Download Final Cut Pro Trial" = "Descargar la prueba de Final Cut Pro";
+"Download Logic Pro Trial" = "Descargar la prueba de Logic Pro";
+"Download Pixelmator Pro Trial" = "Descargar la prueba de Pixelmator Pro";
+"Download Xcode" = "Descargar Xcode";
"Downloading macOS" = "Descargando macOS";
"Enter six hexadecimal octets separated by colons." = "Introduce seis octetos hexadecimales separados por dos puntos.";
"Ethernet (%@)" = "Ethernet (%@)";
@@ -122,6 +130,7 @@
"Keep Virtual Mac open. Your iPad will remain awake until the download finishes." = "Mantén Virtual Mac abierto. Tu iPad permanecerá activo hasta que termine la descarga.";
"Keyboard" = "Teclado";
"Landscape iPad" = "iPad en horizontal";
+"Learn More" = "Más información";
"Library Appearance" = "Aspecto de la biblioteca";
"Loading extracted Apple virtualization frameworks…" = "Cargando los frameworks de virtualización de Apple extraídos…";
"MAC Address" = "Dirección MAC";
@@ -130,6 +139,7 @@
"Mac Trackpad" = "Trackpad Mac";
"macOS Installed" = "macOS instalado";
"Memory" = "Memoria";
+"Metal BC Support" = "Compatibilidad con Metal BC";
"Microphone Input" = "Entrada de micrófono";
"Minimum: %llu GB. The upper limit is determined by the filesystem." = "Mínimo: %llu GB. El límite superior lo determina el sistema de archivos.";
"Move Controls" = "Mover controles";
@@ -145,10 +155,15 @@
"Off" = "Desactivado";
"OK" = "Aceptar";
"On" = "Activado";
+"On for Next Boot" = "Activado para el próximo arranque";
"Only about %llu GB is currently available. The disk image is sparse, but installation or later use can fail when storage fills up." = "Solo hay unos %llu GB disponibles. La imagen de disco es dinámica, pero la instalación o el uso posterior pueden fallar si se agota el almacenamiento.";
"Open Control Center and start Screen Recording, then reproduce the problem." = "Abre el Centro de control, inicia una grabación de pantalla y reproduce el problema.";
+"OpenGL Acceleration" = "Aceleración OpenGL";
+"OpenGL Acceleration Is Off" = "La aceleración OpenGL está desactivada";
+"OpenGL Acceleration requires macOS Sonoma or later." = "La aceleración OpenGL requiere macOS Sonoma o posterior.";
"Optional" = "Opcional";
"Options" = "Opciones";
+"Out of Video Memory" = "Memoria de vídeo agotada";
"People have dreamed of running macOS on iPad for more than a decade. Today, that dream comes true. Create a Virtual Mac to get started." = "Durante más de una década, la gente ha soñado con ejecutar macOS en el iPad. Hoy ese sueño se hace realidad. Crea un Mac virtual para empezar.";
"Pixels Per Inch" = "Píxeles por pulgada";
"Pointing Device" = "Dispositivo señalador";
@@ -220,11 +235,14 @@
"These options affect iPadOS only while Virtual Mac is frontmost and a Virtual Mac is running." = "Estas opciones solo afectan a iPadOS mientras Mac virtual está en primer plano y hay un Mac virtual en ejecución.";
"This restores all Virtual Mac settings to their defaults. Virtual Macs, restore images, and installation files won’t be removed." = "Esto restablece todos los ajustes de Virtual Mac a sus valores predeterminados. No se eliminarán los Virtual Mac, las imágenes de restauración ni los archivos de instalación.";
"this Virtual Mac" = "este Virtual Mac";
+"To enable OpenGL acceleration, shut down this Virtual Mac, then in its options, enable OpenGL Acceleration." = "Para activar la aceleración OpenGL, apaga este Virtual Mac y actívala en sus opciones.";
"To show the controls, touch and hold the Virtual Mac icon on the Home Screen, then choose Show Virtual Mac Controls." = "Para mostrar los controles, mantén pulsado el icono de Virtual Mac en la pantalla de inicio y elige “Mostrar controles de Virtual Mac”.";
+"To use Apple Pencil pressure and tilt, download pencil-probe in %@ Virtual Mac." = "Para usar la presión y la inclinación del Apple Pencil, descarga pencil-probe en el Mac Virtual %@.";
"Top Left" = "Arriba a la izquierda";
"Top Right" = "Arriba a la derecha";
"Touch" = "Tacto";
"Touch and Hold to Secondary Click" = "Toque y mantenga presionado para hacer un clic secundario";
+"Turn Off Virtual Mac Guest Tools?" = "¿Desactivar las herramientas de invitado de Virtual Mac?";
"Two Finger Tap to Secondary Click" = "Toque con dos dedos para hacer clic secundario";
"Unknown" = "Desconocido";
"Unsaved changes in macOS may be lost." = "Podrían perderse los cambios de macOS que no se hayan guardado.";
@@ -245,6 +263,7 @@
"Virtual Mac devices are stored in %@." = "Los Mac virtuales se guardan en %@.";
"Virtual Mac Display" = "Pantalla del Mac virtual";
"Virtual Mac does not support the Dopamine-roothide environment. Remove the roothide jailbreak from Dopamine-roothide > Settings > Remove Jailbreak, then switch to the official version of Dopamine." = "Virtual Mac no es compatible con el entorno Dopamine-roothide. Elimina el jailbreak roothide en Dopamine-roothide > Ajustes > Eliminar jailbreak y cambia a la versión oficial de Dopamine.";
+"Virtual Mac Guest Tools" = "Herramientas de invitado para Mac Virtual";
"Virtual Mac has no published framebuffer" = "Virtual Mac no ha publicado ningún framebuffer";
"Virtual Mac running — native PVG framebuffer attached" = "Virtual Mac en ejecución — framebuffer PVG nativo conectado";
"Virtual Mac running — preparing native PVG display" = "Virtual Mac en ejecución — preparando pantalla PVG nativa";
diff --git a/VirtualMac/resources/Localizations/es_419.lproj/Localizable.strings b/VirtualMac/resources/Localizations/es_419.lproj/Localizable.strings
index 3b0bb48..3b5f3c2 100644
--- a/VirtualMac/resources/Localizations/es_419.lproj/Localizable.strings
+++ b/VirtualMac/resources/Localizations/es_419.lproj/Localizable.strings
@@ -2,6 +2,7 @@
"%.0f%% complete" = "%.0f %% completado";
"%@ CPU · %@ GB RAM · %llu GB · %@%@" = "%@ CPU · %@ GB de RAM · %llu GB · %@%@";
"%@ is not supported" = "%@ no es compatible";
+"%@ is out of video memory. macOS may appear frozen." = "%@ se quedó sin memoria de video. Es posible que macOS parezca bloqueado.";
"%@ may encounter performance or graphical issues. For the best experience, use macOS Ventura, macOS Sonoma, or macOS Sequoia.\n\nIf transparency effects cause visual problems, turn on Reduce Transparency in System Settings > Accessibility > Display." = "%@ puede presentar problemas de rendimiento o gráficos. Para obtener la mejor experiencia, usa macOS Ventura, macOS Sonoma o macOS Sequoia.\n\nSi los efectos de transparencia causan problemas visuales, activa Reducir transparencia en Configuración del Sistema > Accesibilidad > Pantalla.";
"%@ remaining" = "Quedan %@";
"%@\nState: %@\n%@\n\n" = "%@\nEstado: %@\n%@\n\n";
@@ -15,12 +16,15 @@
"Add Shared Folder" = "Añadir carpeta compartida";
"Advanced" = "Avanzado";
"Allowed: %llu–%llu%@" = "Permitido: %llu–%llu%@";
+"Always On" = "Siempre activado";
"Another usbmuxd service took control of the virtual DFU device before it entered RestoreOS. Uninstall usbmuxd from Sileo and try again." = "Otro servicio usbmuxd tomó el control del dispositivo DFU virtual antes de que entrara en RestoreOS. Desinstala usbmuxd desde Sileo e inténtalo de nuevo.";
"Another Virtual Mac Is Running" = "Hay otro Virtual Mac en ejecución";
+"Apple Pencil Pressure and Tilt" = "Presión e inclinación del Apple Pencil";
"Audio and Acceleration" = "Audio y aceleración";
"Audio Output" = "Salida de audio";
"Available macOS Releases" = "Versiones disponibles de macOS";
"Available macOS Versions" = "Versiones disponibles de macOS";
+"Because OpenGL acceleration requires Virtual Mac guest tools, turning off Virtual Mac guest tools will also turn off OpenGL acceleration. Apps such as Final Cut Pro mostly use Metal, but they check for OpenGL capabilities in order to launch." = "Como la aceleración OpenGL necesita las herramientas de invitado de Virtual Mac, al desactivarlas también se desactivará OpenGL. Apps como Final Cut Pro usan principalmente Metal, pero revisan las funciones de OpenGL para poder abrirse.";
"Boot and Network" = "Arranque y red";
"Bottom Left" = "Abajo a la izquierda";
"Bottom Right" = "Abajo a la derecha";
@@ -42,7 +46,6 @@
"Choose whether Virtual Mac opens its library or starts a Virtual Mac." = "Elige si Virtual Mac abre la biblioteca o inicia un Virtual Mac.";
"Compatibility" = "Compatibilidad";
"Complete Virtual Mac devices and restore images outside Virtual Mac are not removed." = "No se eliminarán los Virtual Mac completos ni las imágenes de restauración que estén fuera de Virtual Mac.";
-"Configuration changes take effect after the Virtual Mac is shut down and started again." = "Los cambios de configuración se aplican después de apagar y volver a iniciar Virtual Mac.";
"Configuration failed: %@" = "Error de configuración: %@";
"Configure %@" = "Configurar %@";
"Continue" = "Continuar";
@@ -58,7 +61,7 @@
"Create Virtual Mac" = "Crear un Mac virtual";
"Custom" = "Personalizado";
"Debug Logging" = "Registro de depuración";
-"Debug Logging has been enabled. You can turn it off later in Settings." = "El registro de depuración se activó. Puedes desactivarlo más tarde en Configuración.";
+"Debug logging has been enabled for the next boot." = "El registro de depuración se activó para el próximo arranque.";
"Debug Logging takes effect the next time a Virtual Mac starts." = "El registro de depuración se activa la próxima vez que se inicia un Virtual Mac.";
"Delete" = "Eliminar";
"Delete All" = "Eliminar todo";
@@ -82,7 +85,12 @@
"Display Resolution" = "Resolución de pantalla";
"Display Width" = "Anchura de pantalla";
"Double-tap to hold or release this modifier" = "Toca dos veces para bloquear o soltar esta tecla modificadora";
+"Download Apple Pencil Support" = "Descargar soporte para Apple Pencil";
"Download Failed" = "Falló la descarga";
+"Download Final Cut Pro Trial" = "Descargar la versión de prueba de Final Cut Pro";
+"Download Logic Pro Trial" = "Descargar la versión de prueba de Logic Pro";
+"Download Pixelmator Pro Trial" = "Descargar la versión de prueba de Pixelmator Pro";
+"Download Xcode" = "Descargar Xcode";
"Downloading macOS" = "Descargando macOS";
"Enter six hexadecimal octets separated by colons." = "Introduce seis octetos hexadecimales separados por dos puntos.";
"Ethernet (%@)" = "Ethernet (%@)";
@@ -122,6 +130,7 @@
"Keep Virtual Mac open. Your iPad will remain awake until the download finishes." = "Mantén Virtual Mac abierto. Tu iPad permanecerá activo hasta que termine la descarga.";
"Keyboard" = "Teclado";
"Landscape iPad" = "iPad horizontal";
+"Learn More" = "Más información";
"Library Appearance" = "Aspecto de la biblioteca";
"Loading extracted Apple virtualization frameworks…" = "Cargando los frameworks de virtualización de Apple extraídos…";
"MAC Address" = "Dirección MAC";
@@ -130,6 +139,7 @@
"Mac Trackpad" = "Trackpad Mac";
"macOS Installed" = "macOS instalado";
"Memory" = "Memoria";
+"Metal BC Support" = "Compatibilidad con Metal BC";
"Microphone Input" = "Entrada de micrófono";
"Minimum: %llu GB. The upper limit is determined by the filesystem." = "Mínimo: %llu GB. El límite superior lo determina el sistema de archivos.";
"Move Controls" = "Mover controles";
@@ -145,10 +155,15 @@
"Off" = "Desactivado";
"OK" = "OK";
"On" = "Activado";
+"On for Next Boot" = "Activado para el próximo arranque";
"Only about %llu GB is currently available. The disk image is sparse, but installation or later use can fail when storage fills up." = "Solo hay unos %llu GB disponibles. La imagen de disco es dinámica, pero la instalación o el uso posterior pueden fallar si se agota el almacenamiento.";
"Open Control Center and start Screen Recording, then reproduce the problem." = "Abre el Centro de control, inicia una grabación de pantalla y reproduce el problema.";
+"OpenGL Acceleration" = "Aceleración OpenGL";
+"OpenGL Acceleration Is Off" = "La aceleración OpenGL está desactivada";
+"OpenGL Acceleration requires macOS Sonoma or later." = "La aceleración OpenGL requiere macOS Sonoma o posterior.";
"Optional" = "Opcional";
"Options" = "Opciones";
+"Out of Video Memory" = "Memoria de video agotada";
"People have dreamed of running macOS on iPad for more than a decade. Today, that dream comes true. Create a Virtual Mac to get started." = "Durante más de una década, las personas han soñado con ejecutar macOS en el iPad. Hoy ese sueño se hace realidad. Crea una Mac virtual para comenzar.";
"Pixels Per Inch" = "Píxeles por pulgada";
"Pointing Device" = "Dispositivo señalador";
@@ -220,11 +235,14 @@
"These options affect iPadOS only while Virtual Mac is frontmost and a Virtual Mac is running." = "Estas opciones solo afectan a iPadOS mientras Mac virtual está en primer plano y hay una Mac virtual en ejecución.";
"This restores all Virtual Mac settings to their defaults. Virtual Macs, restore images, and installation files won’t be removed." = "Esto restablece todos los ajustes de Virtual Mac a sus valores predeterminados. No se eliminarán los Virtual Mac, las imágenes de restauración ni los archivos de instalación.";
"this Virtual Mac" = "este Virtual Mac";
+"To enable OpenGL acceleration, shut down this Virtual Mac, then in its options, enable OpenGL Acceleration." = "Para activar la aceleración OpenGL, apaga este Virtual Mac y actívala en sus opciones.";
"To show the controls, touch and hold the Virtual Mac icon on the Home Screen, then choose Show Virtual Mac Controls." = "Para mostrar los controles, mantén presionado el ícono de Virtual Mac en la pantalla de inicio y elige “Mostrar controles de Virtual Mac”.";
+"To use Apple Pencil pressure and tilt, download pencil-probe in %@ Virtual Mac." = "Para usar la presión y la inclinación del Apple Pencil, descarga pencil-probe en la Mac Virtual %@.";
"Top Left" = "Arriba a la izquierda";
"Top Right" = "Arriba a la derecha";
"Touch" = "Tacto";
"Touch and Hold to Secondary Click" = "Toque y mantenga presionado para hacer un clic secundario";
+"Turn Off Virtual Mac Guest Tools?" = "¿Desactivar las herramientas de invitado de Virtual Mac?";
"Two Finger Tap to Secondary Click" = "Toque con dos dedos para hacer clic secundario";
"Unknown" = "Desconocido";
"Unsaved changes in macOS may be lost." = "Podrían perderse los cambios de macOS que no se hayan guardado.";
@@ -245,6 +263,7 @@
"Virtual Mac devices are stored in %@." = "Las Mac virtuales se guardan en %@.";
"Virtual Mac Display" = "Pantalla del Mac virtual";
"Virtual Mac does not support the Dopamine-roothide environment. Remove the roothide jailbreak from Dopamine-roothide > Settings > Remove Jailbreak, then switch to the official version of Dopamine." = "Virtual Mac no es compatible con el entorno Dopamine-roothide. Elimina el jailbreak roothide en Dopamine-roothide > Configuración > Eliminar jailbreak y cambia a la versión oficial de Dopamine.";
+"Virtual Mac Guest Tools" = "Herramientas de invitado para Mac Virtual";
"Virtual Mac has no published framebuffer" = "Virtual Mac no ha publicado ningún framebuffer";
"Virtual Mac running — native PVG framebuffer attached" = "Virtual Mac en ejecución — framebuffer PVG nativo conectado";
"Virtual Mac running — preparing native PVG display" = "Virtual Mac en ejecución — preparando pantalla PVG nativa";
diff --git a/VirtualMac/resources/Localizations/es_US.lproj/Localizable.strings b/VirtualMac/resources/Localizations/es_US.lproj/Localizable.strings
index 8bbf1ee..0b70e64 100644
--- a/VirtualMac/resources/Localizations/es_US.lproj/Localizable.strings
+++ b/VirtualMac/resources/Localizations/es_US.lproj/Localizable.strings
@@ -2,6 +2,7 @@
"%.0f%% complete" = "%.0f %% completado";
"%@ CPU · %@ GB RAM · %llu GB · %@%@" = "%@ CPU · %@ GB de RAM · %llu GB · %@%@";
"%@ is not supported" = "%@ no es compatible";
+"%@ is out of video memory. macOS may appear frozen." = "%@ se quedó sin memoria de video. Es posible que macOS parezca bloqueado.";
"%@ may encounter performance or graphical issues. For the best experience, use macOS Ventura, macOS Sonoma, or macOS Sequoia.\n\nIf transparency effects cause visual problems, turn on Reduce Transparency in System Settings > Accessibility > Display." = "%@ puede presentar problemas de rendimiento o gráficos. Para obtener la mejor experiencia, usa macOS Ventura, macOS Sonoma o macOS Sequoia.\n\nSi los efectos de transparencia causan problemas visuales, activa Reducir transparencia en Configuración del Sistema > Accesibilidad > Pantalla.";
"%@ remaining" = "Quedan %@";
"%@\nState: %@\n%@\n\n" = "%@\nEstado: %@\n%@\n\n";
@@ -15,12 +16,15 @@
"Add Shared Folder" = "Añadir carpeta compartida";
"Advanced" = "Avanzado";
"Allowed: %llu–%llu%@" = "Permitido: %llu–%llu%@";
+"Always On" = "Siempre activado";
"Another usbmuxd service took control of the virtual DFU device before it entered RestoreOS. Uninstall usbmuxd from Sileo and try again." = "Otro servicio usbmuxd tomó el control del dispositivo DFU virtual antes de que entrara en RestoreOS. Desinstala usbmuxd desde Sileo e inténtalo de nuevo.";
"Another Virtual Mac Is Running" = "Hay otro Virtual Mac en ejecución";
+"Apple Pencil Pressure and Tilt" = "Presión e inclinación del Apple Pencil";
"Audio and Acceleration" = "Audio y aceleración";
"Audio Output" = "Salida de audio";
"Available macOS Releases" = "Versiones disponibles de macOS";
"Available macOS Versions" = "Versiones disponibles de macOS";
+"Because OpenGL acceleration requires Virtual Mac guest tools, turning off Virtual Mac guest tools will also turn off OpenGL acceleration. Apps such as Final Cut Pro mostly use Metal, but they check for OpenGL capabilities in order to launch." = "Como la aceleración OpenGL necesita las herramientas de invitado de Virtual Mac, al desactivarlas también se desactivará OpenGL. Apps como Final Cut Pro usan principalmente Metal, pero revisan las funciones de OpenGL para poder abrirse.";
"Boot and Network" = "Arranque y red";
"Bottom Left" = "Abajo a la izquierda";
"Bottom Right" = "Abajo a la derecha";
@@ -42,7 +46,6 @@
"Choose whether Virtual Mac opens its library or starts a Virtual Mac." = "Elige si Virtual Mac abre la biblioteca o inicia un Virtual Mac.";
"Compatibility" = "Compatibilidad";
"Complete Virtual Mac devices and restore images outside Virtual Mac are not removed." = "No se eliminarán los Virtual Mac completos ni las imágenes de restauración que estén fuera de Virtual Mac.";
-"Configuration changes take effect after the Virtual Mac is shut down and started again." = "Los cambios de configuración se aplican después de apagar y volver a iniciar Virtual Mac.";
"Configuration failed: %@" = "Error de configuración: %@";
"Configure %@" = "Configurar %@";
"Continue" = "Continuar";
@@ -58,7 +61,7 @@
"Create Virtual Mac" = "Crear un Mac virtual";
"Custom" = "Personalizado";
"Debug Logging" = "Registro de depuración";
-"Debug Logging has been enabled. You can turn it off later in Settings." = "El registro de depuración se activó. Puedes desactivarlo más tarde en Configuración.";
+"Debug logging has been enabled for the next boot." = "El registro de depuración se activó para el próximo arranque.";
"Debug Logging takes effect the next time a Virtual Mac starts." = "El registro de depuración se activa la próxima vez que se inicia un Virtual Mac.";
"Delete" = "Eliminar";
"Delete All" = "Eliminar todo";
@@ -82,7 +85,12 @@
"Display Resolution" = "Resolución de pantalla";
"Display Width" = "Anchura de pantalla";
"Double-tap to hold or release this modifier" = "Toca dos veces para bloquear o soltar esta tecla modificadora";
+"Download Apple Pencil Support" = "Descargar soporte para Apple Pencil";
"Download Failed" = "Falló la descarga";
+"Download Final Cut Pro Trial" = "Descargar la versión de prueba de Final Cut Pro";
+"Download Logic Pro Trial" = "Descargar la versión de prueba de Logic Pro";
+"Download Pixelmator Pro Trial" = "Descargar la versión de prueba de Pixelmator Pro";
+"Download Xcode" = "Descargar Xcode";
"Downloading macOS" = "Descargando macOS";
"Enter six hexadecimal octets separated by colons." = "Introduce seis octetos hexadecimales separados por dos puntos.";
"Ethernet (%@)" = "Ethernet (%@)";
@@ -122,6 +130,7 @@
"Keep Virtual Mac open. Your iPad will remain awake until the download finishes." = "Mantén Virtual Mac abierto. Tu iPad permanecerá activo hasta que termine la descarga.";
"Keyboard" = "Teclado";
"Landscape iPad" = "iPad horizontal";
+"Learn More" = "Más información";
"Library Appearance" = "Aspecto de la biblioteca";
"Loading extracted Apple virtualization frameworks…" = "Cargando los frameworks de virtualización de Apple extraídos…";
"MAC Address" = "Dirección MAC";
@@ -130,6 +139,7 @@
"Mac Trackpad" = "Trackpad Mac";
"macOS Installed" = "macOS instalado";
"Memory" = "Memoria";
+"Metal BC Support" = "Compatibilidad con Metal BC";
"Microphone Input" = "Entrada de micrófono";
"Minimum: %llu GB. The upper limit is determined by the filesystem." = "Mínimo: %llu GB. El límite superior lo determina el sistema de archivos.";
"Move Controls" = "Mover controles";
@@ -145,10 +155,15 @@
"Off" = "Desactivado";
"OK" = "OK";
"On" = "Activado";
+"On for Next Boot" = "Activado para el próximo arranque";
"Only about %llu GB is currently available. The disk image is sparse, but installation or later use can fail when storage fills up." = "Solo hay unos %llu GB disponibles. La imagen de disco es dinámica, pero la instalación o el uso posterior pueden fallar si se agota el almacenamiento.";
"Open Control Center and start Screen Recording, then reproduce the problem." = "Abre el Centro de control, inicia una grabación de pantalla y reproduce el problema.";
+"OpenGL Acceleration" = "Aceleración OpenGL";
+"OpenGL Acceleration Is Off" = "La aceleración OpenGL está desactivada";
+"OpenGL Acceleration requires macOS Sonoma or later." = "La aceleración OpenGL requiere macOS Sonoma o posterior.";
"Optional" = "Opcional";
"Options" = "Opciones";
+"Out of Video Memory" = "Memoria de video agotada";
"People have dreamed of running macOS on iPad for more than a decade. Today, that dream comes true. Create a Virtual Mac to get started." = "Durante más de una década, las personas han soñado con ejecutar macOS en el iPad. Hoy ese sueño se hace realidad. Crea una Mac virtual para comenzar.";
"Pixels Per Inch" = "Píxeles por pulgada";
"Pointing Device" = "Dispositivo señalador";
@@ -220,11 +235,14 @@
"These options affect iPadOS only while Virtual Mac is frontmost and a Virtual Mac is running." = "Estas opciones solo afectan a iPadOS mientras Mac virtual está en primer plano y hay una Mac virtual en ejecución.";
"This restores all Virtual Mac settings to their defaults. Virtual Macs, restore images, and installation files won’t be removed." = "Esto restablece todos los ajustes de Virtual Mac a sus valores predeterminados. No se eliminarán los Virtual Mac, las imágenes de restauración ni los archivos de instalación.";
"this Virtual Mac" = "este Virtual Mac";
+"To enable OpenGL acceleration, shut down this Virtual Mac, then in its options, enable OpenGL Acceleration." = "Para activar la aceleración OpenGL, apaga este Virtual Mac y actívala en sus opciones.";
"To show the controls, touch and hold the Virtual Mac icon on the Home Screen, then choose Show Virtual Mac Controls." = "Para mostrar los controles, mantén presionado el ícono de Virtual Mac en la pantalla de inicio y elige “Mostrar controles de Virtual Mac”.";
+"To use Apple Pencil pressure and tilt, download pencil-probe in %@ Virtual Mac." = "Para usar la presión y la inclinación del Apple Pencil, descarga pencil-probe en la Mac Virtual %@.";
"Top Left" = "Arriba a la izquierda";
"Top Right" = "Arriba a la derecha";
"Touch" = "Tacto";
"Touch and Hold to Secondary Click" = "Toque y mantenga presionado para hacer un clic secundario";
+"Turn Off Virtual Mac Guest Tools?" = "¿Desactivar las herramientas de invitado de Virtual Mac?";
"Two Finger Tap to Secondary Click" = "Toque con dos dedos para hacer clic secundario";
"Unknown" = "Desconocido";
"Unsaved changes in macOS may be lost." = "Podrían perderse los cambios de macOS que no se hayan guardado.";
@@ -245,6 +263,7 @@
"Virtual Mac devices are stored in %@." = "Las Mac virtuales se guardan en %@.";
"Virtual Mac Display" = "Pantalla del Mac virtual";
"Virtual Mac does not support the Dopamine-roothide environment. Remove the roothide jailbreak from Dopamine-roothide > Settings > Remove Jailbreak, then switch to the official version of Dopamine." = "Virtual Mac no es compatible con el entorno Dopamine-roothide. Elimina el jailbreak roothide en Dopamine-roothide > Configuración > Eliminar jailbreak y cambia a la versión oficial de Dopamine.";
+"Virtual Mac Guest Tools" = "Herramientas de invitado para Mac Virtual";
"Virtual Mac has no published framebuffer" = "Virtual Mac no ha publicado ningún framebuffer";
"Virtual Mac running — native PVG framebuffer attached" = "Virtual Mac en ejecución — framebuffer PVG nativo conectado";
"Virtual Mac running — preparing native PVG display" = "Virtual Mac en ejecución — preparando pantalla PVG nativa";
diff --git a/VirtualMac/resources/Localizations/fi.lproj/Localizable.strings b/VirtualMac/resources/Localizations/fi.lproj/Localizable.strings
index e85da3d..467f7b1 100644
--- a/VirtualMac/resources/Localizations/fi.lproj/Localizable.strings
+++ b/VirtualMac/resources/Localizations/fi.lproj/Localizable.strings
@@ -2,6 +2,7 @@
"%.0f%% complete" = "%.0f %% valmis";
"%@ CPU · %@ GB RAM · %llu GB · %@%@" = "%@ CPU · %@ Gt RAM · %llu Gt · %@%@";
"%@ is not supported" = "%@:ää ei tueta";
+"%@ is out of video memory. macOS may appear frozen." = "%@:n näyttömuisti on loppunut. macOS saattaa näyttää jumiutuneelta.";
"%@ may encounter performance or graphical issues. For the best experience, use macOS Ventura, macOS Sonoma, or macOS Sequoia.\n\nIf transparency effects cause visual problems, turn on Reduce Transparency in System Settings > Accessibility > Display." = "%@:ssä voi esiintyä suorituskyky- tai grafiikkaongelmia. Parhaan käyttökokemuksen saat käyttämällä macOS Venturaa, macOS Sonomaa tai macOS Sequoiaa.\n\nJos läpinäkyvyystehosteet aiheuttavat näyttöongelmia, laita Vähennä läpinäkyvyyttä päälle kohdassa Järjestelmäasetukset > Käyttöapu > Näyttö.";
"%@ remaining" = "%@ jäljellä";
"%@\nState: %@\n%@\n\n" = "%@\nTila: %@\n%@\n\n";
@@ -15,12 +16,15 @@
"Add Shared Folder" = "Lisää jaettu kansio";
"Advanced" = "Lisäasetukset";
"Allowed: %llu–%llu%@" = "Sallittu: %llu–%llu%@";
+"Always On" = "Aina päällä";
"Another usbmuxd service took control of the virtual DFU device before it entered RestoreOS. Uninstall usbmuxd from Sileo and try again." = "Toinen usbmuxd-palvelu otti virtuaalisen DFU-laitteen hallintaansa ennen RestoreOS-tilaa. Poista usbmuxd Sileossa ja yritä uudelleen.";
"Another Virtual Mac Is Running" = "Toinen virtuaalinen Mac on käynnissä";
+"Apple Pencil Pressure and Tilt" = "Apple Pencilin paine ja kallistus";
"Audio and Acceleration" = "Ääni ja kiihdytys";
"Audio Output" = "Äänilähtö";
"Available macOS Releases" = "Saatavilla olevat macOS-julkaisut";
"Available macOS Versions" = "Saatavilla olevat macOS-versiot";
+"Because OpenGL acceleration requires Virtual Mac guest tools, turning off Virtual Mac guest tools will also turn off OpenGL acceleration. Apps such as Final Cut Pro mostly use Metal, but they check for OpenGL capabilities in order to launch." = "Koska OpenGL-kiihdytys vaatii Virtual Macin vierastyökalut, niiden poistaminen käytöstä poistaa käytöstä myös OpenGL-kiihdytyksen. Final Cut Pron kaltaiset apit käyttävät enimmäkseen Metalia, mutta tarkistavat OpenGL-ominaisuudet käynnistyäkseen.";
"Boot and Network" = "Käynnistys ja verkko";
"Bottom Left" = "Alavasen";
"Bottom Right" = "Alaoikea";
@@ -42,7 +46,6 @@
"Choose whether Virtual Mac opens its library or starts a Virtual Mac." = "Valitse, avaako Virtual Mac kirjaston vai käynnistääkö se virtuaalisen Macin.";
"Compatibility" = "Yhteensopivuus";
"Complete Virtual Mac devices and restore images outside Virtual Mac are not removed." = "Valmiita virtuaalisia Maceja ja Virtual Macin ulkopuolisia palautuskuvia ei poisteta.";
-"Configuration changes take effect after the Virtual Mac is shut down and started again." = "Määritysmuutokset tulevat voimaan, kun Virtual Mac sammutetaan ja käynnistetään uudelleen.";
"Configuration failed: %@" = "Määritys epäonnistui: %@";
"Configure %@" = "Määritä %@";
"Continue" = "Jatka";
@@ -58,7 +61,7 @@
"Create Virtual Mac" = "Luo virtuaalinen Mac";
"Custom" = "Mukautettu";
"Debug Logging" = "Virheenkorjausloki";
-"Debug Logging has been enabled. You can turn it off later in Settings." = "Virheenkorjausloki on otettu käyttöön. Voit poistaa sen myöhemmin käytöstä Asetuksissa.";
+"Debug logging has been enabled for the next boot." = "Virheenkorjausloki otettiin käyttöön seuraavaa käynnistystä varten.";
"Debug Logging takes effect the next time a Virtual Mac starts." = "Virheenkorjauslokitus tulee voimaan, kun Virtual Mac käynnistetään seuraavan kerran.";
"Delete" = "Poista";
"Delete All" = "Poista kaikki";
@@ -82,7 +85,12 @@
"Display Resolution" = "Näytön tarkkuus";
"Display Width" = "Näytön leveys";
"Double-tap to hold or release this modifier" = "Lukitse tai vapauta tämä muuntonäppäin kaksoisnapauttamalla";
+"Download Apple Pencil Support" = "Lataa Apple Pencil -tuki";
"Download Failed" = "Lataus epäonnistui";
+"Download Final Cut Pro Trial" = "Lataa Final Cut Pron kokeiluversio";
+"Download Logic Pro Trial" = "Lataa Logic Pron kokeiluversio";
+"Download Pixelmator Pro Trial" = "Lataa Pixelmator Pron kokeiluversio";
+"Download Xcode" = "Lataa Xcode";
"Downloading macOS" = "Ladataan macOS:ää";
"Enter six hexadecimal octets separated by colons." = "Syötä kuusi kaksoispistein erotettua heksadesimaalioktettia.";
"Ethernet (%@)" = "Ethernet (%@)";
@@ -122,6 +130,7 @@
"Keep Virtual Mac open. Your iPad will remain awake until the download finishes." = "Pidä Virtual Mac avoinna. iPad pysyy hereillä latauksen valmistumiseen asti.";
"Keyboard" = "Näppäimistö";
"Landscape iPad" = "iPad vaaka-asennossa";
+"Learn More" = "Lisätietoja";
"Library Appearance" = "Kirjaston ulkoasu";
"Loading extracted Apple virtualization frameworks…" = "Purettuja Applen virtualisointikehyksiä ladataan…";
"MAC Address" = "Mac osoite";
@@ -130,6 +139,7 @@
"Mac Trackpad" = "Mac-ohjauslevy";
"macOS Installed" = "macOS asennettu";
"Memory" = "Muisti";
+"Metal BC Support" = "Metal BC -tuki";
"Microphone Input" = "Mikrofonitulo";
"Minimum: %llu GB. The upper limit is determined by the filesystem." = "Vähintään %llu Gt. Ylärajan määrää tiedostojärjestelmä.";
"Move Controls" = "Siirrä säätimiä";
@@ -145,10 +155,15 @@
"Off" = "Pois";
"OK" = "OK";
"On" = "Päällä";
+"On for Next Boot" = "Päällä seuraavassa käynnistyksessä";
"Only about %llu GB is currently available. The disk image is sparse, but installation or later use can fail when storage fills up." = "Tallennustilaa on nyt vain noin %llu Gt. Levykuva on dynaaminen, mutta asennus tai myöhempi käyttö voi epäonnistua tallennustilan täyttyessä.";
"Open Control Center and start Screen Recording, then reproduce the problem." = "Avaa Ohjauskeskus, aloita näyttötallennus ja toista sitten ongelma.";
+"OpenGL Acceleration" = "OpenGL-kiihdytys";
+"OpenGL Acceleration Is Off" = "OpenGL-kiihdytys ei ole käytössä";
+"OpenGL Acceleration requires macOS Sonoma or later." = "OpenGL-kiihdytys vaatii macOS Sonoman tai uudemman.";
"Optional" = "Valinnainen";
"Options" = "Valinnat";
+"Out of Video Memory" = "Näyttömuisti loppui";
"People have dreamed of running macOS on iPad for more than a decade. Today, that dream comes true. Create a Virtual Mac to get started." = "Ihmiset ovat haaveilleet macOS:n käyttämisestä iPadilla yli vuosikymmenen ajan. Tänään tuo unelma toteutuu. Aloita luomalla virtuaalinen Mac.";
"Pixels Per Inch" = "Pikseliä tuumalla";
"Pointing Device" = "Osoitinlaite";
@@ -220,11 +235,14 @@
"These options affect iPadOS only while Virtual Mac is frontmost and a Virtual Mac is running." = "Nämä valinnat vaikuttavat iPadOS:ään vain, kun Virtuaalinen Mac on etualalla ja virtuaalinen Mac on käynnissä.";
"This restores all Virtual Mac settings to their defaults. Virtual Macs, restore images, and installation files won’t be removed." = "Tämä palauttaa kaikki Virtual Mac -asetukset oletusarvoihin. Virtuaalisia Maceja, palautuskuvia ja asennustiedostoja ei poisteta.";
"this Virtual Mac" = "tämä virtuaalinen Mac";
+"To enable OpenGL acceleration, shut down this Virtual Mac, then in its options, enable OpenGL Acceleration." = "Ota OpenGL-kiihdytys käyttöön sammuttamalla tämä Virtual Mac ja ottamalla toiminto käyttöön sen valinnoissa.";
"To show the controls, touch and hold the Virtual Mac icon on the Home Screen, then choose Show Virtual Mac Controls." = "Saat säätimet näkyviin pitämällä Virtual Mac -kuvaketta painettuna Koti-valikossa ja valitsemalla Näytä Virtual Macin säätimet.";
+"To use Apple Pencil pressure and tilt, download pencil-probe in %@ Virtual Mac." = "Jos haluat käyttää Apple Pencilin painetta ja kallistusta, lataa pencil-probe virtuaaliseen Maciin %@.";
"Top Left" = "Ylävasen";
"Top Right" = "Yläoikea";
"Touch" = "Kosketus";
"Touch and Hold to Secondary Click" = "Kosketa pitkään toissijaista napsautusta varten";
+"Turn Off Virtual Mac Guest Tools?" = "Poistetaanko Virtual Macin vierastyökalut käytöstä?";
"Two Finger Tap to Secondary Click" = "Kahden sormen napautus toissijaista napsautusta varten";
"Unknown" = "Tuntematon";
"Unsaved changes in macOS may be lost." = "macOS:n tallentamattomat muutokset voivat kadota.";
@@ -245,6 +263,7 @@
"Virtual Mac devices are stored in %@." = "Virtuaaliset Macit tallennetaan sijaintiin %@.";
"Virtual Mac Display" = "Virtuaalisen Macin näyttö";
"Virtual Mac does not support the Dopamine-roothide environment. Remove the roothide jailbreak from Dopamine-roothide > Settings > Remove Jailbreak, then switch to the official version of Dopamine." = "Virtual Mac ei tue Dopamine-roothide-ympäristöä. Poista roothide-jailbreak kohdassa Dopamine-roothide > Asetukset > Poista jailbreak ja vaihda sitten Dopaminen viralliseen versioon.";
+"Virtual Mac Guest Tools" = "Virtuaalisen Macin vierastyökalut";
"Virtual Mac has no published framebuffer" = "Virtuaalisella Macilla ei ole julkaistua framebufferia";
"Virtual Mac running — native PVG framebuffer attached" = "Virtuaalinen Mac käynnissä — natiivi PVG-framebuffer liitetty";
"Virtual Mac running — preparing native PVG display" = "Virtuaalinen Mac käynnissä — natiivia PVG-näyttöä valmistellaan";
diff --git a/VirtualMac/resources/Localizations/fr.lproj/Localizable.strings b/VirtualMac/resources/Localizations/fr.lproj/Localizable.strings
index aecba3a..0016f62 100644
--- a/VirtualMac/resources/Localizations/fr.lproj/Localizable.strings
+++ b/VirtualMac/resources/Localizations/fr.lproj/Localizable.strings
@@ -2,6 +2,7 @@
"%.0f%% complete" = "%.0f %% terminé";
"%@ CPU · %@ GB RAM · %llu GB · %@%@" = "%@ CPU · %@ Go de RAM · %llu Go · %@%@";
"%@ is not supported" = "%@ n’est pas pris en charge";
+"%@ is out of video memory. macOS may appear frozen." = "%@ n’a plus de mémoire vidéo. macOS peut sembler figé.";
"%@ may encounter performance or graphical issues. For the best experience, use macOS Ventura, macOS Sonoma, or macOS Sequoia.\n\nIf transparency effects cause visual problems, turn on Reduce Transparency in System Settings > Accessibility > Display." = "%@ peut présenter des problèmes de performances ou d’affichage. Pour une expérience optimale, utilisez macOS Ventura, macOS Sonoma ou macOS Sequoia.\n\nSi les effets de transparence causent des problèmes visuels, activez Réduire la transparence dans Réglages Système > Accessibilité > Affichage.";
"%@ remaining" = "Temps restant : %@";
"%@\nState: %@\n%@\n\n" = "%@\nÉtat : %@\n%@\n\n";
@@ -15,12 +16,15 @@
"Add Shared Folder" = "Ajouter un dossier partagé";
"Advanced" = "Avancé";
"Allowed: %llu–%llu%@" = "Plage autorisée : %llu–%llu%@";
+"Always On" = "Toujours activé";
"Another usbmuxd service took control of the virtual DFU device before it entered RestoreOS. Uninstall usbmuxd from Sileo and try again." = "Un autre service usbmuxd a pris le contrôle du périphérique DFU virtuel avant son passage dans RestoreOS. Désinstallez usbmuxd dans Sileo, puis réessayez.";
"Another Virtual Mac Is Running" = "Un autre Mac virtuel est en cours d’exécution";
+"Apple Pencil Pressure and Tilt" = "Pression et inclinaison de l’Apple Pencil";
"Audio and Acceleration" = "Audio et accélération";
"Audio Output" = "Sortie audio";
"Available macOS Releases" = "Versions disponibles de macOS";
"Available macOS Versions" = "Versions de macOS disponibles";
+"Because OpenGL acceleration requires Virtual Mac guest tools, turning off Virtual Mac guest tools will also turn off OpenGL acceleration. Apps such as Final Cut Pro mostly use Metal, but they check for OpenGL capabilities in order to launch." = "Comme l’accélération OpenGL nécessite les outils d’invité Virtual Mac, leur désactivation désactivera également l’accélération OpenGL. Les apps comme Final Cut Pro utilisent principalement Metal, mais vérifient les capacités OpenGL pour pouvoir se lancer.";
"Boot and Network" = "Démarrage et réseau";
"Bottom Left" = "En bas à gauche";
"Bottom Right" = "En bas à droite";
@@ -42,7 +46,6 @@
"Choose whether Virtual Mac opens its library or starts a Virtual Mac." = "Choisissez si Virtual Mac ouvre sa bibliothèque ou démarre un Mac virtuel.";
"Compatibility" = "Compatibilité";
"Complete Virtual Mac devices and restore images outside Virtual Mac are not removed." = "Les Mac virtuels complets et les images de restauration situés hors de Virtual Mac ne sont pas supprimés.";
-"Configuration changes take effect after the Virtual Mac is shut down and started again." = "Les modifications de configuration prennent effet après l’arrêt et le redémarrage de Virtual Mac.";
"Configuration failed: %@" = "Échec de la configuration : %@";
"Configure %@" = "Configurer %@";
"Continue" = "Continuer";
@@ -58,7 +61,7 @@
"Create Virtual Mac" = "Créer un Mac virtuel";
"Custom" = "Personnalisé";
"Debug Logging" = "Journalisation de débogage";
-"Debug Logging has been enabled. You can turn it off later in Settings." = "La journalisation de débogage a été activée. Vous pourrez la désactiver plus tard dans Réglages.";
+"Debug logging has been enabled for the next boot." = "La journalisation de débogage a été activée pour le prochain démarrage.";
"Debug Logging takes effect the next time a Virtual Mac starts." = "La journalisation de débogage prendra effet au prochain démarrage d’un Virtual Mac.";
"Delete" = "Supprimer";
"Delete All" = "Tout supprimer";
@@ -82,7 +85,12 @@
"Display Resolution" = "Résolution de l’écran";
"Display Width" = "Largeur de l’écran";
"Double-tap to hold or release this modifier" = "Touchez deux fois pour verrouiller ou relâcher cette touche de modification";
+"Download Apple Pencil Support" = "Télécharger la prise en charge de l’Apple Pencil";
"Download Failed" = "Échec du téléchargement";
+"Download Final Cut Pro Trial" = "Télécharger la version d’essai de Final Cut Pro";
+"Download Logic Pro Trial" = "Télécharger la version d’essai de Logic Pro";
+"Download Pixelmator Pro Trial" = "Télécharger la version d’essai de Pixelmator Pro";
+"Download Xcode" = "Télécharger Xcode";
"Downloading macOS" = "Téléchargement de macOS";
"Enter six hexadecimal octets separated by colons." = "Saisissez six octets hexadécimaux séparés par des deux-points.";
"Ethernet (%@)" = "Ethernet (%@)";
@@ -122,6 +130,7 @@
"Keep Virtual Mac open. Your iPad will remain awake until the download finishes." = "Laissez Virtual Mac ouvert. Votre iPad restera actif jusqu’à la fin du téléchargement.";
"Keyboard" = "Clavier";
"Landscape iPad" = "iPad en paysage";
+"Learn More" = "En savoir plus";
"Library Appearance" = "Présentation de la bibliothèque";
"Loading extracted Apple virtualization frameworks…" = "Chargement des frameworks de virtualisation Apple extraits…";
"MAC Address" = "Adresse MAC";
@@ -130,6 +139,7 @@
"Mac Trackpad" = "Trackpad Mac";
"macOS Installed" = "macOS est installé";
"Memory" = "Mémoire";
+"Metal BC Support" = "Prise en charge de Metal BC";
"Microphone Input" = "Entrée microphone";
"Minimum: %llu GB. The upper limit is determined by the filesystem." = "Minimum : %llu Go. La limite supérieure est déterminée par le système de fichiers.";
"Move Controls" = "Déplacer les commandes";
@@ -145,10 +155,15 @@
"Off" = "Désactivé";
"OK" = "OK";
"On" = "Activé";
+"On for Next Boot" = "Activé au prochain démarrage";
"Only about %llu GB is currently available. The disk image is sparse, but installation or later use can fail when storage fills up." = "Environ %llu Go seulement sont disponibles. L’image disque est dynamique, mais l’installation ou l’utilisation ultérieure peut échouer si l’espace de stockage est saturé.";
"Open Control Center and start Screen Recording, then reproduce the problem." = "Ouvrez le centre de contrôle, démarrez un enregistrement d’écran, puis reproduisez le problème.";
+"OpenGL Acceleration" = "Accélération OpenGL";
+"OpenGL Acceleration Is Off" = "L’accélération OpenGL est désactivée";
+"OpenGL Acceleration requires macOS Sonoma or later." = "L’accélération OpenGL nécessite macOS Sonoma ou une version ultérieure.";
"Optional" = "Facultatif";
"Options" = "Options";
+"Out of Video Memory" = "Mémoire vidéo épuisée";
"People have dreamed of running macOS on iPad for more than a decade. Today, that dream comes true. Create a Virtual Mac to get started." = "Depuis plus d’une décennie, les gens rêvent d’exécuter macOS sur iPad. Aujourd’hui, ce rêve devient réalité. Créez un Mac virtuel pour commencer.";
"Pixels Per Inch" = "Pixels par pouce";
"Pointing Device" = "Dispositif de pointage";
@@ -220,11 +235,14 @@
"These options affect iPadOS only while Virtual Mac is frontmost and a Virtual Mac is running." = "Ces options affectent iPadOS uniquement lorsque Mac virtuel est au premier plan et qu’un Mac virtuel est en cours d’exécution.";
"This restores all Virtual Mac settings to their defaults. Virtual Macs, restore images, and installation files won’t be removed." = "Tous les réglages de Virtual Mac seront rétablis à leurs valeurs par défaut. Les Mac virtuels, images de restauration et fichiers d’installation ne seront pas supprimés.";
"this Virtual Mac" = "ce Mac virtuel";
+"To enable OpenGL acceleration, shut down this Virtual Mac, then in its options, enable OpenGL Acceleration." = "Pour activer l’accélération OpenGL, éteignez ce Virtual Mac, puis activez-la dans ses options.";
"To show the controls, touch and hold the Virtual Mac icon on the Home Screen, then choose Show Virtual Mac Controls." = "Pour afficher les commandes, touchez de manière prolongée l’icône Virtual Mac sur l’écran d’accueil, puis choisissez « Afficher les commandes Virtual Mac ».";
+"To use Apple Pencil pressure and tilt, download pencil-probe in %@ Virtual Mac." = "Pour utiliser la pression et l’inclinaison de l’Apple Pencil, téléchargez pencil-probe dans le Mac virtuel %@.";
"Top Left" = "En haut à gauche";
"Top Right" = "En haut à droite";
"Touch" = "Toucher";
"Touch and Hold to Secondary Click" = "Touchez et maintenez pour un clic secondaire";
+"Turn Off Virtual Mac Guest Tools?" = "Désactiver les outils d’invité Virtual Mac ?";
"Two Finger Tap to Secondary Click" = "Appuyez à deux doigts pour un clic secondaire";
"Unknown" = "Inconnu";
"Unsaved changes in macOS may be lost." = "Les modifications non enregistrées dans macOS risquent d’être perdues.";
@@ -245,6 +263,7 @@
"Virtual Mac devices are stored in %@." = "Les Mac virtuels sont stockés dans %@.";
"Virtual Mac Display" = "Écran du Mac virtuel";
"Virtual Mac does not support the Dopamine-roothide environment. Remove the roothide jailbreak from Dopamine-roothide > Settings > Remove Jailbreak, then switch to the official version of Dopamine." = "Virtual Mac ne prend pas en charge l’environnement Dopamine-roothide. Supprimez le jailbreak roothide dans Dopamine-roothide > Réglages > Supprimer le jailbreak, puis passez à la version officielle de Dopamine.";
+"Virtual Mac Guest Tools" = "Outils d’invité du Mac virtuel";
"Virtual Mac has no published framebuffer" = "Le Mac virtuel n’a publié aucun framebuffer";
"Virtual Mac running — native PVG framebuffer attached" = "Mac virtuel en cours d’exécution — framebuffer PVG natif connecté";
"Virtual Mac running — preparing native PVG display" = "Mac virtuel en cours d’exécution — préparation de l’écran PVG natif";
diff --git a/VirtualMac/resources/Localizations/fr_CA.lproj/Localizable.strings b/VirtualMac/resources/Localizations/fr_CA.lproj/Localizable.strings
index 81eccc6..aefa424 100644
--- a/VirtualMac/resources/Localizations/fr_CA.lproj/Localizable.strings
+++ b/VirtualMac/resources/Localizations/fr_CA.lproj/Localizable.strings
@@ -2,6 +2,7 @@
"%.0f%% complete" = "%.0f %% terminé";
"%@ CPU · %@ GB RAM · %llu GB · %@%@" = "%@ CPU · %@ Go de RAM · %llu Go · %@%@";
"%@ is not supported" = "%@ n’est pas pris en charge";
+"%@ is out of video memory. macOS may appear frozen." = "%@ n’a plus de mémoire vidéo. macOS pourrait sembler figé.";
"%@ may encounter performance or graphical issues. For the best experience, use macOS Ventura, macOS Sonoma, or macOS Sequoia.\n\nIf transparency effects cause visual problems, turn on Reduce Transparency in System Settings > Accessibility > Display." = "%@ peut présenter des problèmes de performance ou d’affichage. Pour une expérience optimale, utilisez macOS Ventura, macOS Sonoma ou macOS Sequoia.\n\nSi les effets de transparence causent des problèmes visuels, activez Réduire la transparence dans Réglages Système > Accessibilité > Affichage.";
"%@ remaining" = "Temps restant : %@";
"%@\nState: %@\n%@\n\n" = "%@\nÉtat : %@\n%@\n\n";
@@ -15,12 +16,15 @@
"Add Shared Folder" = "Ajouter un dossier partagé";
"Advanced" = "Avancé";
"Allowed: %llu–%llu%@" = "Plage autorisée : %llu–%llu%@";
+"Always On" = "Toujours activé";
"Another usbmuxd service took control of the virtual DFU device before it entered RestoreOS. Uninstall usbmuxd from Sileo and try again." = "Un autre service usbmuxd a pris le contrôle du périphérique DFU virtuel avant son passage dans RestoreOS. Désinstallez usbmuxd dans Sileo, puis réessayez.";
"Another Virtual Mac Is Running" = "Un autre Mac virtuel est en cours d’exécution";
+"Apple Pencil Pressure and Tilt" = "Pression et inclinaison de l’Apple Pencil";
"Audio and Acceleration" = "Audio et accélération";
"Audio Output" = "Sortie audio";
"Available macOS Releases" = "Versions disponibles de macOS";
"Available macOS Versions" = "Versions de macOS disponibles";
+"Because OpenGL acceleration requires Virtual Mac guest tools, turning off Virtual Mac guest tools will also turn off OpenGL acceleration. Apps such as Final Cut Pro mostly use Metal, but they check for OpenGL capabilities in order to launch." = "Puisque l’accélération OpenGL nécessite les outils d’invité Virtual Mac, leur désactivation désactivera aussi l’accélération OpenGL. Les apps comme Final Cut Pro utilisent surtout Metal, mais vérifient les capacités OpenGL pour pouvoir démarrer.";
"Boot and Network" = "Démarrage et réseau";
"Bottom Left" = "En bas à gauche";
"Bottom Right" = "En bas à droite";
@@ -42,7 +46,6 @@
"Choose whether Virtual Mac opens its library or starts a Virtual Mac." = "Choisissez si Virtual Mac ouvre sa bibliothèque ou démarre un Mac virtuel.";
"Compatibility" = "Compatibilité";
"Complete Virtual Mac devices and restore images outside Virtual Mac are not removed." = "Les Mac virtuels complets et les images de restauration situés hors de Virtual Mac ne sont pas supprimés.";
-"Configuration changes take effect after the Virtual Mac is shut down and started again." = "Les modifications de configuration prennent effet après l’arrêt et le redémarrage de Virtual Mac.";
"Configuration failed: %@" = "Échec de la configuration : %@";
"Configure %@" = "Configurer %@";
"Continue" = "Continuer";
@@ -58,7 +61,7 @@
"Create Virtual Mac" = "Créer un Mac virtuel";
"Custom" = "Personnalisé";
"Debug Logging" = "Journalisation de débogage";
-"Debug Logging has been enabled. You can turn it off later in Settings." = "La journalisation de débogage a été activée. Vous pourrez la désactiver plus tard dans Réglages.";
+"Debug logging has been enabled for the next boot." = "La journalisation de débogage a été activée pour le prochain démarrage.";
"Debug Logging takes effect the next time a Virtual Mac starts." = "La journalisation de débogage prendra effet au prochain démarrage d’un Virtual Mac.";
"Delete" = "Supprimer";
"Delete All" = "Tout supprimer";
@@ -82,7 +85,12 @@
"Display Resolution" = "Résolution de l’écran";
"Display Width" = "Largeur de l’écran";
"Double-tap to hold or release this modifier" = "Touchez deux fois pour verrouiller ou relâcher cette touche de modification";
+"Download Apple Pencil Support" = "Télécharger la prise en charge de l’Apple Pencil";
"Download Failed" = "Échec du téléchargement";
+"Download Final Cut Pro Trial" = "Télécharger la version d’essai de Final Cut Pro";
+"Download Logic Pro Trial" = "Télécharger la version d’essai de Logic Pro";
+"Download Pixelmator Pro Trial" = "Télécharger la version d’essai de Pixelmator Pro";
+"Download Xcode" = "Télécharger Xcode";
"Downloading macOS" = "Téléchargement de macOS";
"Enter six hexadecimal octets separated by colons." = "Saisissez six octets hexadécimaux séparés par des deux-points.";
"Ethernet (%@)" = "Ethernet (%@)";
@@ -122,6 +130,7 @@
"Keep Virtual Mac open. Your iPad will remain awake until the download finishes." = "Laissez Virtual Mac ouvert. Votre iPad restera actif jusqu’à la fin du téléchargement.";
"Keyboard" = "Clavier";
"Landscape iPad" = "iPad en mode paysage";
+"Learn More" = "En savoir plus";
"Library Appearance" = "Présentation de la bibliothèque";
"Loading extracted Apple virtualization frameworks…" = "Chargement des frameworks de virtualisation Apple extraits…";
"MAC Address" = "Adresse MAC";
@@ -130,6 +139,7 @@
"Mac Trackpad" = "Trackpad Mac";
"macOS Installed" = "macOS est installé";
"Memory" = "Mémoire";
+"Metal BC Support" = "Prise en charge de Metal BC";
"Microphone Input" = "Entrée microphone";
"Minimum: %llu GB. The upper limit is determined by the filesystem." = "Minimum : %llu Go. La limite supérieure est déterminée par le système de fichiers.";
"Move Controls" = "Déplacer les commandes";
@@ -145,10 +155,15 @@
"Off" = "Désactivé";
"OK" = "OK";
"On" = "Activé";
+"On for Next Boot" = "Activé au prochain démarrage";
"Only about %llu GB is currently available. The disk image is sparse, but installation or later use can fail when storage fills up." = "Environ %llu Go seulement sont disponibles. L’image disque est dynamique, mais l’installation ou l’utilisation ultérieure peut échouer si l’espace de stockage est saturé.";
"Open Control Center and start Screen Recording, then reproduce the problem." = "Ouvrez le centre de contrôle, démarrez un enregistrement d’écran, puis reproduisez le problème.";
+"OpenGL Acceleration" = "Accélération OpenGL";
+"OpenGL Acceleration Is Off" = "L’accélération OpenGL est désactivée";
+"OpenGL Acceleration requires macOS Sonoma or later." = "L’accélération OpenGL nécessite macOS Sonoma ou une version ultérieure.";
"Optional" = "Facultatif";
"Options" = "Options";
+"Out of Video Memory" = "Mémoire vidéo épuisée";
"People have dreamed of running macOS on iPad for more than a decade. Today, that dream comes true. Create a Virtual Mac to get started." = "Depuis plus d’une décennie, les gens rêvent d’exécuter macOS sur iPad. Aujourd’hui, ce rêve devient réalité. Créez un Mac virtuel pour commencer.";
"Pixels Per Inch" = "Pixels par pouce";
"Pointing Device" = "Dispositif de pointage";
@@ -220,11 +235,14 @@
"These options affect iPadOS only while Virtual Mac is frontmost and a Virtual Mac is running." = "Ces options affectent iPadOS seulement lorsque Mac virtuel est au premier plan et qu’un Mac virtuel est en cours d’exécution.";
"This restores all Virtual Mac settings to their defaults. Virtual Macs, restore images, and installation files won’t be removed." = "Tous les réglages de Virtual Mac seront rétablis à leurs valeurs par défaut. Les Mac virtuels, images de restauration et fichiers d’installation ne seront pas supprimés.";
"this Virtual Mac" = "ce Mac virtuel";
+"To enable OpenGL acceleration, shut down this Virtual Mac, then in its options, enable OpenGL Acceleration." = "Pour activer l’accélération OpenGL, éteignez ce Virtual Mac, puis activez-la dans ses options.";
"To show the controls, touch and hold the Virtual Mac icon on the Home Screen, then choose Show Virtual Mac Controls." = "Pour afficher les commandes, touchez de façon prolongée l’icône Virtual Mac sur l’écran d’accueil, puis choisissez « Afficher les commandes Virtual Mac ».";
+"To use Apple Pencil pressure and tilt, download pencil-probe in %@ Virtual Mac." = "Pour utiliser la pression et l’inclinaison de l’Apple Pencil, téléchargez pencil-probe dans le Mac virtuel %@.";
"Top Left" = "En haut à gauche";
"Top Right" = "En haut à droite";
"Touch" = "Toucher";
"Touch and Hold to Secondary Click" = "Touchez et maintenez enfoncé pour un clic secondaire";
+"Turn Off Virtual Mac Guest Tools?" = "Désactiver les outils d’invité Virtual Mac?";
"Two Finger Tap to Secondary Click" = "Appuyez sur les deux doigts pour un clic secondaire";
"Unknown" = "Inconnu";
"Unsaved changes in macOS may be lost." = "Les modifications non enregistrées dans macOS risquent d’être perdues.";
@@ -245,6 +263,7 @@
"Virtual Mac devices are stored in %@." = "Les Mac virtuels sont stockés dans %@.";
"Virtual Mac Display" = "Écran du Mac virtuel";
"Virtual Mac does not support the Dopamine-roothide environment. Remove the roothide jailbreak from Dopamine-roothide > Settings > Remove Jailbreak, then switch to the official version of Dopamine." = "Virtual Mac ne prend pas en charge l’environnement Dopamine-roothide. Supprimez le jailbreak roothide dans Dopamine-roothide > Réglages > Supprimer le jailbreak, puis passez à la version officielle de Dopamine.";
+"Virtual Mac Guest Tools" = "Outils d’invité du Mac virtuel";
"Virtual Mac has no published framebuffer" = "Le Mac virtuel n’a publié aucun framebuffer";
"Virtual Mac running — native PVG framebuffer attached" = "Mac virtuel en cours d’exécution — framebuffer PVG natif connecté";
"Virtual Mac running — preparing native PVG display" = "Mac virtuel en cours d’exécution — préparation de l’écran PVG natif";
diff --git a/VirtualMac/resources/Localizations/he.lproj/Localizable.strings b/VirtualMac/resources/Localizations/he.lproj/Localizable.strings
index 22cf0eb..bccd4be 100644
--- a/VirtualMac/resources/Localizations/he.lproj/Localizable.strings
+++ b/VirtualMac/resources/Localizations/he.lproj/Localizable.strings
@@ -2,6 +2,7 @@
"%.0f%% complete" = "%.0f%% הושלמו";
"%@ CPU · %@ GB RAM · %llu GB · %@%@" = "%@ CPU · %@ GB RAM · %llu GB · %@%@";
"%@ is not supported" = "אין תמיכה ב-%@";
+"%@ is out of video memory. macOS may appear frozen." = "זיכרון הווידאו של %@ אזל. ייתכן ש-macOS ייראה קפוא.";
"%@ may encounter performance or graphical issues. For the best experience, use macOS Ventura, macOS Sonoma, or macOS Sequoia.\n\nIf transparency effects cause visual problems, turn on Reduce Transparency in System Settings > Accessibility > Display." = "ב-%@ עלולות להופיע בעיות ביצועים או תצוגה. לחוויה הטובה ביותר, השתמשו ב-macOS Ventura, ב-macOS Sonoma או ב-macOS Sequoia.\n\nאם אפקטים של שקיפות גורמים לבעיות תצוגה, הפעילו את ״הפחתת שקיפות״ ב״הגדרות המערכת״ > ״נגישות״ > ״תצוגה״.";
"%@ remaining" = "נותרו %@";
"%@\nState: %@\n%@\n\n" = "%@\nמצב: %@\n%@\n\n";
@@ -15,12 +16,15 @@
"Add Shared Folder" = "הוספת תיקייה משותפת";
"Advanced" = "מתקדם";
"Allowed: %llu–%llu%@" = "מותר: %llu–%llu%@";
+"Always On" = "תמיד פעיל";
"Another usbmuxd service took control of the virtual DFU device before it entered RestoreOS. Uninstall usbmuxd from Sileo and try again." = "שירות usbmuxd אחר השתלט על מכשיר ה-DFU הווירטואלי לפני שנכנס ל-RestoreOS. יש להסיר את usbmuxd דרך Sileo ולנסות שוב.";
"Another Virtual Mac Is Running" = "Mac וירטואלי אחר פועל";
+"Apple Pencil Pressure and Tilt" = "לחץ והטיה של Apple Pencil";
"Audio and Acceleration" = "שמע והאצה";
"Audio Output" = "פלט שמע";
"Available macOS Releases" = "גרסאות macOS זמינות";
"Available macOS Versions" = "גרסאות macOS זמינות";
+"Because OpenGL acceleration requires Virtual Mac guest tools, turning off Virtual Mac guest tools will also turn off OpenGL acceleration. Apps such as Final Cut Pro mostly use Metal, but they check for OpenGL capabilities in order to launch." = "מכיוון שהאצת OpenGL דורשת את כלי האורח של Virtual Mac, כיבוי כלי האורח יכבה גם את האצת OpenGL. יישומים כמו Final Cut Pro משתמשים בעיקר ב‑Metal, אך בודקים יכולות OpenGL כדי להיפתח.";
"Boot and Network" = "אתחול ורשת";
"Bottom Left" = "למטה משמאל";
"Bottom Right" = "למטה מימין";
@@ -42,7 +46,6 @@
"Choose whether Virtual Mac opens its library or starts a Virtual Mac." = "יש לבחור אם Mac וירטואלי יפתח את הספרייה או יפעיל Mac וירטואלי.";
"Compatibility" = "תאימות";
"Complete Virtual Mac devices and restore images outside Virtual Mac are not removed." = "מחשבי Mac וירטואליים שהושלמו ותמונות שחזור מחוץ ליישום לא יוסרו.";
-"Configuration changes take effect after the Virtual Mac is shut down and started again." = "שינויי התצורה ייכנסו לתוקף לאחר כיבוי והפעלה מחדש של Virtual Mac.";
"Configuration failed: %@" = "התצורה נכשלה: %@";
"Configure %@" = "הגדרת %@";
"Continue" = "המשך";
@@ -58,7 +61,7 @@
"Create Virtual Mac" = "יצירת Mac וירטואלי";
"Custom" = "מותאם אישית";
"Debug Logging" = "רישום ניפוי באגים";
-"Debug Logging has been enabled. You can turn it off later in Settings." = "רישום ניפוי הבאגים הופעל. אפשר להשבית אותו מאוחר יותר בהגדרות.";
+"Debug logging has been enabled for the next boot." = "רישום ניפוי השגיאות הופעל להפעלה הבאה.";
"Debug Logging takes effect the next time a Virtual Mac starts." = "רישום ניפוי הבאגים ייכנס לתוקף בהפעלה הבאה של Virtual Mac.";
"Delete" = "מחיקה";
"Delete All" = "מחיקת הכול";
@@ -82,7 +85,12 @@
"Display Resolution" = "רזולוציית הצג";
"Display Width" = "רוחב הצג";
"Double-tap to hold or release this modifier" = "יש להקיש פעמיים כדי לנעול או לשחרר מקש צירוף זה";
+"Download Apple Pencil Support" = "הורדת תמיכה ב-Apple Pencil";
"Download Failed" = "ההורדה נכשלה";
+"Download Final Cut Pro Trial" = "הורדת גרסת הניסיון של Final Cut Pro";
+"Download Logic Pro Trial" = "הורדת גרסת הניסיון של Logic Pro";
+"Download Pixelmator Pro Trial" = "הורדת גרסת הניסיון של Pixelmator Pro";
+"Download Xcode" = "הורדת Xcode";
"Downloading macOS" = "מתבצעת הורדה של macOS";
"Enter six hexadecimal octets separated by colons." = "יש להזין שש קבוצות הקסדצימליות המופרדות בנקודתיים.";
"Ethernet (%@)" = "Ethernet‏ (%@)";
@@ -122,6 +130,7 @@
"Keep Virtual Mac open. Your iPad will remain awake until the download finishes." = "יש להשאיר את Mac וירטואלי פתוח. ה-iPad יישאר פעיל עד לסיום ההורדה.";
"Keyboard" = "מקלדת";
"Landscape iPad" = "iPad לרוחב";
+"Learn More" = "מידע נוסף";
"Library Appearance" = "מראה הספרייה";
"Loading extracted Apple virtualization frameworks…" = "ה-frameworks של Apple לווירטואליזציה שחולצו נטענים…";
"MAC Address" = "כתובת MAC";
@@ -130,6 +139,7 @@
"Mac Trackpad" = "משטח עקיבה של Mac";
"macOS Installed" = "macOS הותקן";
"Memory" = "זיכרון";
+"Metal BC Support" = "תמיכה ב‑Metal BC";
"Microphone Input" = "קלט מיקרופון";
"Minimum: %llu GB. The upper limit is determined by the filesystem." = "מינימום: %llu GB. הגבול העליון נקבע על ידי מערכת הקבצים.";
"Move Controls" = "הזזת הפקדים";
@@ -145,10 +155,15 @@
"Off" = "כבוי";
"OK" = "אישור";
"On" = "פעיל";
+"On for Next Boot" = "פעיל בהפעלה הבאה";
"Only about %llu GB is currently available. The disk image is sparse, but installation or later use can fail when storage fills up." = "כרגע זמינים רק כ-%llu GB. תמונת הכונן דינמית, אך ההתקנה או השימוש בהמשך עלולים להיכשל אם האחסון יתמלא.";
"Open Control Center and start Screen Recording, then reproduce the problem." = "פתחו את מרכז הבקרה, התחילו הקלטת מסך ולאחר מכן שחזרו את הבעיה.";
+"OpenGL Acceleration" = "האצת OpenGL";
+"OpenGL Acceleration Is Off" = "האצת OpenGL כבויה";
+"OpenGL Acceleration requires macOS Sonoma or later." = "האצת OpenGL דורשת macOS Sonoma ואילך.";
"Optional" = "אופציונלי";
"Options" = "אפשרויות";
+"Out of Video Memory" = "זיכרון הווידאו אזל";
"People have dreamed of running macOS on iPad for more than a decade. Today, that dream comes true. Create a Virtual Mac to get started." = "כבר יותר מעשור אנשים חולמים להפעיל את macOS ב-iPad. היום החלום הזה מתגשם. כדי להתחיל, יש ליצור Mac וירטואלי.";
"Pixels Per Inch" = "פיקסלים לאינץ׳";
"Pointing Device" = "התקן הצבעה";
@@ -220,11 +235,14 @@
"These options affect iPadOS only while Virtual Mac is frontmost and a Virtual Mac is running." = "אפשרויות אלה משפיעות על iPadOS רק כאשר Mac וירטואלי בחזית ומופעל Mac וירטואלי.";
"This restores all Virtual Mac settings to their defaults. Virtual Macs, restore images, and installation files won’t be removed." = "פעולה זו מאפסת את כל הגדרות Mac וירטואלי לברירות המחדל. מחשבי Mac וירטואליים, תמונות שחזור וקובצי התקנה לא יוסרו.";
"this Virtual Mac" = "Mac וירטואלי זה";
+"To enable OpenGL acceleration, shut down this Virtual Mac, then in its options, enable OpenGL Acceleration." = "כדי להפעיל האצת OpenGL, יש לכבות את ה‑Virtual Mac הזה ולהפעיל אותה באפשרויות שלו.";
"To show the controls, touch and hold the Virtual Mac icon on the Home Screen, then choose Show Virtual Mac Controls." = "כדי להציג את הפקדים, יש לגעת ממושכות באייקון של Virtual Mac במסך הבית ואז לבחור בהצגת הפקדים של Virtual Mac.";
+"To use Apple Pencil pressure and tilt, download pencil-probe in %@ Virtual Mac." = "כדי להשתמש בלחץ ובהטיה של Apple Pencil, יש להוריד את pencil-probe אל ה-Mac הווירטואלי %@.";
"Top Left" = "למעלה משמאל";
"Top Right" = "למעלה מימין";
"Touch" = "מגע";
"Touch and Hold to Secondary Click" = "גע והחזק ללחיצה משנית";
+"Turn Off Virtual Mac Guest Tools?" = "לכבות את כלי האורח של Virtual Mac?";
"Two Finger Tap to Secondary Click" = "הקשה בשתי אצבעות ללחיצה משנית";
"Unknown" = "לא ידוע";
"Unsaved changes in macOS may be lost." = "שינויים שלא נשמרו ב-macOS עלולים ללכת לאיבוד.";
@@ -245,6 +263,7 @@
"Virtual Mac devices are stored in %@." = "מחשבי Mac וירטואליים נשמרים ב-%@.";
"Virtual Mac Display" = "צג ה-Mac הווירטואלי";
"Virtual Mac does not support the Dopamine-roothide environment. Remove the roothide jailbreak from Dopamine-roothide > Settings > Remove Jailbreak, then switch to the official version of Dopamine." = "Virtual Mac אינו תומך בסביבת Dopamine-roothide. יש להסיר את פריצת roothide דרך Dopamine-roothide > הגדרות > הסרת Jailbreak, ואז לעבור לגרסה הרשמית של Dopamine.";
+"Virtual Mac Guest Tools" = "כלי אורח עבור Mac וירטואלי";
"Virtual Mac has no published framebuffer" = "ל-Mac הווירטואלי אין framebuffer שפורסם";
"Virtual Mac running — native PVG framebuffer attached" = "Mac וירטואלי פועל — framebuffer מקורי של PVG מחובר";
"Virtual Mac running — preparing native PVG display" = "Mac וירטואלי פועל — הצג המקורי של PVG בהכנה";
diff --git a/VirtualMac/resources/Localizations/hi.lproj/Localizable.strings b/VirtualMac/resources/Localizations/hi.lproj/Localizable.strings
index 6e222a0..1107446 100644
--- a/VirtualMac/resources/Localizations/hi.lproj/Localizable.strings
+++ b/VirtualMac/resources/Localizations/hi.lproj/Localizable.strings
@@ -2,6 +2,7 @@
"%.0f%% complete" = "%.0f%% पूर्ण";
"%@ CPU · %@ GB RAM · %llu GB · %@%@" = "%@ CPU · %@ GB RAM · %llu GB · %@%@";
"%@ is not supported" = "%@ समर्थित नहीं है";
+"%@ is out of video memory. macOS may appear frozen." = "%@ की वीडियो मेमोरी समाप्त हो गई है। macOS फ़्रीज़ हुआ दिखाई दे सकता है।";
"%@ may encounter performance or graphical issues. For the best experience, use macOS Ventura, macOS Sonoma, or macOS Sequoia.\n\nIf transparency effects cause visual problems, turn on Reduce Transparency in System Settings > Accessibility > Display." = "%@ में प्रदर्शन या ग्राफ़िक्स संबंधी समस्याएँ आ सकती हैं। सर्वोत्तम अनुभव के लिए macOS Ventura, macOS Sonoma या macOS Sequoia का उपयोग करें।\n\nयदि पारदर्शिता प्रभावों से दृश्य समस्याएँ आती हैं, तो सिस्टम सेटिंग्ज़ > ऐक्सेसिबिलिटी > डिस्प्ले में पारदर्शिता कम करें चालू करें।";
"%@ remaining" = "%@ शेष";
"%@\nState: %@\n%@\n\n" = "%@\nस्थिति: %@\n%@\n\n";
@@ -15,12 +16,15 @@
"Add Shared Folder" = "शेयर किया गया फ़ोल्डर जोड़ें";
"Advanced" = "उन्नत";
"Allowed: %llu–%llu%@" = "अनुमत: %llu–%llu%@";
+"Always On" = "हमेशा चालू";
"Another usbmuxd service took control of the virtual DFU device before it entered RestoreOS. Uninstall usbmuxd from Sileo and try again." = "वर्चुअल DFU डिवाइस के RestoreOS में जाने से पहले किसी अन्य usbmuxd सेवा ने उसका नियंत्रण ले लिया। Sileo से usbmuxd अनइंस्टॉल करके फिर प्रयास करें।";
"Another Virtual Mac Is Running" = "कोई अन्य वर्चुअल Mac चल रहा है";
+"Apple Pencil Pressure and Tilt" = "Apple Pencil का दबाव और झुकाव";
"Audio and Acceleration" = "ऑडियो और एक्सेलरेशन";
"Audio Output" = "ऑडियो आउटपुट";
"Available macOS Releases" = "उपलब्ध macOS रिलीज़";
"Available macOS Versions" = "उपलब्ध macOS संस्करण";
+"Because OpenGL acceleration requires Virtual Mac guest tools, turning off Virtual Mac guest tools will also turn off OpenGL acceleration. Apps such as Final Cut Pro mostly use Metal, but they check for OpenGL capabilities in order to launch." = "OpenGL एक्सेलेरेशन के लिए Virtual Mac गेस्ट टूल्स आवश्यक हैं, इसलिए गेस्ट टूल्स बंद करने पर OpenGL एक्सेलेरेशन भी बंद हो जाएगा। Final Cut Pro जैसे ऐप मुख्य रूप से Metal का उपयोग करते हैं, लेकिन शुरू होने के लिए OpenGL क्षमताओं की जाँच करते हैं।";
"Boot and Network" = "बूट और नेटवर्क";
"Bottom Left" = "नीचे बाईं ओर";
"Bottom Right" = "नीचे दाईं ओर";
@@ -42,7 +46,6 @@
"Choose whether Virtual Mac opens its library or starts a Virtual Mac." = "चुनें कि वर्चुअल Mac अपनी लाइब्रेरी खोले या कोई वर्चुअल Mac शुरू करे।";
"Compatibility" = "अनुकूलता";
"Complete Virtual Mac devices and restore images outside Virtual Mac are not removed." = "वर्चुअल Mac के बाहर मौजूद पूरे वर्चुअल Mac और रीस्टोर इमेज नहीं हटाए जाएँगे।";
-"Configuration changes take effect after the Virtual Mac is shut down and started again." = "कॉन्फ़िगरेशन में किए गए बदलाव Virtual Mac को बंद करके फिर से चालू करने के बाद लागू होंगे।";
"Configuration failed: %@" = "कॉन्फ़िगरेशन विफल: %@";
"Configure %@" = "%@ कॉन्फ़िगर करें";
"Continue" = "जारी रखें";
@@ -58,7 +61,7 @@
"Create Virtual Mac" = "वर्चुअल Mac बनाएँ";
"Custom" = "कस्टम";
"Debug Logging" = "डीबग लॉगिंग";
-"Debug Logging has been enabled. You can turn it off later in Settings." = "डीबग लॉगिंग चालू कर दी गई है। आप इसे बाद में सेटिंग्स में बंद कर सकते हैं।";
+"Debug logging has been enabled for the next boot." = "अगले बूट के लिए डीबग लॉगिंग चालू कर दी गई है।";
"Debug Logging takes effect the next time a Virtual Mac starts." = "डीबग लॉगिंग अगली बार Virtual Mac शुरू होने पर लागू होगी।";
"Delete" = "हटाएँ";
"Delete All" = "सभी हटाएँ";
@@ -82,7 +85,12 @@
"Display Resolution" = "डिस्प्ले रिज़ॉल्यूशन";
"Display Width" = "डिस्प्ले की चौड़ाई";
"Double-tap to hold or release this modifier" = "इस मॉडिफ़ायर को दबाए रखने या छोड़ने के लिए दो बार टैप करें";
+"Download Apple Pencil Support" = "Apple Pencil सहायता डाउनलोड करें";
"Download Failed" = "डाउनलोड विफल";
+"Download Final Cut Pro Trial" = "Final Cut Pro ट्रायल डाउनलोड करें";
+"Download Logic Pro Trial" = "Logic Pro ट्रायल डाउनलोड करें";
+"Download Pixelmator Pro Trial" = "Pixelmator Pro ट्रायल डाउनलोड करें";
+"Download Xcode" = "Xcode डाउनलोड करें";
"Downloading macOS" = "macOS डाउनलोड हो रहा है";
"Enter six hexadecimal octets separated by colons." = "कोलन से अलग किए गए छह हेक्साडेसिमल ऑक्टेट दर्ज करें।";
"Ethernet (%@)" = "Ethernet (%@)";
@@ -122,6 +130,7 @@
"Keep Virtual Mac open. Your iPad will remain awake until the download finishes." = "वर्चुअल Mac को खुला रखें। डाउनलोड पूरा होने तक आपका iPad सक्रिय रहेगा।";
"Keyboard" = "कीबोर्ड";
"Landscape iPad" = "iPad लैंडस्केप";
+"Learn More" = "अधिक जानें";
"Library Appearance" = "लाइब्रेरी का स्वरूप";
"Loading extracted Apple virtualization frameworks…" = "निकाले गए Apple वर्चुअलाइज़ेशन फ़्रेमवर्क लोड हो रहे हैं…";
"MAC Address" = "MAC पता";
@@ -130,6 +139,7 @@
"Mac Trackpad" = "Mac ट्रैकपैड";
"macOS Installed" = "macOS इंस्टॉल हो गया";
"Memory" = "मेमोरी";
+"Metal BC Support" = "Metal BC समर्थन";
"Microphone Input" = "माइक्रोफ़ोन इनपुट";
"Minimum: %llu GB. The upper limit is determined by the filesystem." = "न्यूनतम: %llu GB। ऊपरी सीमा फ़ाइल सिस्टम तय करता है।";
"Move Controls" = "कंट्रोल ले जाएँ";
@@ -145,10 +155,15 @@
"Off" = "बंद";
"OK" = "ठीक";
"On" = "चालू";
+"On for Next Boot" = "अगले बूट के लिए चालू";
"Only about %llu GB is currently available. The disk image is sparse, but installation or later use can fail when storage fills up." = "अभी केवल लगभग %llu GB उपलब्ध है। डिस्क इमेज डायनेमिक है, लेकिन स्टोरेज भरने पर इंस्टॉलेशन या बाद का उपयोग विफल हो सकता है।";
"Open Control Center and start Screen Recording, then reproduce the problem." = "कंट्रोल सेंटर खोलें, स्क्रीन रिकॉर्डिंग शुरू करें, फिर समस्या को दोबारा उत्पन्न करें।";
+"OpenGL Acceleration" = "OpenGL एक्सेलेरेशन";
+"OpenGL Acceleration Is Off" = "OpenGL एक्सेलेरेशन बंद है";
+"OpenGL Acceleration requires macOS Sonoma or later." = "OpenGL एक्सेलेरेशन के लिए macOS Sonoma या बाद का संस्करण आवश्यक है।";
"Optional" = "वैकल्पिक";
"Options" = "विकल्प";
+"Out of Video Memory" = "वीडियो मेमोरी समाप्त";
"People have dreamed of running macOS on iPad for more than a decade. Today, that dream comes true. Create a Virtual Mac to get started." = "लोग एक दशक से भी अधिक समय से iPad पर macOS चलाने का सपना देखते आए हैं। आज वह सपना सच हो रहा है। शुरू करने के लिए वर्चुअल Mac बनाएँ।";
"Pixels Per Inch" = "प्रति इंच पिक्सेल";
"Pointing Device" = "पॉइंटिंग डिवाइस";
@@ -220,11 +235,14 @@
"These options affect iPadOS only while Virtual Mac is frontmost and a Virtual Mac is running." = "ये विकल्प iPadOS को केवल तब प्रभावित करते हैं, जब वर्चुअल Mac सामने हो और कोई वर्चुअल Mac चल रहा हो।";
"This restores all Virtual Mac settings to their defaults. Virtual Macs, restore images, and installation files won’t be removed." = "यह वर्चुअल Mac की सभी सेटिंग्स को उनके डिफ़ॉल्ट पर रीसेट करता है। वर्चुअल Mac, रीस्टोर इमेज और इंस्टॉलेशन फ़ाइलें नहीं हटाई जाएँगी।";
"this Virtual Mac" = "यह वर्चुअल Mac";
+"To enable OpenGL acceleration, shut down this Virtual Mac, then in its options, enable OpenGL Acceleration." = "OpenGL एक्सेलेरेशन चालू करने के लिए इस Virtual Mac को बंद करें, फिर इसके विकल्पों में OpenGL एक्सेलेरेशन चालू करें।";
"To show the controls, touch and hold the Virtual Mac icon on the Home Screen, then choose Show Virtual Mac Controls." = "नियंत्रण दिखाने के लिए होम स्क्रीन पर Virtual Mac आइकन को दबाकर रखें, फिर Virtual Mac नियंत्रण दिखाएँ चुनें।";
+"To use Apple Pencil pressure and tilt, download pencil-probe in %@ Virtual Mac." = "Apple Pencil का दबाव और झुकाव इस्तेमाल करने के लिए, %@ वर्चुअल Mac में pencil-probe डाउनलोड करें।";
"Top Left" = "ऊपर बाईं ओर";
"Top Right" = "ऊपर दाईं ओर";
"Touch" = "टच";
"Touch and Hold to Secondary Click" = "सेकेंडरी क्लिक के लिए स्पर्श करके रखें";
+"Turn Off Virtual Mac Guest Tools?" = "Virtual Mac गेस्ट टूल्स बंद करें?";
"Two Finger Tap to Secondary Click" = "सेकेंडरी क्लिक के लिए टू-फिंगर टैप";
"Unknown" = "अज्ञात";
"Unsaved changes in macOS may be lost." = "macOS में सेव न किए गए बदलाव खो सकते हैं।";
@@ -245,6 +263,7 @@
"Virtual Mac devices are stored in %@." = "वर्चुअल Mac %@ में संग्रहीत किए जाते हैं।";
"Virtual Mac Display" = "वर्चुअल Mac डिस्प्ले";
"Virtual Mac does not support the Dopamine-roothide environment. Remove the roothide jailbreak from Dopamine-roothide > Settings > Remove Jailbreak, then switch to the official version of Dopamine." = "Virtual Mac, Dopamine-roothide परिवेश का समर्थन नहीं करता। Dopamine-roothide > सेटिंग्स > जेलब्रेक हटाएँ में जाकर roothide जेलब्रेक हटाएँ, फिर Dopamine के आधिकारिक संस्करण पर जाएँ।";
+"Virtual Mac Guest Tools" = "वर्चुअल Mac अतिथि टूल";
"Virtual Mac has no published framebuffer" = "वर्चुअल Mac का कोई प्रकाशित फ़्रेमबफ़र नहीं है";
"Virtual Mac running — native PVG framebuffer attached" = "वर्चुअल Mac चल रहा है — मूल PVG फ़्रेमबफ़र जुड़ा है";
"Virtual Mac running — preparing native PVG display" = "वर्चुअल Mac चल रहा है — मूल PVG डिस्प्ले तैयार हो रही है";
diff --git a/VirtualMac/resources/Localizations/hr.lproj/Localizable.strings b/VirtualMac/resources/Localizations/hr.lproj/Localizable.strings
index 37ec3e1..3ca473e 100644
--- a/VirtualMac/resources/Localizations/hr.lproj/Localizable.strings
+++ b/VirtualMac/resources/Localizations/hr.lproj/Localizable.strings
@@ -2,6 +2,7 @@
"%.0f%% complete" = "Dovršeno %.0f%%";
"%@ CPU · %@ GB RAM · %llu GB · %@%@" = "%@ CPU · %@ GB RAM-a · %llu GB · %@%@";
"%@ is not supported" = "%@ nije podržan";
+"%@ is out of video memory. macOS may appear frozen." = "%@ nema više videomemorije. macOS može izgledati zamrznuto.";
"%@ may encounter performance or graphical issues. For the best experience, use macOS Ventura, macOS Sonoma, or macOS Sequoia.\n\nIf transparency effects cause visual problems, turn on Reduce Transparency in System Settings > Accessibility > Display." = "U sustavu %@ mogući su problemi s performansama ili grafikom. Za najbolje iskustvo koristite macOS Ventura, macOS Sonoma ili macOS Sequoia.\n\nAko efekti prozirnosti uzrokuju probleme s prikazom, uključite Smanji prozirnost u Postavke sustava > Pristupačnost > Zaslon.";
"%@ remaining" = "Preostalo: %@";
"%@\nState: %@\n%@\n\n" = "%@\nStanje: %@\n%@\n\n";
@@ -15,12 +16,15 @@
"Add Shared Folder" = "Dodaj dijeljenu mapu";
"Advanced" = "Napredno";
"Allowed: %llu–%llu%@" = "Dopušteno: %llu–%llu%@";
+"Always On" = "Uvijek uključeno";
"Another usbmuxd service took control of the virtual DFU device before it entered RestoreOS. Uninstall usbmuxd from Sileo and try again." = "Drugi servis usbmuxd preuzeo je virtualni DFU uređaj prije ulaska u RestoreOS. Deinstalirajte usbmuxd putem Silea i pokušajte ponovno.";
"Another Virtual Mac Is Running" = "Pokrenut je drugi Virtualni Mac";
+"Apple Pencil Pressure and Tilt" = "Pritisak i nagib Apple Pencila";
"Audio and Acceleration" = "Zvuk i ubrzanje";
"Audio Output" = "Izlaz zvuka";
"Available macOS Releases" = "Dostupna izdanja macOS-a";
"Available macOS Versions" = "Dostupne verzije sustava macOS";
+"Because OpenGL acceleration requires Virtual Mac guest tools, turning off Virtual Mac guest tools will also turn off OpenGL acceleration. Apps such as Final Cut Pro mostly use Metal, but they check for OpenGL capabilities in order to launch." = "Budući da ubrzanje OpenGL-a zahtijeva gostujuće alate za Virtual Mac, njihovim isključivanjem isključit će se i ubrzanje OpenGL-a. Aplikacije kao što je Final Cut Pro uglavnom koriste Metal, ali pri pokretanju provjeravaju mogućnosti OpenGL-a.";
"Boot and Network" = "Pokretanje i mreža";
"Bottom Left" = "Dolje lijevo";
"Bottom Right" = "Dolje desno";
@@ -42,7 +46,6 @@
"Choose whether Virtual Mac opens its library or starts a Virtual Mac." = "Odaberite hoće li Virtualni Mac otvoriti medijateku ili pokrenuti Virtualni Mac.";
"Compatibility" = "Kompatibilnost";
"Complete Virtual Mac devices and restore images outside Virtual Mac are not removed." = "Dovršeni Virtualni Macovi i slike za obnovu izvan aplikacije neće se ukloniti.";
-"Configuration changes take effect after the Virtual Mac is shut down and started again." = "Promjene konfiguracije primjenjuju se nakon isključivanja i ponovnog pokretanja Virtual Maca.";
"Configuration failed: %@" = "Konfiguracija nije uspjela: %@";
"Configure %@" = "Konfiguriraj %@";
"Continue" = "Nastavi";
@@ -58,7 +61,7 @@
"Create Virtual Mac" = "Izradi Virtualni Mac";
"Custom" = "Prilagođeno";
"Debug Logging" = "Bilježenje za otklanjanje pogrešaka";
-"Debug Logging has been enabled. You can turn it off later in Settings." = "Zapisivanje podataka za otklanjanje pogrešaka je uključeno. Kasnije ga možete isključiti u Postavkama.";
+"Debug logging has been enabled for the next boot." = "Bilježenje za otklanjanje grešaka uključeno je za sljedeće pokretanje.";
"Debug Logging takes effect the next time a Virtual Mac starts." = "Zapisivanje podataka za otklanjanje pogrešaka aktivirat će se pri sljedećem pokretanju Virtual Maca.";
"Delete" = "Izbriši";
"Delete All" = "Izbriši sve";
@@ -82,7 +85,12 @@
"Display Resolution" = "Razlučivost zaslona";
"Display Width" = "Širina zaslona";
"Double-tap to hold or release this modifier" = "Dvaput dodirnite kako biste zadržali ili otpustili ovu modifikacijsku tipku";
+"Download Apple Pencil Support" = "Preuzmi podršku za Apple Pencil";
"Download Failed" = "Preuzimanje nije uspjelo";
+"Download Final Cut Pro Trial" = "Preuzmi probnu verziju Final Cut Proa";
+"Download Logic Pro Trial" = "Preuzmi probnu verziju Logic Proa";
+"Download Pixelmator Pro Trial" = "Preuzmi probnu verziju Pixelmator Proa";
+"Download Xcode" = "Preuzmi Xcode";
"Downloading macOS" = "Preuzimanje macOS-a";
"Enter six hexadecimal octets separated by colons." = "Unesite šest heksadecimalnih okteta odvojenih dvotočkama.";
"Ethernet (%@)" = "Ethernet (%@)";
@@ -122,6 +130,7 @@
"Keep Virtual Mac open. Your iPad will remain awake until the download finishes." = "Ostavite Virtualni Mac otvoren. Vaš iPad ostat će aktivan dok se preuzimanje ne dovrši.";
"Keyboard" = "Tipkovnica";
"Landscape iPad" = "iPad vodoravno";
+"Learn More" = "Saznajte više";
"Library Appearance" = "Izgled medijateke";
"Loading extracted Apple virtualization frameworks…" = "Učitavanje izdvojenih Appleovih frameworka za virtualizaciju…";
"MAC Address" = "MAC adresa";
@@ -130,6 +139,7 @@
"Mac Trackpad" = "Mac dodirna ploha";
"macOS Installed" = "macOS je instaliran";
"Memory" = "Memorija";
+"Metal BC Support" = "Podrška za Metal BC";
"Microphone Input" = "Ulaz mikrofona";
"Minimum: %llu GB. The upper limit is determined by the filesystem." = "Najmanje: %llu GB. Gornju granicu određuje datotečni sustav.";
"Move Controls" = "Premjesti kontrole";
@@ -145,10 +155,15 @@
"Off" = "Isključeno";
"OK" = "U redu";
"On" = "Uključeno";
+"On for Next Boot" = "Uključeno za sljedeće pokretanje";
"Only about %llu GB is currently available. The disk image is sparse, but installation or later use can fail when storage fills up." = "Trenutačno je dostupno samo oko %llu GB. Slika diska je dinamična, ali instalacija ili kasnija uporaba mogu biti neuspješne ako se pohrana napuni.";
"Open Control Center and start Screen Recording, then reproduce the problem." = "Otvorite Kontrolni centar, pokrenite snimanje zaslona, a zatim ponovite problem.";
+"OpenGL Acceleration" = "Ubrzanje OpenGL-a";
+"OpenGL Acceleration Is Off" = "Ubrzanje OpenGL-a je isključeno";
+"OpenGL Acceleration requires macOS Sonoma or later." = "Ubrzanje OpenGL-a zahtijeva macOS Sonoma ili noviji.";
"Optional" = "Neobavezno";
"Options" = "Opcije";
+"Out of Video Memory" = "Nema videomemorije";
"People have dreamed of running macOS on iPad for more than a decade. Today, that dream comes true. Create a Virtual Mac to get started." = "Ljudi više od desetljeća sanjaju o pokretanju sustava macOS na iPadu. Danas taj san postaje stvarnost. Za početak izradite virtualni Mac.";
"Pixels Per Inch" = "Pikseli po inču";
"Pointing Device" = "Pokazivački uređaj";
@@ -220,11 +235,14 @@
"These options affect iPadOS only while Virtual Mac is frontmost and a Virtual Mac is running." = "Ove opcije utječu na iPadOS samo dok je Virtualni Mac u prvom planu i virtualni Mac je pokrenut.";
"This restores all Virtual Mac settings to their defaults. Virtual Macs, restore images, and installation files won’t be removed." = "Time se sve postavke Virtualnog Maca vraćaju na zadane vrijednosti. Virtualni Macovi, slike za obnovu i instalacijske datoteke neće se ukloniti.";
"this Virtual Mac" = "ovaj Virtualni Mac";
+"To enable OpenGL acceleration, shut down this Virtual Mac, then in its options, enable OpenGL Acceleration." = "Za uključivanje ubrzanja OpenGL-a isključite ovaj Virtual Mac, a zatim ga uključite u njegovim opcijama.";
"To show the controls, touch and hold the Virtual Mac icon on the Home Screen, then choose Show Virtual Mac Controls." = "Za prikaz kontrola dodirnite i držite ikonu Virtual Mac na početnom zaslonu, a zatim odaberite Prikaži kontrole Virtual Maca.";
+"To use Apple Pencil pressure and tilt, download pencil-probe in %@ Virtual Mac." = "Za korištenje pritiska i nagiba Apple Pencila preuzmite pencil-probe na virtualni Mac %@.";
"Top Left" = "Gore lijevo";
"Top Right" = "Gore desno";
"Touch" = "Dodir";
"Touch and Hold to Secondary Click" = "Dodirnite i držite za sekundarni klik";
+"Turn Off Virtual Mac Guest Tools?" = "Isključiti gostujuće alate za Virtual Mac?";
"Two Finger Tap to Secondary Click" = "Dodir s dva prsta za sekundarni klik";
"Unknown" = "Nepoznato";
"Unsaved changes in macOS may be lost." = "Nespremljene promjene u macOS-u mogu se izgubiti.";
@@ -245,6 +263,7 @@
"Virtual Mac devices are stored in %@." = "Virtualni Macovi pohranjuju se u %@.";
"Virtual Mac Display" = "Zaslon Virtualnog Maca";
"Virtual Mac does not support the Dopamine-roothide environment. Remove the roothide jailbreak from Dopamine-roothide > Settings > Remove Jailbreak, then switch to the official version of Dopamine." = "Virtual Mac ne podržava okruženje Dopamine-roothide. Uklonite roothide jailbreak u Dopamine-roothide > Postavke > Ukloni jailbreak, a zatim prijeđite na službenu verziju Dopaminea.";
+"Virtual Mac Guest Tools" = "Alati za gosta Virtualnog Maca";
"Virtual Mac has no published framebuffer" = "Virtualni Mac nema objavljeni framebuffer";
"Virtual Mac running — native PVG framebuffer attached" = "Virtualni Mac radi — izvorni PVG framebuffer je povezan";
"Virtual Mac running — preparing native PVG display" = "Virtualni Mac radi — priprema izvornog PVG zaslona";
diff --git a/VirtualMac/resources/Localizations/hu.lproj/Localizable.strings b/VirtualMac/resources/Localizations/hu.lproj/Localizable.strings
index 4fe00a3..34dd826 100644
--- a/VirtualMac/resources/Localizations/hu.lproj/Localizable.strings
+++ b/VirtualMac/resources/Localizations/hu.lproj/Localizable.strings
@@ -2,6 +2,7 @@
"%.0f%% complete" = "%.0f%% kész";
"%@ CPU · %@ GB RAM · %llu GB · %@%@" = "%@ CPU · %@ GB RAM · %llu GB · %@%@";
"%@ is not supported" = "A(z) %@ nem támogatott";
+"%@ is out of video memory. macOS may appear frozen." = "A(z) %@ videomemóriája elfogyott. A macOS lefagyottnak tűnhet.";
"%@ may encounter performance or graphical issues. For the best experience, use macOS Ventura, macOS Sonoma, or macOS Sequoia.\n\nIf transparency effects cause visual problems, turn on Reduce Transparency in System Settings > Accessibility > Display." = "A(z) %@ használatakor teljesítménybeli vagy grafikai problémák jelentkezhetnek. A legjobb élményhez használjon macOS Ventura, macOS Sonoma vagy macOS Sequoia rendszert.\n\nHa az áttetszőségi effektusok megjelenítési problémát okoznak, kapcsolja be az Átlátszóság csökkentése beállítást a Rendszerbeállítások > Kisegítő lehetőségek > Kijelző menüben.";
"%@ remaining" = "%@ van hátra";
"%@\nState: %@\n%@\n\n" = "%@\nÁllapot: %@\n%@\n\n";
@@ -15,12 +16,15 @@
"Add Shared Folder" = "Megosztott mappa hozzáadása";
"Advanced" = "Speciális";
"Allowed: %llu–%llu%@" = "Engedélyezett: %llu–%llu%@";
+"Always On" = "Mindig bekapcsolva";
"Another usbmuxd service took control of the virtual DFU device before it entered RestoreOS. Uninstall usbmuxd from Sileo and try again." = "Egy másik usbmuxd-szolgáltatás átvette a virtuális DFU-eszköz irányítását, mielőtt az RestoreOS módba lépett. Távolítsa el az usbmuxd csomagot a Sileóban, majd próbálja újra.";
"Another Virtual Mac Is Running" = "Egy másik virtuális Mac fut";
+"Apple Pencil Pressure and Tilt" = "Apple Pencil nyomás és dőlés";
"Audio and Acceleration" = "Hang és gyorsítás";
"Audio Output" = "Hangkimenet";
"Available macOS Releases" = "Elérhető macOS-kiadások";
"Available macOS Versions" = "Elérhető macOS-verziók";
+"Because OpenGL acceleration requires Virtual Mac guest tools, turning off Virtual Mac guest tools will also turn off OpenGL acceleration. Apps such as Final Cut Pro mostly use Metal, but they check for OpenGL capabilities in order to launch." = "Mivel az OpenGL-gyorsításhoz szükség van a Virtual Mac vendégeszközeire, azok kikapcsolása az OpenGL-gyorsítást is kikapcsolja. A Final Cut Pro és más appok főként a Metalt használják, de induláskor ellenőrzik az OpenGL-képességeket.";
"Boot and Network" = "Indítás és hálózat";
"Bottom Left" = "Bal alsó";
"Bottom Right" = "Jobb alsó";
@@ -42,7 +46,6 @@
"Choose whether Virtual Mac opens its library or starts a Virtual Mac." = "Válassza ki, hogy a Virtual Mac a könyvtárat nyissa meg, vagy elindítson egy virtuális Macet.";
"Compatibility" = "Kompatibilitás";
"Complete Virtual Mac devices and restore images outside Virtual Mac are not removed." = "A kész virtuális Macek és a Virtual Macen kívüli helyreállítási lemezképek nem lesznek eltávolítva.";
-"Configuration changes take effect after the Virtual Mac is shut down and started again." = "A konfiguráció módosításai a Virtual Mac leállítása és újraindítása után lépnek érvénybe.";
"Configuration failed: %@" = "Sikertelen konfiguráció: %@";
"Configure %@" = "%@ konfigurálása";
"Continue" = "Folytatás";
@@ -58,7 +61,7 @@
"Create Virtual Mac" = "Virtuális Mac létrehozása";
"Custom" = "Egyéni";
"Debug Logging" = "Hibakeresési naplózás";
-"Debug Logging has been enabled. You can turn it off later in Settings." = "A hibakeresési naplózás be lett kapcsolva. Később kikapcsolhatja a Beállításokban.";
+"Debug logging has been enabled for the next boot." = "A hibakeresési naplózás be lett kapcsolva a következő indításhoz.";
"Debug Logging takes effect the next time a Virtual Mac starts." = "A hibakeresési naplózás a Virtual Mac következő indításakor lép életbe.";
"Delete" = "Törlés";
"Delete All" = "Összes törlése";
@@ -82,7 +85,12 @@
"Display Resolution" = "Kijelző felbontása";
"Display Width" = "Kijelző szélessége";
"Double-tap to hold or release this modifier" = "Koppintson duplán a módosítóbillentyű lenyomva tartásához vagy felengedéséhez";
+"Download Apple Pencil Support" = "Apple Pencil-támogatás letöltése";
"Download Failed" = "A letöltés sikertelen";
+"Download Final Cut Pro Trial" = "A Final Cut Pro próbaverziójának letöltése";
+"Download Logic Pro Trial" = "A Logic Pro próbaverziójának letöltése";
+"Download Pixelmator Pro Trial" = "A Pixelmator Pro próbaverziójának letöltése";
+"Download Xcode" = "Az Xcode letöltése";
"Downloading macOS" = "macOS letöltése";
"Enter six hexadecimal octets separated by colons." = "Adjon meg hat, kettősponttal elválasztott hexadecimális oktettet.";
"Ethernet (%@)" = "Ethernet (%@)";
@@ -122,6 +130,7 @@
"Keep Virtual Mac open. Your iPad will remain awake until the download finishes." = "Tartsa nyitva a Virtual Macet. Az iPad ébren marad a letöltés befejezéséig.";
"Keyboard" = "Billentyűzet";
"Landscape iPad" = "iPad fekvő helyzetben";
+"Learn More" = "További információ";
"Library Appearance" = "Könyvtár megjelenése";
"Loading extracted Apple virtualization frameworks…" = "Kibontott Apple virtualizációs keretrendszerek betöltése…";
"MAC Address" = "MAC-cím";
@@ -130,6 +139,7 @@
"Mac Trackpad" = "Mac-trackpad";
"macOS Installed" = "macOS telepítve";
"Memory" = "Memória";
+"Metal BC Support" = "Metal BC-támogatás";
"Microphone Input" = "Mikrofonbemenet";
"Minimum: %llu GB. The upper limit is determined by the filesystem." = "Minimum: %llu GB. A felső határt a fájlrendszer határozza meg.";
"Move Controls" = "Vezérlők áthelyezése";
@@ -145,10 +155,15 @@
"Off" = "Ki";
"OK" = "OK";
"On" = "Be";
+"On for Next Boot" = "Bekapcsolva a következő indításhoz";
"Only about %llu GB is currently available. The disk image is sparse, but installation or later use can fail when storage fills up." = "Jelenleg csak körülbelül %llu GB érhető el. A lemezkép dinamikus, de a telepítés vagy a későbbi használat sikertelen lehet, ha elfogy a tárhely.";
"Open Control Center and start Screen Recording, then reproduce the problem." = "Nyissa meg a Vezérlőközpontot, indítson képernyőfelvételt, majd idézze elő újra a problémát.";
+"OpenGL Acceleration" = "OpenGL-gyorsítás";
+"OpenGL Acceleration Is Off" = "Az OpenGL-gyorsítás ki van kapcsolva";
+"OpenGL Acceleration requires macOS Sonoma or later." = "Az OpenGL-gyorsításhoz macOS Sonoma vagy újabb szükséges.";
"Optional" = "Opcionális";
"Options" = "Beállítások";
+"Out of Video Memory" = "Elfogyott a videomemória";
"People have dreamed of running macOS on iPad for more than a decade. Today, that dream comes true. Create a Virtual Mac to get started." = "Az emberek több mint egy évtizede álmodnak arról, hogy macOS-t futtassanak iPaden. Ma ez az álom valóra válik. Első lépésként hozzon létre egy virtuális Macet.";
"Pixels Per Inch" = "Képpont hüvelykenként";
"Pointing Device" = "Mutatóeszköz";
@@ -220,11 +235,14 @@
"These options affect iPadOS only while Virtual Mac is frontmost and a Virtual Mac is running." = "Ezek a beállítások csak akkor befolyásolják az iPadOS-t, amikor a Virtuális Mac van előtérben, és fut egy virtuális Mac.";
"This restores all Virtual Mac settings to their defaults. Virtual Macs, restore images, and installation files won’t be removed." = "Ez minden Virtual Mac-beállítást alapértékre állít. A virtuális Macek, a helyreállítási lemezképek és a telepítési fájlok nem törlődnek.";
"this Virtual Mac" = "ez a virtuális Mac";
+"To enable OpenGL acceleration, shut down this Virtual Mac, then in its options, enable OpenGL Acceleration." = "Az OpenGL-gyorsítás bekapcsolásához állítsa le ezt a Virtual Macet, majd kapcsolja be a beállításaiban.";
"To show the controls, touch and hold the Virtual Mac icon on the Home Screen, then choose Show Virtual Mac Controls." = "A vezérlők megjelenítéséhez tartsa megérintve a Virtual Mac ikonját a Főképernyőn, majd válassza a Virtual Mac vezérlőinek megjelenítése lehetőséget.";
+"To use Apple Pencil pressure and tilt, download pencil-probe in %@ Virtual Mac." = "Az Apple Pencil nyomásának és dőlésének használatához töltse le a pencil-probe alkalmazást a(z) %@ virtuális Macre.";
"Top Left" = "Bal felső";
"Top Right" = "Jobb felső";
"Touch" = "Érintés";
"Touch and Hold to Secondary Click" = "Érintse meg és tartsa lenyomva a másodlagos kattintáshoz";
+"Turn Off Virtual Mac Guest Tools?" = "Kikapcsolja a Virtual Mac vendégeszközeit?";
"Two Finger Tap to Secondary Click" = "Kétujjas érintés a másodlagos kattintáshoz";
"Unknown" = "Ismeretlen";
"Unsaved changes in macOS may be lost." = "A macOS nem mentett módosításai elveszhetnek.";
@@ -245,6 +263,7 @@
"Virtual Mac devices are stored in %@." = "A Virtuális Macek itt találhatók: %@.";
"Virtual Mac Display" = "A Virtuális Mac kijelzője";
"Virtual Mac does not support the Dopamine-roothide environment. Remove the roothide jailbreak from Dopamine-roothide > Settings > Remove Jailbreak, then switch to the official version of Dopamine." = "A Virtual Mac nem támogatja a Dopamine-roothide környezetet. Távolítsa el a roothide jailbreaket a Dopamine-roothide > Beállítások > Jailbreak eltávolítása menüben, majd váltson a Dopamine hivatalos verziójára.";
+"Virtual Mac Guest Tools" = "Virtuális Mac vendégeszközök";
"Virtual Mac has no published framebuffer" = "A virtuális Mac nem tett közzé framebuffert";
"Virtual Mac running — native PVG framebuffer attached" = "Virtuális Mac fut — natív PVG-framebuffer csatlakoztatva";
"Virtual Mac running — preparing native PVG display" = "Virtuális Mac fut — natív PVG-kijelző előkészítése";
diff --git a/VirtualMac/resources/Localizations/id.lproj/Localizable.strings b/VirtualMac/resources/Localizations/id.lproj/Localizable.strings
index 4b85825..51f3b7b 100644
--- a/VirtualMac/resources/Localizations/id.lproj/Localizable.strings
+++ b/VirtualMac/resources/Localizations/id.lproj/Localizable.strings
@@ -2,6 +2,7 @@
"%.0f%% complete" = "%.0f%% selesai";
"%@ CPU · %@ GB RAM · %llu GB · %@%@" = "%@ CPU · RAM %@ GB · %llu GB · %@%@";
"%@ is not supported" = "%@ tidak didukung";
+"%@ is out of video memory. macOS may appear frozen." = "%@ kehabisan memori video. macOS mungkin tampak berhenti merespons.";
"%@ may encounter performance or graphical issues. For the best experience, use macOS Ventura, macOS Sonoma, or macOS Sequoia.\n\nIf transparency effects cause visual problems, turn on Reduce Transparency in System Settings > Accessibility > Display." = "%@ mungkin mengalami masalah kinerja atau grafis. Untuk pengalaman terbaik, gunakan macOS Ventura, macOS Sonoma, atau macOS Sequoia.\n\nJika efek transparansi menyebabkan masalah visual, nyalakan Kurangi Transparansi di Pengaturan Sistem > Aksesibilitas > Tampilan.";
"%@ remaining" = "%@ lagi";
"%@\nState: %@\n%@\n\n" = "%@\nStatus: %@\n%@\n\n";
@@ -15,12 +16,15 @@
"Add Shared Folder" = "Tambah Folder Bersama";
"Advanced" = "Lanjutan";
"Allowed: %llu–%llu%@" = "Diizinkan: %llu–%llu%@";
+"Always On" = "Selalu Nyala";
"Another usbmuxd service took control of the virtual DFU device before it entered RestoreOS. Uninstall usbmuxd from Sileo and try again." = "Layanan usbmuxd lain mengambil alih perangkat DFU virtual sebelum masuk ke RestoreOS. Hapus instalasi usbmuxd dari Sileo, lalu coba lagi.";
"Another Virtual Mac Is Running" = "Virtual Mac Lain Sedang Berjalan";
+"Apple Pencil Pressure and Tilt" = "Tekanan dan Kemiringan Apple Pencil";
"Audio and Acceleration" = "Audio dan Akselerasi";
"Audio Output" = "Keluaran Audio";
"Available macOS Releases" = "Rilis macOS yang Tersedia";
"Available macOS Versions" = "Versi macOS yang Tersedia";
+"Because OpenGL acceleration requires Virtual Mac guest tools, turning off Virtual Mac guest tools will also turn off OpenGL acceleration. Apps such as Final Cut Pro mostly use Metal, but they check for OpenGL capabilities in order to launch." = "Karena akselerasi OpenGL memerlukan alat tamu Virtual Mac, mematikan alat tamu juga akan mematikan akselerasi OpenGL. App seperti Final Cut Pro terutama menggunakan Metal, tetapi memeriksa kemampuan OpenGL agar dapat dibuka.";
"Boot and Network" = "Boot dan Jaringan";
"Bottom Left" = "Kiri Bawah";
"Bottom Right" = "Kanan Bawah";
@@ -42,7 +46,6 @@
"Choose whether Virtual Mac opens its library or starts a Virtual Mac." = "Pilih apakah Virtual Mac membuka perpustakaannya atau memulai Virtual Mac.";
"Compatibility" = "Kesesuaian";
"Complete Virtual Mac devices and restore images outside Virtual Mac are not removed." = "Perangkat Virtual Mac lengkap dan citra pemulihan di luar Virtual Mac tidak akan dihapus.";
-"Configuration changes take effect after the Virtual Mac is shut down and started again." = "Perubahan konfigurasi berlaku setelah Virtual Mac dimatikan dan dimulai kembali.";
"Configuration failed: %@" = "Konfigurasi gagal: %@";
"Configure %@" = "Konfigurasikan %@";
"Continue" = "Lanjutkan";
@@ -58,7 +61,7 @@
"Create Virtual Mac" = "Buat Mac Virtual";
"Custom" = "Khusus";
"Debug Logging" = "Pencatatan debug";
-"Debug Logging has been enabled. You can turn it off later in Settings." = "Pencatatan debug telah diaktifkan. Anda dapat menonaktifkannya nanti di Pengaturan.";
+"Debug logging has been enabled for the next boot." = "Pencatatan debug telah dinyalakan untuk boot berikutnya.";
"Debug Logging takes effect the next time a Virtual Mac starts." = "Pencatatan debug berlaku saat Virtual Mac dimulai berikutnya.";
"Delete" = "Hapus";
"Delete All" = "Hapus Semua";
@@ -82,7 +85,12 @@
"Display Resolution" = "Resolusi Layar";
"Display Width" = "Lebar Layar";
"Double-tap to hold or release this modifier" = "Ketuk dua kali untuk menahan atau melepas tombol pengubah ini";
+"Download Apple Pencil Support" = "Unduh Dukungan Apple Pencil";
"Download Failed" = "Pengunduhan Gagal";
+"Download Final Cut Pro Trial" = "Unduh Uji Coba Final Cut Pro";
+"Download Logic Pro Trial" = "Unduh Uji Coba Logic Pro";
+"Download Pixelmator Pro Trial" = "Unduh Uji Coba Pixelmator Pro";
+"Download Xcode" = "Unduh Xcode";
"Downloading macOS" = "Mengunduh macOS";
"Enter six hexadecimal octets separated by colons." = "Masukkan enam oktet heksadesimal yang dipisahkan dengan titik dua.";
"Ethernet (%@)" = "Ethernet (%@)";
@@ -122,6 +130,7 @@
"Keep Virtual Mac open. Your iPad will remain awake until the download finishes." = "Biarkan Virtual Mac tetap terbuka. iPad Anda akan tetap aktif hingga pengunduhan selesai.";
"Keyboard" = "Papan Ketik";
"Landscape iPad" = "iPad Lanskap";
+"Learn More" = "Pelajari Lebih Lanjut";
"Library Appearance" = "Tampilan Perpustakaan";
"Loading extracted Apple virtualization frameworks…" = "Memuat framework virtualisasi Apple yang diekstrak…";
"MAC Address" = "Alamat MAC";
@@ -130,6 +139,7 @@
"Mac Trackpad" = "Trackpad Mac";
"macOS Installed" = "macOS Terinstal";
"Memory" = "Memori";
+"Metal BC Support" = "Dukungan Metal BC";
"Microphone Input" = "Input Mikrofon";
"Minimum: %llu GB. The upper limit is determined by the filesystem." = "Minimum: %llu GB. Batas atas ditentukan oleh sistem file.";
"Move Controls" = "Pindahkan Kontrol";
@@ -145,10 +155,15 @@
"Off" = "Mati";
"OK" = "OKE";
"On" = "Nyala";
+"On for Next Boot" = "Nyala untuk Boot Berikutnya";
"Only about %llu GB is currently available. The disk image is sparse, but installation or later use can fail when storage fills up." = "Saat ini hanya tersedia sekitar %llu GB. Citra disk bersifat dinamis, tetapi instalasi atau penggunaan selanjutnya dapat gagal saat penyimpanan penuh.";
"Open Control Center and start Screen Recording, then reproduce the problem." = "Buka Pusat Kontrol, mulai perekaman layar, lalu reproduksi masalah.";
+"OpenGL Acceleration" = "Akselerasi OpenGL";
+"OpenGL Acceleration Is Off" = "Akselerasi OpenGL Mati";
+"OpenGL Acceleration requires macOS Sonoma or later." = "Akselerasi OpenGL memerlukan macOS Sonoma atau lebih baru.";
"Optional" = "Opsional";
"Options" = "Pilihan";
+"Out of Video Memory" = "Memori Video Habis";
"People have dreamed of running macOS on iPad for more than a decade. Today, that dream comes true. Create a Virtual Mac to get started." = "Selama lebih dari satu dekade, orang-orang bermimpi menjalankan macOS di iPad. Kini, mimpi itu menjadi kenyataan. Buat Mac virtual untuk memulai.";
"Pixels Per Inch" = "Piksel Per Inci";
"Pointing Device" = "Perangkat Penunjuk";
@@ -220,11 +235,14 @@
"These options affect iPadOS only while Virtual Mac is frontmost and a Virtual Mac is running." = "Pilihan ini hanya memengaruhi iPadOS saat Mac Virtual berada di depan dan Mac virtual sedang berjalan.";
"This restores all Virtual Mac settings to their defaults. Virtual Macs, restore images, and installation files won’t be removed." = "Ini mengembalikan semua pengaturan Virtual Mac ke nilai default. Virtual Mac, citra pemulihan, dan file instalasi tidak akan dihapus.";
"this Virtual Mac" = "Virtual Mac ini";
+"To enable OpenGL acceleration, shut down this Virtual Mac, then in its options, enable OpenGL Acceleration." = "Untuk menyalakan akselerasi OpenGL, matikan Virtual Mac ini, lalu nyalakan Akselerasi OpenGL di pilihannya.";
"To show the controls, touch and hold the Virtual Mac icon on the Home Screen, then choose Show Virtual Mac Controls." = "Untuk menampilkan kontrol, sentuh dan tahan ikon Virtual Mac di Layar Utama, lalu pilih Tampilkan Kontrol Virtual Mac.";
+"To use Apple Pencil pressure and tilt, download pencil-probe in %@ Virtual Mac." = "Untuk menggunakan tekanan dan kemiringan Apple Pencil, unduh pencil-probe di Mac Virtual %@.";
"Top Left" = "Kiri Atas";
"Top Right" = "Kanan Atas";
"Touch" = "Sentuh";
"Touch and Hold to Secondary Click" = "Sentuh dan Tahan untuk Klik Sekunder";
+"Turn Off Virtual Mac Guest Tools?" = "Matikan Alat Tamu Virtual Mac?";
"Two Finger Tap to Secondary Click" = "Ketuk Dua Jari untuk Klik Sekunder";
"Unknown" = "Tidak Diketahui";
"Unsaved changes in macOS may be lost." = "Perubahan yang belum disimpan di macOS mungkin hilang.";
@@ -245,6 +263,7 @@
"Virtual Mac devices are stored in %@." = "Mac Virtual disimpan di %@.";
"Virtual Mac Display" = "Layar Mac Virtual";
"Virtual Mac does not support the Dopamine-roothide environment. Remove the roothide jailbreak from Dopamine-roothide > Settings > Remove Jailbreak, then switch to the official version of Dopamine." = "Virtual Mac tidak mendukung lingkungan Dopamine-roothide. Hapus jailbreak roothide melalui Dopamine-roothide > Pengaturan > Hapus Jailbreak, lalu beralih ke versi resmi Dopamine.";
+"Virtual Mac Guest Tools" = "Alat Tamu Mac Virtual";
"Virtual Mac has no published framebuffer" = "Virtual Mac tidak memiliki framebuffer yang diterbitkan";
"Virtual Mac running — native PVG framebuffer attached" = "Virtual Mac berjalan — framebuffer PVG asli terpasang";
"Virtual Mac running — preparing native PVG display" = "Virtual Mac berjalan — menyiapkan layar PVG asli";
diff --git a/VirtualMac/resources/Localizations/it.lproj/Localizable.strings b/VirtualMac/resources/Localizations/it.lproj/Localizable.strings
index f851364..f1145fd 100644
--- a/VirtualMac/resources/Localizations/it.lproj/Localizable.strings
+++ b/VirtualMac/resources/Localizations/it.lproj/Localizable.strings
@@ -2,6 +2,7 @@
"%.0f%% complete" = "%.0f%% completato";
"%@ CPU · %@ GB RAM · %llu GB · %@%@" = "%@ CPU · %@ GB di RAM · %llu GB · %@%@";
"%@ is not supported" = "%@ non è supportato";
+"%@ is out of video memory. macOS may appear frozen." = "%@ ha esaurito la memoria video. macOS potrebbe sembrare bloccato.";
"%@ may encounter performance or graphical issues. For the best experience, use macOS Ventura, macOS Sonoma, or macOS Sequoia.\n\nIf transparency effects cause visual problems, turn on Reduce Transparency in System Settings > Accessibility > Display." = "%@ potrebbe presentare problemi di prestazioni o grafici. Per un’esperienza ottimale, usa macOS Ventura, macOS Sonoma o macOS Sequoia.\n\nSe gli effetti di trasparenza causano problemi visivi, attiva Riduci trasparenza in Impostazioni di Sistema > Accessibilità > Schermo.";
"%@ remaining" = "%@ rimanenti";
"%@\nState: %@\n%@\n\n" = "%@\nStato: %@\n%@\n\n";
@@ -15,12 +16,15 @@
"Add Shared Folder" = "Aggiungi cartella condivisa";
"Advanced" = "Avanzate";
"Allowed: %llu–%llu%@" = "Consentito: %llu–%llu%@";
+"Always On" = "Sempre attivo";
"Another usbmuxd service took control of the virtual DFU device before it entered RestoreOS. Uninstall usbmuxd from Sileo and try again." = "Un altro servizio usbmuxd ha preso il controllo del dispositivo DFU virtuale prima che entrasse in RestoreOS. Disinstalla usbmuxd da Sileo e riprova.";
"Another Virtual Mac Is Running" = "È in esecuzione un altro Virtual Mac";
+"Apple Pencil Pressure and Tilt" = "Pressione e inclinazione di Apple Pencil";
"Audio and Acceleration" = "Audio e accelerazione";
"Audio Output" = "Uscita audio";
"Available macOS Releases" = "Versioni di macOS disponibili";
"Available macOS Versions" = "Versioni di macOS disponibili";
+"Because OpenGL acceleration requires Virtual Mac guest tools, turning off Virtual Mac guest tools will also turn off OpenGL acceleration. Apps such as Final Cut Pro mostly use Metal, but they check for OpenGL capabilities in order to launch." = "Poiché l’accelerazione OpenGL richiede gli strumenti guest di Virtual Mac, disattivandoli verrà disattivata anche l’accelerazione OpenGL. Le app come Final Cut Pro usano principalmente Metal, ma verificano le funzionalità OpenGL per potersi avviare.";
"Boot and Network" = "Avvio e rete";
"Bottom Left" = "In basso a sinistra";
"Bottom Right" = "In basso a destra";
@@ -42,7 +46,6 @@
"Choose whether Virtual Mac opens its library or starts a Virtual Mac." = "Scegli se Virtual Mac deve aprire la libreria o avviare un Virtual Mac.";
"Compatibility" = "Compatibilità";
"Complete Virtual Mac devices and restore images outside Virtual Mac are not removed." = "I Virtual Mac completi e le immagini di ripristino esterne a Virtual Mac non vengono rimossi.";
-"Configuration changes take effect after the Virtual Mac is shut down and started again." = "Le modifiche alla configurazione diventano effettive dopo lo spegnimento e il riavvio di Virtual Mac.";
"Configuration failed: %@" = "Configurazione non riuscita: %@";
"Configure %@" = "Configura %@";
"Continue" = "Continua";
@@ -58,7 +61,7 @@
"Create Virtual Mac" = "Crea un Mac virtuale";
"Custom" = "Personalizzata";
"Debug Logging" = "Registrazione di debug";
-"Debug Logging has been enabled. You can turn it off later in Settings." = "La registrazione di debug è stata attivata. Puoi disattivarla in seguito nelle Impostazioni.";
+"Debug logging has been enabled for the next boot." = "La registrazione di debug è stata attivata per il prossimo avvio.";
"Debug Logging takes effect the next time a Virtual Mac starts." = "La registrazione di debug avrà effetto al prossimo avvio di un Virtual Mac.";
"Delete" = "Elimina";
"Delete All" = "Elimina tutto";
@@ -82,7 +85,12 @@
"Display Resolution" = "Risoluzione schermo";
"Display Width" = "Larghezza schermo";
"Double-tap to hold or release this modifier" = "Tocca due volte per bloccare o rilasciare questo tasto modificatore";
+"Download Apple Pencil Support" = "Scarica supporto per Apple Pencil";
"Download Failed" = "Download non riuscito";
+"Download Final Cut Pro Trial" = "Scarica la versione di prova di Final Cut Pro";
+"Download Logic Pro Trial" = "Scarica la versione di prova di Logic Pro";
+"Download Pixelmator Pro Trial" = "Scarica la versione di prova di Pixelmator Pro";
+"Download Xcode" = "Scarica Xcode";
"Downloading macOS" = "Download di macOS";
"Enter six hexadecimal octets separated by colons." = "Inserisci sei ottetti esadecimali separati da due punti.";
"Ethernet (%@)" = "Ethernet (%@)";
@@ -122,6 +130,7 @@
"Keep Virtual Mac open. Your iPad will remain awake until the download finishes." = "Mantieni aperto Virtual Mac. Il tuo iPad rimarrà attivo fino al termine del download.";
"Keyboard" = "Tastiera";
"Landscape iPad" = "iPad orizzontale";
+"Learn More" = "Ulteriori informazioni";
"Library Appearance" = "Aspetto libreria";
"Loading extracted Apple virtualization frameworks…" = "Caricamento dei framework di virtualizzazione Apple estratti…";
"MAC Address" = "Indirizzo MAC";
@@ -130,6 +139,7 @@
"Mac Trackpad" = "Trackpad Mac";
"macOS Installed" = "macOS installato";
"Memory" = "Memoria";
+"Metal BC Support" = "Supporto Metal BC";
"Microphone Input" = "Ingresso microfono";
"Minimum: %llu GB. The upper limit is determined by the filesystem." = "Minimo: %llu GB. Il limite superiore è determinato dal file system.";
"Move Controls" = "Sposta controlli";
@@ -145,10 +155,15 @@
"Off" = "Non attivo";
"OK" = "OK";
"On" = "Attivo";
+"On for Next Boot" = "Attivo al prossimo avvio";
"Only about %llu GB is currently available. The disk image is sparse, but installation or later use can fail when storage fills up." = "Sono disponibili solo circa %llu GB. L’immagine disco è dinamica, ma l’installazione o l’utilizzo successivo potrebbero non riuscire se lo spazio si esaurisce.";
"Open Control Center and start Screen Recording, then reproduce the problem." = "Apri Centro di Controllo, avvia una registrazione dello schermo e riproduci il problema.";
+"OpenGL Acceleration" = "Accelerazione OpenGL";
+"OpenGL Acceleration Is Off" = "L’accelerazione OpenGL è disattivata";
+"OpenGL Acceleration requires macOS Sonoma or later." = "L’accelerazione OpenGL richiede macOS Sonoma o versioni successive.";
"Optional" = "Facoltativo";
"Options" = "Opzioni";
+"Out of Video Memory" = "Memoria video esaurita";
"People have dreamed of running macOS on iPad for more than a decade. Today, that dream comes true. Create a Virtual Mac to get started." = "Da più di un decennio si sogna di eseguire macOS su iPad. Oggi quel sogno diventa realtà. Crea un Mac virtuale per iniziare.";
"Pixels Per Inch" = "Pixel per pollice";
"Pointing Device" = "Dispositivo di puntamento";
@@ -220,11 +235,14 @@
"These options affect iPadOS only while Virtual Mac is frontmost and a Virtual Mac is running." = "Queste opzioni influiscono su iPadOS solo mentre Mac virtuale è in primo piano ed è in esecuzione un Mac virtuale.";
"This restores all Virtual Mac settings to their defaults. Virtual Macs, restore images, and installation files won’t be removed." = "Ripristina tutte le impostazioni di Virtual Mac ai valori predefiniti. I Virtual Mac, le immagini di ripristino e i file di installazione non verranno rimossi.";
"this Virtual Mac" = "questo Virtual Mac";
+"To enable OpenGL acceleration, shut down this Virtual Mac, then in its options, enable OpenGL Acceleration." = "Per attivare l’accelerazione OpenGL, spegni questo Virtual Mac, quindi attivala nelle sue opzioni.";
"To show the controls, touch and hold the Virtual Mac icon on the Home Screen, then choose Show Virtual Mac Controls." = "Per mostrare i controlli, tieni premuta l’icona di Virtual Mac nella schermata Home, quindi scegli “Mostra controlli Virtual Mac”.";
+"To use Apple Pencil pressure and tilt, download pencil-probe in %@ Virtual Mac." = "Per usare la pressione e l’inclinazione di Apple Pencil, scarica pencil-probe nel Mac virtuale %@.";
"Top Left" = "In alto a sinistra";
"Top Right" = "In alto a destra";
"Touch" = "Tocco";
"Touch and Hold to Secondary Click" = "Tocca e tieni premuto per il clic secondario";
+"Turn Off Virtual Mac Guest Tools?" = "Disattivare gli strumenti guest di Virtual Mac?";
"Two Finger Tap to Secondary Click" = "Tocca con due dita per il clic secondario";
"Unknown" = "Sconosciuto";
"Unsaved changes in macOS may be lost." = "Le modifiche non salvate in macOS potrebbero andare perse.";
@@ -245,6 +263,7 @@
"Virtual Mac devices are stored in %@." = "I Mac virtuali vengono archiviati in %@.";
"Virtual Mac Display" = "Schermo del Mac virtuale";
"Virtual Mac does not support the Dopamine-roothide environment. Remove the roothide jailbreak from Dopamine-roothide > Settings > Remove Jailbreak, then switch to the official version of Dopamine." = "Virtual Mac non supporta l’ambiente Dopamine-roothide. Rimuovi il jailbreak roothide da Dopamine-roothide > Impostazioni > Rimuovi jailbreak, quindi passa alla versione ufficiale di Dopamine.";
+"Virtual Mac Guest Tools" = "Strumenti guest di Mac virtuale";
"Virtual Mac has no published framebuffer" = "Virtual Mac non ha pubblicato alcun framebuffer";
"Virtual Mac running — native PVG framebuffer attached" = "Virtual Mac in esecuzione — framebuffer PVG nativo collegato";
"Virtual Mac running — preparing native PVG display" = "Virtual Mac in esecuzione — preparazione dello schermo PVG nativo";
diff --git a/VirtualMac/resources/Localizations/ja.lproj/Localizable.strings b/VirtualMac/resources/Localizations/ja.lproj/Localizable.strings
index 5d5fb47..926c868 100644
--- a/VirtualMac/resources/Localizations/ja.lproj/Localizable.strings
+++ b/VirtualMac/resources/Localizations/ja.lproj/Localizable.strings
@@ -2,6 +2,7 @@
"%.0f%% complete" = "%.0f%%完了";
"%@ CPU · %@ GB RAM · %llu GB · %@%@" = "%@ CPU · %@ GB RAM · %llu GB · %@%@";
"%@ is not supported" = "%@はサポートされていません";
+"%@ is out of video memory. macOS may appear frozen." = "%@のビデオメモリが不足しています。macOSがフリーズしたように見える場合があります。";
"%@ may encounter performance or graphical issues. For the best experience, use macOS Ventura, macOS Sonoma, or macOS Sequoia.\n\nIf transparency effects cause visual problems, turn on Reduce Transparency in System Settings > Accessibility > Display." = "%@では、パフォーマンスやグラフィックスの問題が発生する可能性があります。最適な動作には、macOS Ventura、macOS Sonoma、またはmacOS Sequoiaを使用してください。\n\n透明効果で表示上の問題が発生する場合は、「システム設定」>「アクセシビリティ」>「ディスプレイ」で「透明度を下げる」をオンにしてください。";
"%@ remaining" = "残り%@";
"%@\nState: %@\n%@\n\n" = "%@\n状態:%@\n%@\n\n";
@@ -15,12 +16,15 @@
"Add Shared Folder" = "共有フォルダを追加";
"Advanced" = "詳細";
"Allowed: %llu–%llu%@" = "許容範囲:%llu〜%llu%@";
+"Always On" = "常にオン";
"Another usbmuxd service took control of the virtual DFU device before it entered RestoreOS. Uninstall usbmuxd from Sileo and try again." = "仮想DFUデバイスがRestoreOSに入る前に、別のusbmuxdサービスが制御を取得しました。Sileoからusbmuxdをアンインストールして、もう一度お試しください。";
"Another Virtual Mac Is Running" = "別の仮想Macが実行中です";
+"Apple Pencil Pressure and Tilt" = "Apple Pencilの筆圧と傾き";
"Audio and Acceleration" = "オーディオとアクセラレーション";
"Audio Output" = "オーディオ出力";
"Available macOS Releases" = "利用可能なmacOSリリース";
"Available macOS Versions" = "利用可能なmacOSバージョン";
+"Because OpenGL acceleration requires Virtual Mac guest tools, turning off Virtual Mac guest tools will also turn off OpenGL acceleration. Apps such as Final Cut Pro mostly use Metal, but they check for OpenGL capabilities in order to launch." = "OpenGLアクセラレーションにはVirtual Macゲストツールが必要なため、ゲストツールをオフにするとOpenGLアクセラレーションもオフになります。Final Cut Proなどのアプリは主にMetalを使用しますが、起動時にOpenGL機能を確認します。";
"Boot and Network" = "起動とネットワーク";
"Bottom Left" = "左下";
"Bottom Right" = "右下";
@@ -42,7 +46,6 @@
"Choose whether Virtual Mac opens its library or starts a Virtual Mac." = "仮想Macを開いたときにライブラリを表示するか、仮想Macを起動するかを選択します。";
"Compatibility" = "互換性";
"Complete Virtual Mac devices and restore images outside Virtual Mac are not removed." = "完了済みの仮想Macと、仮想Macフォルダ外の復元イメージは削除されません。";
-"Configuration changes take effect after the Virtual Mac is shut down and started again." = "構成の変更は、Virtual Macをシステム終了して再起動すると反映されます。";
"Configuration failed: %@" = "構成に失敗しました:%@";
"Configure %@" = "%@を構成";
"Continue" = "続ける";
@@ -58,7 +61,7 @@
"Create Virtual Mac" = "仮想Macを作成";
"Custom" = "カスタム";
"Debug Logging" = "デバッグログ";
-"Debug Logging has been enabled. You can turn it off later in Settings." = "デバッグログが有効になりました。後で「設定」で無効にできます。";
+"Debug logging has been enabled for the next boot." = "次回の起動に対してデバッグログをオンにしました。";
"Debug Logging takes effect the next time a Virtual Mac starts." = "デバッグログは、次回Virtual Macを起動したときに有効になります。";
"Delete" = "削除";
"Delete All" = "すべて削除";
@@ -82,7 +85,12 @@
"Display Resolution" = "ディスプレイ解像度";
"Display Width" = "ディスプレイの幅";
"Double-tap to hold or release this modifier" = "ダブルタップして修飾キーを固定または解除";
+"Download Apple Pencil Support" = "Apple Pencilサポートをダウンロード";
"Download Failed" = "ダウンロードに失敗しました";
+"Download Final Cut Pro Trial" = "Final Cut Proトライアルをダウンロード";
+"Download Logic Pro Trial" = "Logic Proトライアルをダウンロード";
+"Download Pixelmator Pro Trial" = "Pixelmator Proトライアルをダウンロード";
+"Download Xcode" = "Xcodeをダウンロード";
"Downloading macOS" = "macOSをダウンロード中";
"Enter six hexadecimal octets separated by colons." = "コロンで区切った6組の16進数を入力してください。";
"Ethernet (%@)" = "Ethernet(%@)";
@@ -122,6 +130,7 @@
"Keep Virtual Mac open. Your iPad will remain awake until the download finishes." = "仮想Macを開いたままにしてください。ダウンロードが完了するまでiPadはスリープしません。";
"Keyboard" = "キーボード";
"Landscape iPad" = "iPad横向き";
+"Learn More" = "詳しく見る";
"Library Appearance" = "ライブラリの表示";
"Loading extracted Apple virtualization frameworks…" = "抽出したApple仮想化フレームワークを読み込み中…";
"MAC Address" = "MACアドレス";
@@ -130,6 +139,7 @@
"Mac Trackpad" = "Macトラックパッド";
"macOS Installed" = "macOSのインストール完了";
"Memory" = "メモリ";
+"Metal BC Support" = "Metal BCサポート";
"Microphone Input" = "マイク入力";
"Minimum: %llu GB. The upper limit is determined by the filesystem." = "最小:%llu GB。上限はファイルシステムによって決まります。";
"Move Controls" = "コントロールを移動";
@@ -145,10 +155,15 @@
"Off" = "オフ";
"OK" = "OK";
"On" = "オン";
+"On for Next Boot" = "次回の起動のみオン";
"Only about %llu GB is currently available. The disk image is sparse, but installation or later use can fail when storage fills up." = "現在の空き容量は約%llu GBです。ディスクイメージはスパース形式ですが、ストレージがいっぱいになるとインストールや後の使用に失敗する可能性があります。";
"Open Control Center and start Screen Recording, then reproduce the problem." = "コントロールセンターを開いて画面収録を開始し、問題を再現してください。";
+"OpenGL Acceleration" = "OpenGLアクセラレーション";
+"OpenGL Acceleration Is Off" = "OpenGLアクセラレーションはオフです";
+"OpenGL Acceleration requires macOS Sonoma or later." = "OpenGLアクセラレーションにはmacOS Sonoma以降が必要です。";
"Optional" = "任意";
"Options" = "オプション";
+"Out of Video Memory" = "ビデオメモリ不足";
"People have dreamed of running macOS on iPad for more than a decade. Today, that dream comes true. Create a Virtual Mac to get started." = "10年以上にわたり、人々はiPadでmacOSを動かすことを夢見てきました。今日、その夢が実現します。仮想Macを作成して始めましょう。";
"Pixels Per Inch" = "1インチあたりのピクセル数";
"Pointing Device" = "ポインティングデバイス";
@@ -220,11 +235,14 @@
"These options affect iPadOS only while Virtual Mac is frontmost and a Virtual Mac is running." = "これらのオプションは、仮想Macが最前面で実行中の場合にのみiPadOSに影響します。";
"This restores all Virtual Mac settings to their defaults. Virtual Macs, restore images, and installation files won’t be removed." = "すべての仮想Mac設定を初期値に戻します。仮想Mac、復元イメージ、インストールファイルは削除されません。";
"this Virtual Mac" = "この仮想Mac";
+"To enable OpenGL acceleration, shut down this Virtual Mac, then in its options, enable OpenGL Acceleration." = "OpenGLアクセラレーションを有効にするには、このVirtual Macをシステム終了してから、オプションでOpenGLアクセラレーションをオンにしてください。";
"To show the controls, touch and hold the Virtual Mac icon on the Home Screen, then choose Show Virtual Mac Controls." = "コントロールを表示するには、ホーム画面のVirtual Macアイコンを長押ししてから、「Virtual Macコントロールを表示」を選択します。";
+"To use Apple Pencil pressure and tilt, download pencil-probe in %@ Virtual Mac." = "Apple Pencilの筆圧と傾きを使用するには、%@の仮想Macにpencil-probeをダウンロードしてください。";
"Top Left" = "左上";
"Top Right" = "右上";
"Touch" = "タッチ";
"Touch and Hold to Secondary Click" = "タッチして押さえたままにして副ボタンのクリック";
+"Turn Off Virtual Mac Guest Tools?" = "Virtual Macゲストツールをオフにしますか?";
"Two Finger Tap to Secondary Click" = "2本指でタップして副ボタンのクリック";
"Unknown" = "不明";
"Unsaved changes in macOS may be lost." = "macOSで保存していない変更は失われる可能性があります。";
@@ -245,6 +263,7 @@
"Virtual Mac devices are stored in %@." = "仮想Macのデバイスは%@に保存されます。";
"Virtual Mac Display" = "仮想Macのディスプレイ";
"Virtual Mac does not support the Dopamine-roothide environment. Remove the roothide jailbreak from Dopamine-roothide > Settings > Remove Jailbreak, then switch to the official version of Dopamine." = "Virtual MacはDopamine-roothide環境に対応していません。Dopamine-roothide > 設定 > Jailbreakを削除でroothide Jailbreakを削除してから、Dopamineの公式版に切り替えてください。";
+"Virtual Mac Guest Tools" = "仮想Macゲストツール";
"Virtual Mac has no published framebuffer" = "仮想Macに公開済みフレームバッファがありません";
"Virtual Mac running — native PVG framebuffer attached" = "仮想Mac実行中 — ネイティブPVGフレームバッファ接続済み";
"Virtual Mac running — preparing native PVG display" = "仮想Mac実行中 — ネイティブPVGディスプレイを準備中";
diff --git a/VirtualMac/resources/Localizations/ko.lproj/Localizable.strings b/VirtualMac/resources/Localizations/ko.lproj/Localizable.strings
index dfad010..d98cef6 100644
--- a/VirtualMac/resources/Localizations/ko.lproj/Localizable.strings
+++ b/VirtualMac/resources/Localizations/ko.lproj/Localizable.strings
@@ -2,6 +2,7 @@
"%.0f%% complete" = "%.0f%% 완료";
"%@ CPU · %@ GB RAM · %llu GB · %@%@" = "%@ CPU · %@GB RAM · %lluGB · %@%@";
"%@ is not supported" = "%@은(는) 지원되지 않음";
+"%@ is out of video memory. macOS may appear frozen." = "%@의 비디오 메모리가 부족합니다. macOS가 멈춘 것처럼 보일 수 있습니다.";
"%@ may encounter performance or graphical issues. For the best experience, use macOS Ventura, macOS Sonoma, or macOS Sequoia.\n\nIf transparency effects cause visual problems, turn on Reduce Transparency in System Settings > Accessibility > Display." = "%@에서 성능 또는 그래픽 문제가 발생할 수 있습니다. 최상의 경험을 위해 macOS Ventura, macOS Sonoma 또는 macOS Sequoia를 사용하십시오.\n\n투명 효과로 화면 문제가 발생하면 시스템 설정 > 손쉬운 사용 > 디스플레이에서 투명도 줄이기를 켜십시오.";
"%@ remaining" = "%@ 남음";
"%@\nState: %@\n%@\n\n" = "%@\n상태: %@\n%@\n\n";
@@ -15,12 +16,15 @@
"Add Shared Folder" = "공유 폴더 추가";
"Advanced" = "고급";
"Allowed: %llu–%llu%@" = "허용 범위: %llu–%llu%@";
+"Always On" = "항상 켬";
"Another usbmuxd service took control of the virtual DFU device before it entered RestoreOS. Uninstall usbmuxd from Sileo and try again." = "가상 DFU 기기가 RestoreOS에 진입하기 전에 다른 usbmuxd 서비스가 제어권을 가져갔습니다. Sileo에서 usbmuxd를 제거한 후 다시 시도하십시오.";
"Another Virtual Mac Is Running" = "다른 가상 Mac이 실행 중입니다";
+"Apple Pencil Pressure and Tilt" = "Apple Pencil 압력 및 기울기";
"Audio and Acceleration" = "오디오 및 가속";
"Audio Output" = "오디오 출력";
"Available macOS Releases" = "사용 가능한macOS 릴리스";
"Available macOS Versions" = "사용 가능한 macOS 버전";
+"Because OpenGL acceleration requires Virtual Mac guest tools, turning off Virtual Mac guest tools will also turn off OpenGL acceleration. Apps such as Final Cut Pro mostly use Metal, but they check for OpenGL capabilities in order to launch." = "OpenGL 가속에는 Virtual Mac 게스트 도구가 필요하므로 게스트 도구를 끄면 OpenGL 가속도 꺼집니다. Final Cut Pro와 같은 앱은 주로 Metal을 사용하지만 실행할 때 OpenGL 기능을 확인합니다.";
"Boot and Network" = "부팅 및 네트워크";
"Bottom Left" = "왼쪽 하단";
"Bottom Right" = "오른쪽 하단";
@@ -42,7 +46,6 @@
"Choose whether Virtual Mac opens its library or starts a Virtual Mac." = "가상 Mac을 열 때 보관함을 표시할지 가상 Mac을 시작할지 선택하십시오.";
"Compatibility" = "호환성";
"Complete Virtual Mac devices and restore images outside Virtual Mac are not removed." = "완료된 가상 Mac과 가상 Mac 폴더 외부의 복원 이미지는 삭제되지 않습니다.";
-"Configuration changes take effect after the Virtual Mac is shut down and started again." = "구성 변경 사항은 Virtual Mac을 종료하고 다시 시작한 후 적용됩니다.";
"Configuration failed: %@" = "구성 실패: %@";
"Configure %@" = "%@ 구성";
"Continue" = "계속";
@@ -58,7 +61,7 @@
"Create Virtual Mac" = "가상 Mac 생성";
"Custom" = "사용자 지정";
"Debug Logging" = "디버그 기록";
-"Debug Logging has been enabled. You can turn it off later in Settings." = "디버그 기록이 활성화되었습니다. 나중에 설정에서 끌 수 있습니다.";
+"Debug logging has been enabled for the next boot." = "다음 부팅에 디버그 로깅이 활성화되었습니다.";
"Debug Logging takes effect the next time a Virtual Mac starts." = "디버그 기록은 다음에 Virtual Mac을 시작할 때 적용됩니다.";
"Delete" = "제거";
"Delete All" = "모두 삭제";
@@ -82,7 +85,12 @@
"Display Resolution" = "디스플레이 해상도";
"Display Width" = "디스플레이 너비";
"Double-tap to hold or release this modifier" = "이 보조 키를 고정하거나 해제하려면 이중 탭";
+"Download Apple Pencil Support" = "Apple Pencil 지원 다운로드";
"Download Failed" = "다운로드 실패";
+"Download Final Cut Pro Trial" = "Final Cut Pro 체험판 다운로드";
+"Download Logic Pro Trial" = "Logic Pro 체험판 다운로드";
+"Download Pixelmator Pro Trial" = "Pixelmator Pro 체험판 다운로드";
+"Download Xcode" = "Xcode 다운로드";
"Downloading macOS" = "macOS 다운로드 중";
"Enter six hexadecimal octets separated by colons." = "콜론으로 구분된 16진수 옥텟 6개를 입력하십시오.";
"Ethernet (%@)" = "이더넷(%@)";
@@ -122,6 +130,7 @@
"Keep Virtual Mac open. Your iPad will remain awake until the download finishes." = "가상 Mac을 열어 두십시오. 다운로드가 완료될 때까지 iPad가 깨어 있습니다.";
"Keyboard" = "키보드";
"Landscape iPad" = "iPad 가로";
+"Learn More" = "더 알아보기";
"Library Appearance" = "보관함 모양";
"Loading extracted Apple virtualization frameworks…" = "추출한 Apple 가상화 프레임워크 불러오는 중…";
"MAC Address" = "MAC 주소";
@@ -130,6 +139,7 @@
"Mac Trackpad" = "Mac 트랙패드";
"macOS Installed" = "macOS 설치 완료";
"Memory" = "메모리";
+"Metal BC Support" = "Metal BC 지원";
"Microphone Input" = "마이크 입력";
"Minimum: %llu GB. The upper limit is determined by the filesystem." = "최소: %lluGB. 상한은 파일 시스템에 따라 결정됩니다.";
"Move Controls" = "제어기 이동";
@@ -145,10 +155,15 @@
"Off" = "끔";
"OK" = "확인";
"On" = "켬";
+"On for Next Boot" = "다음 부팅에 켬";
"Only about %llu GB is currently available. The disk image is sparse, but installation or later use can fail when storage fills up." = "현재 약 %lluGB만 사용할 수 있습니다. 디스크 이미지는 희소 이미지이지만 저장 공간이 가득 차면 설치 또는 이후 사용이 실패할 수 있습니다.";
"Open Control Center and start Screen Recording, then reproduce the problem." = "제어 센터를 열고 화면 기록을 시작한 다음 문제를 재현하십시오.";
+"OpenGL Acceleration" = "OpenGL 가속";
+"OpenGL Acceleration Is Off" = "OpenGL 가속이 꺼져 있음";
+"OpenGL Acceleration requires macOS Sonoma or later." = "OpenGL 가속을 사용하려면 macOS Sonoma 이후 버전이 필요합니다.";
"Optional" = "선택 사항";
"Options" = "옵션";
+"Out of Video Memory" = "비디오 메모리 부족";
"People have dreamed of running macOS on iPad for more than a decade. Today, that dream comes true. Create a Virtual Mac to get started." = "10년 넘게 사람들은 iPad에서 macOS를 실행하는 것을 꿈꿔 왔습니다. 오늘 그 꿈이 이루어집니다. 가상 Mac을 생성하여 시작하십시오.";
"Pixels Per Inch" = "인치당 픽셀";
"Pointing Device" = "포인팅 기기";
@@ -220,11 +235,14 @@
"These options affect iPadOS only while Virtual Mac is frontmost and a Virtual Mac is running." = "이 옵션은 가상 Mac이 전면에서 실행 중일 때만 iPadOS에 영향을 줍니다.";
"This restores all Virtual Mac settings to their defaults. Virtual Macs, restore images, and installation files won’t be removed." = "모든 가상 Mac 설정을 기본값으로 복원합니다. 가상 Mac, 복원 이미지 및 설치 파일은 삭제되지 않습니다.";
"this Virtual Mac" = "이 가상 Mac";
+"To enable OpenGL acceleration, shut down this Virtual Mac, then in its options, enable OpenGL Acceleration." = "OpenGL 가속을 켜려면 이 Virtual Mac을 종료한 다음 옵션에서 OpenGL 가속을 켜십시오.";
"To show the controls, touch and hold the Virtual Mac icon on the Home Screen, then choose Show Virtual Mac Controls." = "제어기를 표시하려면 홈 화면에서 Virtual Mac 아이콘을 길게 터치한 다음 ‘Virtual Mac 제어기 보기’를 선택하십시오.";
+"To use Apple Pencil pressure and tilt, download pencil-probe in %@ Virtual Mac." = "Apple Pencil의 압력 및 기울기를 사용하려면 %@ 가상 Mac에 pencil-probe를 다운로드하십시오.";
"Top Left" = "왼쪽 상단";
"Top Right" = "오른쪽 상단";
"Touch" = "터치";
"Touch and Hold to Secondary Click" = "길게 터치하여 보조 클릭";
+"Turn Off Virtual Mac Guest Tools?" = "Virtual Mac 게스트 도구를 끄겠습니까?";
"Two Finger Tap to Secondary Click" = "두 손가락 탭으로 보조 클릭";
"Unknown" = "알 수 없음";
"Unsaved changes in macOS may be lost." = "macOS에서 저장하지 않은 변경사항이 유실될 수 있습니다.";
@@ -245,6 +263,7 @@
"Virtual Mac devices are stored in %@." = "가상 Mac 기기는 %@에 저장됩니다.";
"Virtual Mac Display" = "가상 Mac 디스플레이";
"Virtual Mac does not support the Dopamine-roothide environment. Remove the roothide jailbreak from Dopamine-roothide > Settings > Remove Jailbreak, then switch to the official version of Dopamine." = "Virtual Mac은 Dopamine-roothide 환경을 지원하지 않습니다. Dopamine-roothide > 설정 > 탈옥 제거에서 roothide 탈옥을 제거한 다음 Dopamine 공식 버전으로 전환하십시오.";
+"Virtual Mac Guest Tools" = "가상 Mac 게스트 도구";
"Virtual Mac has no published framebuffer" = "가상 Mac에 게시된 프레임버퍼가 없음";
"Virtual Mac running — native PVG framebuffer attached" = "가상 Mac 실행 중 — 기본 PVG 프레임버퍼 연결됨";
"Virtual Mac running — preparing native PVG display" = "가상 Mac 실행 중 — 기본 PVG 디스플레이 준비 중";
diff --git a/VirtualMac/resources/Localizations/ms.lproj/Localizable.strings b/VirtualMac/resources/Localizations/ms.lproj/Localizable.strings
index 3898818..3d186e9 100644
--- a/VirtualMac/resources/Localizations/ms.lproj/Localizable.strings
+++ b/VirtualMac/resources/Localizations/ms.lproj/Localizable.strings
@@ -2,6 +2,7 @@
"%.0f%% complete" = "%.0f%% selesai";
"%@ CPU · %@ GB RAM · %llu GB · %@%@" = "%@ CPU · RAM %@ GB · %llu GB · %@%@";
"%@ is not supported" = "%@ tidak disokong";
+"%@ is out of video memory. macOS may appear frozen." = "%@ kehabisan memori video. macOS mungkin kelihatan beku.";
"%@ may encounter performance or graphical issues. For the best experience, use macOS Ventura, macOS Sonoma, or macOS Sequoia.\n\nIf transparency effects cause visual problems, turn on Reduce Transparency in System Settings > Accessibility > Display." = "%@ mungkin mengalami masalah prestasi atau grafik. Untuk pengalaman terbaik, gunakan macOS Ventura, macOS Sonoma atau macOS Sequoia.\n\nJika kesan ketelusan menyebabkan masalah paparan, hidupkan Kurangkan Ketelusan dalam Seting Sistem > Kebolehcapaian > Paparan.";
"%@ remaining" = "%@ lagi";
"%@\nState: %@\n%@\n\n" = "%@\nStatus: %@\n%@\n\n";
@@ -15,12 +16,15 @@
"Add Shared Folder" = "Tambah Folder Bersama";
"Advanced" = "Lanjutan";
"Allowed: %llu–%llu%@" = "Dibenarkan: %llu–%llu%@";
+"Always On" = "Sentiasa Aktif";
"Another usbmuxd service took control of the virtual DFU device before it entered RestoreOS. Uninstall usbmuxd from Sileo and try again." = "Perkhidmatan usbmuxd lain mengambil alih peranti DFU maya sebelum memasuki RestoreOS. Padam pemasangan usbmuxd dari Sileo, kemudian cuba lagi.";
"Another Virtual Mac Is Running" = "Mac maya Lain Sedang Berjalan";
+"Apple Pencil Pressure and Tilt" = "Tekanan dan Kecondongan Apple Pencil";
"Audio and Acceleration" = "Audio dan Akselerasi";
"Audio Output" = "Output Audio";
"Available macOS Releases" = "Keluaran macOS yang Tersedia";
"Available macOS Versions" = "Versi macOS yang Tersedia";
+"Because OpenGL acceleration requires Virtual Mac guest tools, turning off Virtual Mac guest tools will also turn off OpenGL acceleration. Apps such as Final Cut Pro mostly use Metal, but they check for OpenGL capabilities in order to launch." = "Oleh sebab pecutan OpenGL memerlukan alat tetamu Virtual Mac, mematikan alat tetamu juga akan mematikan pecutan OpenGL. App seperti Final Cut Pro kebanyakannya menggunakan Metal, tetapi menyemak keupayaan OpenGL untuk dibuka.";
"Boot and Network" = "Boot dan Rangkaian";
"Bottom Left" = "Bawah Kiri";
"Bottom Right" = "Bawah Kanan";
@@ -42,7 +46,6 @@
"Choose whether Virtual Mac opens its library or starts a Virtual Mac." = "Pilih sama ada Virtual Mac membuka pustakanya atau memulakan Mac Maya.";
"Compatibility" = "Keserasian";
"Complete Virtual Mac devices and restore images outside Virtual Mac are not removed." = "Peranti Mac maya lengkap dan imej pemulihan di luar Mac maya tidak akan dipadam.";
-"Configuration changes take effect after the Virtual Mac is shut down and started again." = "Perubahan konfigurasi berkuat kuasa selepas Virtual Mac dimatikan dan dimulakan semula.";
"Configuration failed: %@" = "Konfigurasi gagal: %@";
"Configure %@" = "Konfigurasikan %@";
"Continue" = "Teruskan";
@@ -58,7 +61,7 @@
"Create Virtual Mac" = "Cipta Mac Maya";
"Custom" = "Tersuai";
"Debug Logging" = "Pengelogan nyahpepijat";
-"Debug Logging has been enabled. You can turn it off later in Settings." = "Pengelogan nyahpepijat telah didayakan. Anda boleh mematikannya kemudian dalam Tetapan.";
+"Debug logging has been enabled for the next boot." = "Pengelogan nyahpepijat telah diaktifkan untuk but seterusnya.";
"Debug Logging takes effect the next time a Virtual Mac starts." = "Pengelogan nyahpepijat berkuat kuasa apabila Virtual Mac dimulakan seterusnya.";
"Delete" = "Padam";
"Delete All" = "Padam Semua";
@@ -82,7 +85,12 @@
"Display Resolution" = "Resolusi Paparan";
"Display Width" = "Lebar Paparan";
"Double-tap to hold or release this modifier" = "Ketuk dua kali untuk mengekalkan atau melepaskan kekunci pengubah ini";
+"Download Apple Pencil Support" = "Muat Turun Sokongan Apple Pencil";
"Download Failed" = "Muat Turun Gagal";
+"Download Final Cut Pro Trial" = "Muat Turun Percubaan Final Cut Pro";
+"Download Logic Pro Trial" = "Muat Turun Percubaan Logic Pro";
+"Download Pixelmator Pro Trial" = "Muat Turun Percubaan Pixelmator Pro";
+"Download Xcode" = "Muat Turun Xcode";
"Downloading macOS" = "Memuat turun macOS";
"Enter six hexadecimal octets separated by colons." = "Masukkan enam oktet perenambelasan yang dipisahkan dengan titik dua.";
"Ethernet (%@)" = "Ethernet (%@)";
@@ -122,6 +130,7 @@
"Keep Virtual Mac open. Your iPad will remain awake until the download finishes." = "Biarkan Virtual Mac terbuka. iPad akan kekal aktif sehingga muat turun selesai.";
"Keyboard" = "Papan Kekunci";
"Landscape iPad" = "iPad Landskap";
+"Learn More" = "Ketahui Lebih Lanjut";
"Library Appearance" = "Penampilan Pustaka";
"Loading extracted Apple virtualization frameworks…" = "Memuat kerangka kerja mayaisasi Apple yang yang diekstrak…";
"MAC Address" = "Alamat MAC";
@@ -130,6 +139,7 @@
"Mac Trackpad" = "Trackpad Mac";
"macOS Installed" = "macOS Dipasang";
"Memory" = "Memori";
+"Metal BC Support" = "Sokongan Metal BC";
"Microphone Input" = "Input Mikrofon";
"Minimum: %llu GB. The upper limit is determined by the filesystem." = "Minimum: %llu GB. Had atas ditentukan oleh sistem fail.";
"Move Controls" = "Pindahkan Kawalan";
@@ -145,10 +155,15 @@
"Off" = "Nyahaktif";
"OK" = "OK";
"On" = "Aktif";
+"On for Next Boot" = "Aktif untuk But Seterusnya";
"Only about %llu GB is currently available. The disk image is sparse, but installation or later use can fail when storage fills up." = "Pada masa ini hanya tersedia sekitar %llu GB. Imej cakera bersifat dinamik, tetapi pemasangan atau penggunaan kemudian boleh gagal apabila storan penuh.";
"Open Control Center and start Screen Recording, then reproduce the problem." = "Buka Pusat Kawalan, mulakan Rakaman Skrin, kemudian hasilkan semula masalah.";
+"OpenGL Acceleration" = "Pecutan OpenGL";
+"OpenGL Acceleration Is Off" = "Pecutan OpenGL Dimatikan";
+"OpenGL Acceleration requires macOS Sonoma or later." = "Pecutan OpenGL memerlukan macOS Sonoma atau lebih baharu.";
"Optional" = "Pilihan";
"Options" = "Pilihan";
+"Out of Video Memory" = "Memori Video Kehabisan";
"People have dreamed of running macOS on iPad for more than a decade. Today, that dream comes true. Create a Virtual Mac to get started." = "Selama lebih sedekad, orang ramai mengimpikan macOS dijalankan pada iPad. Hari ini, impian itu menjadi kenyataan. Cipta Mac maya untuk bermula.";
"Pixels Per Inch" = "Piksel Per Inci";
"Pointing Device" = "Peranti Penunjuk";
@@ -220,11 +235,14 @@
"These options affect iPadOS only while Virtual Mac is frontmost and a Virtual Mac is running." = "Pilihan ini hanya menjejaskan iPadOS ketika Mac Maya berada di hadapan dan Mac maya sedang berjalan.";
"This restores all Virtual Mac settings to their defaults. Virtual Macs, restore images, and installation files won’t be removed." = "Ini mengembalikan semua tetapan Virtual Mac kepada nilai lalai. Virtual Mac, imej pemulihan dan fail pemasangan tidak akan dipadamkan.";
"this Virtual Mac" = "Mac maya ini";
+"To enable OpenGL acceleration, shut down this Virtual Mac, then in its options, enable OpenGL Acceleration." = "Untuk mengaktifkan pecutan OpenGL, matikan Virtual Mac ini, kemudian aktifkannya dalam pilihan.";
"To show the controls, touch and hold the Virtual Mac icon on the Home Screen, then choose Show Virtual Mac Controls." = "Untuk menunjukkan kawalan, sentuh dan tahan ikon Virtual Mac pada Skrin Utama, kemudian pilih Tunjukkan Kawalan Virtual Mac.";
+"To use Apple Pencil pressure and tilt, download pencil-probe in %@ Virtual Mac." = "Untuk menggunakan tekanan dan kecondongan Apple Pencil, muat turun pencil-probe dalam Mac Maya %@.";
"Top Left" = "Atas Kiri";
"Top Right" = "Atas Kanan";
"Touch" = "Sentuhan";
"Touch and Hold to Secondary Click" = "Sentuh dan Tahan untuk Klik Sekunder";
+"Turn Off Virtual Mac Guest Tools?" = "Matikan Alat Tetamu Virtual Mac?";
"Two Finger Tap to Secondary Click" = "Ketik Dua Jari untuk Klik Sekunder";
"Unknown" = "Tidak Diketahui";
"Unsaved changes in macOS may be lost." = "Perubahan yang belum disimpan di macOS mungkin hilang.";
@@ -245,6 +263,7 @@
"Virtual Mac devices are stored in %@." = "Mac Maya disimpan dalam %@.";
"Virtual Mac Display" = "Paparan Mac Maya";
"Virtual Mac does not support the Dopamine-roothide environment. Remove the roothide jailbreak from Dopamine-roothide > Settings > Remove Jailbreak, then switch to the official version of Dopamine." = "Virtual Mac tidak menyokong persekitaran Dopamine-roothide. Buang jailbreak roothide melalui Dopamine-roothide > Tetapan > Buang Jailbreak, kemudian tukar kepada versi rasmi Dopamine.";
+"Virtual Mac Guest Tools" = "Alat Tetamu Mac Maya";
"Virtual Mac has no published framebuffer" = "Mac maya tidak mempunyai framebuffer yang diterbitkan";
"Virtual Mac running — native PVG framebuffer attached" = "Mac maya berjalan — framebuffer PVG asli terpasang";
"Virtual Mac running — preparing native PVG display" = "Mac maya berjalan — menyiapkan paparan PVG asli";
diff --git a/VirtualMac/resources/Localizations/nl.lproj/Localizable.strings b/VirtualMac/resources/Localizations/nl.lproj/Localizable.strings
index 7aab7fa..3a20795 100644
--- a/VirtualMac/resources/Localizations/nl.lproj/Localizable.strings
+++ b/VirtualMac/resources/Localizations/nl.lproj/Localizable.strings
@@ -2,6 +2,7 @@
"%.0f%% complete" = "%.0f%% voltooid";
"%@ CPU · %@ GB RAM · %llu GB · %@%@" = "%@ CPU · %@ GB RAM · %llu GB · %@%@";
"%@ is not supported" = "%@ wordt niet ondersteund";
+"%@ is out of video memory. macOS may appear frozen." = "Het videogeheugen van %@ is vol. Het lijkt mogelijk alsof macOS is vastgelopen.";
"%@ may encounter performance or graphical issues. For the best experience, use macOS Ventura, macOS Sonoma, or macOS Sequoia.\n\nIf transparency effects cause visual problems, turn on Reduce Transparency in System Settings > Accessibility > Display." = "Bij %@ kunnen prestatie- of grafische problemen optreden. Gebruik macOS Ventura, macOS Sonoma of macOS Sequoia voor de beste ervaring.\n\nAls transparantie-effecten visuele problemen veroorzaken, schakel je Verminder doorzichtigheid in via Systeeminstellingen > Toegankelijkheid > Beeldscherm.";
"%@ remaining" = "Nog %@";
"%@\nState: %@\n%@\n\n" = "%@\nStatus: %@\n%@\n\n";
@@ -15,12 +16,15 @@
"Add Shared Folder" = "Gedeelde map toevoegen";
"Advanced" = "Geavanceerd";
"Allowed: %llu–%llu%@" = "Toegestaan: %llu–%llu%@";
+"Always On" = "Altijd aan";
"Another usbmuxd service took control of the virtual DFU device before it entered RestoreOS. Uninstall usbmuxd from Sileo and try again." = "Een andere usbmuxd-service heeft het virtuele DFU-apparaat overgenomen voordat het RestoreOS bereikte. Verwijder usbmuxd via Sileo en probeer het opnieuw.";
"Another Virtual Mac Is Running" = "Er wordt al een andere Virtual Mac uitgevoerd";
+"Apple Pencil Pressure and Tilt" = "Druk en kanteling van Apple Pencil";
"Audio and Acceleration" = "Audio en versnelling";
"Audio Output" = "Audio-uitvoer";
"Available macOS Releases" = "Beschikbare macOS-versies";
"Available macOS Versions" = "Beschikbare macOS-versies";
+"Because OpenGL acceleration requires Virtual Mac guest tools, turning off Virtual Mac guest tools will also turn off OpenGL acceleration. Apps such as Final Cut Pro mostly use Metal, but they check for OpenGL capabilities in order to launch." = "Omdat OpenGL-versnelling de Virtual Mac-gasttools vereist, wordt OpenGL-versnelling ook uitgeschakeld wanneer je de gasttools uitschakelt. Apps zoals Final Cut Pro gebruiken vooral Metal, maar controleren OpenGL-mogelijkheden om te kunnen starten.";
"Boot and Network" = "Opstarten en netwerk";
"Bottom Left" = "Linksonder";
"Bottom Right" = "Rechtsonder";
@@ -42,7 +46,6 @@
"Choose whether Virtual Mac opens its library or starts a Virtual Mac." = "Kies of Virtual Mac de bibliotheek opent of een Virtual Mac start.";
"Compatibility" = "Verenigbaarheid";
"Complete Virtual Mac devices and restore images outside Virtual Mac are not removed." = "Voltooide Virtual Macs en herstelimages buiten Virtual Mac worden niet verwijderd.";
-"Configuration changes take effect after the Virtual Mac is shut down and started again." = "Configuratiewijzigingen worden van kracht nadat Virtual Mac is uitgeschakeld en opnieuw is gestart.";
"Configuration failed: %@" = "Configuratie mislukt: %@";
"Configure %@" = "%@ configureren";
"Continue" = "Ga door";
@@ -58,7 +61,7 @@
"Create Virtual Mac" = "Maak een virtuele Mac";
"Custom" = "Aangepast";
"Debug Logging" = "Foutopsporingslogboek";
-"Debug Logging has been enabled. You can turn it off later in Settings." = "Debugregistratie is ingeschakeld. Je kunt dit later uitschakelen in Instellingen.";
+"Debug logging has been enabled for the next boot." = "Debuglogboekregistratie is ingeschakeld voor de volgende start.";
"Debug Logging takes effect the next time a Virtual Mac starts." = "Debugregistratie wordt actief wanneer een Virtual Mac de volgende keer wordt gestart.";
"Delete" = "Verwijder";
"Delete All" = "Alles verwijderen";
@@ -82,7 +85,12 @@
"Display Resolution" = "Beeldschermresolutie";
"Display Width" = "Beeldschermbreedte";
"Double-tap to hold or release this modifier" = "Tik dubbel om deze speciale toets vast te zetten of los te laten";
+"Download Apple Pencil Support" = "Apple Pencil-ondersteuning downloaden";
"Download Failed" = "Download mislukt";
+"Download Final Cut Pro Trial" = "Proefversie van Final Cut Pro downloaden";
+"Download Logic Pro Trial" = "Proefversie van Logic Pro downloaden";
+"Download Pixelmator Pro Trial" = "Proefversie van Pixelmator Pro downloaden";
+"Download Xcode" = "Xcode downloaden";
"Downloading macOS" = "macOS downloaden";
"Enter six hexadecimal octets separated by colons." = "Voer zes hexadecimale octetten in, gescheiden door dubbele punten.";
"Ethernet (%@)" = "Ethernet (%@)";
@@ -122,6 +130,7 @@
"Keep Virtual Mac open. Your iPad will remain awake until the download finishes." = "Houd Virtual Mac geopend. Uw iPad blijft actief totdat de download is voltooid.";
"Keyboard" = "Toetsenbord";
"Landscape iPad" = "iPad liggend";
+"Learn More" = "Meer informatie";
"Library Appearance" = "Weergave bibliotheek";
"Loading extracted Apple virtualization frameworks…" = "Geëxtraheerde Apple-virtualisatieframeworks laden…";
"MAC Address" = "MAC-adres";
@@ -130,6 +139,7 @@
"Mac Trackpad" = "Mac-trackpad";
"macOS Installed" = "macOS geïnstalleerd";
"Memory" = "Geheugen";
+"Metal BC Support" = "Ondersteuning voor Metal BC";
"Microphone Input" = "Microfooninvoer";
"Minimum: %llu GB. The upper limit is determined by the filesystem." = "Minimum: %llu GB. De bovengrens wordt bepaald door het bestandssysteem.";
"Move Controls" = "Regelaars verplaatsen";
@@ -145,10 +155,15 @@
"Off" = "Uit";
"OK" = "OK";
"On" = "Aan";
+"On for Next Boot" = "Aan bij volgende start";
"Only about %llu GB is currently available. The disk image is sparse, but installation or later use can fail when storage fills up." = "Er is momenteel slechts ongeveer %llu GB beschikbaar. De schijfimage is dynamisch, maar de installatie of het latere gebruik kan mislukken als de opslag vol raakt.";
"Open Control Center and start Screen Recording, then reproduce the problem." = "Open het bedieningspaneel, start een schermopname en reproduceer vervolgens het probleem.";
+"OpenGL Acceleration" = "OpenGL-versnelling";
+"OpenGL Acceleration Is Off" = "OpenGL-versnelling is uitgeschakeld";
+"OpenGL Acceleration requires macOS Sonoma or later." = "OpenGL-versnelling vereist macOS Sonoma of nieuwer.";
"Optional" = "Optioneel";
"Options" = "Opties";
+"Out of Video Memory" = "Videogeheugen vol";
"People have dreamed of running macOS on iPad for more than a decade. Today, that dream comes true. Create a Virtual Mac to get started." = "Mensen dromen er al meer dan tien jaar van om macOS op de iPad te gebruiken. Vandaag wordt die droom werkelijkheid. Maak een virtuele Mac aan om aan de slag te gaan.";
"Pixels Per Inch" = "Pixels per inch";
"Pointing Device" = "Aanwijsapparaat";
@@ -220,11 +235,14 @@
"These options affect iPadOS only while Virtual Mac is frontmost and a Virtual Mac is running." = "Deze opties zijn alleen van invloed op iPadOS wanneer Virtuele Mac op de voorgrond staat en er een virtuele Mac actief is.";
"This restores all Virtual Mac settings to their defaults. Virtual Macs, restore images, and installation files won’t be removed." = "Hiermee worden alle instellingen van Virtual Mac teruggezet naar de standaardwaarden. Virtual Macs, herstelimages en installatiebestanden worden niet verwijderd.";
"this Virtual Mac" = "deze Virtual Mac";
+"To enable OpenGL acceleration, shut down this Virtual Mac, then in its options, enable OpenGL Acceleration." = "Om OpenGL-versnelling in te schakelen, zet je deze Virtual Mac uit en schakel je de functie in bij de opties.";
"To show the controls, touch and hold the Virtual Mac icon on the Home Screen, then choose Show Virtual Mac Controls." = "Houd het Virtual Mac-symbool op het beginscherm ingedrukt en kies vervolgens ‘Toon Virtual Mac-regelaars’ om de regelaars te tonen.";
+"To use Apple Pencil pressure and tilt, download pencil-probe in %@ Virtual Mac." = "Download pencil-probe op de virtuele Mac %@ om druk en kanteling van Apple Pencil te gebruiken.";
"Top Left" = "Linksboven";
"Top Right" = "Rechtsboven";
"Touch" = "Aanraking";
"Touch and Hold to Secondary Click" = "Aanraken en vasthouden voor secundaire klik";
+"Turn Off Virtual Mac Guest Tools?" = "Virtual Mac-gasttools uitschakelen?";
"Two Finger Tap to Secondary Click" = "Tik met twee vingers voor secundaire klik";
"Unknown" = "Onbekend";
"Unsaved changes in macOS may be lost." = "Niet-bewaarde wijzigingen in macOS kunnen verloren gaan.";
@@ -245,6 +263,7 @@
"Virtual Mac devices are stored in %@." = "Virtuele Macs worden bewaard in %@.";
"Virtual Mac Display" = "Beeldscherm van virtuele Mac";
"Virtual Mac does not support the Dopamine-roothide environment. Remove the roothide jailbreak from Dopamine-roothide > Settings > Remove Jailbreak, then switch to the official version of Dopamine." = "Virtual Mac ondersteunt de Dopamine-roothide-omgeving niet. Verwijder de roothide-jailbreak via Dopamine-roothide > Instellingen > Jailbreak verwijderen en schakel daarna over naar de officiële versie van Dopamine.";
+"Virtual Mac Guest Tools" = "Gasttools voor Virtuele Mac";
"Virtual Mac has no published framebuffer" = "Virtual Mac heeft geen framebuffer gepubliceerd";
"Virtual Mac running — native PVG framebuffer attached" = "Virtual Mac actief — native PVG-framebuffer verbonden";
"Virtual Mac running — preparing native PVG display" = "Virtual Mac actief — native PVG-beeldscherm voorbereiden";
diff --git a/VirtualMac/resources/Localizations/no.lproj/Localizable.strings b/VirtualMac/resources/Localizations/no.lproj/Localizable.strings
index 02dafc0..5c60f4d 100644
--- a/VirtualMac/resources/Localizations/no.lproj/Localizable.strings
+++ b/VirtualMac/resources/Localizations/no.lproj/Localizable.strings
@@ -2,6 +2,7 @@
"%.0f%% complete" = "%.0f%% fullført";
"%@ CPU · %@ GB RAM · %llu GB · %@%@" = "%@ CPU · %@ GB RAM · %llu GB · %@%@";
"%@ is not supported" = "%@ støttes ikke";
+"%@ is out of video memory. macOS may appear frozen." = "%@ er tom for videominne. macOS kan se ut til å ha fryst.";
"%@ may encounter performance or graphical issues. For the best experience, use macOS Ventura, macOS Sonoma, or macOS Sequoia.\n\nIf transparency effects cause visual problems, turn on Reduce Transparency in System Settings > Accessibility > Display." = "%@ kan ha ytelses- eller grafikkproblemer. Bruk macOS Ventura, macOS Sonoma eller macOS Sequoia for den beste opplevelsen.\n\nHvis gjennomsiktighetseffekter gir visuelle problemer, slår du på Reduser gjennomsiktighet under Systeminnstillinger > Tilgjengelighet > Skjerm.";
"%@ remaining" = "%@ gjenstår";
"%@\nState: %@\n%@\n\n" = "%@\nStatus: %@\n%@\n\n";
@@ -15,12 +16,15 @@
"Add Shared Folder" = "Legg til delt mappe";
"Advanced" = "Avansert";
"Allowed: %llu–%llu%@" = "Tillatt: %llu–%llu%@";
+"Always On" = "Alltid på";
"Another usbmuxd service took control of the virtual DFU device before it entered RestoreOS. Uninstall usbmuxd from Sileo and try again." = "En annen usbmuxd-tjeneste tok kontroll over den virtuelle DFU-enheten før den gikk inn i RestoreOS. Avinstaller usbmuxd i Sileo og prøv igjen.";
"Another Virtual Mac Is Running" = "En annen Virtual Mac kjører";
+"Apple Pencil Pressure and Tilt" = "Trykk og vinkel med Apple Pencil";
"Audio and Acceleration" = "Lyd og akselerasjon";
"Audio Output" = "Lydutgang";
"Available macOS Releases" = "Tilgjengelige macOS-utgivelser";
"Available macOS Versions" = "Tilgjengelige macOS-versjoner";
+"Because OpenGL acceleration requires Virtual Mac guest tools, turning off Virtual Mac guest tools will also turn off OpenGL acceleration. Apps such as Final Cut Pro mostly use Metal, but they check for OpenGL capabilities in order to launch." = "Fordi OpenGL-akselerasjon krever Virtual Mac-gjesteverktøy, blir OpenGL-akselerasjon også slått av når gjesteverktøyene slås av. Apper som Final Cut Pro bruker hovedsakelig Metal, men kontrollerer OpenGL-funksjoner for å kunne starte.";
"Boot and Network" = "Oppstart og nettverk";
"Bottom Left" = "Nederst til venstre";
"Bottom Right" = "Nederst til høyre";
@@ -42,7 +46,6 @@
"Choose whether Virtual Mac opens its library or starts a Virtual Mac." = "Velg om Virtual Mac skal åpne biblioteket eller starte en Virtual Mac.";
"Compatibility" = "Kompatibilitet";
"Complete Virtual Mac devices and restore images outside Virtual Mac are not removed." = "Fullførte Virtual Mac-maskiner og gjenopprettingsbilder utenfor Virtual Mac fjernes ikke.";
-"Configuration changes take effect after the Virtual Mac is shut down and started again." = "Konfigurasjonsendringer trer i kraft etter at Virtual Mac er slått av og startet på nytt.";
"Configuration failed: %@" = "Konfigurasjon mislyktes: %@";
"Configure %@" = "Konfigurer %@";
"Continue" = "Fortsett";
@@ -58,7 +61,7 @@
"Create Virtual Mac" = "Opprett en virtuell Mac";
"Custom" = "Tilpasset";
"Debug Logging" = "Feilsøkingslogging";
-"Debug Logging has been enabled. You can turn it off later in Settings." = "Feilsøkingslogging er slått på. Du kan slå det av senere i Innstillinger.";
+"Debug logging has been enabled for the next boot." = "Feilsøkingslogging er slått på for neste oppstart.";
"Debug Logging takes effect the next time a Virtual Mac starts." = "Feilsøkingslogging trer i kraft neste gang en Virtual Mac starter.";
"Delete" = "Slett";
"Delete All" = "Slett alle";
@@ -82,7 +85,12 @@
"Display Resolution" = "Skjermoppløsning";
"Display Width" = "Skjermbredde";
"Double-tap to hold or release this modifier" = "Dobbelttrykk for å låse eller slippe denne spesialtasten";
+"Download Apple Pencil Support" = "Last ned støtte for Apple Pencil";
"Download Failed" = "Nedlasting mislyktes";
+"Download Final Cut Pro Trial" = "Last ned prøveversjonen av Final Cut Pro";
+"Download Logic Pro Trial" = "Last ned prøveversjonen av Logic Pro";
+"Download Pixelmator Pro Trial" = "Last ned prøveversjonen av Pixelmator Pro";
+"Download Xcode" = "Last ned Xcode";
"Downloading macOS" = "Laster ned macOS";
"Enter six hexadecimal octets separated by colons." = "Skriv inn seks heksadesimale oktetter atskilt med kolon.";
"Ethernet (%@)" = "Ethernet (%@)";
@@ -122,6 +130,7 @@
"Keep Virtual Mac open. Your iPad will remain awake until the download finishes." = "Hold Virtual Mac åpen. iPaden din forblir aktiv til nedlastingen er ferdig.";
"Keyboard" = "Tastatur";
"Landscape iPad" = "iPad liggende";
+"Learn More" = "Finn ut mer";
"Library Appearance" = "Bibliotekutseende";
"Loading extracted Apple virtualization frameworks…" = "Laster inn utpakkede Apple-rammeverk for virtualisering…";
"MAC Address" = "MAC-adresse";
@@ -130,6 +139,7 @@
"Mac Trackpad" = "Mac-styreflate";
"macOS Installed" = "macOS installert";
"Memory" = "Minne";
+"Metal BC Support" = "Støtte for Metal BC";
"Microphone Input" = "Mikrofoninngang";
"Minimum: %llu GB. The upper limit is determined by the filesystem." = "Minimum: %llu GB. Den øvre grensen bestemmes av filsystemet.";
"Move Controls" = "Flytt kontroller";
@@ -145,10 +155,15 @@
"Off" = "Av";
"OK" = "OK";
"On" = "På";
+"On for Next Boot" = "På ved neste oppstart";
"Only about %llu GB is currently available. The disk image is sparse, but installation or later use can fail when storage fills up." = "Bare omtrent %llu GB er tilgjengelig. Diskbildet er dynamisk, men installasjonen eller senere bruk kan mislykkes hvis lagringen blir full.";
"Open Control Center and start Screen Recording, then reproduce the problem." = "Åpne Kontrollsenter, start et skjermopptak, og gjenskap deretter problemet.";
+"OpenGL Acceleration" = "OpenGL-akselerasjon";
+"OpenGL Acceleration Is Off" = "OpenGL-akselerasjon er av";
+"OpenGL Acceleration requires macOS Sonoma or later." = "OpenGL-akselerasjon krever macOS Sonoma eller nyere.";
"Optional" = "Valgfritt";
"Options" = "Valg";
+"Out of Video Memory" = "Tomt for videominne";
"People have dreamed of running macOS on iPad for more than a decade. Today, that dream comes true. Create a Virtual Mac to get started." = "I mer enn et tiår har folk drømt om å kjøre macOS på iPad. I dag blir drømmen virkelighet. Opprett en virtuell Mac for å komme i gang.";
"Pixels Per Inch" = "Piksler per tomme";
"Pointing Device" = "Pekeenhet";
@@ -220,11 +235,14 @@
"These options affect iPadOS only while Virtual Mac is frontmost and a Virtual Mac is running." = "Disse innstillingene påvirker bare iPadOS når Virtuell Mac er i forgrunnen og en virtuell Mac kjører.";
"This restores all Virtual Mac settings to their defaults. Virtual Macs, restore images, and installation files won’t be removed." = "Dette tilbakestiller alle innstillinger i Virtual Mac til standardverdiene. Virtual Mac-maskiner, gjenopprettingsbilder og installasjonsfiler fjernes ikke.";
"this Virtual Mac" = "denne Virtual Mac";
+"To enable OpenGL acceleration, shut down this Virtual Mac, then in its options, enable OpenGL Acceleration." = "Slå av denne Virtual Mac, og slå deretter på OpenGL-akselerasjon i valgene for å aktivere den.";
"To show the controls, touch and hold the Virtual Mac icon on the Home Screen, then choose Show Virtual Mac Controls." = "For å vise kontrollene trykker og holder du på Virtual Mac-symbolet på Hjem-skjermen og velger Vis Virtual Mac-kontroller.";
+"To use Apple Pencil pressure and tilt, download pencil-probe in %@ Virtual Mac." = "For å bruke trykk og vinkel med Apple Pencil må du laste ned pencil-probe på den virtuelle Macen %@.";
"Top Left" = "Øverst til venstre";
"Top Right" = "Øverst til høyre";
"Touch" = "Berøring";
"Touch and Hold to Secondary Click" = "Trykk og hold for sekundært klikk";
+"Turn Off Virtual Mac Guest Tools?" = "Slå av Virtual Mac-gjesteverktøy?";
"Two Finger Tap to Secondary Click" = "Trykk med to fingre for sekundært klikk";
"Unknown" = "Ukjent";
"Unsaved changes in macOS may be lost." = "Ulagrede endringer i macOS kan gå tapt.";
@@ -245,6 +263,7 @@
"Virtual Mac devices are stored in %@." = "Virtuelle Macer arkiveres i %@.";
"Virtual Mac Display" = "Virtuell Mac-skjerm";
"Virtual Mac does not support the Dopamine-roothide environment. Remove the roothide jailbreak from Dopamine-roothide > Settings > Remove Jailbreak, then switch to the official version of Dopamine." = "Virtual Mac støtter ikke Dopamine-roothide-miljøet. Fjern roothide-jailbreaken i Dopamine-roothide > Innstillinger > Fjern jailbreak, og bytt deretter til den offisielle versjonen av Dopamine.";
+"Virtual Mac Guest Tools" = "Gjesteverktøy for Virtuell Mac";
"Virtual Mac has no published framebuffer" = "Virtual Mac har ikke publisert en framebuffer";
"Virtual Mac running — native PVG framebuffer attached" = "Virtual Mac kjører — opprinnelig PVG-framebuffer tilkoblet";
"Virtual Mac running — preparing native PVG display" = "Virtual Mac kjører — forbereder opprinnelig PVG-skjerm";
diff --git a/VirtualMac/resources/Localizations/pl.lproj/Localizable.strings b/VirtualMac/resources/Localizations/pl.lproj/Localizable.strings
index ab776a1..2d872e5 100644
--- a/VirtualMac/resources/Localizations/pl.lproj/Localizable.strings
+++ b/VirtualMac/resources/Localizations/pl.lproj/Localizable.strings
@@ -2,6 +2,7 @@
"%.0f%% complete" = "Ukończono %.0f%%";
"%@ CPU · %@ GB RAM · %llu GB · %@%@" = "%@ CPU · %@ GB RAM · %llu GB · %@%@";
"%@ is not supported" = "%@ nie jest obsługiwany";
+"%@ is out of video memory. macOS may appear frozen." = "W %@ zabrakło pamięci wideo. macOS może wyglądać na zawieszony.";
"%@ may encounter performance or graphical issues. For the best experience, use macOS Ventura, macOS Sonoma, or macOS Sequoia.\n\nIf transparency effects cause visual problems, turn on Reduce Transparency in System Settings > Accessibility > Display." = "W systemie %@ mogą wystąpić problemy z wydajnością lub grafiką. Aby uzyskać najlepsze działanie, użyj macOS Ventura, macOS Sonoma lub macOS Sequoia.\n\nJeśli efekty przezroczystości powodują problemy z wyświetlaniem, włącz opcję Redukuj przezroczystość w Ustawienia systemowe > Dostępność > Ekran.";
"%@ remaining" = "Pozostało: %@";
"%@\nState: %@\n%@\n\n" = "%@\nStan: %@\n%@\n\n";
@@ -15,12 +16,15 @@
"Add Shared Folder" = "Dodaj folder udostępniony";
"Advanced" = "Zaawansowane";
"Allowed: %llu–%llu%@" = "Dozwolone: %llu–%llu%@";
+"Always On" = "Zawsze włączone";
"Another usbmuxd service took control of the virtual DFU device before it entered RestoreOS. Uninstall usbmuxd from Sileo and try again." = "Inna usługa usbmuxd przejęła wirtualne urządzenie DFU przed uruchomieniem RestoreOS. Odinstaluj usbmuxd w Sileo i spróbuj ponownie.";
"Another Virtual Mac Is Running" = "Inny Virtual Mac jest uruchomiony";
+"Apple Pencil Pressure and Tilt" = "Nacisk i pochylenie Apple Pencil";
"Audio and Acceleration" = "Dźwięk i akceleracja";
"Audio Output" = "Wyjście dźwięku";
"Available macOS Releases" = "Dostępne wydania macOS";
"Available macOS Versions" = "Dostępne wersje macOS";
+"Because OpenGL acceleration requires Virtual Mac guest tools, turning off Virtual Mac guest tools will also turn off OpenGL acceleration. Apps such as Final Cut Pro mostly use Metal, but they check for OpenGL capabilities in order to launch." = "Ponieważ przyspieszenie OpenGL wymaga narzędzi gościa Virtual Mac, ich wyłączenie spowoduje także wyłączenie przyspieszenia OpenGL. Aplikacje takie jak Final Cut Pro używają głównie Metal, ale przed uruchomieniem sprawdzają możliwości OpenGL.";
"Boot and Network" = "Uruchamianie i sieć";
"Bottom Left" = "Na dole po lewej";
"Bottom Right" = "Na dole po prawej";
@@ -42,7 +46,6 @@
"Choose whether Virtual Mac opens its library or starts a Virtual Mac." = "Wybierz, czy aplikacja Virtual Mac ma otwierać bibliotekę, czy uruchamiać Virtual Maca.";
"Compatibility" = "Zgodność";
"Complete Virtual Mac devices and restore images outside Virtual Mac are not removed." = "Kompletne Virtual Maki i obrazy odtwarzania poza aplikacją Virtual Mac nie zostaną usunięte.";
-"Configuration changes take effect after the Virtual Mac is shut down and started again." = "Zmiany konfiguracji zostaną zastosowane po wyłączeniu i ponownym uruchomieniu Virtual Mac.";
"Configuration failed: %@" = "Konfiguracja nie powiodła się: %@";
"Configure %@" = "Skonfiguruj %@";
"Continue" = "Kontynuuj";
@@ -58,7 +61,7 @@
"Create Virtual Mac" = "Utwórz Wirtualny Mac";
"Custom" = "Własna";
"Debug Logging" = "Rejestrowanie debugowania";
-"Debug Logging has been enabled. You can turn it off later in Settings." = "Rejestrowanie debugowania zostało włączone. Możesz je później wyłączyć w Ustawieniach.";
+"Debug logging has been enabled for the next boot." = "Rejestrowanie debugowania zostało włączone dla następnego rozruchu.";
"Debug Logging takes effect the next time a Virtual Mac starts." = "Rejestrowanie debugowania zostanie włączone przy następnym uruchomieniu Virtual Mac.";
"Delete" = "Usuń";
"Delete All" = "Usuń wszystko";
@@ -82,7 +85,12 @@
"Display Resolution" = "Rozdzielczość ekranu";
"Display Width" = "Szerokość ekranu";
"Double-tap to hold or release this modifier" = "Stuknij dwukrotnie, aby przytrzymać lub zwolnić ten klawisz modyfikujący";
+"Download Apple Pencil Support" = "Pobierz obsługę Apple Pencil";
"Download Failed" = "Pobieranie nie powiodło się";
+"Download Final Cut Pro Trial" = "Pobierz wersję próbną Final Cut Pro";
+"Download Logic Pro Trial" = "Pobierz wersję próbną Logic Pro";
+"Download Pixelmator Pro Trial" = "Pobierz wersję próbną Pixelmator Pro";
+"Download Xcode" = "Pobierz Xcode";
"Downloading macOS" = "Pobieranie macOS";
"Enter six hexadecimal octets separated by colons." = "Wprowadź sześć oktetów szesnastkowych rozdzielonych dwukropkami.";
"Ethernet (%@)" = "Ethernet (%@)";
@@ -122,6 +130,7 @@
"Keep Virtual Mac open. Your iPad will remain awake until the download finishes." = "Pozostaw aplikację Virtual Mac otwartą. iPad nie uśnie do czasu zakończenia pobierania.";
"Keyboard" = "Klawiatura";
"Landscape iPad" = "iPad poziomo";
+"Learn More" = "Dowiedz się więcej";
"Library Appearance" = "Wygląd biblioteki";
"Loading extracted Apple virtualization frameworks…" = "Wczytywanie wyodrębnionych frameworków wirtualizacji Apple…";
"MAC Address" = "Adres fizyczny (MAC)";
@@ -130,6 +139,7 @@
"Mac Trackpad" = "Gładzik Maca";
"macOS Installed" = "macOS zainstalowany";
"Memory" = "Pamięć";
+"Metal BC Support" = "Obsługa Metal BC";
"Microphone Input" = "Wejście mikrofonu";
"Minimum: %llu GB. The upper limit is determined by the filesystem." = "Minimum: %llu GB. Górny limit zależy od systemu plików.";
"Move Controls" = "Przenieś elementy sterujące";
@@ -145,10 +155,15 @@
"Off" = "Wyłączone";
"OK" = "OK";
"On" = "Włączone";
+"On for Next Boot" = "Włączone przy następnym rozruchu";
"Only about %llu GB is currently available. The disk image is sparse, but installation or later use can fail when storage fills up." = "Obecnie dostępne jest tylko około %llu GB. Obraz dysku jest plikiem rzadkim, ale instalacja lub późniejsze używanie może się nie powieść po zapełnieniu pamięci.";
"Open Control Center and start Screen Recording, then reproduce the problem." = "Otwórz Centrum sterowania, rozpocznij nagrywanie ekranu, a następnie odtwórz problem.";
+"OpenGL Acceleration" = "Przyspieszenie OpenGL";
+"OpenGL Acceleration Is Off" = "Przyspieszenie OpenGL jest wyłączone";
+"OpenGL Acceleration requires macOS Sonoma or later." = "Przyspieszenie OpenGL wymaga systemu macOS Sonoma lub nowszego.";
"Optional" = "Opcjonalnie";
"Options" = "Opcje";
+"Out of Video Memory" = "Brak pamięci wideo";
"People have dreamed of running macOS on iPad for more than a decade. Today, that dream comes true. Create a Virtual Mac to get started." = "Od ponad dekady ludzie marzą o uruchomieniu macOS na iPadzie. Dziś to marzenie się spełnia. Aby rozpocząć, utwórz wirtualnego Maca.";
"Pixels Per Inch" = "Piksele na cal";
"Pointing Device" = "Urządzenie wskazujące";
@@ -220,11 +235,14 @@
"These options affect iPadOS only while Virtual Mac is frontmost and a Virtual Mac is running." = "Te opcje wpływają na iPadOS tylko wtedy, gdy Wirtualny Mac jest na pierwszym planie i działa wirtualny Mac.";
"This restores all Virtual Mac settings to their defaults. Virtual Macs, restore images, and installation files won’t be removed." = "Spowoduje to przywrócenie domyślnych ustawień aplikacji Virtual Mac. Virtual Maki, obrazy odtwarzania i pliki instalacyjne nie zostaną usunięte.";
"this Virtual Mac" = "tego Virtual Maca";
+"To enable OpenGL acceleration, shut down this Virtual Mac, then in its options, enable OpenGL Acceleration." = "Aby włączyć przyspieszenie OpenGL, wyłącz ten Virtual Mac, a następnie włącz tę funkcję w jego opcjach.";
"To show the controls, touch and hold the Virtual Mac icon on the Home Screen, then choose Show Virtual Mac Controls." = "Aby wyświetlić elementy sterujące, dotknij i przytrzymaj ikonę Virtual Mac na ekranie początkowym, a następnie wybierz Pokaż elementy sterujące Virtual Mac.";
+"To use Apple Pencil pressure and tilt, download pencil-probe in %@ Virtual Mac." = "Aby używać nacisku i pochylenia Apple Pencil, pobierz pencil-probe na wirtualnego Maca %@.";
"Top Left" = "Na górze po lewej";
"Top Right" = "Na górze po prawej";
"Touch" = "Dotyk";
"Touch and Hold to Secondary Click" = "Dotknij i przytrzymaj, aby uzyskać dodatkowe kliknięcie";
+"Turn Off Virtual Mac Guest Tools?" = "Wyłączyć narzędzia gościa Virtual Mac?";
"Two Finger Tap to Secondary Click" = "Stuknięcie dwoma palcami w celu uzyskania dodatkowego kliknięcia";
"Unknown" = "Nieznany";
"Unsaved changes in macOS may be lost." = "Niezapisane zmiany w macOS mogą zostać utracone.";
@@ -245,6 +263,7 @@
"Virtual Mac devices are stored in %@." = "Wirtualne Maki są przechowywane w %@.";
"Virtual Mac Display" = "Ekran Wirtualnego Maca";
"Virtual Mac does not support the Dopamine-roothide environment. Remove the roothide jailbreak from Dopamine-roothide > Settings > Remove Jailbreak, then switch to the official version of Dopamine." = "Virtual Mac nie obsługuje środowiska Dopamine-roothide. Usuń jailbreak roothide w Dopamine-roothide > Ustawienia > Usuń jailbreak, a następnie przełącz się na oficjalną wersję Dopamine.";
+"Virtual Mac Guest Tools" = "Narzędzia gościa Wirtualnego Maca";
"Virtual Mac has no published framebuffer" = "Virtual Mac nie ma udostępnionego bufora ramki";
"Virtual Mac running — native PVG framebuffer attached" = "Virtual Mac działa — podłączono natywny bufor ramki PVG";
"Virtual Mac running — preparing native PVG display" = "Virtual Mac działa — przygotowywanie natywnego ekranu PVG";
diff --git a/VirtualMac/resources/Localizations/pt.lproj/Localizable.strings b/VirtualMac/resources/Localizations/pt.lproj/Localizable.strings
index 470f230..84e7c66 100644
--- a/VirtualMac/resources/Localizations/pt.lproj/Localizable.strings
+++ b/VirtualMac/resources/Localizations/pt.lproj/Localizable.strings
@@ -2,6 +2,7 @@
"%.0f%% complete" = "%.0f%% concluído";
"%@ CPU · %@ GB RAM · %llu GB · %@%@" = "%@ CPU · %@ GB de RAM · %llu GB · %@%@";
"%@ is not supported" = "%@ não é compatível";
+"%@ is out of video memory. macOS may appear frozen." = "%@ ficou sem memória de vídeo. O macOS pode parecer travado.";
"%@ may encounter performance or graphical issues. For the best experience, use macOS Ventura, macOS Sonoma, or macOS Sequoia.\n\nIf transparency effects cause visual problems, turn on Reduce Transparency in System Settings > Accessibility > Display." = "O %@ pode apresentar problemas de desempenho ou gráficos. Para obter a melhor experiência, use o macOS Ventura, macOS Sonoma ou macOS Sequoia.\n\nSe os efeitos de transparência causarem problemas visuais, ative Reduzir Transparência em Ajustes do Sistema > Acessibilidade > Tela.";
"%@ remaining" = "Tempo restante: %@";
"%@\nState: %@\n%@\n\n" = "%@\nEstado: %@\n%@\n\n";
@@ -15,12 +16,15 @@
"Add Shared Folder" = "Adicionar pasta compartilhada";
"Advanced" = "Avançado";
"Allowed: %llu–%llu%@" = "Permitido: %llu–%llu%@";
+"Always On" = "Sempre ativado";
"Another usbmuxd service took control of the virtual DFU device before it entered RestoreOS. Uninstall usbmuxd from Sileo and try again." = "Outro serviço usbmuxd assumiu o controle do dispositivo DFU virtual antes que ele entrasse no RestoreOS. Desinstale o usbmuxd pelo Sileo e tente novamente.";
"Another Virtual Mac Is Running" = "Outro Virtual Mac está em execução";
+"Apple Pencil Pressure and Tilt" = "Pressão e inclinação do Apple Pencil";
"Audio and Acceleration" = "Áudio e aceleração";
"Audio Output" = "Saída de áudio";
"Available macOS Releases" = "Versões disponíveis do macOS";
"Available macOS Versions" = "Versões disponíveis do macOS";
+"Because OpenGL acceleration requires Virtual Mac guest tools, turning off Virtual Mac guest tools will also turn off OpenGL acceleration. Apps such as Final Cut Pro mostly use Metal, but they check for OpenGL capabilities in order to launch." = "Como a aceleração OpenGL requer as ferramentas de convidado do Virtual Mac, desativá-las também desativará a aceleração OpenGL. Apps como o Final Cut Pro usam principalmente o Metal, mas verificam os recursos do OpenGL para iniciar.";
"Boot and Network" = "Inicialização e rede";
"Bottom Left" = "Inferior esquerdo";
"Bottom Right" = "Inferior direito";
@@ -42,7 +46,6 @@
"Choose whether Virtual Mac opens its library or starts a Virtual Mac." = "Escolha se o Virtual Mac abre a biblioteca ou inicia um Virtual Mac.";
"Compatibility" = "Compatibilidade";
"Complete Virtual Mac devices and restore images outside Virtual Mac are not removed." = "Virtual Macs completos e imagens de restauração fora do Virtual Mac não serão removidos.";
-"Configuration changes take effect after the Virtual Mac is shut down and started again." = "As alterações de configuração entram em vigor depois que o Virtual Mac for desligado e iniciado novamente.";
"Configuration failed: %@" = "Falha na configuração: %@";
"Configure %@" = "Configurar %@";
"Continue" = "Continuar";
@@ -58,7 +61,7 @@
"Create Virtual Mac" = "Criar um Mac Virtual";
"Custom" = "Personalizado";
"Debug Logging" = "Registro de depuração";
-"Debug Logging has been enabled. You can turn it off later in Settings." = "O registro de depuração foi ativado. Você pode desativá-lo mais tarde nos Ajustes.";
+"Debug logging has been enabled for the next boot." = "O registro de depuração foi ativado para a próxima inicialização.";
"Debug Logging takes effect the next time a Virtual Mac starts." = "O registro de depuração entra em vigor na próxima vez que um Virtual Mac for iniciado.";
"Delete" = "Apagar";
"Delete All" = "Apagar tudo";
@@ -82,7 +85,12 @@
"Display Resolution" = "Resolução da tela";
"Display Width" = "Largura da tela";
"Double-tap to hold or release this modifier" = "Toque duas vezes para manter ou soltar esta tecla modificadora";
+"Download Apple Pencil Support" = "Baixar suporte para Apple Pencil";
"Download Failed" = "Falha no Download";
+"Download Final Cut Pro Trial" = "Baixar a versão de avaliação do Final Cut Pro";
+"Download Logic Pro Trial" = "Baixar a versão de avaliação do Logic Pro";
+"Download Pixelmator Pro Trial" = "Baixar a versão de avaliação do Pixelmator Pro";
+"Download Xcode" = "Baixar o Xcode";
"Downloading macOS" = "Baixando o macOS";
"Enter six hexadecimal octets separated by colons." = "Digite seis octetos hexadecimais separados por dois-pontos.";
"Ethernet (%@)" = "Ethernet (%@)";
@@ -122,6 +130,7 @@
"Keep Virtual Mac open. Your iPad will remain awake until the download finishes." = "Mantenha o Virtual Mac aberto. Seu iPad permanecerá ativo até o término do download.";
"Keyboard" = "Teclado";
"Landscape iPad" = "iPad na horizontal";
+"Learn More" = "Saiba mais";
"Library Appearance" = "Aparência da biblioteca";
"Loading extracted Apple virtualization frameworks…" = "Carregando os frameworks de virtualização da Apple extraídos…";
"MAC Address" = "Endereço MAC";
@@ -130,6 +139,7 @@
"Mac Trackpad" = "Trackpad Mac";
"macOS Installed" = "macOS instalado";
"Memory" = "Memória";
+"Metal BC Support" = "Compatibilidade com Metal BC";
"Microphone Input" = "Entrada do microfone";
"Minimum: %llu GB. The upper limit is determined by the filesystem." = "Mínimo: %llu GB. O limite superior é determinado pelo sistema de arquivos.";
"Move Controls" = "Mover controles";
@@ -145,10 +155,15 @@
"Off" = "Desativado";
"OK" = "OK";
"On" = "Ativado";
+"On for Next Boot" = "Ativado na próxima inicialização";
"Only about %llu GB is currently available. The disk image is sparse, but installation or later use can fail when storage fills up." = "Apenas cerca de %llu GB estão disponíveis. A imagem de disco é dinâmica, mas a instalação ou o uso posterior podem falhar se o armazenamento ficar cheio.";
"Open Control Center and start Screen Recording, then reproduce the problem." = "Abra a Central de Controle, inicie uma Gravação da Tela e reproduza o problema.";
+"OpenGL Acceleration" = "Aceleração OpenGL";
+"OpenGL Acceleration Is Off" = "A aceleração OpenGL está desativada";
+"OpenGL Acceleration requires macOS Sonoma or later." = "A aceleração OpenGL requer o macOS Sonoma ou posterior.";
"Optional" = "Opcional";
"Options" = "Opções";
+"Out of Video Memory" = "Memória de vídeo esgotada";
"People have dreamed of running macOS on iPad for more than a decade. Today, that dream comes true. Create a Virtual Mac to get started." = "Há mais de uma década, as pessoas sonham em executar o macOS no iPad. Hoje, esse sonho se torna realidade. Crie um Mac virtual para começar.";
"Pixels Per Inch" = "Pixels por polegada";
"Pointing Device" = "Dispositivo apontador";
@@ -220,11 +235,14 @@
"These options affect iPadOS only while Virtual Mac is frontmost and a Virtual Mac is running." = "Essas opções afetam o iPadOS apenas enquanto o Mac Virtual está em primeiro plano e há um Mac virtual em execução.";
"This restores all Virtual Mac settings to their defaults. Virtual Macs, restore images, and installation files won’t be removed." = "Isso redefine todos os ajustes do Virtual Mac para os valores padrão. Virtual Macs, imagens de restauração e arquivos de instalação não serão removidos.";
"this Virtual Mac" = "este Virtual Mac";
+"To enable OpenGL acceleration, shut down this Virtual Mac, then in its options, enable OpenGL Acceleration." = "Para ativar a aceleração OpenGL, desligue este Virtual Mac e ative-a nas opções.";
"To show the controls, touch and hold the Virtual Mac icon on the Home Screen, then choose Show Virtual Mac Controls." = "Para mostrar os controles, mantenha pressionado o ícone do Virtual Mac na Tela de Início e escolha Mostrar Controles do Virtual Mac.";
+"To use Apple Pencil pressure and tilt, download pencil-probe in %@ Virtual Mac." = "Para usar a pressão e a inclinação do Apple Pencil, baixe o pencil-probe no Mac Virtual %@.";
"Top Left" = "Superior esquerdo";
"Top Right" = "Superior direito";
"Touch" = "Toque";
"Touch and Hold to Secondary Click" = "Toque e segure para clique secundário";
+"Turn Off Virtual Mac Guest Tools?" = "Desativar as ferramentas de convidado do Virtual Mac?";
"Two Finger Tap to Secondary Click" = "Toque com dois dedos para clique secundário";
"Unknown" = "Desconhecido";
"Unsaved changes in macOS may be lost." = "Alterações não salvas no macOS podem ser perdidas.";
@@ -245,6 +263,7 @@
"Virtual Mac devices are stored in %@." = "Os Macs Virtuais são armazenados em %@.";
"Virtual Mac Display" = "Tela do Mac Virtual";
"Virtual Mac does not support the Dopamine-roothide environment. Remove the roothide jailbreak from Dopamine-roothide > Settings > Remove Jailbreak, then switch to the official version of Dopamine." = "O Virtual Mac não é compatível com o ambiente Dopamine-roothide. Remova o jailbreak roothide em Dopamine-roothide > Ajustes > Remover Jailbreak e mude para a versão oficial do Dopamine.";
+"Virtual Mac Guest Tools" = "Ferramentas de convidado do Mac Virtual";
"Virtual Mac has no published framebuffer" = "O Virtual Mac não publicou um framebuffer";
"Virtual Mac running — native PVG framebuffer attached" = "Virtual Mac em execução — framebuffer PVG nativo conectado";
"Virtual Mac running — preparing native PVG display" = "Virtual Mac em execução — preparando tela PVG nativa";
diff --git a/VirtualMac/resources/Localizations/pt_PT.lproj/Localizable.strings b/VirtualMac/resources/Localizations/pt_PT.lproj/Localizable.strings
index cbf7421..b547fdd 100644
--- a/VirtualMac/resources/Localizations/pt_PT.lproj/Localizable.strings
+++ b/VirtualMac/resources/Localizations/pt_PT.lproj/Localizable.strings
@@ -2,6 +2,7 @@
"%.0f%% complete" = "%.0f%% concluído";
"%@ CPU · %@ GB RAM · %llu GB · %@%@" = "%@ CPU · %@ GB de RAM · %llu GB · %@%@";
"%@ is not supported" = "%@ não é suportado";
+"%@ is out of video memory. macOS may appear frozen." = "O %@ ficou sem memória de vídeo. O macOS pode parecer bloqueado.";
"%@ may encounter performance or graphical issues. For the best experience, use macOS Ventura, macOS Sonoma, or macOS Sequoia.\n\nIf transparency effects cause visual problems, turn on Reduce Transparency in System Settings > Accessibility > Display." = "O %@ pode apresentar problemas de desempenho ou gráficos. Para obter a melhor experiência, use o macOS Ventura, macOS Sonoma ou macOS Sequoia.\n\nSe os efeitos de transparência causarem problemas visuais, ative Reduzir transparência em Definições do Sistema > Acessibilidade > Ecrã.";
"%@ remaining" = "Tempo restante: %@";
"%@\nState: %@\n%@\n\n" = "%@\nEstado: %@\n%@\n\n";
@@ -15,12 +16,15 @@
"Add Shared Folder" = "Adicionar pasta partilhada";
"Advanced" = "Avançado";
"Allowed: %llu–%llu%@" = "Permitido: %llu–%llu%@";
+"Always On" = "Sempre ativo";
"Another usbmuxd service took control of the virtual DFU device before it entered RestoreOS. Uninstall usbmuxd from Sileo and try again." = "Outro serviço usbmuxd assumiu o controle do dispositivo DFU virtual antes que ele entrasse no RestoreOS. Desinstale o usbmuxd pelo Sileo e tente novamente.";
"Another Virtual Mac Is Running" = "Outro Virtual Mac está em execução";
+"Apple Pencil Pressure and Tilt" = "Pressão e inclinação do Apple Pencil";
"Audio and Acceleration" = "Áudio e aceleração";
"Audio Output" = "Saída de áudio";
"Available macOS Releases" = "Versões disponíveis do macOS";
"Available macOS Versions" = "Versões disponíveis do macOS";
+"Because OpenGL acceleration requires Virtual Mac guest tools, turning off Virtual Mac guest tools will also turn off OpenGL acceleration. Apps such as Final Cut Pro mostly use Metal, but they check for OpenGL capabilities in order to launch." = "Como a aceleração OpenGL requer as ferramentas de convidado do Virtual Mac, desativá-las também desativará a aceleração OpenGL. As apps como o Final Cut Pro usam sobretudo Metal, mas verificam as capacidades do OpenGL para arrancar.";
"Boot and Network" = "Arranque e rede";
"Bottom Left" = "Inferior esquerdo";
"Bottom Right" = "Inferior direito";
@@ -42,7 +46,6 @@
"Choose whether Virtual Mac opens its library or starts a Virtual Mac." = "Escolha se o Virtual Mac abre a biblioteca ou inicia um Virtual Mac.";
"Compatibility" = "Compatibilidade";
"Complete Virtual Mac devices and restore images outside Virtual Mac are not removed." = "Os Virtual Macs concluídos e as imagens de restauro fora da aplicação Virtual Mac não serão removidos.";
-"Configuration changes take effect after the Virtual Mac is shut down and started again." = "As alterações de configuração entram em vigor depois de desligar e voltar a iniciar o Virtual Mac.";
"Configuration failed: %@" = "A configuração falhou: %@";
"Configure %@" = "Configurar %@";
"Continue" = "Continuar";
@@ -58,7 +61,7 @@
"Create Virtual Mac" = "Criar um Mac Virtual";
"Custom" = "Personalizado";
"Debug Logging" = "Registo de depuração";
-"Debug Logging has been enabled. You can turn it off later in Settings." = "O registo de depuração foi ativado. Pode desativá-lo mais tarde nas Definições.";
+"Debug logging has been enabled for the next boot." = "O registo de depuração foi ativado para o próximo arranque.";
"Debug Logging takes effect the next time a Virtual Mac starts." = "O registo de depuração entra em vigor da próxima vez que um Virtual Mac for iniciado.";
"Delete" = "Eliminar";
"Delete All" = "Eliminar tudo";
@@ -82,7 +85,12 @@
"Display Resolution" = "Resolução do ecrã";
"Display Width" = "Largura do ecrã";
"Double-tap to hold or release this modifier" = "Toque duas vezes para manter ou soltar esta tecla modificadora";
+"Download Apple Pencil Support" = "Descarregar suporte para Apple Pencil";
"Download Failed" = "A transferência falhou";
+"Download Final Cut Pro Trial" = "Descarregar a versão experimental do Final Cut Pro";
+"Download Logic Pro Trial" = "Descarregar a versão experimental do Logic Pro";
+"Download Pixelmator Pro Trial" = "Descarregar a versão experimental do Pixelmator Pro";
+"Download Xcode" = "Descarregar o Xcode";
"Downloading macOS" = "A transferir o macOS";
"Enter six hexadecimal octets separated by colons." = "Digite seis octetos hexadecimais separados por dois-pontos.";
"Ethernet (%@)" = "Ethernet (%@)";
@@ -122,6 +130,7 @@
"Keep Virtual Mac open. Your iPad will remain awake until the download finishes." = "Mantenha o Virtual Mac aberto. O iPad permanecerá ativo até a transferência terminar.";
"Keyboard" = "Teclado";
"Landscape iPad" = "iPad na horizontal";
+"Learn More" = "Saiba mais";
"Library Appearance" = "Aparência da biblioteca";
"Loading extracted Apple virtualization frameworks…" = "A carregar os frameworks de virtualização da Apple extraídos…";
"MAC Address" = "Endereço MAC";
@@ -130,6 +139,7 @@
"Mac Trackpad" = "Trackpad Mac";
"macOS Installed" = "macOS instalado";
"Memory" = "Memória";
+"Metal BC Support" = "Suporte para Metal BC";
"Microphone Input" = "Entrada do microfone";
"Minimum: %llu GB. The upper limit is determined by the filesystem." = "Mínimo: %llu GB. O limite superior é determinado pelo sistema de ficheiros.";
"Move Controls" = "Mover controles";
@@ -145,10 +155,15 @@
"Off" = "Desativado";
"OK" = "OK";
"On" = "Ativado";
+"On for Next Boot" = "Ativo no próximo arranque";
"Only about %llu GB is currently available. The disk image is sparse, but installation or later use can fail when storage fills up." = "Estão disponíveis apenas cerca de %llu GB. A imagem do disco é dinâmica, mas a instalação ou utilização posterior pode falhar se o armazenamento ficar cheio.";
"Open Control Center and start Screen Recording, then reproduce the problem." = "Abra a Central de controlo, inicie uma gravação do ecrã e reproduza o problema.";
+"OpenGL Acceleration" = "Aceleração OpenGL";
+"OpenGL Acceleration Is Off" = "A aceleração OpenGL está desativada";
+"OpenGL Acceleration requires macOS Sonoma or later." = "A aceleração OpenGL requer o macOS Sonoma ou posterior.";
"Optional" = "Opcional";
"Options" = "Opções";
+"Out of Video Memory" = "Memória de vídeo esgotada";
"People have dreamed of running macOS on iPad for more than a decade. Today, that dream comes true. Create a Virtual Mac to get started." = "Há mais de uma década que as pessoas sonham executar o macOS no iPad. Hoje, esse sonho torna-se realidade. Crie um Mac virtual para começar.";
"Pixels Per Inch" = "Pixels por polegada";
"Pointing Device" = "Dispositivo apontador";
@@ -220,11 +235,14 @@
"These options affect iPadOS only while Virtual Mac is frontmost and a Virtual Mac is running." = "Estas opções afetam o iPadOS apenas enquanto o Mac Virtual está em primeiro plano e há um Mac virtual em execução.";
"This restores all Virtual Mac settings to their defaults. Virtual Macs, restore images, and installation files won’t be removed." = "Isto repõe todas as definições do Virtual Mac nos valores predefinidos. Os Virtual Macs, as imagens de restauro e os ficheiros de instalação não serão removidos.";
"this Virtual Mac" = "este Virtual Mac";
+"To enable OpenGL acceleration, shut down this Virtual Mac, then in its options, enable OpenGL Acceleration." = "Para ativar a aceleração OpenGL, desligue este Virtual Mac e ative-a nas opções.";
"To show the controls, touch and hold the Virtual Mac icon on the Home Screen, then choose Show Virtual Mac Controls." = "Para mostrar os controlos, toque e mantenha premido o ícone do Virtual Mac no ecrã principal e selecione Mostrar controlos do Virtual Mac.";
+"To use Apple Pencil pressure and tilt, download pencil-probe in %@ Virtual Mac." = "Para usar a pressão e a inclinação do Apple Pencil, descarregue o pencil-probe no Mac Virtual %@.";
"Top Left" = "Superior esquerdo";
"Top Right" = "Superior direito";
"Touch" = "Toque";
"Touch and Hold to Secondary Click" = "Toque e mantenha pressionado para clique secundário";
+"Turn Off Virtual Mac Guest Tools?" = "Desativar as ferramentas de convidado do Virtual Mac?";
"Two Finger Tap to Secondary Click" = "Toque com dois dedos para clique secundário";
"Unknown" = "Desconhecido";
"Unsaved changes in macOS may be lost." = "Alterações não salvas no macOS podem ser perdidas.";
@@ -245,6 +263,7 @@
"Virtual Mac devices are stored in %@." = "Os Virtual Macs são guardados em %@.";
"Virtual Mac Display" = "Ecrã do Mac Virtual";
"Virtual Mac does not support the Dopamine-roothide environment. Remove the roothide jailbreak from Dopamine-roothide > Settings > Remove Jailbreak, then switch to the official version of Dopamine." = "O Virtual Mac não é compatível com o ambiente Dopamine-roothide. Remova o jailbreak roothide em Dopamine-roothide > Definições > Remover Jailbreak e mude para a versão oficial do Dopamine.";
+"Virtual Mac Guest Tools" = "Ferramentas de convidado do Mac Virtual";
"Virtual Mac has no published framebuffer" = "O Virtual Mac não publicou um framebuffer";
"Virtual Mac running — native PVG framebuffer attached" = "Virtual Mac em execução — framebuffer PVG nativo conectado";
"Virtual Mac running — preparing native PVG display" = "Virtual Mac em execução — a preparar o ecrã PVG nativo";
diff --git a/VirtualMac/resources/Localizations/ro.lproj/Localizable.strings b/VirtualMac/resources/Localizations/ro.lproj/Localizable.strings
index a209257..c1f44ce 100644
--- a/VirtualMac/resources/Localizations/ro.lproj/Localizable.strings
+++ b/VirtualMac/resources/Localizations/ro.lproj/Localizable.strings
@@ -2,6 +2,7 @@
"%.0f%% complete" = "%.0f%% finalizat";
"%@ CPU · %@ GB RAM · %llu GB · %@%@" = "%@ CPU · %@ GB RAM · %llu GB · %@%@";
"%@ is not supported" = "%@ nu este compatibil";
+"%@ is out of video memory. macOS may appear frozen." = "%@ a rămas fără memorie video. macOS poate părea blocat.";
"%@ may encounter performance or graphical issues. For the best experience, use macOS Ventura, macOS Sonoma, or macOS Sequoia.\n\nIf transparency effects cause visual problems, turn on Reduce Transparency in System Settings > Accessibility > Display." = "%@ poate avea probleme de performanță sau grafică. Pentru cea mai bună experiență, utilizați macOS Ventura, macOS Sonoma sau macOS Sequoia.\n\nDacă efectele de transparență provoacă probleme vizuale, activați Reducere transparență în Configurări sistem > Accesibilitate > Afișaj.";
"%@ remaining" = "Timp rămas: %@";
"%@\nState: %@\n%@\n\n" = "%@\nStato: %@\n%@\n\n";
@@ -15,12 +16,15 @@
"Add Shared Folder" = "Adăugați un dosar partajat";
"Advanced" = "Avansat";
"Allowed: %llu–%llu%@" = "Permis: %llu–%llu%@";
+"Always On" = "Întotdeauna activat";
"Another usbmuxd service took control of the virtual DFU device before it entered RestoreOS. Uninstall usbmuxd from Sileo and try again." = "Un alt serviciu usbmuxd a preluat controlul dispozitivului DFU virtual înainte ca acesta să intre în RestoreOS. Dezinstalați usbmuxd din Sileo și încercați din nou.";
"Another Virtual Mac Is Running" = "È rulează un altro Mac virtual";
+"Apple Pencil Pressure and Tilt" = "Presiunea și înclinarea Apple Pencil";
"Audio and Acceleration" = "Audio și accelerare";
"Audio Output" = "Ieșire audio";
"Available macOS Releases" = "Versiuni macOS disponibile";
"Available macOS Versions" = "Versiuni macOS disponibile";
+"Because OpenGL acceleration requires Virtual Mac guest tools, turning off Virtual Mac guest tools will also turn off OpenGL acceleration. Apps such as Final Cut Pro mostly use Metal, but they check for OpenGL capabilities in order to launch." = "Deoarece accelerarea OpenGL necesită instrumentele pentru oaspeți Virtual Mac, dezactivarea lor va dezactiva și accelerarea OpenGL. Aplicațiile precum Final Cut Pro folosesc în principal Metal, dar verifică funcțiile OpenGL pentru a porni.";
"Boot and Network" = "Pornire și rețea";
"Bottom Left" = "Stânga jos";
"Bottom Right" = "Dreapta jos";
@@ -42,7 +46,6 @@
"Choose whether Virtual Mac opens its library or starts a Virtual Mac." = "Alegeți se Mac virtual deve aprire la biblioteca o avviare un Mac virtual.";
"Compatibility" = "Compatibilitate";
"Complete Virtual Mac devices and restore images outside Virtual Mac are not removed." = "Mac-urile virtuale complete și imaginile de restaurare din afara aplicației Virtual Mac nu vor fi eliminate.";
-"Configuration changes take effect after the Virtual Mac is shut down and started again." = "Modificările configurației intră în vigoare după oprirea și repornirea Virtual Mac.";
"Configuration failed: %@" = "Configurarea a eșuat: %@";
"Configure %@" = "Configura %@";
"Continue" = "Continuă";
@@ -58,7 +61,7 @@
"Create Virtual Mac" = "Creați un Mac virtual";
"Custom" = "Personalizzata";
"Debug Logging" = "Jurnalizare pentru depanare";
-"Debug Logging has been enabled. You can turn it off later in Settings." = "Jurnalizarea pentru depanare a fost activată. O puteți dezactiva ulterior în Configurări.";
+"Debug logging has been enabled for the next boot." = "Jurnalizarea pentru depanare a fost activată pentru următoarea pornire.";
"Debug Logging takes effect the next time a Virtual Mac starts." = "Jurnalizarea depanării va fi activată la următoarea pornire a unui Virtual Mac.";
"Delete" = "Ștergeți";
"Delete All" = "Ștergeți tutto";
@@ -82,7 +85,12 @@
"Display Resolution" = "Rezoluție afișaj";
"Display Width" = "Lățime afișaj";
"Double-tap to hold or release this modifier" = "Tocca due volte per bloccare o rilasciare acest tasto modificatore";
+"Download Apple Pencil Support" = "Descărcați suportul pentru Apple Pencil";
"Download Failed" = "Descărcarea a eșuat";
+"Download Final Cut Pro Trial" = "Descărcați versiunea de încercare Final Cut Pro";
+"Download Logic Pro Trial" = "Descărcați versiunea de încercare Logic Pro";
+"Download Pixelmator Pro Trial" = "Descărcați versiunea de încercare Pixelmator Pro";
+"Download Xcode" = "Descărcați Xcode";
"Downloading macOS" = "Se descarcă macOS";
"Enter six hexadecimal octets separated by colons." = "Introduceți sei ottetti esadecimali separati da due punti.";
"Ethernet (%@)" = "Ethernet (%@)";
@@ -122,6 +130,7 @@
"Keep Virtual Mac open. Your iPad will remain awake until the download finishes." = "Păstrați aplicația Virtual Mac deschisă. iPad-ul va rămâne activ până la finalizarea descărcării.";
"Keyboard" = "Tastatură";
"Landscape iPad" = "iPad peisaj";
+"Learn More" = "Aflați mai multe";
"Library Appearance" = "Aspetto biblioteca";
"Loading extracted Apple virtualization frameworks…" = "Caricamento dei framework di virtualizzazione Apple estratti…";
"MAC Address" = "Adresă MAC";
@@ -130,6 +139,7 @@
"Mac Trackpad" = "Trackpad Mac";
"macOS Installed" = "macOS installato";
"Memory" = "Memorie";
+"Metal BC Support" = "Compatibilitate Metal BC";
"Microphone Input" = "Intrare microfon";
"Minimum: %llu GB. The upper limit is determined by the filesystem." = "Minimum: %llu GB. Limita superioară este determinată de sistemul de fișiere.";
"Move Controls" = "Mutați controlli";
@@ -145,10 +155,15 @@
"Off" = "Dezactivat";
"OK" = "OK";
"On" = "Activat";
+"On for Next Boot" = "Activat la următoarea pornire";
"Only about %llu GB is currently available. The disk image is sparse, but installation or later use can fail when storage fills up." = "În prezent sunt disponibili doar aproximativ %llu GB. Imaginea discului este dinamică, dar instalarea sau utilizarea ulterioară poate eșua dacă spațiul se umple.";
"Open Control Center and start Screen Recording, then reproduce the problem." = "Deschideți Centrul de control, porniți o înregistrare a ecranului, apoi reproduceți problema.";
+"OpenGL Acceleration" = "Accelerare OpenGL";
+"OpenGL Acceleration Is Off" = "Accelerarea OpenGL este dezactivată";
+"OpenGL Acceleration requires macOS Sonoma or later." = "Accelerarea OpenGL necesită macOS Sonoma sau o versiune ulterioară.";
"Optional" = "Opțional";
"Options" = "Opzioni";
+"Out of Video Memory" = "Memorie video epuizată";
"People have dreamed of running macOS on iPad for more than a decade. Today, that dream comes true. Create a Virtual Mac to get started." = "De mai bine de un deceniu, oamenii visează să ruleze macOS pe iPad. Astăzi, acel vis devine realitate. Creați un Mac virtual pentru a începe.";
"Pixels Per Inch" = "Pixeli per inch";
"Pointing Device" = "Dispositivo di puntamento";
@@ -220,11 +235,14 @@
"These options affect iPadOS only while Virtual Mac is frontmost and a Virtual Mac is running." = "Aceste opțiuni afectează iPadOS numai când Mac virtual este în prim-plan și rulează un Mac virtual.";
"This restores all Virtual Mac settings to their defaults. Virtual Macs, restore images, and installation files won’t be removed." = "Aceasta restabilește toate configurările Virtual Mac la valorile implicite. Mac-urile virtuale, imaginile de restaurare și fișierele de instalare nu vor fi eliminate.";
"this Virtual Mac" = "acest Mac virtual";
+"To enable OpenGL acceleration, shut down this Virtual Mac, then in its options, enable OpenGL Acceleration." = "Pentru a activa accelerarea OpenGL, opriți acest Virtual Mac, apoi activați-o în opțiunile sale.";
"To show the controls, touch and hold the Virtual Mac icon on the Home Screen, then choose Show Virtual Mac Controls." = "Pentru a afișa comenzile, țineți apăsată pictograma Virtual Mac pe ecranul principal, apoi alegeți Afișează comenzile Virtual Mac.";
+"To use Apple Pencil pressure and tilt, download pencil-probe in %@ Virtual Mac." = "Pentru a utiliza presiunea și înclinarea Apple Pencil, descărcați pencil-probe pe Mac-ul virtual %@.";
"Top Left" = "Stânga sus";
"Top Right" = "Dreapta sus";
"Touch" = "Atingere";
"Touch and Hold to Secondary Click" = "Atingeți și mențineți apăsat pentru clic secundar";
+"Turn Off Virtual Mac Guest Tools?" = "Dezactivați instrumentele pentru oaspeți Virtual Mac?";
"Two Finger Tap to Secondary Click" = "Atingeți cu două degete pentru clic secundar";
"Unknown" = "Necunoscut";
"Unsaved changes in macOS may be lost." = "Modificările nesalvate din macOS se pot pierde.";
@@ -245,6 +263,7 @@
"Virtual Mac devices are stored in %@." = "Mac-urile virtuale sunt stocate în %@.";
"Virtual Mac Display" = "Ecranul Mac-ului virtual";
"Virtual Mac does not support the Dopamine-roothide environment. Remove the roothide jailbreak from Dopamine-roothide > Settings > Remove Jailbreak, then switch to the official version of Dopamine." = "Virtual Mac nu acceptă mediul Dopamine-roothide. Eliminați jailbreakul roothide din Dopamine-roothide > Configurări > Eliminați jailbreakul, apoi treceți la versiunea oficială de Dopamine.";
+"Virtual Mac Guest Tools" = "Instrumente pentru oaspetele Mac Virtual";
"Virtual Mac has no published framebuffer" = "Mac-ul virtual nu a publicat niciun buffer de cadre";
"Virtual Mac running — native PVG framebuffer attached" = "Mac-ul virtual rulează — bufferul de cadre PVG nativ este conectat";
"Virtual Mac running — preparing native PVG display" = "Mac-ul virtual rulează — se pregătește afișajul PVG nativ";
diff --git a/VirtualMac/resources/Localizations/ru.lproj/Localizable.strings b/VirtualMac/resources/Localizations/ru.lproj/Localizable.strings
index ba3e776..9078eb4 100644
--- a/VirtualMac/resources/Localizations/ru.lproj/Localizable.strings
+++ b/VirtualMac/resources/Localizations/ru.lproj/Localizable.strings
@@ -2,6 +2,7 @@
"%.0f%% complete" = "Выполнено: %.0f%%";
"%@ CPU · %@ GB RAM · %llu GB · %@%@" = "%@ ЦП · %@ ГБ ОЗУ · %llu ГБ · %@%@";
"%@ is not supported" = "%@ не поддерживается";
+"%@ is out of video memory. macOS may appear frozen." = "В %@ закончилась видеопамять. macOS может выглядеть зависшей.";
"%@ may encounter performance or graphical issues. For the best experience, use macOS Ventura, macOS Sonoma, or macOS Sequoia.\n\nIf transparency effects cause visual problems, turn on Reduce Transparency in System Settings > Accessibility > Display." = "В %@ возможны проблемы с производительностью или графикой. Для наилучшей работы используйте macOS Ventura, macOS Sonoma или macOS Sequoia.\n\nЕсли эффекты прозрачности вызывают проблемы с отображением, включите «Уменьшение прозрачности» в разделе «Системные настройки» > «Универсальный доступ» > «Дисплей».";
"%@ remaining" = "Осталось: %@";
"%@\nState: %@\n%@\n\n" = "%@\nСостояние: %@\n%@\n\n";
@@ -15,12 +16,15 @@
"Add Shared Folder" = "Добавить общую папку";
"Advanced" = "Дополнительно";
"Allowed: %llu–%llu%@" = "Допустимо: %llu–%llu%@";
+"Always On" = "Всегда включено";
"Another usbmuxd service took control of the virtual DFU device before it entered RestoreOS. Uninstall usbmuxd from Sileo and try again." = "Другая служба usbmuxd получила управление виртуальным устройством DFU до его перехода в RestoreOS. Удалите usbmuxd через Sileo и повторите попытку.";
"Another Virtual Mac Is Running" = "Уже запущен другой виртуальный Mac";
+"Apple Pencil Pressure and Tilt" = "Нажим и наклон Apple Pencil";
"Audio and Acceleration" = "Аудио и ускорение";
"Audio Output" = "Аудиовыход";
"Available macOS Releases" = "Доступные выпуски macOS";
"Available macOS Versions" = "Доступные версии macOS";
+"Because OpenGL acceleration requires Virtual Mac guest tools, turning off Virtual Mac guest tools will also turn off OpenGL acceleration. Apps such as Final Cut Pro mostly use Metal, but they check for OpenGL capabilities in order to launch." = "Поскольку для ускорения OpenGL нужны гостевые инструменты Virtual Mac, их отключение также отключит ускорение OpenGL. Приложения, такие как Final Cut Pro, в основном используют Metal, но для запуска проверяют возможности OpenGL.";
"Boot and Network" = "Загрузка и сеть";
"Bottom Left" = "Слева внизу";
"Bottom Right" = "Справа внизу";
@@ -42,7 +46,6 @@
"Choose whether Virtual Mac opens its library or starts a Virtual Mac." = "Выберите, открывать ли библиотеку или запускать виртуальный Mac при открытии приложения.";
"Compatibility" = "Совместимость";
"Complete Virtual Mac devices and restore images outside Virtual Mac are not removed." = "Готовые виртуальные Mac и образы восстановления вне приложения удалены не будут.";
-"Configuration changes take effect after the Virtual Mac is shut down and started again." = "Изменения конфигурации вступят в силу после выключения и повторного запуска Virtual Mac.";
"Configuration failed: %@" = "Ошибка конфигурации: %@";
"Configure %@" = "Настроить %@";
"Continue" = "Продолжить";
@@ -58,7 +61,7 @@
"Create Virtual Mac" = "Создать Виртуальный Mac";
"Custom" = "Пользовательская";
"Debug Logging" = "Ведение журнала отладки";
-"Debug Logging has been enabled. You can turn it off later in Settings." = "Ведение журнала отладки включено. Его можно отключить позже в Настройках.";
+"Debug logging has been enabled for the next boot." = "Журнал отладки включён для следующей загрузки.";
"Debug Logging takes effect the next time a Virtual Mac starts." = "Ведение журнала отладки включится при следующем запуске Virtual Mac.";
"Delete" = "Удалить";
"Delete All" = "Удалить всё";
@@ -82,7 +85,12 @@
"Display Resolution" = "Разрешение дисплея";
"Display Width" = "Ширина дисплея";
"Double-tap to hold or release this modifier" = "Дважды коснитесь, чтобы зафиксировать или отпустить эту клавишу-модификатор";
+"Download Apple Pencil Support" = "Загрузить поддержку Apple Pencil";
"Download Failed" = "Сбой загрузки";
+"Download Final Cut Pro Trial" = "Скачать пробную версию Final Cut Pro";
+"Download Logic Pro Trial" = "Скачать пробную версию Logic Pro";
+"Download Pixelmator Pro Trial" = "Скачать пробную версию Pixelmator Pro";
+"Download Xcode" = "Скачать Xcode";
"Downloading macOS" = "Загрузка macOS";
"Enter six hexadecimal octets separated by colons." = "Введите шесть шестнадцатеричных октетов, разделённых двоеточиями.";
"Ethernet (%@)" = "Ethernet (%@)";
@@ -122,6 +130,7 @@
"Keep Virtual Mac open. Your iPad will remain awake until the download finishes." = "Не закрывайте «Виртуальный Mac». iPad не перейдёт в режим сна до завершения загрузки.";
"Keyboard" = "Клавиатура";
"Landscape iPad" = "iPad в альбомной ориентации";
+"Learn More" = "Подробнее";
"Library Appearance" = "Вид библиотеки";
"Loading extracted Apple virtualization frameworks…" = "Загрузка извлечённых фреймворков виртуализации Apple…";
"MAC Address" = "MAC Адрес";
@@ -130,6 +139,7 @@
"Mac Trackpad" = "Трекпад Mac";
"macOS Installed" = "macOS установлена";
"Memory" = "Память";
+"Metal BC Support" = "Поддержка Metal BC";
"Microphone Input" = "Вход микрофона";
"Minimum: %llu GB. The upper limit is determined by the filesystem." = "Минимум: %llu ГБ. Верхний предел определяется файловой системой.";
"Move Controls" = "Переместить элементы управления";
@@ -145,10 +155,15 @@
"Off" = "Выкл.";
"OK" = "ОК";
"On" = "Вкл.";
+"On for Next Boot" = "Включено для следующей загрузки";
"Only about %llu GB is currently available. The disk image is sparse, but installation or later use can fail when storage fills up." = "Сейчас доступно только около %llu ГБ. Образ диска динамический, но установка или дальнейшее использование могут завершиться ошибкой при заполнении хранилища.";
"Open Control Center and start Screen Recording, then reproduce the problem." = "Откройте Пункт управления, начните запись экрана, а затем воспроизведите проблему.";
+"OpenGL Acceleration" = "Ускорение OpenGL";
+"OpenGL Acceleration Is Off" = "Ускорение OpenGL выключено";
+"OpenGL Acceleration requires macOS Sonoma or later." = "Для ускорения OpenGL требуется macOS Sonoma или новее.";
"Optional" = "Необязательно";
"Options" = "Параметры";
+"Out of Video Memory" = "Видеопамять исчерпана";
"People have dreamed of running macOS on iPad for more than a decade. Today, that dream comes true. Create a Virtual Mac to get started." = "Более десяти лет люди мечтали запустить macOS на iPad. Сегодня эта мечта сбывается. Чтобы начать, создайте виртуальный Mac.";
"Pixels Per Inch" = "Пикселей на дюйм";
"Pointing Device" = "Устройство указания";
@@ -220,11 +235,14 @@
"These options affect iPadOS only while Virtual Mac is frontmost and a Virtual Mac is running." = "Эти параметры влияют на iPadOS только тогда, когда Виртуальный Mac находится на переднем плане и запущен виртуальный Mac.";
"This restores all Virtual Mac settings to their defaults. Virtual Macs, restore images, and installation files won’t be removed." = "Все настройки приложения будут сброшены. Виртуальные Mac, образы восстановления и установочные файлы удалены не будут.";
"this Virtual Mac" = "этот виртуальный Mac";
+"To enable OpenGL acceleration, shut down this Virtual Mac, then in its options, enable OpenGL Acceleration." = "Чтобы включить ускорение OpenGL, выключите этот Virtual Mac, а затем включите ускорение OpenGL в его параметрах.";
"To show the controls, touch and hold the Virtual Mac icon on the Home Screen, then choose Show Virtual Mac Controls." = "Чтобы показать элементы управления, нажмите и удерживайте значок Virtual Mac на экране «Домой», затем выберите «Показать элементы управления Virtual Mac».";
+"To use Apple Pencil pressure and tilt, download pencil-probe in %@ Virtual Mac." = "Чтобы использовать нажим и наклон Apple Pencil, загрузите pencil-probe на виртуальный Mac %@.";
"Top Left" = "Слева вверху";
"Top Right" = "Справа вверху";
"Touch" = "Касание";
"Touch and Hold to Secondary Click" = "Нажмите и удерживайте для вторичного щелчка";
+"Turn Off Virtual Mac Guest Tools?" = "Выключить гостевые инструменты Virtual Mac?";
"Two Finger Tap to Secondary Click" = "Касание двумя пальцами для вторичного щелчка";
"Unknown" = "Неизвестно";
"Unsaved changes in macOS may be lost." = "Несохранённые изменения в macOS могут быть потеряны.";
@@ -245,6 +263,7 @@
"Virtual Mac devices are stored in %@." = "Виртуальные Mac хранятся в %@.";
"Virtual Mac Display" = "Дисплей Виртуального Mac";
"Virtual Mac does not support the Dopamine-roothide environment. Remove the roothide jailbreak from Dopamine-roothide > Settings > Remove Jailbreak, then switch to the official version of Dopamine." = "Virtual Mac не поддерживает среду Dopamine-roothide. Удалите джейлбрейк roothide в Dopamine-roothide > Настройки > Удалить джейлбрейк, затем перейдите на официальную версию Dopamine.";
+"Virtual Mac Guest Tools" = "Гостевые инструменты Виртуального Mac";
"Virtual Mac has no published framebuffer" = "Виртуальный Mac не опубликовал кадровый буфер";
"Virtual Mac running — native PVG framebuffer attached" = "Виртуальный Mac работает — нативный кадровый буфер PVG подключён";
"Virtual Mac running — preparing native PVG display" = "Виртуальный Mac работает — подготовка нативного дисплея PVG";
diff --git a/VirtualMac/resources/Localizations/sk.lproj/Localizable.strings b/VirtualMac/resources/Localizations/sk.lproj/Localizable.strings
index 02175dd..eaafa32 100644
--- a/VirtualMac/resources/Localizations/sk.lproj/Localizable.strings
+++ b/VirtualMac/resources/Localizations/sk.lproj/Localizable.strings
@@ -2,6 +2,7 @@
"%.0f%% complete" = "%.0f %% dokončené";
"%@ CPU · %@ GB RAM · %llu GB · %@%@" = "%@ CPU · %@ GB RAM · %llu GB · %@%@";
"%@ is not supported" = "%@ nie je podporovaný";
+"%@ is out of video memory. macOS may appear frozen." = "%@ nemá dostatok videopamäte. macOS môže vyzerať ako zamrznutý.";
"%@ may encounter performance or graphical issues. For the best experience, use macOS Ventura, macOS Sonoma, or macOS Sequoia.\n\nIf transparency effects cause visual problems, turn on Reduce Transparency in System Settings > Accessibility > Display." = "V systéme %@ sa môžu vyskytnúť problémy s výkonom alebo grafikou. Pre najlepšie používanie zvoľte macOS Ventura, macOS Sonoma alebo macOS Sequoia.\n\nAk efekty priehľadnosti spôsobujú problémy so zobrazením, zapnite Obmedziť priehľadnosť v Systémové nastavenia > Prístupnosť > Displej.";
"%@ remaining" = "Zostáva %@";
"%@\nState: %@\n%@\n\n" = "%@\nStav: %@\n%@\n\n";
@@ -15,12 +16,15 @@
"Add Shared Folder" = "Pridať zdieľaný priečinok";
"Advanced" = "Rozšírené";
"Allowed: %llu–%llu%@" = "Povolené: %llu–%llu%@";
+"Always On" = "Vždy zapnuté";
"Another usbmuxd service took control of the virtual DFU device before it entered RestoreOS. Uninstall usbmuxd from Sileo and try again." = "Iná služba usbmuxd prevzala virtuálne zariadenie DFU pred prechodom do RestoreOS. Odinštalujte usbmuxd v Sileu a skúste to znova.";
"Another Virtual Mac Is Running" = "Je spustený jiný virtuálny Mac";
+"Apple Pencil Pressure and Tilt" = "Prítlak a náklon Apple Pencilu";
"Audio and Acceleration" = "Zvuk a akcelerace";
"Audio Output" = "Zvukový výstup";
"Available macOS Releases" = "Dostupné vydania macOS";
"Available macOS Versions" = "Dostupné verzie systému macOS";
+"Because OpenGL acceleration requires Virtual Mac guest tools, turning off Virtual Mac guest tools will also turn off OpenGL acceleration. Apps such as Final Cut Pro mostly use Metal, but they check for OpenGL capabilities in order to launch." = "Keďže akcelerácia OpenGL vyžaduje hosťovské nástroje Virtual Mac, ich vypnutím sa vypne aj akcelerácia OpenGL. Aplikácie ako Final Cut Pro používajú najmä Metal, ale pri spustení kontrolujú možnosti OpenGL.";
"Boot and Network" = "Spustenie a sieť";
"Bottom Left" = "Vlevo dole";
"Bottom Right" = "Vpravo dole";
@@ -42,7 +46,6 @@
"Choose whether Virtual Mac opens its library or starts a Virtual Mac." = "Vyberte, či Virtual Mac otvorí knižnicu alebo spustí virtuálny Mac.";
"Compatibility" = "Kompatibilita";
"Complete Virtual Mac devices and restore images outside Virtual Mac are not removed." = "Dokončené virtuálne Macy a obrazy obnovy mimo aplikácie Virtual Mac nebudú odstránené.";
-"Configuration changes take effect after the Virtual Mac is shut down and started again." = "Zmeny konfigurácie sa prejavia po vypnutí a opätovnom spustení Virtual Macu.";
"Configuration failed: %@" = "Konfigurácia zlyhala: %@";
"Configure %@" = "Konfigurovat %@";
"Continue" = "Pokračovať";
@@ -58,7 +61,7 @@
"Create Virtual Mac" = "Vytvoriť Virtuálny Mac";
"Custom" = "Vlastní";
"Debug Logging" = "Zaznamenávanie ladenia";
-"Debug Logging has been enabled. You can turn it off later in Settings." = "Zaznamenávanie ladenia bolo zapnuté. Neskôr ho môžete vypnúť v Nastaveniach.";
+"Debug logging has been enabled for the next boot." = "Zaznamenávanie ladenia bolo zapnuté pre nasledujúce spustenie.";
"Debug Logging takes effect the next time a Virtual Mac starts." = "Protokolovanie ladenia sa prejaví pri ďalšom spustení Virtual Macu.";
"Delete" = "Odstrániť";
"Delete All" = "Odstrániť vše";
@@ -82,7 +85,12 @@
"Display Resolution" = "Rozlíšenie displeja";
"Display Width" = "Šírka displeja";
"Double-tap to hold or release this modifier" = "Dvojitým klepnutím túto modifikačnú klávesu podržíte alebo uvoľníte";
+"Download Apple Pencil Support" = "Stiahnuť podporu Apple Pencil";
"Download Failed" = "Sťahovanie zlyhalo";
+"Download Final Cut Pro Trial" = "Stiahnuť skúšobnú verziu Final Cut Pro";
+"Download Logic Pro Trial" = "Stiahnuť skúšobnú verziu Logic Pro";
+"Download Pixelmator Pro Trial" = "Stiahnuť skúšobnú verziu Pixelmator Pro";
+"Download Xcode" = "Stiahnuť Xcode";
"Downloading macOS" = "Sťahovanie macOS";
"Enter six hexadecimal octets separated by colons." = "Zadajte šesť hexadecimálnych oktetov oddelených dvojbodkami.";
"Ethernet (%@)" = "Ethernet (%@)";
@@ -122,6 +130,7 @@
"Keep Virtual Mac open. Your iPad will remain awake until the download finishes." = "Nechajte Virtual Mac otvorený. iPad zostane aktívny, kým sa sťahovanie neskončí.";
"Keyboard" = "Klávesnica";
"Landscape iPad" = "iPad na šírku";
+"Learn More" = "Ďalšie informácie";
"Library Appearance" = "Vzhled knižnice";
"Loading extracted Apple virtualization frameworks…" = "Načítavanie extrahovaných frameworkov Apple na virtualizáciu…";
"MAC Address" = "MAC adresa";
@@ -130,6 +139,7 @@
"Mac Trackpad" = "Trackpad Mac";
"macOS Installed" = "macOS je nainstalován";
"Memory" = "Pamäť";
+"Metal BC Support" = "Podpora Metal BC";
"Microphone Input" = "Vstup mikrofonu";
"Minimum: %llu GB. The upper limit is determined by the filesystem." = "Minimum: %llu GB. Horní limit určuje súborový systém.";
"Move Controls" = "Presunúť ovládacie prvky";
@@ -145,10 +155,15 @@
"Off" = "Vypnuté";
"OK" = "Potvrdiť";
"On" = "Zapnuté";
+"On for Next Boot" = "Zapnuté pri nasledujúcom spustení";
"Only about %llu GB is currently available. The disk image is sparse, but installation or later use can fail when storage fills up." = "Momentálne je k dispozícii len približne %llu GB. Obraz disku je dynamický, ale pri zaplnení úložiska môže inštalácia alebo neskoršie používanie zlyhať.";
"Open Control Center and start Screen Recording, then reproduce the problem." = "Otvorte Ovládacie centrum, spustite záznam obrazovky a potom problém znova vyvolajte.";
+"OpenGL Acceleration" = "Akcelerácia OpenGL";
+"OpenGL Acceleration Is Off" = "Akcelerácia OpenGL je vypnutá";
+"OpenGL Acceleration requires macOS Sonoma or later." = "Akcelerácia OpenGL vyžaduje macOS Sonoma alebo novší.";
"Optional" = "Voliteľné";
"Options" = "Volby";
+"Out of Video Memory" = "Nedostatok videopamäte";
"People have dreamed of running macOS on iPad for more than a decade. Today, that dream comes true. Create a Virtual Mac to get started." = "Ľudia už viac ako desať rokov snívajú o spustení macOS na iPade. Dnes sa tento sen stáva skutočnosťou. Začnite vytvorením virtuálneho Macu.";
"Pixels Per Inch" = "Pixely na palec";
"Pointing Device" = "Polohovací zariadenie";
@@ -220,11 +235,14 @@
"These options affect iPadOS only while Virtual Mac is frontmost and a Virtual Mac is running." = "Tieto možnosti ovplyvňujú iPadOS iba vtedy, keď je Virtuálny Mac v popredí a virtuálny Mac je spustený.";
"This restores all Virtual Mac settings to their defaults. Virtual Macs, restore images, and installation files won’t be removed." = "Týmto sa obnovia predvolené hodnoty všetkých nastavení aplikácie Virtual Mac. Virtuálne Macy, obrazy obnovy ani inštalačné súbory nebudú odstránené.";
"this Virtual Mac" = "tento virtuálny Mac";
+"To enable OpenGL acceleration, shut down this Virtual Mac, then in its options, enable OpenGL Acceleration." = "Ak chcete zapnúť akceleráciu OpenGL, vypnite tento Virtual Mac a potom ju zapnite v jeho možnostiach.";
"To show the controls, touch and hold the Virtual Mac icon on the Home Screen, then choose Show Virtual Mac Controls." = "Ak chcete zobraziť ovládacie prvky, podržte ikonu Virtual Macu na ploche a potom vyberte Zobraziť ovládacie prvky Virtual Macu.";
+"To use Apple Pencil pressure and tilt, download pencil-probe in %@ Virtual Mac." = "Ak chcete používať prítlak a náklon Apple Pencilu, stiahnite si pencil-probe do virtuálneho Macu %@.";
"Top Left" = "Vľavo hore";
"Top Right" = "Vpravo hore";
"Touch" = "Dotyk";
"Touch and Hold to Secondary Click" = "Dotknite sa a podržte pre sekundárne kliknutie";
+"Turn Off Virtual Mac Guest Tools?" = "Vypnúť hosťovské nástroje Virtual Mac?";
"Two Finger Tap to Secondary Click" = "Ťuknutie dvoma prstami pre sekundárne kliknutie";
"Unknown" = "Neznáme";
"Unsaved changes in macOS may be lost." = "Neuložené zmeny v macOS môžu být stratené.";
@@ -245,6 +263,7 @@
"Virtual Mac devices are stored in %@." = "Virtuálne Macy sa ukladajú do %@.";
"Virtual Mac Display" = "Displej Virtuálneho Macu";
"Virtual Mac does not support the Dopamine-roothide environment. Remove the roothide jailbreak from Dopamine-roothide > Settings > Remove Jailbreak, then switch to the official version of Dopamine." = "Virtual Mac nepodporuje prostredie Dopamine-roothide. Odstráňte roothide jailbreak v Dopamine-roothide > Nastavenia > Odstrániť jailbreak a potom prejdite na oficiálnu verziu Dopamine.";
+"Virtual Mac Guest Tools" = "Nástroje hosťa pre Virtuálny Mac";
"Virtual Mac has no published framebuffer" = "Virtuálny Mac nemá zverejnený framebuffer";
"Virtual Mac running — native PVG framebuffer attached" = "Virtuálny Mac beží — nativní framebuffer PVG je pripojen";
"Virtual Mac running — preparing native PVG display" = "Virtuálny Mac beží — pripravuje se nativní displej PVG";
diff --git a/VirtualMac/resources/Localizations/sl.lproj/Localizable.strings b/VirtualMac/resources/Localizations/sl.lproj/Localizable.strings
index 89badc1..70cd430 100644
--- a/VirtualMac/resources/Localizations/sl.lproj/Localizable.strings
+++ b/VirtualMac/resources/Localizations/sl.lproj/Localizable.strings
@@ -2,6 +2,7 @@
"%.0f%% complete" = "Dokončano %.0f%%";
"%@ CPU · %@ GB RAM · %llu GB · %@%@" = "%@ CPE · %@ GB pomnilnika · %llu GB · %@%@";
"%@ is not supported" = "%@ ni podprt";
+"%@ is out of video memory. macOS may appear frozen." = "Napravi %@ je zmanjkalo videopomnilnika. macOS je lahko videti zamrznjen.";
"%@ may encounter performance or graphical issues. For the best experience, use macOS Ventura, macOS Sonoma, or macOS Sequoia.\n\nIf transparency effects cause visual problems, turn on Reduce Transparency in System Settings > Accessibility > Display." = "V sistemu %@ se lahko pojavijo težave z zmogljivostjo ali grafiko. Za najboljšo izkušnjo izberite macOS Ventura, macOS Sonoma ali macOS Sequoia.\n\nČe učinki prosojnosti povzročajo težave s prikazom, vklopite Zmanjšaj prosojnost v Sistemske nastavitve > Dostopnost > Zaslon.";
"%@ remaining" = "Preostane še %@";
"%@\nState: %@\n%@\n\n" = "%@\nStanje: %@\n%@\n\n";
@@ -15,12 +16,15 @@
"Add Shared Folder" = "Dodaj mapo v skupni rabi";
"Advanced" = "Napredno";
"Allowed: %llu–%llu%@" = "Dovoljeno: %llu–%llu%@";
+"Always On" = "Vedno vklopljeno";
"Another usbmuxd service took control of the virtual DFU device before it entered RestoreOS. Uninstall usbmuxd from Sileo and try again." = "Druga storitev usbmuxd je prevzela navidezno napravo DFU, preden je prešla v RestoreOS. Odstranite usbmuxd v Sileu in poskusite znova.";
"Another Virtual Mac Is Running" = "Drug Virtual Mac se že izvaja";
+"Apple Pencil Pressure and Tilt" = "Pritisk in nagib Apple Pencil";
"Audio and Acceleration" = "Zvok in pospeševanje";
"Audio Output" = "Izhod zvoka";
"Available macOS Releases" = "Razpoložljive izdaje macOS";
"Available macOS Versions" = "Razpoložljive različice macOS";
+"Because OpenGL acceleration requires Virtual Mac guest tools, turning off Virtual Mac guest tools will also turn off OpenGL acceleration. Apps such as Final Cut Pro mostly use Metal, but they check for OpenGL capabilities in order to launch." = "Ker pospeševanje OpenGL zahteva gostujoča orodja Virtual Mac, boste z njihovim izklopom izklopili tudi pospeševanje OpenGL. Aplikacije, kot je Final Cut Pro, večinoma uporabljajo Metal, vendar ob zagonu preverijo zmogljivosti OpenGL.";
"Boot and Network" = "Zagon in omrežje";
"Bottom Left" = "Spodaj levo";
"Bottom Right" = "Spodaj desno";
@@ -42,7 +46,6 @@
"Choose whether Virtual Mac opens its library or starts a Virtual Mac." = "Izberite, ali aplikacija Virtual Mac odpre knjižnico ali zažene Virtual Mac.";
"Compatibility" = "Združljivost";
"Complete Virtual Mac devices and restore images outside Virtual Mac are not removed." = "Dokončani Virtual Maci in obnovitvene slike zunaj aplikacije Virtual Mac ne bodo odstranjeni.";
-"Configuration changes take effect after the Virtual Mac is shut down and started again." = "Spremembe konfiguracije začnejo veljati po zaustavitvi in ponovnem zagonu Virtual Maca.";
"Configuration failed: %@" = "Nastavitev ni uspela: %@";
"Configure %@" = "Nastavi %@";
"Continue" = "Nadaljuj";
@@ -58,7 +61,7 @@
"Create Virtual Mac" = "Ustvari navidezni Mac";
"Custom" = "Po meri";
"Debug Logging" = "Beleženje razhroščevanja";
-"Debug Logging has been enabled. You can turn it off later in Settings." = "Beleženje razhroščevanja je omogočeno. Pozneje ga lahko izklopite v Nastavitvah.";
+"Debug logging has been enabled for the next boot." = "Beleženje razhroščevanja je vklopljeno za naslednji zagon.";
"Debug Logging takes effect the next time a Virtual Mac starts." = "Beleženje razhroščevanja začne veljati ob naslednjem zagonu Virtual Maca.";
"Delete" = "Izbriši";
"Delete All" = "Izbriši vse";
@@ -82,7 +85,12 @@
"Display Resolution" = "Ločljivost zaslona";
"Display Width" = "Širina zaslona";
"Double-tap to hold or release this modifier" = "Dvakrat tapnite, da pridržite ali sprostite to modifikacijsko tipko";
+"Download Apple Pencil Support" = "Prenesi podporo za Apple Pencil";
"Download Failed" = "Prenos ni uspel";
+"Download Final Cut Pro Trial" = "Prenesi preizkusno različico Final Cut Pro";
+"Download Logic Pro Trial" = "Prenesi preizkusno različico Logic Pro";
+"Download Pixelmator Pro Trial" = "Prenesi preizkusno različico Pixelmator Pro";
+"Download Xcode" = "Prenesi Xcode";
"Downloading macOS" = "Prenašanje sistema macOS";
"Enter six hexadecimal octets separated by colons." = "Vnesite šest šestnajstiških oktetov, ločenih z dvopičji.";
"Ethernet (%@)" = "Ethernet (%@)";
@@ -122,6 +130,7 @@
"Keep Virtual Mac open. Your iPad will remain awake until the download finishes." = "Aplikacijo Virtual Mac pustite odprto. iPad bo ostal buden do konca prenosa.";
"Keyboard" = "Tipkovnica";
"Landscape iPad" = "iPad ležeče";
+"Learn More" = "Več o tem";
"Library Appearance" = "Videz knjižnice";
"Loading extracted Apple virtualization frameworks…" = "Nalaganje izločenih Applovih ogrodij za virtualizacijo…";
"MAC Address" = "Naslov MAC";
@@ -130,6 +139,7 @@
"Mac Trackpad" = "Sledilna ploščica Mac";
"macOS Installed" = "macOS je nameščen";
"Memory" = "Pomnilnik";
+"Metal BC Support" = "Podpora za Metal BC";
"Microphone Input" = "Vhod mikrofona";
"Minimum: %llu GB. The upper limit is determined by the filesystem." = "Najmanj: %llu GB. Zgornjo mejo določa datotečni sistem.";
"Move Controls" = "Premakni kontrolnike";
@@ -145,10 +155,15 @@
"Off" = "Izklopljeno";
"OK" = "V redu";
"On" = "Vklopljeno";
+"On for Next Boot" = "Vklopljeno ob naslednjem zagonu";
"Only about %llu GB is currently available. The disk image is sparse, but installation or later use can fail when storage fills up." = "Trenutno je na voljo le približno %llu GB. Slika diska je razpršena, vendar lahko namestitev ali poznejša uporaba spodleti, če zmanjka prostora.";
"Open Control Center and start Screen Recording, then reproduce the problem." = "Odprite Nadzorno središče, začnite snemanje zaslona in nato ponovite težavo.";
+"OpenGL Acceleration" = "Pospeševanje OpenGL";
+"OpenGL Acceleration Is Off" = "Pospeševanje OpenGL je izklopljeno";
+"OpenGL Acceleration requires macOS Sonoma or later." = "Pospeševanje OpenGL zahteva macOS Sonoma ali novejši.";
"Optional" = "Izbirno";
"Options" = "Možnosti";
+"Out of Video Memory" = "Zmanjkalo je videopomnilnika";
"People have dreamed of running macOS on iPad for more than a decade. Today, that dream comes true. Create a Virtual Mac to get started." = "Ljudje že več kot desetletje sanjajo o poganjanju sistema macOS na iPadu. Danes se te sanje uresničujejo. Za začetek ustvari navidezni Mac.";
"Pixels Per Inch" = "Slikovne pike na palec";
"Pointing Device" = "Kazalna naprava";
@@ -220,11 +235,14 @@
"These options affect iPadOS only while Virtual Mac is frontmost and a Virtual Mac is running." = "Te možnosti vplivajo na iPadOS samo, ko je Navidezni Mac v ospredju in deluje navidezni Mac.";
"This restores all Virtual Mac settings to their defaults. Virtual Macs, restore images, and installation files won’t be removed." = "S tem obnovite vse nastavitve aplikacije Virtual Mac na privzete vrednosti. Virtual Maci, obnovitvene slike in namestitvene datoteke ne bodo odstranjeni.";
"this Virtual Mac" = "ta Virtual Mac";
+"To enable OpenGL acceleration, shut down this Virtual Mac, then in its options, enable OpenGL Acceleration." = "Za vklop pospeševanja OpenGL zaustavite ta Virtual Mac in ga nato vklopite v njegovih možnostih.";
"To show the controls, touch and hold the Virtual Mac icon on the Home Screen, then choose Show Virtual Mac Controls." = "Za prikaz kontrolnikov se dotaknite ikone Virtual Mac na začetnem zaslonu in jo pridržite, nato izberite Prikaži kontrolnike Virtual Mac.";
+"To use Apple Pencil pressure and tilt, download pencil-probe in %@ Virtual Mac." = "Če želite uporabljati pritisk in nagib Apple Pencil, prenesite pencil-probe v navidezni Mac %@.";
"Top Left" = "Zgoraj levo";
"Top Right" = "Zgoraj desno";
"Touch" = "Dotik";
"Touch and Hold to Secondary Click" = "Dotik in pridržanje za sekundarni klik";
+"Turn Off Virtual Mac Guest Tools?" = "Izklopim gostujoča orodja Virtual Mac?";
"Two Finger Tap to Secondary Click" = "Dotik z dvema prstoma za sekundarni klik";
"Unknown" = "Neznano";
"Unsaved changes in macOS may be lost." = "Neshranjene spremembe v sistemu macOS bodo morda izgubljene.";
@@ -245,6 +263,7 @@
"Virtual Mac devices are stored in %@." = "Navidezni Maci se shranjujejo v %@.";
"Virtual Mac Display" = "Zaslon navideznega Maca";
"Virtual Mac does not support the Dopamine-roothide environment. Remove the roothide jailbreak from Dopamine-roothide > Settings > Remove Jailbreak, then switch to the official version of Dopamine." = "Virtual Mac ne podpira okolja Dopamine-roothide. Odstranite roothide jailbreak v Dopamine-roothide > Nastavitve > Odstrani jailbreak in nato preklopite na uradno različico Dopamine.";
+"Virtual Mac Guest Tools" = "Orodja za gosta Navideznega Maca";
"Virtual Mac has no published framebuffer" = "Virtual Mac nima objavljenega medpomnilnika sličic";
"Virtual Mac running — native PVG framebuffer attached" = "Virtual Mac deluje — izvorni medpomnilnik sličic PVG je priključen";
"Virtual Mac running — preparing native PVG display" = "Virtual Mac deluje — pripravljanje izvornega zaslona PVG";
diff --git a/VirtualMac/resources/Localizations/sv.lproj/Localizable.strings b/VirtualMac/resources/Localizations/sv.lproj/Localizable.strings
index f83b0b0..59df05d 100644
--- a/VirtualMac/resources/Localizations/sv.lproj/Localizable.strings
+++ b/VirtualMac/resources/Localizations/sv.lproj/Localizable.strings
@@ -2,6 +2,7 @@
"%.0f%% complete" = "%.0f%% slutfört";
"%@ CPU · %@ GB RAM · %llu GB · %@%@" = "%@ CPU · %@ GB RAM · %llu GB · %@%@";
"%@ is not supported" = "%@ stöds inte";
+"%@ is out of video memory. macOS may appear frozen." = "%@ har slut på grafikminne. macOS kan se ut att ha hängt sig.";
"%@ may encounter performance or graphical issues. For the best experience, use macOS Ventura, macOS Sonoma, or macOS Sequoia.\n\nIf transparency effects cause visual problems, turn on Reduce Transparency in System Settings > Accessibility > Display." = "%@ kan ha prestanda- eller grafikproblem. Använd macOS Ventura, macOS Sonoma eller macOS Sequoia för bästa möjliga upplevelse.\n\nOm genomskinlighetseffekter orsakar visuella problem slår du på Minska genomskinlighet under Systeminställningar > Hjälpmedel > Bildskärm.";
"%@ remaining" = "%@ återstår";
"%@\nState: %@\n%@\n\n" = "%@\nStatus: %@\n%@\n\n";
@@ -15,12 +16,15 @@
"Add Shared Folder" = "Lägg till delad mapp";
"Advanced" = "Avancerat";
"Allowed: %llu–%llu%@" = "Tillåtet: %llu–%llu%@";
+"Always On" = "Alltid på";
"Another usbmuxd service took control of the virtual DFU device before it entered RestoreOS. Uninstall usbmuxd from Sileo and try again." = "En annan usbmuxd-tjänst tog kontroll över den virtuella DFU-enheten innan den gick in i RestoreOS. Avinstallera usbmuxd i Sileo och försök igen.";
"Another Virtual Mac Is Running" = "En annan Virtual Mac körs";
+"Apple Pencil Pressure and Tilt" = "Tryck och lutning med Apple Pencil";
"Audio and Acceleration" = "Ljud och acceleration";
"Audio Output" = "Ljudutgång";
"Available macOS Releases" = "Tillgängliga macOS-versioner";
"Available macOS Versions" = "Tillgängliga macOS-versioner";
+"Because OpenGL acceleration requires Virtual Mac guest tools, turning off Virtual Mac guest tools will also turn off OpenGL acceleration. Apps such as Final Cut Pro mostly use Metal, but they check for OpenGL capabilities in order to launch." = "Eftersom OpenGL-acceleration kräver Virtual Mac-gästverktyg stängs även OpenGL-accelerationen av när gästverktygen stängs av. Appar som Final Cut Pro använder främst Metal, men kontrollerar OpenGL-funktioner för att kunna starta.";
"Boot and Network" = "Start och nätverk";
"Bottom Left" = "Nere till vänster";
"Bottom Right" = "Nere till höger";
@@ -42,7 +46,6 @@
"Choose whether Virtual Mac opens its library or starts a Virtual Mac." = "Välj om Virtual Mac ska öppna biblioteket eller starta en Virtual Mac.";
"Compatibility" = "Kompatibilitet";
"Complete Virtual Mac devices and restore images outside Virtual Mac are not removed." = "Fullständiga Virtual Mac-datorer och återställningsavbilder utanför Virtual Mac tas inte bort.";
-"Configuration changes take effect after the Virtual Mac is shut down and started again." = "Konfigurationsändringar börjar gälla efter att Virtual Mac har stängts av och startats igen.";
"Configuration failed: %@" = "Konfigurationen misslyckades: %@";
"Configure %@" = "Konfigurera %@";
"Continue" = "Fortsätt";
@@ -58,7 +61,7 @@
"Create Virtual Mac" = "Skapa en virtuell Mac";
"Custom" = "Anpassad";
"Debug Logging" = "Felsökningsloggning";
-"Debug Logging has been enabled. You can turn it off later in Settings." = "Felsökningsloggning har aktiverats. Du kan stänga av den senare i Inställningar.";
+"Debug logging has been enabled for the next boot." = "Felsökningsloggning har aktiverats för nästa start.";
"Debug Logging takes effect the next time a Virtual Mac starts." = "Felsökningsloggning aktiveras nästa gång en Virtual Mac startas.";
"Delete" = "Radera";
"Delete All" = "Radera alla";
@@ -82,7 +85,12 @@
"Display Resolution" = "Bildskärmsupplösning";
"Display Width" = "Bildskärmsbredd";
"Double-tap to hold or release this modifier" = "Tryck två gånger för att låsa eller släppa denna specialtangent";
+"Download Apple Pencil Support" = "Hämta stöd för Apple Pencil";
"Download Failed" = "Hämtningen misslyckades";
+"Download Final Cut Pro Trial" = "Hämta testversionen av Final Cut Pro";
+"Download Logic Pro Trial" = "Hämta testversionen av Logic Pro";
+"Download Pixelmator Pro Trial" = "Hämta testversionen av Pixelmator Pro";
+"Download Xcode" = "Hämta Xcode";
"Downloading macOS" = "Hämtar macOS";
"Enter six hexadecimal octets separated by colons." = "Ange sex hexadecimala oktetter avgränsade med kolon.";
"Ethernet (%@)" = "Ethernet (%@)";
@@ -122,6 +130,7 @@
"Keep Virtual Mac open. Your iPad will remain awake until the download finishes." = "Håll Virtual Mac öppet. Din iPad förblir aktiv tills hämtningen är klar.";
"Keyboard" = "Tangentbord";
"Landscape iPad" = "iPad liggande";
+"Learn More" = "Läs mer";
"Library Appearance" = "Bibliotekets utseende";
"Loading extracted Apple virtualization frameworks…" = "Läser in extraherade Apple-ramverk för virtualisering…";
"MAC Address" = "MAC-adress";
@@ -130,6 +139,7 @@
"Mac Trackpad" = "Mac-styrplatta";
"macOS Installed" = "macOS installerat";
"Memory" = "Minne";
+"Metal BC Support" = "Stöd för Metal BC";
"Microphone Input" = "Mikrofoningång";
"Minimum: %llu GB. The upper limit is determined by the filesystem." = "Minimum: %llu GB. Den övre gränsen bestäms av filsystemet.";
"Move Controls" = "Flytta reglage";
@@ -145,10 +155,15 @@
"Off" = "Av";
"OK" = "OK";
"On" = "På";
+"On for Next Boot" = "På vid nästa start";
"Only about %llu GB is currently available. The disk image is sparse, but installation or later use can fail when storage fills up." = "Endast cirka %llu GB är tillgängligt. Skivavbilden är dynamisk, men installationen eller senare användning kan misslyckas om lagringsutrymmet tar slut.";
"Open Control Center and start Screen Recording, then reproduce the problem." = "Öppna Kontrollcenter, starta en skärminspelning och återskapa sedan problemet.";
+"OpenGL Acceleration" = "OpenGL-acceleration";
+"OpenGL Acceleration Is Off" = "OpenGL-acceleration är av";
+"OpenGL Acceleration requires macOS Sonoma or later." = "OpenGL-acceleration kräver macOS Sonoma eller senare.";
"Optional" = "Valfritt";
"Options" = "Alternativ";
+"Out of Video Memory" = "Slut på grafikminne";
"People have dreamed of running macOS on iPad for more than a decade. Today, that dream comes true. Create a Virtual Mac to get started." = "I mer än ett decennium har människor drömt om att köra macOS på iPad. I dag blir drömmen verklighet. Skapa en virtuell Mac för att komma igång.";
"Pixels Per Inch" = "Pixlar per tum";
"Pointing Device" = "Pekdon";
@@ -220,11 +235,14 @@
"These options affect iPadOS only while Virtual Mac is frontmost and a Virtual Mac is running." = "Dessa alternativ påverkar bara iPadOS när Virtuell Mac är i förgrunden och en virtuell Mac körs.";
"This restores all Virtual Mac settings to their defaults. Virtual Macs, restore images, and installation files won’t be removed." = "Detta återställer alla inställningar i Virtual Mac till standardvärdena. Virtual Mac-datorer, återställningsavbilder och installationsfiler tas inte bort.";
"this Virtual Mac" = "denna Virtual Mac";
+"To enable OpenGL acceleration, shut down this Virtual Mac, then in its options, enable OpenGL Acceleration." = "Stäng av denna Virtual Mac och aktivera sedan OpenGL-acceleration i alternativen för att slå på den.";
"To show the controls, touch and hold the Virtual Mac icon on the Home Screen, then choose Show Virtual Mac Controls." = "Visa reglagen genom att hålla på Virtual Mac-symbolen på hemskärmen och sedan välja Visa Virtual Mac-reglage.";
+"To use Apple Pencil pressure and tilt, download pencil-probe in %@ Virtual Mac." = "Hämta pencil-probe till den virtuella Mac-datorn %@ för att använda tryck och lutning med Apple Pencil.";
"Top Left" = "Uppe till vänster";
"Top Right" = "Uppe till höger";
"Touch" = "Beröring";
"Touch and Hold to Secondary Click" = "Peka och håll ned för sekundärt klick";
+"Turn Off Virtual Mac Guest Tools?" = "Stäng av Virtual Mac-gästverktyg?";
"Two Finger Tap to Secondary Click" = "Tryck med två fingrar för sekundärt klick";
"Unknown" = "Okänd";
"Unsaved changes in macOS may be lost." = "Osparade ändringar i macOS kan gå förlorade.";
@@ -245,6 +263,7 @@
"Virtual Mac devices are stored in %@." = "Virtuella Mac-datorer lagras i %@.";
"Virtual Mac Display" = "Virtuell Mac-skärm";
"Virtual Mac does not support the Dopamine-roothide environment. Remove the roothide jailbreak from Dopamine-roothide > Settings > Remove Jailbreak, then switch to the official version of Dopamine." = "Virtual Mac stöder inte Dopamine-roothide-miljön. Ta bort roothide-jailbreaken i Dopamine-roothide > Inställningar > Ta bort jailbreak och byt sedan till den officiella versionen av Dopamine.";
+"Virtual Mac Guest Tools" = "Gästverktyg för Virtuell Mac";
"Virtual Mac has no published framebuffer" = "Virtual Mac har inte publicerat någon framebuffer";
"Virtual Mac running — native PVG framebuffer attached" = "Virtual Mac körs — inbyggd PVG-framebuffer ansluten";
"Virtual Mac running — preparing native PVG display" = "Virtual Mac körs — förbereder inbyggd PVG-bildskärm";
diff --git a/VirtualMac/resources/Localizations/th.lproj/Localizable.strings b/VirtualMac/resources/Localizations/th.lproj/Localizable.strings
index b7375dd..7f15de8 100644
--- a/VirtualMac/resources/Localizations/th.lproj/Localizable.strings
+++ b/VirtualMac/resources/Localizations/th.lproj/Localizable.strings
@@ -2,6 +2,7 @@
"%.0f%% complete" = "เสร็จแล้ว %.0f%%";
"%@ CPU · %@ GB RAM · %llu GB · %@%@" = "CPU %@ ตัว · หน่วยความจำ %@ GB · %llu GB · %@%@";
"%@ is not supported" = "ไม่รองรับ %@";
+"%@ is out of video memory. macOS may appear frozen." = "%@ มีหน่วยความจำวิดีโอไม่เพียงพอ macOS อาจดูเหมือนค้าง";
"%@ may encounter performance or graphical issues. For the best experience, use macOS Ventura, macOS Sonoma, or macOS Sequoia.\n\nIf transparency effects cause visual problems, turn on Reduce Transparency in System Settings > Accessibility > Display." = "%@ อาจพบปัญหาด้านประสิทธิภาพหรือกราฟิก เพื่อประสบการณ์ที่ดีที่สุด ให้ใช้ macOS Ventura, macOS Sonoma หรือ macOS Sequoia\n\nหากเอฟเฟ็กต์ความโปร่งใสทำให้เกิดปัญหาในการแสดงผล ให้เปิด ลดความโปร่งใส ใน การตั้งค่าระบบ > การช่วยการเข้าถึง > จอภาพ";
"%@ remaining" = "เหลือ %@";
"%@\nState: %@\n%@\n\n" = "%@\nสถานะ: %@\n%@\n\n";
@@ -15,12 +16,15 @@
"Add Shared Folder" = "เพิ่มโฟลเดอร์ที่แชร์";
"Advanced" = "ขั้นสูง";
"Allowed: %llu–%llu%@" = "ใช้ได้: %llu–%llu%@";
+"Always On" = "เปิดเสมอ";
"Another usbmuxd service took control of the virtual DFU device before it entered RestoreOS. Uninstall usbmuxd from Sileo and try again." = "บริการ usbmuxd อื่นเข้าควบคุมอุปกรณ์ DFU เสมือนก่อนเข้าสู่ RestoreOS โปรดถอนการติดตั้ง usbmuxd จาก Sileo แล้วลองอีกครั้ง";
"Another Virtual Mac Is Running" = "มี Virtual Mac เครื่องอื่นกำลังทำงานอยู่";
+"Apple Pencil Pressure and Tilt" = "แรงกดและการเอียงของ Apple Pencil";
"Audio and Acceleration" = "เสียงและการเร่งความเร็ว";
"Audio Output" = "สัญญาณเสียงออก";
"Available macOS Releases" = "รุ่น macOS ที่พร้อมใช้งาน";
"Available macOS Versions" = "เวอร์ชัน macOS ที่มีให้เลือก";
+"Because OpenGL acceleration requires Virtual Mac guest tools, turning off Virtual Mac guest tools will also turn off OpenGL acceleration. Apps such as Final Cut Pro mostly use Metal, but they check for OpenGL capabilities in order to launch." = "เนื่องจากการเร่งความเร็ว OpenGL ต้องใช้เครื่องมือเกสต์ของ Virtual Mac การปิดเครื่องมือเกสต์จะปิดการเร่งความเร็ว OpenGL ด้วย แอปอย่าง Final Cut Pro ใช้ Metal เป็นหลัก แต่จะตรวจสอบความสามารถของ OpenGL ก่อนเปิด";
"Boot and Network" = "การเริ่มระบบและเครือข่าย";
"Bottom Left" = "ล่างซ้าย";
"Bottom Right" = "ล่างขวา";
@@ -42,7 +46,6 @@
"Choose whether Virtual Mac opens its library or starts a Virtual Mac." = "เลือกว่าจะให้ Virtual Mac เปิดคลังหรือเริ่ม Virtual Mac เครื่องหนึ่ง";
"Compatibility" = "ความเข้ากันได้";
"Complete Virtual Mac devices and restore images outside Virtual Mac are not removed." = "Virtual Mac ที่เสร็จสมบูรณ์และอิมเมจกู้คืนที่อยู่นอก Virtual Mac จะไม่ถูกลบ";
-"Configuration changes take effect after the Virtual Mac is shut down and started again." = "การเปลี่ยนแปลงการกำหนดค่าจะมีผลหลังจากปิดแล้วเริ่ม Virtual Mac อีกครั้ง";
"Configuration failed: %@" = "กำหนดค่าไม่สำเร็จ: %@";
"Configure %@" = "กำหนดค่า %@";
"Continue" = "ดำเนินการต่อ";
@@ -58,7 +61,7 @@
"Create Virtual Mac" = "สร้าง Mac เสมือน";
"Custom" = "กำหนดเอง";
"Debug Logging" = "การบันทึกการแก้ไขข้อบกพร่อง";
-"Debug Logging has been enabled. You can turn it off later in Settings." = "เปิดใช้การบันทึกข้อมูลแก้ไขจุดบกพร่องแล้ว คุณสามารถปิดได้ภายหลังในการตั้งค่า";
+"Debug logging has been enabled for the next boot." = "เปิดการบันทึกข้อมูลดีบักสำหรับการบูตครั้งถัดไปแล้ว";
"Debug Logging takes effect the next time a Virtual Mac starts." = "การบันทึกการแก้ไขจุดบกพร่องจะมีผลเมื่อเริ่ม Virtual Mac ครั้งถัดไป";
"Delete" = "ลบ";
"Delete All" = "ลบทั้งหมด";
@@ -82,7 +85,12 @@
"Display Resolution" = "ความละเอียดจอภาพ";
"Display Width" = "ความกว้างจอภาพ";
"Double-tap to hold or release this modifier" = "แตะสองครั้งเพื่อกดค้างหรือปล่อยปุ่มปรับนี้";
+"Download Apple Pencil Support" = "ดาวน์โหลดการรองรับ Apple Pencil";
"Download Failed" = "การดาวน์โหลดล้มเหลว";
+"Download Final Cut Pro Trial" = "ดาวน์โหลด Final Cut Pro รุ่นทดลอง";
+"Download Logic Pro Trial" = "ดาวน์โหลด Logic Pro รุ่นทดลอง";
+"Download Pixelmator Pro Trial" = "ดาวน์โหลด Pixelmator Pro รุ่นทดลอง";
+"Download Xcode" = "ดาวน์โหลด Xcode";
"Downloading macOS" = "กำลังดาวน์โหลด macOS";
"Enter six hexadecimal octets separated by colons." = "ป้อนเลขฐานสิบหกหกชุดคั่นด้วยเครื่องหมายทวิภาค";
"Ethernet (%@)" = "อีเทอร์เน็ต (%@)";
@@ -122,6 +130,7 @@
"Keep Virtual Mac open. Your iPad will remain awake until the download finishes." = "เปิด Virtual Mac ไว้ iPad จะไม่พักเครื่องจนกว่าการดาวน์โหลดจะเสร็จ";
"Keyboard" = "แป้นพิมพ์";
"Landscape iPad" = "iPad แนวนอน";
+"Learn More" = "ดูเพิ่มเติม";
"Library Appearance" = "ลักษณะคลัง";
"Loading extracted Apple virtualization frameworks…" = "กำลังโหลดเฟรมเวิร์กการจำลองเสมือนของ Apple ที่แยกออกมา…";
"MAC Address" = "ที่อยู่ MAC";
@@ -130,6 +139,7 @@
"Mac Trackpad" = "แทร็คแพด Mac";
"macOS Installed" = "ติดตั้ง macOS แล้ว";
"Memory" = "หน่วยความจำ";
+"Metal BC Support" = "รองรับ Metal BC";
"Microphone Input" = "สัญญาณไมโครโฟนเข้า";
"Minimum: %llu GB. The upper limit is determined by the filesystem." = "ขั้นต่ำ: %llu GB ขีดจำกัดสูงสุดขึ้นอยู่กับระบบไฟล์";
"Move Controls" = "ย้ายตัวควบคุม";
@@ -145,10 +155,15 @@
"Off" = "ปิด";
"OK" = "ตกลง";
"On" = "เปิด";
+"On for Next Boot" = "เปิดสำหรับการบูตครั้งถัดไป";
"Only about %llu GB is currently available. The disk image is sparse, but installation or later use can fail when storage fills up." = "ขณะนี้มีพื้นที่ว่างเพียงประมาณ %llu GB อิมเมจดิสก์เป็นแบบเบาบาง แต่การติดตั้งหรือการใช้งานภายหลังอาจล้มเหลวเมื่อพื้นที่เต็ม";
"Open Control Center and start Screen Recording, then reproduce the problem." = "เปิดศูนย์ควบคุม เริ่มการบันทึกหน้าจอ แล้วทำให้เกิดปัญหาซ้ำ";
+"OpenGL Acceleration" = "การเร่งความเร็ว OpenGL";
+"OpenGL Acceleration Is Off" = "การเร่งความเร็ว OpenGL ปิดอยู่";
+"OpenGL Acceleration requires macOS Sonoma or later." = "การเร่งความเร็ว OpenGL ต้องใช้ macOS Sonoma หรือใหม่กว่า";
"Optional" = "ไม่บังคับ";
"Options" = "ตัวเลือก";
+"Out of Video Memory" = "หน่วยความจำวิดีโอไม่เพียงพอ";
"People have dreamed of running macOS on iPad for more than a decade. Today, that dream comes true. Create a Virtual Mac to get started." = "ผู้คนใฝ่ฝันที่จะใช้งาน macOS บน iPad มานานกว่าทศวรรษ วันนี้ความฝันนั้นเป็นจริง สร้าง Mac เสมือนเพื่อเริ่มต้นใช้งาน";
"Pixels Per Inch" = "พิกเซลต่อนิ้ว";
"Pointing Device" = "อุปกรณ์ชี้ตำแหน่ง";
@@ -220,11 +235,14 @@
"These options affect iPadOS only while Virtual Mac is frontmost and a Virtual Mac is running." = "ตัวเลือกเหล่านี้มีผลกับ iPadOS เฉพาะเมื่อ Mac เสมือน อยู่ด้านหน้าและ Mac เสมือนกำลังทำงาน";
"This restores all Virtual Mac settings to their defaults. Virtual Macs, restore images, and installation files won’t be removed." = "การดำเนินการนี้จะคืนการตั้งค่า Virtual Mac ทั้งหมดเป็นค่าเริ่มต้น โดยจะไม่ลบ Virtual Mac อิมเมจกู้คืน หรือไฟล์ติดตั้ง";
"this Virtual Mac" = "Virtual Mac เครื่องนี้";
+"To enable OpenGL acceleration, shut down this Virtual Mac, then in its options, enable OpenGL Acceleration." = "หากต้องการเปิดการเร่งความเร็ว OpenGL ให้ปิด Virtual Mac เครื่องนี้ แล้วเปิดการเร่งความเร็ว OpenGL ในตัวเลือก";
"To show the controls, touch and hold the Virtual Mac icon on the Home Screen, then choose Show Virtual Mac Controls." = "หากต้องการแสดงตัวควบคุม ให้แตะไอคอน Virtual Mac บนหน้าจอโฮมค้างไว้ แล้วเลือกแสดงตัวควบคุม Virtual Mac";
+"To use Apple Pencil pressure and tilt, download pencil-probe in %@ Virtual Mac." = "หากต้องการใช้แรงกดและการเอียงของ Apple Pencil ให้ดาวน์โหลด pencil-probe ใน Mac เสมือน %@";
"Top Left" = "บนซ้าย";
"Top Right" = "บนขวา";
"Touch" = "การสัมผัส";
"Touch and Hold to Secondary Click" = "แตะค้างไว้เพื่อคลิกรอง";
+"Turn Off Virtual Mac Guest Tools?" = "ปิดเครื่องมือเกสต์ของ Virtual Mac หรือไม่";
"Two Finger Tap to Secondary Click" = "แตะสองนิ้วเพื่อคลิกรอง";
"Unknown" = "ไม่ทราบ";
"Unsaved changes in macOS may be lost." = "การเปลี่ยนแปลงใน macOS ที่ยังไม่ได้บันทึกอาจสูญหาย";
@@ -245,6 +263,7 @@
"Virtual Mac devices are stored in %@." = "Mac เสมือนจัดเก็บอยู่ใน %@";
"Virtual Mac Display" = "จอภาพ Mac เสมือน";
"Virtual Mac does not support the Dopamine-roothide environment. Remove the roothide jailbreak from Dopamine-roothide > Settings > Remove Jailbreak, then switch to the official version of Dopamine." = "Virtual Mac ไม่รองรับสภาพแวดล้อม Dopamine-roothide ให้นำเจลเบรก roothide ออกใน Dopamine-roothide > การตั้งค่า > นำเจลเบรกออก แล้วเปลี่ยนไปใช้ Dopamine เวอร์ชันทางการ";
+"Virtual Mac Guest Tools" = "เครื่องมือเกสต์ของ Mac เสมือน";
"Virtual Mac has no published framebuffer" = "Virtual Mac ไม่มีเฟรมบัฟเฟอร์ที่เผยแพร่";
"Virtual Mac running — native PVG framebuffer attached" = "Virtual Mac กำลังทำงาน — เชื่อมต่อเฟรมบัฟเฟอร์ PVG ดั้งเดิมแล้ว";
"Virtual Mac running — preparing native PVG display" = "Virtual Mac กำลังทำงาน — กำลังเตรียมจอภาพ PVG ดั้งเดิม";
diff --git a/VirtualMac/resources/Localizations/tr.lproj/Localizable.strings b/VirtualMac/resources/Localizations/tr.lproj/Localizable.strings
index 1e5149f..67a58d3 100644
--- a/VirtualMac/resources/Localizations/tr.lproj/Localizable.strings
+++ b/VirtualMac/resources/Localizations/tr.lproj/Localizable.strings
@@ -2,6 +2,7 @@
"%.0f%% complete" = "%.0f%% tamamlandı";
"%@ CPU · %@ GB RAM · %llu GB · %@%@" = "%@ CPU · %@ GB RAM · %llu GB · %@%@";
"%@ is not supported" = "%@ desteklenmiyor";
+"%@ is out of video memory. macOS may appear frozen." = "%@ video belleğini tüketti. macOS donmuş görünebilir.";
"%@ may encounter performance or graphical issues. For the best experience, use macOS Ventura, macOS Sonoma, or macOS Sequoia.\n\nIf transparency effects cause visual problems, turn on Reduce Transparency in System Settings > Accessibility > Display." = "%@ performans veya grafik sorunları yaşayabilir. En iyi deneyim için macOS Ventura, macOS Sonoma veya macOS Sequoia kullanın.\n\nSaydamlık efektleri görsel sorunlara neden olursa Sistem Ayarları > Erişilebilirlik > Ekran bölümünde Saydamlığı Azalt’ı açın.";
"%@ remaining" = "%@ kaldı";
"%@\nState: %@\n%@\n\n" = "%@\nDurum: %@\n%@\n\n";
@@ -15,12 +16,15 @@
"Add Shared Folder" = "Paylaşılan Klasör Ekle";
"Advanced" = "İleri Düzey";
"Allowed: %llu–%llu%@" = "İzin verilen: %llu–%llu%@";
+"Always On" = "Her Zaman Açık";
"Another usbmuxd service took control of the virtual DFU device before it entered RestoreOS. Uninstall usbmuxd from Sileo and try again." = "Başka bir usbmuxd hizmeti, sanal DFU aygıtı RestoreOS’e girmeden önce denetimi ele aldı. Sileo’dan usbmuxd’yi kaldırıp yeniden deneyin.";
"Another Virtual Mac Is Running" = "Başka Bir Sanal Mac Çalışıyor";
+"Apple Pencil Pressure and Tilt" = "Apple Pencil Basıncı ve Eğimi";
"Audio and Acceleration" = "Ses ve Hızlandırma";
"Audio Output" = "Ses Çıkışı";
"Available macOS Releases" = "Kullanılabilir macOS Sürümleri";
"Available macOS Versions" = "Kullanılabilir macOS Sürümleri";
+"Because OpenGL acceleration requires Virtual Mac guest tools, turning off Virtual Mac guest tools will also turn off OpenGL acceleration. Apps such as Final Cut Pro mostly use Metal, but they check for OpenGL capabilities in order to launch." = "OpenGL hızlandırma Virtual Mac konuk araçlarını gerektirdiğinden, konuk araçlarını kapatmak OpenGL hızlandırmayı da kapatır. Final Cut Pro gibi uygulamalar çoğunlukla Metal kullanır ancak açılmak için OpenGL özelliklerini denetler.";
"Boot and Network" = "Önyükleme ve Ağ";
"Bottom Left" = "Sol Alt";
"Bottom Right" = "Sağ Alt";
@@ -42,7 +46,6 @@
"Choose whether Virtual Mac opens its library or starts a Virtual Mac." = "Virtual Mac’in arşivini açmasını mı yoksa bir Sanal Mac başlatmasını mı istediğinizi seçin.";
"Compatibility" = "Uyumluluk";
"Complete Virtual Mac devices and restore images outside Virtual Mac are not removed." = "Virtual Mac dışındaki tamamlanmış Sanal Mac’ler ve geri yükleme imajları kaldırılmaz.";
-"Configuration changes take effect after the Virtual Mac is shut down and started again." = "Yapılandırma değişiklikleri Virtual Mac kapatılıp yeniden başlatıldıktan sonra geçerli olur.";
"Configuration failed: %@" = "Yapılandırma başarısız: %@";
"Configure %@" = "%@ Aygıtını Yapılandır";
"Continue" = "Sürdür";
@@ -58,7 +61,7 @@
"Create Virtual Mac" = "Sanal Mac Oluştur";
"Custom" = "Özel";
"Debug Logging" = "Hata ayıklama günlüğü";
-"Debug Logging has been enabled. You can turn it off later in Settings." = "Hata ayıklama günlükleri etkinleştirildi. Daha sonra Ayarlar’dan kapatabilirsiniz.";
+"Debug logging has been enabled for the next boot." = "Hata ayıklama günlüğü bir sonraki başlatma için açıldı.";
"Debug Logging takes effect the next time a Virtual Mac starts." = "Hata Ayıklama Günlüğü, Virtual Mac bir sonraki kez başlatıldığında etkinleşir.";
"Delete" = "Sil";
"Delete All" = "Tümünü Sil";
@@ -82,7 +85,12 @@
"Display Resolution" = "Ekran Çözünürlüğü";
"Display Width" = "Ekran Genişliği";
"Double-tap to hold or release this modifier" = "Bu niteleyiciyi basılı tutmak veya bırakmak için çift dokunun";
+"Download Apple Pencil Support" = "Apple Pencil Desteğini İndir";
"Download Failed" = "İndirme Başarısız";
+"Download Final Cut Pro Trial" = "Final Cut Pro Deneme Sürümünü İndir";
+"Download Logic Pro Trial" = "Logic Pro Deneme Sürümünü İndir";
+"Download Pixelmator Pro Trial" = "Pixelmator Pro Deneme Sürümünü İndir";
+"Download Xcode" = "Xcode’u İndir";
"Downloading macOS" = "macOS İndiriliyor";
"Enter six hexadecimal octets separated by colons." = "İki noktayla ayrılmış altı onaltılık sekizli girin.";
"Ethernet (%@)" = "Ethernet (%@)";
@@ -122,6 +130,7 @@
"Keep Virtual Mac open. Your iPad will remain awake until the download finishes." = "Virtual Mac’i açık tutun. İndirme tamamlanana kadar iPad’iniz uyanık kalacak.";
"Keyboard" = "Klavye";
"Landscape iPad" = "Yatay iPad";
+"Learn More" = "Daha Fazla Bilgi";
"Library Appearance" = "Arşiv Görünümü";
"Loading extracted Apple virtualization frameworks…" = "Çıkarılan Apple sanallaştırma framework’leri yükleniyor…";
"MAC Address" = "MAC Adresi";
@@ -130,6 +139,7 @@
"Mac Trackpad" = "Mac İzleme Dörtgeni";
"macOS Installed" = "macOS Kuruldu";
"Memory" = "Bellek";
+"Metal BC Support" = "Metal BC Desteği";
"Microphone Input" = "Mikrofon Girişi";
"Minimum: %llu GB. The upper limit is determined by the filesystem." = "Minimum: %llu GB. Üst sınırı dosya sistemi belirler.";
"Move Controls" = "Denetimleri Taşı";
@@ -145,10 +155,15 @@
"Off" = "Kapalı";
"OK" = "Tamam";
"On" = "Açık";
+"On for Next Boot" = "Sonraki Başlatmada Açık";
"Only about %llu GB is currently available. The disk image is sparse, but installation or later use can fail when storage fills up." = "Şu anda yalnızca yaklaşık %llu GB kullanılabilir. Disk imajı seyrektir ancak depolama dolarsa kurulum veya sonraki kullanım başarısız olabilir.";
"Open Control Center and start Screen Recording, then reproduce the problem." = "Denetim Merkezi’ni açın, Ekran Kaydı’nı başlatın ve ardından sorunu yeniden oluşturun.";
+"OpenGL Acceleration" = "OpenGL Hızlandırma";
+"OpenGL Acceleration Is Off" = "OpenGL Hızlandırma Kapalı";
+"OpenGL Acceleration requires macOS Sonoma or later." = "OpenGL hızlandırma için macOS Sonoma veya daha yenisi gerekir.";
"Optional" = "İsteğe bağlı";
"Options" = "Seçenekler";
+"Out of Video Memory" = "Video Belleği Tükendi";
"People have dreamed of running macOS on iPad for more than a decade. Today, that dream comes true. Create a Virtual Mac to get started." = "İnsanlar on yılı aşkın süredir iPad’de macOS çalıştırmanın hayalini kuruyor. Bugün bu hayal gerçek oluyor. Başlamak için bir sanal Mac oluşturun.";
"Pixels Per Inch" = "İnç Başına Piksel";
"Pointing Device" = "İşaretleme Aygıtı";
@@ -220,11 +235,14 @@
"These options affect iPadOS only while Virtual Mac is frontmost and a Virtual Mac is running." = "Bu seçenekler iPadOS’i yalnızca Sanal Mac öndeyken ve bir sanal Mac çalışırken etkiler.";
"This restores all Virtual Mac settings to their defaults. Virtual Macs, restore images, and installation files won’t be removed." = "Bu, tüm Virtual Mac ayarlarını saptanmış değerlere sıfırlar. Sanal Mac’ler, geri yükleme imajları ve kurulum dosyaları kaldırılmaz.";
"this Virtual Mac" = "bu Sanal Mac";
+"To enable OpenGL acceleration, shut down this Virtual Mac, then in its options, enable OpenGL Acceleration." = "OpenGL hızlandırmayı açmak için bu Virtual Mac’i kapatın, ardından seçeneklerinden OpenGL Hızlandırma’yı açın.";
"To show the controls, touch and hold the Virtual Mac icon on the Home Screen, then choose Show Virtual Mac Controls." = "Denetimleri göstermek için Ana Ekran’daki Virtual Mac simgesine dokunup basılı tutun, ardından Virtual Mac Denetimlerini Göster’i seçin.";
+"To use Apple Pencil pressure and tilt, download pencil-probe in %@ Virtual Mac." = "Apple Pencil basıncını ve eğimini kullanmak için pencil-probe’u %@ Sanal Mac’e indirin.";
"Top Left" = "Sol Üst";
"Top Right" = "Sağ Üst";
"Touch" = "Dokunma";
"Touch and Hold to Secondary Click" = "İkincil Tıklama için Dokunup Basılı Tutun";
+"Turn Off Virtual Mac Guest Tools?" = "Virtual Mac Konuk Araçları Kapatılsın mı?";
"Two Finger Tap to Secondary Click" = "İkincil Tıklama için İki Parmakla Dokunma";
"Unknown" = "Bilinmeyen";
"Unsaved changes in macOS may be lost." = "macOS’te kaydedilmemiş değişiklikler kaybolabilir.";
@@ -245,6 +263,7 @@
"Virtual Mac devices are stored in %@." = "Sanal Mac’ler %@ içinde saklanır.";
"Virtual Mac Display" = "Sanal Mac Ekranı";
"Virtual Mac does not support the Dopamine-roothide environment. Remove the roothide jailbreak from Dopamine-roothide > Settings > Remove Jailbreak, then switch to the official version of Dopamine." = "Virtual Mac, Dopamine-roothide ortamını desteklemez. Dopamine-roothide > Ayarlar > Jailbreak’i Kaldır yolundan roothide jailbreak’ini kaldırın, ardından Dopamine’in resmi sürümüne geçin.";
+"Virtual Mac Guest Tools" = "Sanal Mac Konuk Araçları";
"Virtual Mac has no published framebuffer" = "Sanal Mac’in yayımlanmış framebuffer’ı yok";
"Virtual Mac running — native PVG framebuffer attached" = "Sanal Mac çalışıyor — yerel PVG framebuffer bağlı";
"Virtual Mac running — preparing native PVG display" = "Sanal Mac çalışıyor — yerel PVG ekran hazırlanıyor";
diff --git a/VirtualMac/resources/Localizations/uk.lproj/Localizable.strings b/VirtualMac/resources/Localizations/uk.lproj/Localizable.strings
index 99aa28b..ddf4567 100644
--- a/VirtualMac/resources/Localizations/uk.lproj/Localizable.strings
+++ b/VirtualMac/resources/Localizations/uk.lproj/Localizable.strings
@@ -2,6 +2,7 @@
"%.0f%% complete" = "Виконано %.0f%%";
"%@ CPU · %@ GB RAM · %llu GB · %@%@" = "%@ ЦП · %@ ГБ ОЗУ · %llu ГБ · %@%@";
"%@ is not supported" = "%@ не підтримується";
+"%@ is out of video memory. macOS may appear frozen." = "У %@ закінчилася відеопам’ять. macOS може виглядати завислою.";
"%@ may encounter performance or graphical issues. For the best experience, use macOS Ventura, macOS Sonoma, or macOS Sequoia.\n\nIf transparency effects cause visual problems, turn on Reduce Transparency in System Settings > Accessibility > Display." = "У %@ можливі проблеми з продуктивністю або графікою. Для найкращої роботи використовуйте macOS Ventura, macOS Sonoma або macOS Sequoia.\n\nЯкщо ефекти прозорості спричиняють проблеми з відображенням, увімкніть «Зменшення прозорості» в меню «Системні параметри» > «Доступність» > «Дисплей».";
"%@ remaining" = "Залишилося: %@";
"%@\nState: %@\n%@\n\n" = "%@\nСостояние: %@\n%@\n\n";
@@ -15,12 +16,15 @@
"Add Shared Folder" = "Добавить общую папку";
"Advanced" = "Додатково";
"Allowed: %llu–%llu%@" = "Допустимо: %llu–%llu%@";
+"Always On" = "Завжди ввімкнено";
"Another usbmuxd service took control of the virtual DFU device before it entered RestoreOS. Uninstall usbmuxd from Sileo and try again." = "Інша служба usbmuxd перехопила віртуальний пристрій DFU до переходу в RestoreOS. Видаліть usbmuxd у Sileo й повторіть спробу.";
"Another Virtual Mac Is Running" = "Уже запущений другой віртуальний Mac";
+"Apple Pencil Pressure and Tilt" = "Натиск і нахил Apple Pencil";
"Audio and Acceleration" = "Аудіо та прискорення";
"Audio Output" = "Аудіовихід";
"Available macOS Releases" = "Доступні випуски macOS";
"Available macOS Versions" = "Доступні версії macOS";
+"Because OpenGL acceleration requires Virtual Mac guest tools, turning off Virtual Mac guest tools will also turn off OpenGL acceleration. Apps such as Final Cut Pro mostly use Metal, but they check for OpenGL capabilities in order to launch." = "Оскільки для прискорення OpenGL потрібні гостьові інструменти Virtual Mac, їх вимкнення також вимкне прискорення OpenGL. Програми на зразок Final Cut Pro переважно використовують Metal, але для запуску перевіряють можливості OpenGL.";
"Boot and Network" = "Запуск і мережа";
"Bottom Left" = "Сліва внизу";
"Bottom Right" = "Справа внизу";
@@ -42,7 +46,6 @@
"Choose whether Virtual Mac opens its library or starts a Virtual Mac." = "Виберіть, чи відкривати бібліотеку, чи запускати віртуальний Mac під час відкриття програми.";
"Compatibility" = "Сумісність";
"Complete Virtual Mac devices and restore images outside Virtual Mac are not removed." = "Готові віртуальні Mac та образи відновлення поза програмою Virtual Mac не видалятимуться.";
-"Configuration changes take effect after the Virtual Mac is shut down and started again." = "Зміни конфігурації набудуть чинності після вимкнення й повторного запуску Virtual Mac.";
"Configuration failed: %@" = "Помилка конфигурации: %@";
"Configure %@" = "Настроить %@";
"Continue" = "Продовжити";
@@ -58,7 +61,7 @@
"Create Virtual Mac" = "Створити Віртуальний Mac";
"Custom" = "Пользовательская";
"Debug Logging" = "Журналювання налагодження";
-"Debug Logging has been enabled. You can turn it off later in Settings." = "Журналювання налагодження ввімкнено. Його можна вимкнути пізніше в Параметрах.";
+"Debug logging has been enabled for the next boot." = "Журнал налагодження ввімкнено для наступного запуску.";
"Debug Logging takes effect the next time a Virtual Mac starts." = "Журнал налагодження буде ввімкнено під час наступного запуску Virtual Mac.";
"Delete" = "Видалити";
"Delete All" = "Видалити все";
@@ -82,7 +85,12 @@
"Display Resolution" = "Разрешение дисплея";
"Display Width" = "Ширина дисплея";
"Double-tap to hold or release this modifier" = "Двічі торкніться, щоб зафіксувати або відпустити цю клавішу-модифікатор";
+"Download Apple Pencil Support" = "Завантажити підтримку Apple Pencil";
"Download Failed" = "Помилка завантаження";
+"Download Final Cut Pro Trial" = "Завантажити пробну версію Final Cut Pro";
+"Download Logic Pro Trial" = "Завантажити пробну версію Logic Pro";
+"Download Pixelmator Pro Trial" = "Завантажити пробну версію Pixelmator Pro";
+"Download Xcode" = "Завантажити Xcode";
"Downloading macOS" = "Завантаження macOS";
"Enter six hexadecimal octets separated by colons." = "Введіть шість шістнадцяткових октетів, розділених двокрапками.";
"Ethernet (%@)" = "Ethernet (%@)";
@@ -122,6 +130,7 @@
"Keep Virtual Mac open. Your iPad will remain awake until the download finishes." = "Не закривайте «Віртуальний Mac». iPad не перейде в режим сну до завершення завантаження.";
"Keyboard" = "Клавіатура";
"Landscape iPad" = "iPad в альбомній орієнтації";
+"Learn More" = "Докладніше";
"Library Appearance" = "Вид библиотеки";
"Loading extracted Apple virtualization frameworks…" = "Завантаження видобутих фреймворків віртуалізації Apple…";
"MAC Address" = "MAC Адрес";
@@ -130,6 +139,7 @@
"Mac Trackpad" = "Трекпад Mac";
"macOS Installed" = "macOS інстальована";
"Memory" = "Пам’ять";
+"Metal BC Support" = "Підтримка Metal BC";
"Microphone Input" = "Вход микрофона";
"Minimum: %llu GB. The upper limit is determined by the filesystem." = "Минимум: %llu ГБ. Верхний предел определяется файловой системой.";
"Move Controls" = "Перемістити елементи керування";
@@ -145,10 +155,15 @@
"Off" = "Вимк.";
"OK" = "OK";
"On" = "Увімк.";
+"On for Next Boot" = "Увімкнено для наступного запуску";
"Only about %llu GB is currently available. The disk image is sparse, but installation or later use can fail when storage fills up." = "Зараз доступно лише близько %llu ГБ. Образ диска динамічний, але інсталяція або подальше використання можуть завершитися помилкою, якщо сховище заповниться.";
"Open Control Center and start Screen Recording, then reproduce the problem." = "Відкрийте Центр керування, почніть запис екрана, а потім відтворіть проблему.";
+"OpenGL Acceleration" = "Прискорення OpenGL";
+"OpenGL Acceleration Is Off" = "Прискорення OpenGL вимкнено";
+"OpenGL Acceleration requires macOS Sonoma or later." = "Для прискорення OpenGL потрібна macOS Sonoma або новіша версія.";
"Optional" = "Необов’язково";
"Options" = "Параметри";
+"Out of Video Memory" = "Відеопам’ять вичерпано";
"People have dreamed of running macOS on iPad for more than a decade. Today, that dream comes true. Create a Virtual Mac to get started." = "Понад десять років люди мріяли запустити macOS на iPad. Сьогодні ця мрія збувається. Щоб почати, створіть віртуальний Mac.";
"Pixels Per Inch" = "Пикселей на дюйм";
"Pointing Device" = "Пристрій указания";
@@ -220,11 +235,14 @@
"These options affect iPadOS only while Virtual Mac is frontmost and a Virtual Mac is running." = "Ці параметри впливають на iPadOS лише тоді, коли Віртуальний Mac на передньому плані й запущено віртуальний Mac.";
"This restores all Virtual Mac settings to their defaults. Virtual Macs, restore images, and installation files won’t be removed." = "Усі параметри програми буде скинуто. Віртуальні Mac, образи відновлення та інсталяційні файли не видалятимуться.";
"this Virtual Mac" = "цей віртуальний Mac";
+"To enable OpenGL acceleration, shut down this Virtual Mac, then in its options, enable OpenGL Acceleration." = "Щоб увімкнути прискорення OpenGL, вимкніть цей Virtual Mac, а потім увімкніть його в параметрах.";
"To show the controls, touch and hold the Virtual Mac icon on the Home Screen, then choose Show Virtual Mac Controls." = "Щоб показати елементи керування, торкніться й утримуйте іконку Virtual Mac на початковому екрані, а потім виберіть «Показати елементи керування Virtual Mac».";
+"To use Apple Pencil pressure and tilt, download pencil-probe in %@ Virtual Mac." = "Щоб використовувати натиск і нахил Apple Pencil, завантажте pencil-probe на віртуальний Mac %@.";
"Top Left" = "Сліва вверху";
"Top Right" = "Справа вверху";
"Touch" = "Дотик";
"Touch and Hold to Secondary Click" = "Торкніться й утримуйте для вторинного клацання";
+"Turn Off Virtual Mac Guest Tools?" = "Вимкнути гостьові інструменти Virtual Mac?";
"Two Finger Tap to Secondary Click" = "Торкніться двома пальцями для додаткового клацання";
"Unknown" = "Невідомо";
"Unsaved changes in macOS may be lost." = "Незбережені зміни в macOS може бути втрачено.";
@@ -245,6 +263,7 @@
"Virtual Mac devices are stored in %@." = "Віртуальні Mac зберігаються в %@.";
"Virtual Mac Display" = "Дисплей Віртуального Mac";
"Virtual Mac does not support the Dopamine-roothide environment. Remove the roothide jailbreak from Dopamine-roothide > Settings > Remove Jailbreak, then switch to the official version of Dopamine." = "Virtual Mac не підтримує середовище Dopamine-roothide. Видаліть джейлбрейк roothide у Dopamine-roothide > Параметри > Видалити джейлбрейк, а потім перейдіть на офіційну версію Dopamine.";
+"Virtual Mac Guest Tools" = "Гостьові інструменти Віртуального Mac";
"Virtual Mac has no published framebuffer" = "Віртуальний Mac не опублікував кадровий буфер";
"Virtual Mac running — native PVG framebuffer attached" = "Віртуальний Mac працює — під’єднано нативний кадровий буфер PVG";
"Virtual Mac running — preparing native PVG display" = "Віртуальний Mac работает — підготовка нативного дисплея PVG";
diff --git a/VirtualMac/resources/Localizations/vi.lproj/Localizable.strings b/VirtualMac/resources/Localizations/vi.lproj/Localizable.strings
index 9f00387..c218050 100644
--- a/VirtualMac/resources/Localizations/vi.lproj/Localizable.strings
+++ b/VirtualMac/resources/Localizations/vi.lproj/Localizable.strings
@@ -2,6 +2,7 @@
"%.0f%% complete" = "Đã hoàn tất %.0f%%";
"%@ CPU · %@ GB RAM · %llu GB · %@%@" = "%@ CPU · %@ GB RAM · %llu GB · %@%@";
"%@ is not supported" = "%@ không được hỗ trợ";
+"%@ is out of video memory. macOS may appear frozen." = "%@ đã hết bộ nhớ video. macOS có thể trông như bị treo.";
"%@ may encounter performance or graphical issues. For the best experience, use macOS Ventura, macOS Sonoma, or macOS Sequoia.\n\nIf transparency effects cause visual problems, turn on Reduce Transparency in System Settings > Accessibility > Display." = "%@ có thể gặp vấn đề về hiệu năng hoặc đồ họa. Để có trải nghiệm tốt nhất, hãy dùng macOS Ventura, macOS Sonoma hoặc macOS Sequoia.\n\nNếu hiệu ứng trong suốt gây ra vấn đề hiển thị, hãy bật Giảm độ trong suốt trong Cài đặt hệ thống > Trợ năng > Màn hình.";
"%@ remaining" = "Còn lại %@";
"%@\nState: %@\n%@\n\n" = "%@\nTrạng thái: %@\n%@\n\n";
@@ -15,12 +16,15 @@
"Add Shared Folder" = "Thêm thư mục được chia sẻ";
"Advanced" = "Nâng cao";
"Allowed: %llu–%llu%@" = "Cho phép: %llu–%llu%@";
+"Always On" = "Luôn bật";
"Another usbmuxd service took control of the virtual DFU device before it entered RestoreOS. Uninstall usbmuxd from Sileo and try again." = "Một dịch vụ usbmuxd khác đã giành quyền điều khiển thiết bị DFU ảo trước khi thiết bị vào RestoreOS. Hãy gỡ usbmuxd trong Sileo rồi thử lại.";
"Another Virtual Mac Is Running" = "Một máy Mac ảo khác đang chạy";
+"Apple Pencil Pressure and Tilt" = "Lực nhấn và độ nghiêng của Apple Pencil";
"Audio and Acceleration" = "Âm thanh và tăng tốc";
"Audio Output" = "Đầu ra âm thanh";
"Available macOS Releases" = "Các bản phát hành macOS có sẵn";
"Available macOS Versions" = "Các phiên bản macOS khả dụng";
+"Because OpenGL acceleration requires Virtual Mac guest tools, turning off Virtual Mac guest tools will also turn off OpenGL acceleration. Apps such as Final Cut Pro mostly use Metal, but they check for OpenGL capabilities in order to launch." = "Vì tăng tốc OpenGL cần công cụ máy khách Virtual Mac, việc tắt công cụ máy khách cũng sẽ tắt tăng tốc OpenGL. Các ứng dụng như Final Cut Pro chủ yếu dùng Metal nhưng vẫn kiểm tra khả năng OpenGL để khởi chạy.";
"Boot and Network" = "Khởi động và mạng";
"Bottom Left" = "Dưới cùng bên trái";
"Bottom Right" = "Dưới cùng bên phải";
@@ -42,7 +46,6 @@
"Choose whether Virtual Mac opens its library or starts a Virtual Mac." = "Chọn mở thư viện hay khởi động một máy Mac ảo khi mở Virtual Mac.";
"Compatibility" = "Khả năng tương thích";
"Complete Virtual Mac devices and restore images outside Virtual Mac are not removed." = "Các máy Mac ảo hoàn chỉnh và ảnh khôi phục nằm ngoài Virtual Mac sẽ không bị xóa.";
-"Configuration changes take effect after the Virtual Mac is shut down and started again." = "Các thay đổi cấu hình có hiệu lực sau khi tắt và khởi động lại Virtual Mac.";
"Configuration failed: %@" = "Cấu hình không thành công: %@";
"Configure %@" = "Định cấu hình %@";
"Continue" = "Tiếp tục";
@@ -58,7 +61,7 @@
"Create Virtual Mac" = "Tạo Máy Mac ảo";
"Custom" = "Tùy chỉnh";
"Debug Logging" = "Ghi nhật ký gỡ lỗi";
-"Debug Logging has been enabled. You can turn it off later in Settings." = "Tính năng ghi nhật ký gỡ lỗi đã được bật. Bạn có thể tắt tính năng này sau trong Cài đặt.";
+"Debug logging has been enabled for the next boot." = "Đã bật ghi nhật ký gỡ lỗi cho lần khởi động tiếp theo.";
"Debug Logging takes effect the next time a Virtual Mac starts." = "Ghi nhật ký gỡ lỗi sẽ có hiệu lực vào lần khởi động Virtual Mac tiếp theo.";
"Delete" = "Xóa";
"Delete All" = "Xóa tất cả";
@@ -82,7 +85,12 @@
"Display Resolution" = "Độ phân giải màn hình";
"Display Width" = "Chiều rộng màn hình";
"Double-tap to hold or release this modifier" = "Chạm hai lần để giữ hoặc nhả phím bổ trợ này";
+"Download Apple Pencil Support" = "Tải về hỗ trợ Apple Pencil";
"Download Failed" = "Tải về không thành công";
+"Download Final Cut Pro Trial" = "Tải về bản dùng thử Final Cut Pro";
+"Download Logic Pro Trial" = "Tải về bản dùng thử Logic Pro";
+"Download Pixelmator Pro Trial" = "Tải về bản dùng thử Pixelmator Pro";
+"Download Xcode" = "Tải về Xcode";
"Downloading macOS" = "Đang tải về macOS";
"Enter six hexadecimal octets separated by colons." = "Nhập sáu octet thập lục phân, phân tách bằng dấu hai chấm.";
"Ethernet (%@)" = "Ethernet (%@)";
@@ -122,6 +130,7 @@
"Keep Virtual Mac open. Your iPad will remain awake until the download finishes." = "Hãy để Virtual Mac mở. iPad của bạn sẽ không ngủ cho đến khi tải xuống xong.";
"Keyboard" = "Bàn phím";
"Landscape iPad" = "iPad ngang";
+"Learn More" = "Tìm hiểu thêm";
"Library Appearance" = "Giao diện thư viện";
"Loading extracted Apple virtualization frameworks…" = "Đang tải các framework ảo hóa Apple đã trích xuất…";
"MAC Address" = "Địa chỉ MAC";
@@ -130,6 +139,7 @@
"Mac Trackpad" = "Bàn di chuột Mac";
"macOS Installed" = "Đã cài đặt macOS";
"Memory" = "Bộ nhớ";
+"Metal BC Support" = "Hỗ trợ Metal BC";
"Microphone Input" = "Đầu vào micrô";
"Minimum: %llu GB. The upper limit is determined by the filesystem." = "Tối thiểu: %llu GB. Giới hạn trên do hệ thống tệp quyết định.";
"Move Controls" = "Di chuyển nút điều khiển";
@@ -145,10 +155,15 @@
"Off" = "Tắt";
"OK" = "OK";
"On" = "Bật";
+"On for Next Boot" = "Bật cho lần khởi động tiếp theo";
"Only about %llu GB is currently available. The disk image is sparse, but installation or later use can fail when storage fills up." = "Hiện chỉ có khoảng %llu GB khả dụng. Ảnh đĩa là dạng động, nhưng cài đặt hoặc sử dụng sau này có thể thất bại nếu hết dung lượng.";
"Open Control Center and start Screen Recording, then reproduce the problem." = "Mở Trung tâm điều khiển, bắt đầu Ghi màn hình rồi tái hiện sự cố.";
+"OpenGL Acceleration" = "Tăng tốc OpenGL";
+"OpenGL Acceleration Is Off" = "Tăng tốc OpenGL đang tắt";
+"OpenGL Acceleration requires macOS Sonoma or later." = "Tăng tốc OpenGL yêu cầu macOS Sonoma trở lên.";
"Optional" = "Không bắt buộc";
"Options" = "Tùy chọn";
+"Out of Video Memory" = "Đã hết bộ nhớ video";
"People have dreamed of running macOS on iPad for more than a decade. Today, that dream comes true. Create a Virtual Mac to get started." = "Trong hơn một thập kỷ, mọi người đã mơ ước chạy macOS trên iPad. Hôm nay, giấc mơ đó đã thành hiện thực. Hãy tạo một Máy Mac ảo để bắt đầu.";
"Pixels Per Inch" = "Pixel trên mỗi inch";
"Pointing Device" = "Thiết bị trỏ";
@@ -220,11 +235,14 @@
"These options affect iPadOS only while Virtual Mac is frontmost and a Virtual Mac is running." = "Các tùy chọn này chỉ ảnh hưởng đến iPadOS khi Máy Mac ảo ở phía trước và Máy Mac ảo đang chạy.";
"This restores all Virtual Mac settings to their defaults. Virtual Macs, restore images, and installation files won’t be removed." = "Thao tác này đặt lại tất cả cài đặt Virtual Mac về mặc định. Máy Mac ảo, ảnh khôi phục và tệp cài đặt sẽ không bị xóa.";
"this Virtual Mac" = "máy Mac ảo này";
+"To enable OpenGL acceleration, shut down this Virtual Mac, then in its options, enable OpenGL Acceleration." = "Để bật tăng tốc OpenGL, hãy tắt Virtual Mac này rồi bật Tăng tốc OpenGL trong tùy chọn của máy.";
"To show the controls, touch and hold the Virtual Mac icon on the Home Screen, then choose Show Virtual Mac Controls." = "Để hiển thị các điều khiển, hãy chạm và giữ biểu tượng Virtual Mac trên Màn hình chính, sau đó chọn Hiển thị điều khiển Virtual Mac.";
+"To use Apple Pencil pressure and tilt, download pencil-probe in %@ Virtual Mac." = "Để sử dụng lực nhấn và độ nghiêng của Apple Pencil, hãy tải pencil-probe xuống máy Mac ảo %@.";
"Top Left" = "Trên cùng bên trái";
"Top Right" = "Trên cùng bên phải";
"Touch" = "Cảm ứng";
"Touch and Hold to Secondary Click" = "Chạm và giữ cho lần nhấp phụ";
+"Turn Off Virtual Mac Guest Tools?" = "Tắt công cụ máy khách Virtual Mac?";
"Two Finger Tap to Secondary Click" = "Nhấn bằng hai ngón tay để nhấp chuột phụ";
"Unknown" = "Không xác định";
"Unsaved changes in macOS may be lost." = "Các thay đổi chưa lưu trong macOS có thể bị mất.";
@@ -245,6 +263,7 @@
"Virtual Mac devices are stored in %@." = "Các Máy Mac ảo được lưu trong %@.";
"Virtual Mac Display" = "Màn hình Máy Mac ảo";
"Virtual Mac does not support the Dopamine-roothide environment. Remove the roothide jailbreak from Dopamine-roothide > Settings > Remove Jailbreak, then switch to the official version of Dopamine." = "Virtual Mac không hỗ trợ môi trường Dopamine-roothide. Hãy gỡ bản bẻ khóa roothide trong Dopamine-roothide > Cài đặt > Gỡ Jailbreak, sau đó chuyển sang phiên bản Dopamine chính thức.";
+"Virtual Mac Guest Tools" = "Công cụ máy khách cho Máy Mac ảo";
"Virtual Mac has no published framebuffer" = "Máy Mac ảo không có framebuffer được công bố";
"Virtual Mac running — native PVG framebuffer attached" = "Máy Mac ảo đang chạy — đã gắn framebuffer PVG gốc";
"Virtual Mac running — preparing native PVG display" = "Máy Mac ảo đang chạy — đang chuẩn bị màn hình PVG gốc";
diff --git a/VirtualMac/resources/Localizations/zh_CN.lproj/Localizable.strings b/VirtualMac/resources/Localizations/zh_CN.lproj/Localizable.strings
index cf73007..a01cd54 100644
--- a/VirtualMac/resources/Localizations/zh_CN.lproj/Localizable.strings
+++ b/VirtualMac/resources/Localizations/zh_CN.lproj/Localizable.strings
@@ -2,6 +2,7 @@
"%.0f%% complete" = "已完成%.0f%%";
"%@ CPU · %@ GB RAM · %llu GB · %@%@" = "%@核CPU · %@ GB内存 · %llu GB · %@%@";
"%@ is not supported" = "不支持%@";
+"%@ is out of video memory. macOS may appear frozen." = "%@显存不足。macOS画面可能卡住。";
"%@ may encounter performance or graphical issues. For the best experience, use macOS Ventura, macOS Sonoma, or macOS Sequoia.\n\nIf transparency effects cause visual problems, turn on Reduce Transparency in System Settings > Accessibility > Display." = "%@可能会遇到图形和性能问题。建议使用macOS Ventura、macOS Sonoma或macOS Sequoia,以获得最佳体验。\n\n如果透明效果导致显示异常,请前往系统设置 > 辅助功能 > 显示,开启降低透明度。";
"%@ remaining" = "剩余%@";
"%@\nState: %@\n%@\n\n" = "%@\n状态:%@\n%@\n\n";
@@ -15,12 +16,15 @@
"Add Shared Folder" = "添加共享文件夹";
"Advanced" = "高级";
"Allowed: %llu–%llu%@" = "允许范围:%llu–%llu%@";
+"Always On" = "始终开启";
"Another usbmuxd service took control of the virtual DFU device before it entered RestoreOS. Uninstall usbmuxd from Sileo and try again." = "另一个usbmuxd服务在虚拟DFU设备进入RestoreOS前取得了控制权。请从Sileo卸载usbmuxd后重试。";
"Another Virtual Mac Is Running" = "另一台虚拟Mac正在运行";
+"Apple Pencil Pressure and Tilt" = "Apple Pencil压感与倾斜";
"Audio and Acceleration" = "音频与加速";
"Audio Output" = "音频输出";
"Available macOS Releases" = "可用的macOS版本";
"Available macOS Versions" = "可用的macOS版本";
+"Because OpenGL acceleration requires Virtual Mac guest tools, turning off Virtual Mac guest tools will also turn off OpenGL acceleration. Apps such as Final Cut Pro mostly use Metal, but they check for OpenGL capabilities in order to launch." = "OpenGL加速需要虚拟Mac客体工具,因此关闭客体工具也会关闭OpenGL加速。Final Cut Pro等app主要使用Metal,但启动时仍会检查OpenGL功能。";
"Boot and Network" = "启动与网络";
"Bottom Left" = "左下角";
"Bottom Right" = "右下角";
@@ -42,7 +46,6 @@
"Choose whether Virtual Mac opens its library or starts a Virtual Mac." = "选择打开虚拟Mac时显示资料库还是启动一台虚拟Mac。";
"Compatibility" = "兼容性";
"Complete Virtual Mac devices and restore images outside Virtual Mac are not removed." = "不会删除完整的虚拟Mac,也不会删除虚拟Mac文件夹之外的恢复镜像。";
-"Configuration changes take effect after the Virtual Mac is shut down and started again." = "配置更改将在关闭并重新启动虚拟Mac后生效。";
"Configuration failed: %@" = "配置失败:%@";
"Configure %@" = "配置%@";
"Continue" = "继续";
@@ -58,7 +61,7 @@
"Create Virtual Mac" = "创建虚拟Mac";
"Custom" = "自定义";
"Debug Logging" = "调试日志";
-"Debug Logging has been enabled. You can turn it off later in Settings." = "调试日志记录已启用。可稍后在设置中将其关闭。";
+"Debug logging has been enabled for the next boot." = "已为下次启动开启调试日志。";
"Debug Logging takes effect the next time a Virtual Mac starts." = "调试日志将在下次启动虚拟Mac时生效。";
"Delete" = "删除";
"Delete All" = "全部删除";
@@ -82,7 +85,12 @@
"Display Resolution" = "显示分辨率";
"Display Width" = "显示宽度";
"Double-tap to hold or release this modifier" = "轻点两下以锁定或释放此修饰键";
+"Download Apple Pencil Support" = "下载Apple Pencil支持";
"Download Failed" = "下载失败";
+"Download Final Cut Pro Trial" = "下载Final Cut Pro试用版";
+"Download Logic Pro Trial" = "下载Logic Pro试用版";
+"Download Pixelmator Pro Trial" = "下载Pixelmator Pro试用版";
+"Download Xcode" = "下载Xcode";
"Downloading macOS" = "正在下载macOS";
"Enter six hexadecimal octets separated by colons." = "输入六组以冒号分隔的十六进制数。";
"Ethernet (%@)" = "以太网(%@)";
@@ -122,6 +130,7 @@
"Keep Virtual Mac open. Your iPad will remain awake until the download finishes." = "请保持虚拟Mac打开。下载时iPad将保持唤醒。";
"Keyboard" = "键盘";
"Landscape iPad" = "iPad横向";
+"Learn More" = "了解更多";
"Library Appearance" = "资料库外观";
"Loading extracted Apple virtualization frameworks…" = "正在载入已提取的Apple虚拟化框架…";
"MAC Address" = "MAC地址";
@@ -130,6 +139,7 @@
"Mac Trackpad" = "Mac触控板";
"macOS Installed" = "macOS已安装";
"Memory" = "内存";
+"Metal BC Support" = "Metal BC支持";
"Microphone Input" = "麦克风输入";
"Minimum: %llu GB. The upper limit is determined by the filesystem." = "最小值:%llu GB。上限由文件系统决定。";
"Move Controls" = "移动控制项";
@@ -145,10 +155,15 @@
"Off" = "关闭";
"OK" = "好";
"On" = "打开";
+"On for Next Boot" = "下次启动时开启";
"Only about %llu GB is currently available. The disk image is sparse, but installation or later use can fail when storage fills up." = "目前仅约有%llu GB可用空间。磁盘镜像为稀疏格式,但存储空间耗尽时,安装或后续使用仍可能失败。";
"Open Control Center and start Screen Recording, then reproduce the problem." = "打开控制中心并开始屏幕录制,然后重现问题。";
+"OpenGL Acceleration" = "OpenGL加速";
+"OpenGL Acceleration Is Off" = "OpenGL加速已关闭";
+"OpenGL Acceleration requires macOS Sonoma or later." = "OpenGL加速需要macOS Sonoma或更高版本。";
"Optional" = "可选";
"Options" = "选项";
+"Out of Video Memory" = "显存不足";
"People have dreamed of running macOS on iPad for more than a decade. Today, that dream comes true. Create a Virtual Mac to get started." = "十余年来,人们一直梦想着在iPad上运行macOS。今⁠天,这个梦想终于照进现实。创建虚拟Mac以开始。";
"Pixels Per Inch" = "每英寸像素数";
"Pointing Device" = "指针设备";
@@ -220,11 +235,14 @@
"These options affect iPadOS only while Virtual Mac is frontmost and a Virtual Mac is running." = "这些选项仅在虚拟Mac位于前台且虚拟Mac正在运行时影响iPadOS。";
"This restores all Virtual Mac settings to their defaults. Virtual Macs, restore images, and installation files won’t be removed." = "这会将虚拟Mac的所有设置还原为默认值,但不会删除虚拟Mac、恢复镜像或安装文件。";
"this Virtual Mac" = "此虚拟Mac";
+"To enable OpenGL acceleration, shut down this Virtual Mac, then in its options, enable OpenGL Acceleration." = "若要开启OpenGL加速,请将此虚拟Mac关机,然后在其选项中开启OpenGL加速。";
"To show the controls, touch and hold the Virtual Mac icon on the Home Screen, then choose Show Virtual Mac Controls." = "若要显示控制项,请在主屏幕上触摸并按住虚拟Mac图标,然后选择“显示虚拟Mac控制项”。";
+"To use Apple Pencil pressure and tilt, download pencil-probe in %@ Virtual Mac." = "要使用Apple Pencil压感与倾斜功能,请在%@虚拟Mac中下载pencil-probe。";
"Top Left" = "左上角";
"Top Right" = "右上角";
"Touch" = "触控";
"Touch and Hold to Secondary Click" = "触摸并按住以辅助点按";
+"Turn Off Virtual Mac Guest Tools?" = "关闭虚拟Mac客体工具?";
"Two Finger Tap to Secondary Click" = "两指轻点以辅助点按";
"Unknown" = "未知";
"Unsaved changes in macOS may be lost." = "macOS中未保存的更改可能会丢失。";
@@ -245,6 +263,7 @@
"Virtual Mac devices are stored in %@." = "虚拟Mac存储在%@。";
"Virtual Mac Display" = "虚拟Mac显示";
"Virtual Mac does not support the Dopamine-roothide environment. Remove the roothide jailbreak from Dopamine-roothide > Settings > Remove Jailbreak, then switch to the official version of Dopamine." = "虚拟Mac不支持Dopamine-roothide环境。请在Dopamine-roothide > 设置 > 移除越狱中移除roothide越狱,然后切换到官方版Dopamine。";
+"Virtual Mac Guest Tools" = "虚拟Mac增强工具";
"Virtual Mac has no published framebuffer" = "虚拟Mac未提供帧缓冲区";
"Virtual Mac running — native PVG framebuffer attached" = "虚拟Mac正在运行 — 已连接原生PVG帧缓冲区";
"Virtual Mac running — preparing native PVG display" = "虚拟Mac正在运行 — 正在准备原生PVG显示";
diff --git a/VirtualMac/resources/Localizations/zh_HK.lproj/Localizable.strings b/VirtualMac/resources/Localizations/zh_HK.lproj/Localizable.strings
index dff0062..f98a751 100644
--- a/VirtualMac/resources/Localizations/zh_HK.lproj/Localizable.strings
+++ b/VirtualMac/resources/Localizations/zh_HK.lproj/Localizable.strings
@@ -2,6 +2,7 @@
"%.0f%% complete" = "已完成%.0f%%";
"%@ CPU · %@ GB RAM · %llu GB · %@%@" = "%@核CPU · %@ GB內存 · %llu GB · %@%@";
"%@ is not supported" = "不支援%@";
+"%@ is out of video memory. macOS may appear frozen." = "%@的顯示記憶體不足。macOS畫面可能會停止回應。";
"%@ may encounter performance or graphical issues. For the best experience, use macOS Ventura, macOS Sonoma, or macOS Sequoia.\n\nIf transparency effects cause visual problems, turn on Reduce Transparency in System Settings > Accessibility > Display." = "%@可能會遇到圖像和效能問題。建議使用macOS Ventura、macOS Sonoma或macOS Sequoia,以獲得最佳體驗。\n\n如果透明效果導致顯示異常,請前往系統設定 > 輔助使用 > 顯示器,開啟減少透明度。";
"%@ remaining" = "尚餘%@";
"%@\nState: %@\n%@\n\n" = "%@\n狀態:%@\n%@\n\n";
@@ -15,12 +16,15 @@
"Add Shared Folder" = "添加共享文件夾";
"Advanced" = "進階";
"Allowed: %llu–%llu%@" = "允許範圍:%llu–%llu%@";
+"Always On" = "永遠開啟";
"Another usbmuxd service took control of the virtual DFU device before it entered RestoreOS. Uninstall usbmuxd from Sileo and try again." = "另一個usbmuxd服務在虛擬DFU設備進入RestoreOS前取得了控制權。請從Sileo卸載usbmuxd後重試。";
"Another Virtual Mac Is Running" = "另一台虛擬Mac正在運行";
+"Apple Pencil Pressure and Tilt" = "Apple Pencil壓力與傾斜";
"Audio and Acceleration" = "音頻與加速";
"Audio Output" = "音頻輸出";
"Available macOS Releases" = "可用的macOS版本";
"Available macOS Versions" = "可用的macOS版本";
+"Because OpenGL acceleration requires Virtual Mac guest tools, turning off Virtual Mac guest tools will also turn off OpenGL acceleration. Apps such as Final Cut Pro mostly use Metal, but they check for OpenGL capabilities in order to launch." = "OpenGL加速需要虛擬Mac訪客工具,因此關閉訪客工具亦會關閉OpenGL加速。Final Cut Pro等app主要使用Metal,但啟動時仍會檢查OpenGL功能。";
"Boot and Network" = "啓動與網絡";
"Bottom Left" = "左下角";
"Bottom Right" = "右下角";
@@ -42,7 +46,6 @@
"Choose whether Virtual Mac opens its library or starts a Virtual Mac." = "選擇打開虛擬Mac時顯示資料庫還是啓動一台虛擬Mac。";
"Compatibility" = "相容性";
"Complete Virtual Mac devices and restore images outside Virtual Mac are not removed." = "不會刪除完整的虛擬Mac,也不會刪除虛擬Mac文件夾之外的恢復鏡像。";
-"Configuration changes take effect after the Virtual Mac is shut down and started again." = "設定更改會在關閉並重新啟動虛擬Mac後生效。";
"Configuration failed: %@" = "配置失敗:%@";
"Configure %@" = "配置%@";
"Continue" = "繼續";
@@ -58,7 +61,7 @@
"Create Virtual Mac" = "建立虛擬Mac";
"Custom" = "自定義";
"Debug Logging" = "偵錯記錄";
-"Debug Logging has been enabled. You can turn it off later in Settings." = "偵錯記錄已啟用。可稍後在設定中將其關閉。";
+"Debug logging has been enabled for the next boot." = "已為下次啟動開啟除錯記錄。";
"Debug Logging takes effect the next time a Virtual Mac starts." = "除錯記錄會在下次啟動虛擬Mac時生效。";
"Delete" = "刪除";
"Delete All" = "全部刪除";
@@ -82,7 +85,12 @@
"Display Resolution" = "顯示分辨率";
"Display Width" = "顯示寬度";
"Double-tap to hold or release this modifier" = "輕點兩下以鎖定或釋放此修飾鍵";
+"Download Apple Pencil Support" = "下載Apple Pencil支援";
"Download Failed" = "下載失敗";
+"Download Final Cut Pro Trial" = "下載Final Cut Pro試用版";
+"Download Logic Pro Trial" = "下載Logic Pro試用版";
+"Download Pixelmator Pro Trial" = "下載Pixelmator Pro試用版";
+"Download Xcode" = "下載Xcode";
"Downloading macOS" = "正在下載macOS";
"Enter six hexadecimal octets separated by colons." = "輸入六組以冒號分隔的十六進制數。";
"Ethernet (%@)" = "以太網(%@)";
@@ -122,6 +130,7 @@
"Keep Virtual Mac open. Your iPad will remain awake until the download finishes." = "請保持虛擬Mac打開。下載完成前,你的iPad將保持喚醒。";
"Keyboard" = "鍵盤";
"Landscape iPad" = "iPad橫向";
+"Learn More" = "進一步了解";
"Library Appearance" = "資料庫外觀";
"Loading extracted Apple virtualization frameworks…" = "正在載入已提取的Apple虛擬化框架…";
"MAC Address" = "MAC地址";
@@ -130,6 +139,7 @@
"Mac Trackpad" = "Mac觸控板";
"macOS Installed" = "macOS已安裝";
"Memory" = "記憶體";
+"Metal BC Support" = "Metal BC支援";
"Microphone Input" = "麥克風輸入";
"Minimum: %llu GB. The upper limit is determined by the filesystem." = "最小值:%llu GB。上限由文件系統決定。";
"Move Controls" = "移動控制項";
@@ -145,10 +155,15 @@
"Off" = "關閉";
"OK" = "好";
"On" = "開啟";
+"On for Next Boot" = "下次啟動時開啟";
"Only about %llu GB is currently available. The disk image is sparse, but installation or later use can fail when storage fills up." = "目前僅約有%llu GB可用空間。磁盤鏡像為稀疏格式,但存儲空間耗盡時,安裝或後續使用仍可能失敗。";
"Open Control Center and start Screen Recording, then reproduce the problem." = "開啟控制中心並開始螢幕錄影,然後重現問題。";
+"OpenGL Acceleration" = "OpenGL加速";
+"OpenGL Acceleration Is Off" = "OpenGL加速已關閉";
+"OpenGL Acceleration requires macOS Sonoma or later." = "OpenGL加速需要macOS Sonoma或更新版本。";
"Optional" = "可選";
"Options" = "選項";
+"Out of Video Memory" = "顯示記憶體不足";
"People have dreamed of running macOS on iPad for more than a decade. Today, that dream comes true. Create a Virtual Mac to get started." = "十多年來,人們一直夢想在iPad上執行macOS。今⁠天,這個夢想終於成真。建立虛擬Mac以開始使用。";
"Pixels Per Inch" = "每英寸像素數";
"Pointing Device" = "指針設備";
@@ -220,11 +235,14 @@
"These options affect iPadOS only while Virtual Mac is frontmost and a Virtual Mac is running." = "這些選項只會在虛擬Mac位於最前方並正在執行時影響iPadOS。";
"This restores all Virtual Mac settings to their defaults. Virtual Macs, restore images, and installation files won’t be removed." = "這會將虛擬Mac的所有設置還原為默認值,但不會刪除虛擬Mac、恢復鏡像或安裝文件。";
"this Virtual Mac" = "此虛擬Mac";
+"To enable OpenGL acceleration, shut down this Virtual Mac, then in its options, enable OpenGL Acceleration." = "如要開啟OpenGL加速,請將此虛擬Mac關機,然後在其選項中開啟OpenGL加速。";
"To show the controls, touch and hold the Virtual Mac icon on the Home Screen, then choose Show Virtual Mac Controls." = "如要顯示控制項,請在主畫面觸碰並按住虛擬Mac圖示,然後選擇「顯示虛擬Mac控制項」。";
+"To use Apple Pencil pressure and tilt, download pencil-probe in %@ Virtual Mac." = "如要使用Apple Pencil壓力與傾斜功能,請在%@虛擬Mac中下載pencil-probe。";
"Top Left" = "左上角";
"Top Right" = "右上角";
"Touch" = "觸控";
"Touch and Hold to Secondary Click" = "觸碰並按住以使用輔助按鈕";
+"Turn Off Virtual Mac Guest Tools?" = "關閉虛擬Mac訪客工具?";
"Two Finger Tap to Secondary Click" = "用兩指點一下以使用輔助按鈕";
"Unknown" = "未知";
"Unsaved changes in macOS may be lost." = "macOS中未保存的更改可能會丟失。";
@@ -245,6 +263,7 @@
"Virtual Mac devices are stored in %@." = "虛擬Mac裝置儲存在%@。";
"Virtual Mac Display" = "虛擬Mac顯示器";
"Virtual Mac does not support the Dopamine-roothide environment. Remove the roothide jailbreak from Dopamine-roothide > Settings > Remove Jailbreak, then switch to the official version of Dopamine." = "虛擬Mac不支援Dopamine-roothide環境。請在Dopamine-roothide > 設定 > 移除越獄中移除roothide越獄,然後切換至官方版Dopamine。";
+"Virtual Mac Guest Tools" = "虛擬Mac增強工具";
"Virtual Mac has no published framebuffer" = "虛擬Mac未提供幀緩衝區";
"Virtual Mac running — native PVG framebuffer attached" = "虛擬Mac正在運行 — 已連接原生PVG幀緩衝區";
"Virtual Mac running — preparing native PVG display" = "虛擬Mac正在運行 — 正在準備原生PVG顯示";
diff --git a/VirtualMac/resources/Localizations/zh_TW.lproj/Localizable.strings b/VirtualMac/resources/Localizations/zh_TW.lproj/Localizable.strings
index fda78be..7d16a50 100644
--- a/VirtualMac/resources/Localizations/zh_TW.lproj/Localizable.strings
+++ b/VirtualMac/resources/Localizations/zh_TW.lproj/Localizable.strings
@@ -2,6 +2,7 @@
"%.0f%% complete" = "已完成%.0f%%";
"%@ CPU · %@ GB RAM · %llu GB · %@%@" = "%@核CPU · %@ GB記憶體 · %llu GB · %@%@";
"%@ is not supported" = "不支援%@";
+"%@ is out of video memory. macOS may appear frozen." = "%@的視訊記憶體不足。macOS畫面可能會凍結。";
"%@ may encounter performance or graphical issues. For the best experience, use macOS Ventura, macOS Sonoma, or macOS Sequoia.\n\nIf transparency effects cause visual problems, turn on Reduce Transparency in System Settings > Accessibility > Display." = "%@可能會遇到圖形和效能問題。建議使用macOS Ventura、macOS Sonoma或macOS Sequoia,以獲得最佳體驗。\n\n如果透明效果導致顯示異常,請前往系統設定 > 輔助使用 > 顯示器,開啟減少透明度。";
"%@ remaining" = "剩餘%@";
"%@\nState: %@\n%@\n\n" = "%@\n狀態:%@\n%@\n\n";
@@ -15,12 +16,15 @@
"Add Shared Folder" = "新增共享資料夾";
"Advanced" = "進階";
"Allowed: %llu–%llu%@" = "允許範圍:%llu–%llu%@";
+"Always On" = "永遠開啟";
"Another usbmuxd service took control of the virtual DFU device before it entered RestoreOS. Uninstall usbmuxd from Sileo and try again." = "另一個usbmuxd服務在虛擬DFU裝置進入RestoreOS前取得了控制權。請從Sileo解除安裝usbmuxd後重試。";
"Another Virtual Mac Is Running" = "另一臺虛擬Mac正在執行";
+"Apple Pencil Pressure and Tilt" = "Apple Pencil壓力與傾斜";
"Audio and Acceleration" = "音訊與加速";
"Audio Output" = "音訊輸出";
"Available macOS Releases" = "可用的macOS版本";
"Available macOS Versions" = "可用的macOS版本";
+"Because OpenGL acceleration requires Virtual Mac guest tools, turning off Virtual Mac guest tools will also turn off OpenGL acceleration. Apps such as Final Cut Pro mostly use Metal, but they check for OpenGL capabilities in order to launch." = "OpenGL加速需要虛擬Mac客體工具,因此關閉客體工具也會關閉OpenGL加速。Final Cut Pro等app主要使用Metal,但啟動時仍會檢查OpenGL功能。";
"Boot and Network" = "啟動與網路";
"Bottom Left" = "左下角";
"Bottom Right" = "右下角";
@@ -42,7 +46,6 @@
"Choose whether Virtual Mac opens its library or starts a Virtual Mac." = "選擇開啟虛擬Mac時顯示資料庫還是啟動一臺虛擬Mac。";
"Compatibility" = "相容性";
"Complete Virtual Mac devices and restore images outside Virtual Mac are not removed." = "不會刪除完整的虛擬Mac,也不會刪除虛擬Mac資料夾之外的恢復映象。";
-"Configuration changes take effect after the Virtual Mac is shut down and started again." = "設定更改會在關閉並重新啟動虛擬Mac後生效。";
"Configuration failed: %@" = "配置失敗:%@";
"Configure %@" = "配置%@";
"Continue" = "繼續";
@@ -58,7 +61,7 @@
"Create Virtual Mac" = "建立虛擬Mac";
"Custom" = "自定義";
"Debug Logging" = "偵錯記錄";
-"Debug Logging has been enabled. You can turn it off later in Settings." = "偵錯記錄已啟用。可稍後在設定中將其關閉。";
+"Debug logging has been enabled for the next boot." = "已為下次啟動開啟偵錯記錄。";
"Debug Logging takes effect the next time a Virtual Mac starts." = "除錯記錄會在下次啟動虛擬Mac時生效。";
"Delete" = "刪除";
"Delete All" = "全部刪除";
@@ -82,7 +85,12 @@
"Display Resolution" = "顯示解析度";
"Display Width" = "顯示寬度";
"Double-tap to hold or release this modifier" = "輕點兩下以鎖定或釋放此修飾鍵";
+"Download Apple Pencil Support" = "下載Apple Pencil支援";
"Download Failed" = "下載失敗";
+"Download Final Cut Pro Trial" = "下載Final Cut Pro試用版";
+"Download Logic Pro Trial" = "下載Logic Pro試用版";
+"Download Pixelmator Pro Trial" = "下載Pixelmator Pro試用版";
+"Download Xcode" = "下載Xcode";
"Downloading macOS" = "正在下載macOS";
"Enter six hexadecimal octets separated by colons." = "輸入六組以冒號分隔的十六進位制數。";
"Ethernet (%@)" = "乙太網(%@)";
@@ -122,6 +130,7 @@
"Keep Virtual Mac open. Your iPad will remain awake until the download finishes." = "請保持虛擬Mac開啟。下載完成前,你的iPad將保持喚醒。";
"Keyboard" = "鍵盤";
"Landscape iPad" = "iPad橫向";
+"Learn More" = "進一步瞭解";
"Library Appearance" = "資料庫外觀";
"Loading extracted Apple virtualization frameworks…" = "正在載入已提取的Apple虛擬化框架…";
"MAC Address" = "MAC地址";
@@ -130,6 +139,7 @@
"Mac Trackpad" = "Mac觸控板";
"macOS Installed" = "macOS已安裝";
"Memory" = "記憶體";
+"Metal BC Support" = "Metal BC支援";
"Microphone Input" = "麥克風輸入";
"Minimum: %llu GB. The upper limit is determined by the filesystem." = "最小值:%llu GB。上限由檔案系統決定。";
"Move Controls" = "移動控制項";
@@ -145,10 +155,15 @@
"Off" = "關閉";
"OK" = "好";
"On" = "開啟";
+"On for Next Boot" = "下次啟動時開啟";
"Only about %llu GB is currently available. The disk image is sparse, but installation or later use can fail when storage fills up." = "目前僅約有%llu GB可用空間。磁碟映象為稀疏格式,但儲存空間耗盡時,安裝或後續使用仍可能失敗。";
"Open Control Center and start Screen Recording, then reproduce the problem." = "開啟控制中心並開始螢幕錄影,然後重現問題。";
+"OpenGL Acceleration" = "OpenGL加速";
+"OpenGL Acceleration Is Off" = "OpenGL加速已關閉";
+"OpenGL Acceleration requires macOS Sonoma or later." = "OpenGL加速需要macOS Sonoma或後續版本。";
"Optional" = "可選";
"Options" = "選項";
+"Out of Video Memory" = "視訊記憶體不足";
"People have dreamed of running macOS on iPad for more than a decade. Today, that dream comes true. Create a Virtual Mac to get started." = "十多年來,人們一直夢想在iPad上執行macOS。今⁠天,這個夢想終於成真。建立虛擬Mac以開始使用。";
"Pixels Per Inch" = "每英寸畫素數";
"Pointing Device" = "指標裝置";
@@ -220,11 +235,14 @@
"These options affect iPadOS only while Virtual Mac is frontmost and a Virtual Mac is running." = "這些選項只會在虛擬Mac位於最前方並正在執行時影響iPadOS。";
"This restores all Virtual Mac settings to their defaults. Virtual Macs, restore images, and installation files won’t be removed." = "這會將虛擬Mac的所有設定還原為預設值,但不會刪除虛擬Mac、恢復映象或安裝檔案。";
"this Virtual Mac" = "此虛擬Mac";
+"To enable OpenGL acceleration, shut down this Virtual Mac, then in its options, enable OpenGL Acceleration." = "若要開啟OpenGL加速,請將此虛擬Mac關機,然後在其選項中開啟OpenGL加速。";
"To show the controls, touch and hold the Virtual Mac icon on the Home Screen, then choose Show Virtual Mac Controls." = "若要顯示控制項,請在主畫面觸碰並按住虛擬Mac圖示,然後選擇「顯示虛擬Mac控制項」。";
+"To use Apple Pencil pressure and tilt, download pencil-probe in %@ Virtual Mac." = "若要使用Apple Pencil壓力與傾斜功能,請在%@虛擬Mac中下載pencil-probe。";
"Top Left" = "左上角";
"Top Right" = "右上角";
"Touch" = "觸控";
"Touch and Hold to Secondary Click" = "觸碰並按住以使用輔助按鈕";
+"Turn Off Virtual Mac Guest Tools?" = "關閉虛擬Mac客體工具?";
"Two Finger Tap to Secondary Click" = "用兩指點一下以使用輔助按鈕";
"Unknown" = "未知";
"Unsaved changes in macOS may be lost." = "macOS中未儲存的更改可能會丟失。";
@@ -245,6 +263,7 @@
"Virtual Mac devices are stored in %@." = "虛擬Mac裝置儲存在%@。";
"Virtual Mac Display" = "虛擬Mac顯示器";
"Virtual Mac does not support the Dopamine-roothide environment. Remove the roothide jailbreak from Dopamine-roothide > Settings > Remove Jailbreak, then switch to the official version of Dopamine." = "虛擬Mac不支援Dopamine-roothide環境。請在Dopamine-roothide > 設定 > 移除越獄中移除roothide越獄,然後切換至官方版Dopamine。";
+"Virtual Mac Guest Tools" = "虛擬Mac增強工具";
"Virtual Mac has no published framebuffer" = "虛擬Mac未提供幀緩衝區";
"Virtual Mac running — native PVG framebuffer attached" = "虛擬Mac正在執行 — 已連線原生PVG幀緩衝區";
"Virtual Mac running — preparing native PVG display" = "虛擬Mac正在執行 — 正在準備原生PVG顯示";
diff --git a/VirtualMac/scripts/audit-ipados-compatibility.sh b/VirtualMac/scripts/audit-ipados-compatibility.sh
index 2bce157..fdac1f7 100755
--- a/VirtualMac/scripts/audit-ipados-compatibility.sh
+++ b/VirtualMac/scripts/audit-ipados-compatibility.sh
@@ -33,7 +33,10 @@ for root in "${roots[@]}"; do
build_version="$(otool -l "$candidate" | awk '
/cmd LC_BUILD_VERSION/ { in_build=1; next }
in_build && /platform/ { platform=$2 }
- in_build && /minos/ { minos=$2; print platform " " minos; exit }
+ in_build && /minos/ && !printed {
+ print platform " " $2
+ printed=1
+ }
')"
[[ "$build_version" == "2 $VZ_IPADOS_MIN_VERSION" ]] ||
die "unsupported platform/minimum OS ($build_version): $candidate"
diff --git a/VirtualMac/scripts/build-guest-tools.sh b/VirtualMac/scripts/build-guest-tools.sh
new file mode 100755
index 0000000..2907df2
--- /dev/null
+++ b/VirtualMac/scripts/build-guest-tools.sh
@@ -0,0 +1,87 @@
+#!/bin/bash
+
+set -euo pipefail
+SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
+# shellcheck source=lib/common.sh
+source "$SCRIPT_DIR/lib/common.sh"
+
+need_command codesign
+need_command iconutil
+need_command sips
+need_command xcrun
+
+OUT="${VZ_GUEST_TOOLS_BUILD:-$VZ_BUILD_ROOT/guest-tools}"
+OPENGL_OUT="$VZ_BUILD_ROOT/guest-opengl"
+APP="$OUT/Virtual Mac Guest Tools.app"
+CONTENTS="$APP/Contents"
+MACOS="$CONTENTS/MacOS"
+RESOURCES="$CONTENTS/Resources"
+SYMBOL_CATALOG="$OUT/VirtualMacGuestTools.xcassets"
+
+"$SCRIPT_DIR/development/build-opengl-guest-compat.sh"
+
+rm -rf "$APP" "$OUT/VirtualMac.iconset" "$OUT/payload" "$SYMBOL_CATALOG"
+rm -f "$OUT/VirtualMacGuestTools.arm64" \
+ "$OUT/VirtualMacGuestTools.x86_64" \
+ "$OUT/OpenGLPVGCompat.dylib" \
+ "$OUT/com.mac.virtual.guest-tools.plist" \
+ "$OUT/com.mac.virtual.opengl-compat.plist" \
+ "$OUT/Virtual Mac OpenGL Acceleration" \
+ "$OUT/VirtualMacGuestTools.tar.gz"
+mkdir -p "$MACOS" "$RESOURCES"
+cp "$VZ_REPO_ROOT/vz/guest/VirtualMacGuestTools-Info.plist" \
+ "$CONTENTS/Info.plist"
+plutil -replace CFBundleShortVersionString -string \
+ "${VZ_RELEASE_VERSION:-1.2}" "$CONTENTS/Info.plist"
+
+for architecture in arm64 x86_64; do
+ xcrun --sdk macosx clang -arch "$architecture" -fblocks \
+ -mmacosx-version-min=12.0 -framework AppKit \
+ "$VZ_REPO_ROOT/vz/guest/VirtualMacGuestToolsApp.m" \
+ -o "$OUT/VirtualMacGuestTools.$architecture"
+done
+xcrun lipo -create "$OUT/VirtualMacGuestTools.arm64" \
+ "$OUT/VirtualMacGuestTools.x86_64" -output "$MACOS/Virtual Mac Guest Tools"
+
+cp -R "$VZ_REPO_ROOT/assets/GuestToolsSymbols.xcassets" "$SYMBOL_CATALOG"
+for symbol in vm.laptopcomputer vm.laptopcomputer.badge.checkmark; do
+ symbolset="$SYMBOL_CATALOG/$symbol.symbolset"
+ cp "$VZ_REPO_ROOT/assets/icons/$symbol.svg" "$symbolset/$symbol.svg"
+done
+xcrun actool --compile "$RESOURCES" --platform macosx \
+ --minimum-deployment-target 12.0 "$SYMBOL_CATALOG" >/dev/null
+for localization in "$VZ_REPO_ROOT/resources/Localizations/"*.lproj; do
+ destination="$RESOURCES/$(basename "$localization")"
+ mkdir -p "$destination"
+ cp "$localization/Localizable.strings" "$destination/"
+done
+
+ICONSET="$OUT/VirtualMac.iconset"
+mkdir -p "$ICONSET"
+for size in 16 32 128 256 512; do
+ sips -z "$size" "$size" "$VZ_REPO_ROOT/assets/VirtualMacGuest.png" \
+ --out "$ICONSET/icon_${size}x${size}.png" >/dev/null
+ double=$((size * 2))
+ sips -z "$double" "$double" "$VZ_REPO_ROOT/assets/VirtualMacGuest.png" \
+ --out "$ICONSET/icon_${size}x${size}@2x.png" >/dev/null
+done
+iconutil -c icns "$ICONSET" -o "$RESOURCES/VirtualMac.icns"
+
+codesign --force --sign - "$APP"
+
+cp "$OPENGL_OUT/OpenGLPVGCompat.dylib" "$OUT/OpenGLPVGCompat.dylib"
+cp "$VZ_REPO_ROOT/vz/guest/com.mac.virtual.guest-tools.plist" \
+ "$OUT/com.mac.virtual.guest-tools.plist"
+PAYLOAD="$OUT/payload"
+mkdir -p "$PAYLOAD/Library/VirtualMac" "$PAYLOAD/Library/LaunchAgents"
+cp -R "$APP" "$PAYLOAD/Library/VirtualMac/"
+cp "$OUT/OpenGLPVGCompat.dylib" "$PAYLOAD/Library/VirtualMac/"
+cp "$OUT/com.mac.virtual.guest-tools.plist" \
+ "$PAYLOAD/Library/LaunchAgents/"
+# Do not encode checkout provenance into the guest payload. macOS 27 launchd
+# rejects quarantined LaunchAgents even when their syntax, ownership, and code
+# signature are valid.
+xattr -cr "$PAYLOAD"
+tar -C "$PAYLOAD" -czf "$OUT/VirtualMacGuestTools.tar.gz" Library
+
+printf 'Built %s\n' "$OUT"
diff --git a/VirtualMac/scripts/build-ipad-app.sh b/VirtualMac/scripts/build-ipad-app.sh
index b303560..22be26f 100755
--- a/VirtualMac/scripts/build-ipad-app.sh
+++ b/VirtualMac/scripts/build-ipad-app.sh
@@ -35,19 +35,30 @@ need_file "$VZ_REPO_ROOT/scripts/validate-localizations.py"
need_file "$VZ_REPO_ROOT/vz/host/VZNewVMViewController.m"
need_file "$VZ_REPO_ROOT/vz/host/VZProgressViewController.m"
need_file "$VZ_REPO_ROOT/vz/host/VZSettingsViewController.m"
+need_file "$VZ_REPO_ROOT/vz/host/VZGuestTools.m"
+need_file "$VZ_REPO_ROOT/vz/host/VZGuestRuntimePolicy.m"
need_file "$VZ_REPO_ROOT/vz/host/VZVMLibraryViewController.m"
need_file "$VZ_REPO_ROOT/vz/host/VirtualMacApp.m"
need_file "$VZ_REPO_ROOT/vz/host/virtualmac_diagnostics_main.m"
need_file "$VZ_REPO_ROOT/vz/host/vzxpchook.m"
need_file "$ENTS"
+# Guest payloads are built from source and bundled with the host app. macOS's
+# built-in AppleQEMUGuestAgent installs them without network access or guest
+# credentials on first boot.
+"$VZ_REPO_ROOT/scripts/build-guest-tools.sh"
+need_file "$VZ_BUILD_ROOT/guest-tools/VirtualMacGuestTools.tar.gz"
+
rm -rf "$APP"
python3 "$VZ_REPO_ROOT/scripts/validate-localizations.py"
mkdir -p "$APP"
cp "$VZ_REPO_ROOT/vz/host/VirtualMac-Info.plist" "$APP/Info.plist"
+mkdir -p "$APP/GuestTools"
+cp "$VZ_BUILD_ROOT/guest-tools/VirtualMacGuestTools.tar.gz" \
+ "$APP/GuestTools/VirtualMacGuestTools.tar.gz"
sips -Z 320 "$VZ_REPO_ROOT/assets/VirtualMacTemplate.png" \
--out "$APP/VirtualMacTemplate.png" >/dev/null
-APP_VERSION="${VZ_RELEASE_VERSION:-1.1.2}"
+APP_VERSION="${VZ_RELEASE_VERSION:-1.2}"
APP_BUILD="$(git -C "$VZ_REPO_ROOT" rev-list --count HEAD)"
plutil -replace CFBundleShortVersionString -string "$APP_VERSION" \
"$APP/Info.plist"
@@ -94,7 +105,7 @@ done
xcrun --sdk iphoneos clang \
-arch arm64 -miphoneos-version-min="$VZ_IPADOS_MIN_VERSION" -isysroot "$SDK" -fblocks \
-framework AVFAudio -framework CoreImage -framework Foundation \
- -framework GameController -framework Metal -framework UIKit \
+ -framework GameController -framework Metal -framework Security -framework UIKit \
-framework UniformTypeIdentifiers \
-Wl,-export_dynamic -Wl,-undefined,dynamic_lookup \
"$VZ_REPO_ROOT/vz/host/NSViewShim.m" \
@@ -103,6 +114,8 @@ xcrun --sdk iphoneos clang \
"$VZ_REPO_ROOT/vz/host/VZFailureDetailsViewController.m" \
"$VZ_REPO_ROOT/vz/host/VZRestoreCatalog.m" \
"$VZ_REPO_ROOT/vz/host/VZSupport.m" \
+ "$VZ_REPO_ROOT/vz/host/VZGuestTools.m" \
+ "$VZ_REPO_ROOT/vz/host/VZGuestRuntimePolicy.m" \
"$VZ_REPO_ROOT/vz/host/VZNewVMViewController.m" \
"$VZ_REPO_ROOT/vz/host/VZProgressViewController.m" \
"$VZ_REPO_ROOT/vz/host/VZSettingsViewController.m" \
diff --git a/VirtualMac/scripts/build-ipad-deb.sh b/VirtualMac/scripts/build-ipad-deb.sh
index d447c1f..020c4b2 100755
--- a/VirtualMac/scripts/build-ipad-deb.sh
+++ b/VirtualMac/scripts/build-ipad-deb.sh
@@ -31,7 +31,7 @@ app_build="$(plutil -extract CFBundleVersion raw \
"$VZ_BUILD_ROOT/ipad-app/VirtualMac.app/Info.plist")"
[[ "$app_build" == "$commit_count" ]] ||
die "app build $app_build does not match repository build $commit_count; rebuild the app"
-RELEASE_VERSION="${VZ_RELEASE_VERSION:-1.1.2}"
+RELEASE_VERSION="${VZ_RELEASE_VERSION:-1.2}"
if [[ -n "${VZ_PACKAGE_VERSION:-}" ]]; then
VERSION="$VZ_PACKAGE_VERSION"
else
diff --git a/VirtualMac/scripts/build-ipad-vm.sh b/VirtualMac/scripts/build-ipad-vm.sh
index 0b6e09f..dc00e57 100755
--- a/VirtualMac/scripts/build-ipad-vm.sh
+++ b/VirtualMac/scripts/build-ipad-vm.sh
@@ -266,9 +266,10 @@ xcrun --sdk iphoneos clang \
xcrun --sdk iphoneos clang \
-arch arm64e -miphoneos-version-min="$VZ_IPADOS_MIN_VERSION" -isysroot "$SDK" \
-dynamiclib \
- -framework Foundation -framework Metal \
+ -framework Foundation \
-Wl,-reexport_framework,Metal \
-install_name "@rpath/MetalCompat.dylib" \
+ "$VZ_REPO_ROOT/vz/host/native_bc_texture_support.m" \
"$VZ_REPO_ROOT/vz/host/metalshim.m" \
-o "$VMM_FRAMEWORKS/MetalCompat.dylib"
xcrun --sdk iphoneos clang \
diff --git a/VirtualMac/scripts/development/build-native-bc-probe.sh b/VirtualMac/scripts/development/build-native-bc-probe.sh
new file mode 100755
index 0000000..009cd07
--- /dev/null
+++ b/VirtualMac/scripts/development/build-native-bc-probe.sh
@@ -0,0 +1,30 @@
+#!/usr/bin/env bash
+set -euo pipefail
+
+SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
+VM_ROOT="$(cd "$SCRIPT_DIR/../.." && pwd)"
+OUT="${VZ_NATIVE_BC_PROBE_OUT:-$VM_ROOT/build/development/NativeBCProbe.app}"
+SDK="$(xcrun --sdk iphoneos --show-sdk-path)"
+MODULE_CACHE="${VZ_MODULE_CACHE:-$VM_ROOT/build/module-cache}"
+
+rm -rf "$OUT"
+mkdir -p "$OUT" "$MODULE_CACHE"
+cp "$VM_ROOT/vz/development/probes/NativeBCProbe-Info.plist" "$OUT/Info.plist"
+xcrun --sdk iphoneos metal -fmodules-cache-path="$MODULE_CACHE" \
+ -std=ios-metal2.4 -mios-version-min=14.5 \
+ -c "$VM_ROOT/vz/development/probes/native-bc-probe.metal" \
+ -o "$OUT/native-bc-probe.air"
+xcrun --sdk iphoneos metallib "$OUT/native-bc-probe.air" \
+ -o "$OUT/default.metallib"
+rm "$OUT/native-bc-probe.air"
+xcrun --sdk iphoneos clang -fblocks -fmodules-cache-path="$MODULE_CACHE" \
+ -arch arm64 \
+ -miphoneos-version-min=14.5 -isysroot "$SDK" \
+ -framework Foundation -framework Metal -framework UIKit \
+ "$VM_ROOT/vz/host/native_bc_texture_support.m" \
+ "$VM_ROOT/vz/host/metalshim.m" \
+ "$VM_ROOT/vz/development/probes/native-bc-probe-app.m" \
+ -o "$OUT/NativeBCProbe"
+ldid -S"$VM_ROOT/vz/patches/vmm.ents.xml" \
+ "$OUT/NativeBCProbe"
+echo "$OUT"
diff --git a/VirtualMac/scripts/development/build-opengl-guest-compat.sh b/VirtualMac/scripts/development/build-opengl-guest-compat.sh
new file mode 100755
index 0000000..5da5ebf
--- /dev/null
+++ b/VirtualMac/scripts/development/build-opengl-guest-compat.sh
@@ -0,0 +1,43 @@
+#!/bin/bash
+
+set -euo pipefail
+SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
+# shellcheck source=../lib/common.sh
+source "$SCRIPT_DIR/../lib/common.sh"
+
+need_command xcrun
+need_command codesign
+
+OUT="${VZ_OPENGL_GUEST_BUILD:-$VZ_BUILD_ROOT/guest-opengl}"
+SOURCE="$VZ_REPO_ROOT/vz/guest/OpenGLPVGCompat.m"
+PROBE_SOURCE="$VZ_REPO_ROOT/vz/development/probes/opengl-renderer.c"
+mkdir -p "$OUT"
+
+for architecture in x86_64 arm64 arm64e; do
+ xcrun --sdk macosx clang \
+ -arch "$architecture" \
+ -dynamiclib -fobjc-arc -fblocks \
+ -mmacosx-version-min=12.0 \
+ -framework CoreFoundation -framework Foundation \
+ -framework IOKit -framework Metal \
+ "$SOURCE" \
+ -o "$OUT/OpenGLPVGCompat.$architecture.dylib"
+done
+
+xcrun lipo -create \
+ "$OUT/OpenGLPVGCompat.x86_64.dylib" \
+ "$OUT/OpenGLPVGCompat.arm64.dylib" \
+ "$OUT/OpenGLPVGCompat.arm64e.dylib" \
+ -output "$OUT/OpenGLPVGCompat.dylib"
+codesign --force --sign - "$OUT/OpenGLPVGCompat.dylib"
+
+for architecture in arm64 x86_64; do
+ xcrun --sdk macosx clang \
+ -arch "$architecture" -DGL_SILENCE_DEPRECATION \
+ -mmacosx-version-min=12.0 -framework OpenGL \
+ "$PROBE_SOURCE" -o "$OUT/opengl-renderer.$architecture"
+ codesign --force --sign - "$OUT/opengl-renderer.$architecture"
+done
+
+echo "Built $OUT/OpenGLPVGCompat.dylib"
+xcrun lipo -archs "$OUT/OpenGLPVGCompat.dylib"
diff --git a/VirtualMac/scripts/development/check-native-bc-resolver.py b/VirtualMac/scripts/development/check-native-bc-resolver.py
new file mode 100755
index 0000000..9c52b79
--- /dev/null
+++ b/VirtualMac/scripts/development/check-native-bc-resolver.py
@@ -0,0 +1,248 @@
+#!/usr/bin/env python3
+"""Check whether the runtime native-BC patchfinder resolves an AGX Mach-O.
+
+This mirrors the structural matcher in native_bc_texture_support.m. It is a
+fast firmware qualification tool; it never patches or executes the binary.
+"""
+
+from __future__ import annotations
+
+import argparse
+import pathlib
+import struct
+import sys
+
+MH_MAGIC_64 = 0xFEEDFACF
+LC_SEGMENT_64 = 0x19
+
+
+def add_immediate(instruction: int, destination: int, source: int) -> bool:
+ return instruction & 0xFFC003FF == 0x91000000 | destination | source << 5
+
+
+def adrp(instruction: int, destination: int) -> bool:
+ return instruction & 0x9F00001F == 0x90000000 | destination
+
+
+def match(code: tuple[int, ...]) -> int | None:
+ if code[0] not in (0x51000410, 0xD1000410):
+ return None
+ first_compare = 0xF100021F if code[0] == 0xD1000410 else 0x7100021F
+ if code[1] & 0xFFC003FF != first_compare:
+ return None
+ if code[2] & 0xFF00001F != 0x54000008:
+ return None
+ if not adrp(code[3], 0) or not add_immediate(code[4], 0, 0):
+ return None
+ if code[5] & 0xFFC003FF != 0xF100021F:
+ return None
+ if not (
+ code[6] == 0x9A9F9210
+ and adrp(code[7], 17)
+ and add_immediate(code[8], 17, 17)
+ and code[9] == 0xB8B07A30
+ and code[10] == 0x10000011
+ and code[11] == 0x8B100230
+ and code[12] == 0xD61F0200
+ ):
+ return None
+ first_limit = code[1] >> 10 & 0xFFF
+ second_limit = code[5] >> 10 & 0xFFF
+ if not first_limit or first_limit != second_limit:
+ return None
+ return first_limit + 2
+
+
+def macho_layout(data: bytes) -> tuple[tuple[int, int, int], list[tuple[int, int, int, int]]]:
+ if len(data) < 32 or struct.unpack_from("<I", data)[0] != MH_MAGIC_64:
+ raise ValueError("not a thin little-endian 64-bit Mach-O")
+ command_count = struct.unpack_from("<I", data, 16)[0]
+ command_offset = 32
+ found_text: tuple[int, int, int] | None = None
+ segments: list[tuple[int, int, int, int]] = []
+ for _ in range(command_count):
+ command, command_size = struct.unpack_from("<II", data, command_offset)
+ if command_size < 8 or command_offset + command_size > len(data):
+ raise ValueError("invalid load command")
+ if command == LC_SEGMENT_64:
+ vm_address, vm_size, file_offset, file_size = struct.unpack_from(
+ "<QQQQ", data, command_offset + 24
+ )
+ segments.append((vm_address, vm_size, file_offset, file_size))
+ section_count = struct.unpack_from("<I", data, command_offset + 64)[0]
+ section_offset = command_offset + 72
+ for _ in range(section_count):
+ section_name = data[section_offset : section_offset + 16].rstrip(b"\0")
+ segment_name = data[section_offset + 16 : section_offset + 32].rstrip(b"\0")
+ if section_name == b"__text" and segment_name == b"__TEXT":
+ address, size, offset = struct.unpack_from(
+ "<QQI", data, section_offset + 32
+ )
+ if offset + size > len(data) or size % 4:
+ raise ValueError("invalid __text section")
+ found_text = offset, size, address
+ section_offset += 80
+ command_offset += command_size
+ if found_text is None:
+ raise ValueError("missing __TEXT,__text")
+ return found_text, segments
+
+
+def vm_bytes(
+ data: bytes, segments: list[tuple[int, int, int, int]], address: int, size: int
+) -> bytes:
+ for vm_address, _vm_size, file_offset, file_size in segments:
+ if vm_address <= address and address + size <= vm_address + file_size:
+ offset = file_offset + address - vm_address
+ return data[offset : offset + size]
+ raise ValueError(f"VM address 0x{address:x} is not file-backed")
+
+
+def sign_extend(value: int, bits: int) -> int:
+ sign = 1 << (bits - 1)
+ return (value ^ sign) - sign
+
+
+def descriptor_hash(record: bytes) -> int:
+ result = 14695981039346656037
+ for byte in record:
+ result = (result ^ byte) * 1099511628211 & 0xFFFFFFFFFFFFFFFF
+ return result
+
+
+def adrp_target(pc: int, instruction: int) -> int:
+ immediate = ((instruction >> 5 & 0x7FFFF) << 2) | (instruction >> 29 & 3)
+ return (pc & ~0xFFF) + (sign_extend(immediate, 21) << 12)
+
+
+def add_value(instruction: int) -> int:
+ immediate = instruction >> 10 & 0xFFF
+ return immediate << (12 if instruction & 1 << 22 else 0)
+
+
+def descriptor_for_format(
+ data: bytes,
+ segments: list[tuple[int, int, int, int]],
+ instructions: tuple[int, ...],
+ text_address: int,
+ chooser_index: int,
+ format_value: int,
+) -> int:
+ chooser_address = text_address + chooser_index * 4
+ if format_value == 0:
+ target_index = chooser_index + 16
+ else:
+ table_pc = chooser_address + 7 * 4
+ table_address = adrp_target(table_pc, instructions[chooser_index + 7])
+ table_address += add_value(instructions[chooser_index + 8])
+ table_entry = struct.unpack(
+ "<i", vm_bytes(data, segments, table_address + (format_value - 1) * 4, 4)
+ )[0]
+ target_address = chooser_address + 10 * 4 + table_entry
+ target_index = chooser_index + (target_address - chooser_address) // 4
+ target_pc = text_address + target_index * 4
+ first, second = instructions[target_index : target_index + 2]
+ if first == 0xD65F03C0:
+ # The dispatcher preloads its most common record in x0; switch cases
+ # using that record jump directly to a shared ret.
+ first, second = instructions[chooser_index + 3 : chooser_index + 5]
+ target_pc = text_address + (chooser_index + 3) * 4
+ if not adrp(first, 0) or not add_immediate(second, 0, 0):
+ raise ValueError(f"format {format_value} target is not an AGX record return")
+ return adrp_target(target_pc, first) + add_value(second)
+
+
+def inspect(path: pathlib.Path) -> tuple[int, int, str]:
+ data = path.read_bytes()
+ (offset, size, address), segments = macho_layout(data)
+ instructions = struct.unpack_from(f"<{size // 4}I", data, offset)
+ matches: list[tuple[int, int, int]] = []
+ for index in range(len(instructions) - 17):
+ count = match(instructions[index : index + 18])
+ if count is None:
+ continue
+ branch = instructions[index + 2]
+ branch_words = branch >> 5 & 0x7FFFF
+ if branch_words & 0x40000:
+ branch_words -= 0x80000
+ target = index + 2 + branch_words
+ if not 0 <= target <= len(instructions) - 3:
+ continue
+ if not (
+ adrp(instructions[target], 0)
+ and add_immediate(instructions[target + 1], 0, 0)
+ and instructions[target + 2] == 0xD65F03C0
+ ):
+ continue
+ matches.append((address + index * 4, count, index))
+ if len(matches) != 1:
+ raise ValueError(f"expected one chooser, found {len(matches)}")
+ chooser_address, count, chooser_index = matches[0]
+ invalid = descriptor_for_format(
+ data, segments, instructions, address, chooser_index, 0
+ )
+ probes = (1, 10, 30, 70, 80, 115, 170, 180, 204)
+ records = [
+ descriptor_for_format(
+ data, segments, instructions, address, chooser_index, format_value
+ )
+ for format_value in probes
+ ]
+ if any(record == invalid for record in records):
+ raise ValueError("known valid format resolves to the invalid record")
+ adjacent_pairs = sum(
+ abs(record - previous) == 0x60
+ for index, record in enumerate(records)
+ for previous in records[:index]
+ )
+ if adjacent_pairs < 2:
+ raise ValueError("driver does not prove the 0x60-byte descriptor ABI")
+ for record in (invalid, *records):
+ vm_bytes(data, segments, record, 0x60)
+ expected_hashes = {
+ 170: 0x96C7F2141F60B4C2,
+ 180: 0xE095D5CB46537E57,
+ 204: 0xD0CB277563853582,
+ }
+ for format_value, expected_hash in expected_hashes.items():
+ record = descriptor_for_format(
+ data, segments, instructions, address, chooser_index, format_value
+ )
+ if descriptor_hash(vm_bytes(data, segments, record, 0x60)) != expected_hash:
+ raise ValueError(f"format {format_value} descriptor ABI changed")
+ bc_formats = (130, 131, 132, 133, 134, 135, 140, 141, 142, 143, 150, 151, 152, 153)
+ bc_records = [
+ descriptor_for_format(
+ data, segments, instructions, address, chooser_index, format_value
+ )
+ for format_value in bc_formats
+ ]
+ invalid_count = sum(record == invalid for record in bc_records)
+ if invalid_count not in (0, len(bc_records)):
+ raise ValueError("driver has a partial BC descriptor table")
+ for record in bc_records:
+ vm_bytes(data, segments, record, 0x60)
+ state = "native" if not invalid_count else "absent"
+ return chooser_address, count, state
+
+
+def main() -> int:
+ parser = argparse.ArgumentParser()
+ parser.add_argument("mach_o", nargs="+", type=pathlib.Path)
+ args = parser.parse_args()
+ failed = False
+ for path in args.mach_o:
+ try:
+ address, count, state = inspect(path)
+ print(
+ f"PASS {path}: chooser=0x{address:x} formats={count} "
+ f"record_abi=0x60 bc={state}"
+ )
+ except (OSError, ValueError, struct.error) as error:
+ failed = True
+ print(f"FAIL {path}: {error}", file=sys.stderr)
+ return 1 if failed else 0
+
+
+if __name__ == "__main__":
+ raise SystemExit(main())
diff --git a/VirtualMac/scripts/development/collect-device-diagnostics.sh b/VirtualMac/scripts/development/collect-device-diagnostics.sh
index 6ac2764..9ad8eea 100755
--- a/VirtualMac/scripts/development/collect-device-diagnostics.sh
+++ b/VirtualMac/scripts/development/collect-device-diagnostics.sh
@@ -108,7 +108,10 @@ for index in "${!udids[@]}"; do
for remote in /tmp/VirtualMac.log /tmp/vmmhook.log \
/tmp/vmm.stderr.log /tmp/vzxpchook.log /tmp/pvg-trace.log \
/tmp/InternetSharing.stdout.log /tmp/InternetSharing.stderr.log \
- /tmp/bootpd.stdout.log /tmp/bootpd.stderr.log; do
+ /tmp/bootpd.stdout.log /tmp/bootpd.stderr.log \
+ /tmp/InternetSharing.out /tmp/InternetSharing.err \
+ /tmp/bootpd.out /tmp/bootpd.err \
+ /tmp/bootpd-controller.out /tmp/bootpd-controller.err; do
"${scp_command[@]}" "$target:$remote" \
"$destination/runtime-logs/" >/dev/null 2>&1 || true
done
diff --git a/VirtualMac/scripts/development/gdb-remote-probe.py b/VirtualMac/scripts/development/gdb-remote-probe.py
new file mode 100644
index 0000000..6fe6d18
--- /dev/null
+++ b/VirtualMac/scripts/development/gdb-remote-probe.py
@@ -0,0 +1,411 @@
+#!/usr/bin/env python3
+"""Exercise Virtualization.framework's private guest GDB stub.
+
+This is a development probe, not part of the shipped app. It intentionally
+implements only the small acknowledged-packet subset used by Apple's stub so
+bring-up does not depend on LLDB's kernel plugin.
+"""
+
+import argparse
+import socket
+import struct
+
+
+def checksum(payload: bytes) -> bytes:
+ return f"{sum(payload) & 0xff:02x}".encode("ascii")
+
+
+class Remote:
+ def __init__(self, host: str, port: int) -> None:
+ self.socket = socket.create_connection((host, port), timeout=5)
+ self.socket.settimeout(5)
+ self.pending = bytearray()
+ self.no_ack = False
+ self.socket.sendall(b"+")
+
+ def _receive_byte(self) -> int:
+ if not self.pending:
+ chunk = self.socket.recv(65536)
+ if not chunk:
+ raise ConnectionError("GDB stub closed the connection")
+ self.pending.extend(chunk)
+ value = self.pending[0]
+ del self.pending[0]
+ return value
+
+ def _receive_packet(self) -> bytes:
+ while self._receive_byte() != ord("$"):
+ pass
+ payload = bytearray()
+ while True:
+ value = self._receive_byte()
+ if value == ord("#"):
+ break
+ payload.append(value)
+ received = bytes((self._receive_byte(), self._receive_byte()))
+ if checksum(payload) != received.lower():
+ self.socket.sendall(b"-")
+ raise ValueError("GDB packet checksum mismatch")
+ if not self.no_ack:
+ self.socket.sendall(b"+")
+ return bytes(payload)
+
+ def request(self, text: str) -> bytes:
+ payload = text.encode("ascii")
+ self.socket.sendall(b"$" + payload + b"#" + checksum(payload))
+ # Apple's stub acknowledges every request before sending its reply.
+ if not self.no_ack:
+ while self._receive_byte() != ord("+"):
+ pass
+ return self._receive_packet()
+
+ def start_no_ack_mode(self) -> None:
+ if self.request("QStartNoAckMode") != b"OK":
+ raise RuntimeError("GDB stub refused no-ack mode")
+ self.no_ack = True
+
+ def close(self) -> None:
+ try:
+ try:
+ print("detach:", self.request("D").decode("ascii", "replace"))
+ except (ConnectionError, OSError, TimeoutError):
+ pass
+ finally:
+ self.socket.close()
+
+ def read_memory(self, address: int, length: int) -> bytes:
+ result = bytearray()
+ # Apple's endpoint supports large binary reads. A 256 KiB request was
+ # validated on-device and makes whole-kernel pattern scans fast enough
+ # to use during normal VM startup.
+ while len(result) < length:
+ amount = min(0x40000, length - len(result))
+ current = address + len(result)
+ # Use GDB's binary-memory command. An address beginning in `ffff`
+ # makes the packet appear as `$xffff...` in LLDB packet logs: the
+ # first `x` is the command, not part of the address.
+ response = self.request(f"x{current:x},{amount:x}")
+ if (len(response) == 3 and response.startswith(b"E") and
+ all(byte in b"0123456789abcdefABCDEF"
+ for byte in response[1:])):
+ raise OSError(f"guest memory read failed: {response!r}")
+ value = bytearray()
+ position = 0
+ while position < len(response):
+ byte = response[position]
+ position += 1
+ if byte == ord("}"):
+ if position >= len(response):
+ raise OSError("truncated GDB binary escape")
+ byte = response[position] ^ 0x20
+ position += 1
+ value.append(byte)
+ if len(value) != amount:
+ raise OSError(
+ f"short guest memory read: wanted {amount}, "
+ f"got {len(value)}")
+ result.extend(value)
+ return bytes(result)
+
+ def write_memory(self, address: int, value: bytes) -> None:
+ encoded = value.hex()
+ response = self.request(f"M{address:x},{len(value):x}:{encoded}")
+ if response != b"OK":
+ raise OSError(f"guest memory write failed: {response!r}")
+
+ def register(self, number: int) -> int:
+ encoded = self.request(f"p{number:x}")
+ return int.from_bytes(bytes.fromhex(encoded.decode("ascii")), "little")
+
+
+MH_MAGIC_64 = 0xFEEDFACF
+CPU_TYPE_ARM64 = 0x0100000C
+MH_EXECUTE = 2
+MH_FILESET = 12
+LC_SEGMENT_64 = 0x19
+
+
+def find_kernel(remote: Remote, pc: int) -> tuple[int, dict[str, tuple[int, int]]]:
+ page = pc & ~0x3FFF
+ for _ in range((128 * 1024 * 1024) // 0x4000):
+ try:
+ header = remote.read_memory(page, 32)
+ except OSError:
+ page -= 0x4000
+ continue
+ fields = struct.unpack("<IIIIIIII", header)
+ magic, cpu_type, _, file_type, ncmds, sizeofcmds, _, _ = fields
+ if (magic != MH_MAGIC_64 or cpu_type != CPU_TYPE_ARM64 or
+ file_type not in (MH_EXECUTE, MH_FILESET) or
+ not 0 < ncmds < 1000 or
+ sizeofcmds > 1024 * 1024):
+ page -= 0x4000
+ continue
+ commands = remote.read_memory(page + 32, sizeofcmds)
+ segments: dict[str, tuple[int, int]] = {}
+ offset = 0
+ valid = True
+ for _ in range(ncmds):
+ if offset + 8 > len(commands):
+ valid = False
+ break
+ command, size = struct.unpack_from("<II", commands, offset)
+ if size < 8 or offset + size > len(commands):
+ valid = False
+ break
+ if command == LC_SEGMENT_64 and size >= 72:
+ raw_name = commands[offset + 8:offset + 24]
+ name = raw_name.split(b"\0", 1)[0].decode("ascii", "replace")
+ vm_address, vm_size = struct.unpack_from("<QQ", commands,
+ offset + 24)
+ segments[name] = (vm_address, vm_size)
+ offset += size
+ if valid and "__TEXT" in segments and "__TEXT_EXEC" in segments:
+ return page, segments
+ page -= 0x4000
+ raise RuntimeError("kernel Mach-O header not found")
+
+
+def sign_extend(value: int, bits: int) -> int:
+ sign = 1 << (bits - 1)
+ return (value ^ sign) - sign
+
+
+def decode_adrp(pc: int, instruction: int) -> int:
+ immediate = (((instruction >> 5) & 0x7FFFF) << 2) | \
+ ((instruction >> 29) & 3)
+ return (pc & ~0xFFF) + (sign_extend(immediate, 21) << 12)
+
+
+def scan_text(remote: Remote, start: int, size: int, callback):
+ chunk_size = 0x40000
+ overlap = 32
+ offset = 0
+ tail = b""
+ while offset < size:
+ amount = min(chunk_size, size - offset)
+ chunk = remote.read_memory(start + offset, amount)
+ data = tail + chunk
+ data_address = start + offset - len(tail)
+ for position in range((-data_address) & 3, len(data) - 28, 4):
+ result = callback(data, position, data_address + position)
+ if result is not None:
+ return result
+ tail = data[-overlap:]
+ offset += amount
+ return None
+
+
+def find_boot_args_pointer(remote: Remote, start: int, size: int) -> int:
+ prefix = struct.pack("<III", 0xAA0203E3, 0xAA0103E2, 0xAA0003E1)
+
+ def match(data: bytes, position: int, pc: int):
+ if data[position:position + 12] != prefix:
+ return None
+ adrp, add, load, command_line = struct.unpack_from("<IIII", data,
+ position + 12)
+ if adrp & 0x9F00001F != 0x90000008:
+ return None
+ if add & 0xFFC003FF != 0x91000108:
+ return None
+ if load & 0xFFC003FF != 0xF9400108:
+ return None
+ if command_line != 0x9101B100: # add x0, x8, #0x6c
+ return None
+ add_value = ((add >> 10) & 0xFFF) << (12 if add & (1 << 22) else 0)
+ load_value = ((load >> 10) & 0xFFF) * 8
+ return decode_adrp(pc + 12, adrp) + add_value + load_value
+
+ result = scan_text(remote, start, size, match)
+ if result is None:
+ raise RuntimeError("PE_parse_boot_argn pattern not found")
+ return result
+
+
+def looks_like_boot_args(value: bytes) -> bool:
+ """Validate the public XNU arm64 boot_args prefix and CommandLine."""
+ if len(value) < 128:
+ return False
+ revision, version = struct.unpack_from("<HH", value)
+ virtual_base, physical_base, memory_size, top = struct.unpack_from(
+ "<QQQQ", value, 8)
+ device_tree = struct.unpack_from("<Q", value, 96)[0]
+ device_tree_length = struct.unpack_from("<I", value, 104)[0]
+ command = value[108:128].split(b"\0", 1)[0]
+ return (1 <= revision <= 4 and 1 <= version <= 2 and
+ virtual_base & 0xFFF == 0 and physical_base & 0xFFF == 0 and
+ 128 << 20 <= memory_size <= 1 << 40 and
+ physical_base <= top <= physical_base + memory_size and
+ device_tree >= 0xFFFF_0000_0000_0000 and
+ 0 < device_tree_length <= 64 << 20 and
+ all(0x20 <= byte <= 0x7E for byte in command))
+
+
+def find_boot_args_pointer_by_data(
+ remote: Remote, segments: dict[str, tuple[int, int]],
+ slide: int) -> int:
+ """Find PE_state.bootArgs without relying on compiler instruction order.
+
+ XNU's boot_args prefix is public and stable, while PE_boot_args has been
+ inlined differently across Monterey, Tahoe, and Golden Gate kernels.
+ """
+ live_segments = {
+ name: (address + slide, size)
+ for name, (address, size) in segments.items()
+ }
+ image_start = min(address for address, _ in live_segments.values())
+ image_end = max(address + size
+ for address, size in live_segments.values())
+ data_segments: list[tuple[int, bytes]] = []
+ for name, (address, size) in live_segments.items():
+ if ((name.startswith("__DATA") or name.startswith("__BOOTDATA")) and
+ size <= 64 << 20):
+ data_segments.append((address, remote.read_memory(address, size)))
+
+ external: list[tuple[int, int]] = []
+ internal: list[tuple[int, int]] = []
+ seen_external: set[int] = set()
+ seen_internal: set[int] = set()
+ for address, contents in data_segments:
+ for offset in range(0, len(contents) - 7, 8):
+ target = struct.unpack_from("<Q", contents, offset)[0]
+ if target < 0xFFFF_0000_0000_0000:
+ continue
+ points_into_data = any(
+ start <= target < start + len(data)
+ for start, data in data_segments)
+ if target < image_start or target >= image_end:
+ if target not in seen_external:
+ seen_external.add(target)
+ external.append((address + offset, target))
+ elif points_into_data and target not in seen_internal:
+ seen_internal.add(target)
+ internal.append((address + offset, target))
+
+ for candidates in (external, internal):
+ for slot, target in candidates:
+ value = None
+ for address, contents in data_segments:
+ offset = target - address
+ if 0 <= offset and offset + 128 <= len(contents):
+ value = contents[offset:offset + 128]
+ break
+ if value is None:
+ try:
+ value = remote.read_memory(target, 128)
+ except OSError:
+ continue
+ if looks_like_boot_args(value):
+ return slot
+ raise RuntimeError("validated boot_args structure not found")
+
+
+def find_csr_config(remote: Remote, start: int, size: int) -> int:
+ tail = (0x12003109, 0x321D012A, 0x5280022B, 0x6A0B011F,
+ 0x1A8A0128, 0x6A28001F, 0x1A9F07E0, 0xD65F03C0)
+
+ def match(data: bytes, position: int, pc: int):
+ if position + 40 > len(data):
+ return None
+ instructions = struct.unpack_from("<10I", data, position)
+ adrp, load = instructions[:2]
+ logical_mask = instructions[2]
+ if (logical_mask & 0xFF8003FF != 0x12000109 or
+ tuple(instructions[3:]) != tail[1:]):
+ return None
+ if adrp & 0x9F00001F != 0x90000008:
+ return None
+ if load & 0xFFC003FF != 0xB9400108:
+ return None
+ load_value = ((load >> 10) & 0xFFF) * 4
+ return decode_adrp(pc, adrp) + load_value
+
+ result = scan_text(remote, start, size, match)
+ if result is None:
+ raise RuntimeError("csr_check pattern not found")
+ return result
+
+
+def patch_runtime_policy(remote: Remote, pc: int) -> None:
+ kernel, segments = find_kernel(remote, pc)
+ static_text, _ = segments["__TEXT"]
+ static_exec, exec_size = segments["__TEXT_EXEC"]
+ slide = kernel - static_text
+ live_exec = static_exec + slide
+ print(f"kernel: 0x{kernel:x}, slide: 0x{slide:x}")
+ # Both platform-expert and CSR initialization live near the front of
+ # __TEXT_EXEC on supported macOS kernels. Keep the stopped-boot scan
+ # bounded rather than reading the many embedded kexts that follow it.
+ patchfinder_size = min(exec_size, 32 * 1024 * 1024)
+ try:
+ boot_args_pointer = find_boot_args_pointer(remote, live_exec,
+ patchfinder_size)
+ except RuntimeError:
+ boot_args_pointer = find_boot_args_pointer_by_data(remote, segments,
+ slide)
+ csr_config = find_csr_config(remote, live_exec, patchfinder_size)
+ boot_args = int.from_bytes(remote.read_memory(boot_args_pointer, 8),
+ "little")
+ command_address = boot_args + 0x6C
+ command = remote.read_memory(command_address, 1024).split(b"\0", 1)[0]
+ tokens = command.decode("utf-8", "replace").split()
+ required = ("-arm64e_preview_abi", "amfi_get_out_of_my_way=1",
+ "ipc_control_port_options=0")
+ for token in required:
+ if token not in tokens:
+ tokens.append(token)
+ updated = " ".join(tokens).encode("utf-8")
+ if len(updated) >= 1024:
+ raise RuntimeError("guest boot arguments are full")
+ remote.write_memory(command_address, updated + b"\0")
+ remote.write_memory(csr_config, struct.pack("<I", 0xFFF))
+ print(f"boot_args: 0x{boot_args:x}, csr_config: 0x{csr_config:x}")
+ print("command:", updated.decode("utf-8"))
+
+
+def main() -> None:
+ parser = argparse.ArgumentParser()
+ parser.add_argument("--host", default="127.0.0.1")
+ parser.add_argument("--port", type=int, default=12346)
+ parser.add_argument("--continue-until-kernel", action="store_true")
+ parser.add_argument("--patch-runtime-policy", action="store_true")
+ args = parser.parse_args()
+
+ remote = Remote(args.host, args.port)
+ try:
+ remote.start_no_ack_mode()
+ stop_response = b""
+ for request in ("qSupported", "?"):
+ response = remote.request(request)
+ print(f"{request}: {response.decode('ascii', 'replace')}")
+ if request == "?":
+ stop_response = response
+ if args.continue_until_kernel or args.patch_runtime_policy:
+ for attempt in range(8):
+ fields = {}
+ stop_fields = stop_response.decode("ascii").replace(";", ",")
+ for field in stop_fields.split(","):
+ if ":" in field:
+ key, value = field.split(":", 1)
+ fields[key] = value
+ if "20" not in fields:
+ raise RuntimeError("stop reply did not include the PC")
+ pc = int.from_bytes(bytes.fromhex(fields["20"]), "little")
+ print(f"stop {attempt}: pc=0x{pc:x}")
+ if pc >= 0xffff_0000_0000_0000:
+ break
+ remote.socket.settimeout(60)
+ stop_response = remote.request("c")
+ remote.socket.settimeout(5)
+ print("continue:",
+ stop_response.decode("ascii", "replace"))
+ else:
+ raise RuntimeError("guest did not reach the kernel stop")
+ if args.patch_runtime_policy:
+ patch_runtime_policy(remote, pc)
+ finally:
+ remote.close()
+
+
+if __name__ == "__main__":
+ main()
diff --git a/VirtualMac/scripts/development/install-opengl-guest-compat.sh b/VirtualMac/scripts/development/install-opengl-guest-compat.sh
new file mode 100755
index 0000000..9180fcf
--- /dev/null
+++ b/VirtualMac/scripts/development/install-opengl-guest-compat.sh
@@ -0,0 +1,103 @@
+#!/bin/bash
+
+set -euo pipefail
+SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
+# shellcheck source=../lib/common.sh
+source "$SCRIPT_DIR/../lib/common.sh"
+
+need_command sshpass
+: "${VZ_GUEST_HOST:?set VZ_GUEST_HOST to the Virtual Mac IP address}"
+: "${VZ_GUEST_PASSWORD:?set VZ_GUEST_PASSWORD}"
+: "${VZ_GUEST_USER:?set VZ_GUEST_USER}"
+VZ_GUEST_PORT="${VZ_GUEST_PORT:-22}"
+GUEST_TARGET="$VZ_GUEST_USER@$VZ_GUEST_HOST"
+SSH_OPTIONS=(
+ -p "$VZ_GUEST_PORT"
+ -o StrictHostKeyChecking=no
+ -o UserKnownHostsFile=/dev/null
+ -o ConnectTimeout=10
+ -o PubkeyAuthentication=no
+ -o PreferredAuthentications=password
+ -o NumberOfPasswordPrompts=1
+)
+SCP_OPTIONS=(
+ -P "$VZ_GUEST_PORT"
+ -o StrictHostKeyChecking=no
+ -o UserKnownHostsFile=/dev/null
+ -o ConnectTimeout=10
+ -o PubkeyAuthentication=no
+ -o PreferredAuthentications=password
+ -o NumberOfPasswordPrompts=1
+)
+
+guest_ssh() {
+ sshpass -p "$VZ_GUEST_PASSWORD" ssh \
+ "${SSH_OPTIONS[@]}" "$GUEST_TARGET" "$@"
+}
+
+guest_scp() {
+ sshpass -p "$VZ_GUEST_PASSWORD" scp \
+ "${SCP_OPTIONS[@]}" "$@"
+}
+
+if [[ "${1:-}" == --uninstall ]]; then
+ guest_ssh "
+ uid=\$(id -u)
+ printf '%s\\n' '$VZ_GUEST_PASSWORD' | sudo -S \
+ launchctl asuser \"\$uid\" launchctl unsetenv \
+ DYLD_INSERT_LIBRARIES || true
+ defaults delete com.apple.loginwindow TALLogoutSavesState \
+ 2>/dev/null || true
+ defaults delete com.apple.loginwindow \
+ LoginwindowLaunchesRelaunchApps 2>/dev/null || true
+ printf '%s\\n' '$VZ_GUEST_PASSWORD' | sudo -S rm -rf \
+ /Library/VirtualMac
+ "
+ echo "Removed OpenGL PVG compatibility from $GUEST_TARGET"
+ exit 0
+fi
+
+"$SCRIPT_DIR/build-opengl-guest-compat.sh"
+DYLIB="${VZ_OPENGL_GUEST_BUILD:-$VZ_BUILD_ROOT/guest-opengl}/OpenGLPVGCompat.dylib"
+need_file "$DYLIB"
+
+if ! guest_ssh 'csrutil status' 2>&1 | grep -q 'disabled'; then
+ die "disable SIP in the Virtual Mac recovery environment before installing"
+fi
+
+guest_scp "$DYLIB" "$GUEST_TARGET:/tmp/"
+guest_ssh "
+ set -eu
+ uid=\$(id -u)
+ printf '%s\\n' '$VZ_GUEST_PASSWORD' | sudo -S mkdir -p \
+ /Library/VirtualMac
+ printf '%s\\n' '$VZ_GUEST_PASSWORD' | sudo -S cp \
+ /tmp/OpenGLPVGCompat.dylib \
+ /Library/VirtualMac/OpenGLPVGCompat.dylib
+ printf '%s\\n' '$VZ_GUEST_PASSWORD' | sudo -S chown root:wheel \
+ /Library/VirtualMac/OpenGLPVGCompat.dylib
+ printf '%s\\n' '$VZ_GUEST_PASSWORD' | sudo -S chmod 755 \
+ /Library/VirtualMac/OpenGLPVGCompat.dylib
+ # Sign on the guest. A host-generated ad hoc signature on an arm64e slice
+ # verifies on disk but macOS can still reject its pages at process launch.
+ printf '%s\\n' '$VZ_GUEST_PASSWORD' | sudo -S codesign \
+ --force --sign - /Library/VirtualMac/OpenGLPVGCompat.dylib
+ boot_args=\$(nvram boot-args 2>/dev/null | sed 's/^boot-args[[:space:]]*//' || true)
+ case \" \$boot_args \" in
+ *' -arm64e_preview_abi '*) ;;
+ *)
+ boot_args=\"\${boot_args:+\$boot_args }-arm64e_preview_abi\"
+ printf '%s\\n' '$VZ_GUEST_PASSWORD' | sudo -S nvram \
+ \"boot-args=\$boot_args\"
+ ;;
+ esac
+ printf '%s\\n' '$VZ_GUEST_PASSWORD' | sudo -S launchctl \
+ asuser \"\$uid\" launchctl setenv DYLD_INSERT_LIBRARIES \
+ /Library/VirtualMac/OpenGLPVGCompat.dylib
+ defaults write com.apple.loginwindow TALLogoutSavesState -bool false
+ defaults write com.apple.loginwindow \
+ LoginwindowLaunchesRelaunchApps -bool false
+"
+
+echo "Installed OpenGL PVG compatibility in $GUEST_TARGET"
+echo "Restart the Virtual Mac once if -arm64e_preview_abi was newly added."
diff --git a/VirtualMac/scripts/development/pvg-memory-probe.m b/VirtualMac/scripts/development/pvg-memory-probe.m
new file mode 100644
index 0000000..9381581
--- /dev/null
+++ b/VirtualMac/scripts/development/pvg-memory-probe.m
@@ -0,0 +1,102 @@
+#import <Foundation/Foundation.h>
+#import <Metal/Metal.h>
+
+// Allocate and touch ordinary private Metal buffers one chunk at a time. This
+// deliberately avoids complex shaders so a guest GPU-command compatibility
+// failure cannot be mistaken for the host's memory-capacity boundary.
+int main(int argc, const char *argv[]) {
+ @autoreleasepool {
+ NSUInteger chunkMiB = argc > 1 ? strtoull(argv[1], NULL, 10) : 64;
+ NSUInteger maximumMiB = argc > 2 ? strtoull(argv[2], NULL, 10) : 12288;
+ useconds_t delayUsec = argc > 3 ? strtoul(argv[3], NULL, 10) : 100000;
+ if (chunkMiB == 0 || maximumMiB < chunkMiB) {
+ fprintf(stderr, "usage: pvg-memory-probe [chunk-MiB] [maximum-MiB] [delay-usec]\n");
+ return 64;
+ }
+
+ id<MTLDevice> device = MTLCreateSystemDefaultDevice();
+ id<MTLCommandQueue> queue = [device newCommandQueue];
+ if (device == nil || queue == nil) {
+ fprintf(stderr, "Metal device or command queue unavailable\n");
+ return 69;
+ }
+
+ NSMutableArray<id<MTLBuffer>> *buffers = [NSMutableArray array];
+ id<MTLBuffer> readback = [device newBufferWithLength:4096
+ options:MTLResourceStorageModeShared];
+ if (readback == nil) {
+ fprintf(stderr, "readback buffer unavailable\n");
+ return 69;
+ }
+ NSUInteger chunkBytes = chunkMiB << 20;
+ NSUInteger allocatedMiB = 0;
+ printf("device=%s chunk=%lu MiB maximum=%lu MiB\n",
+ device.name.UTF8String,
+ (unsigned long)chunkMiB, (unsigned long)maximumMiB);
+ fflush(stdout);
+
+ while (allocatedMiB + chunkMiB <= maximumMiB) {
+ @autoreleasepool {
+ id<MTLBuffer> buffer = [device
+ newBufferWithLength:chunkBytes
+ options:MTLResourceStorageModePrivate];
+ if (buffer == nil) {
+ printf("allocation-refused after=%lu MiB\n",
+ (unsigned long)allocatedMiB);
+ fflush(stdout);
+ return 0;
+ }
+
+ id<MTLCommandBuffer> command = [queue commandBuffer];
+ id<MTLBlitCommandEncoder> blit =
+ [command blitCommandEncoder];
+ [blit fillBuffer:buffer
+ range:NSMakeRange(0, chunkBytes)
+ value:(uint8_t)(buffers.count + 1)];
+ [blit copyFromBuffer:buffer sourceOffset:0
+ toBuffer:readback destinationOffset:0
+ size:readback.length];
+ [blit endEncoding];
+ [command commit];
+ [command waitUntilCompleted];
+ if (command.status == MTLCommandBufferStatusError) {
+ printf("command-failed after=%lu MiB error=%s\n",
+ (unsigned long)allocatedMiB,
+ command.error.description.UTF8String ?: "unknown");
+ fflush(stdout);
+ return 1;
+ }
+ uint8_t expected = (uint8_t)(buffers.count + 1);
+ const uint8_t *bytes = readback.contents;
+ for (NSUInteger index = 0; index < readback.length; index++) {
+ if (bytes[index] != expected) {
+ printf("verification-failed after=%lu MiB "
+ "offset=%lu expected=%u actual=%u\n",
+ (unsigned long)allocatedMiB,
+ (unsigned long)index, expected, bytes[index]);
+ fflush(stdout);
+ return 1;
+ }
+ }
+
+ [buffers addObject:buffer];
+ [buffer release];
+ allocatedMiB += chunkMiB;
+ printf("allocated=%lu MiB guest-current=%llu MiB\n",
+ (unsigned long)allocatedMiB,
+ (unsigned long long)(device.currentAllocatedSize >> 20));
+ fflush(stdout);
+ }
+ if (delayUsec != 0)
+ usleep(delayUsec);
+ }
+
+ printf("maximum-reached allocated=%lu MiB\n",
+ (unsigned long)allocatedMiB);
+ fflush(stdout);
+ sleep(5);
+ [readback release];
+ [queue release];
+ }
+ return 0;
+}
diff --git a/VirtualMac/scripts/development/run-pvg-memory-probe.sh b/VirtualMac/scripts/development/run-pvg-memory-probe.sh
new file mode 100755
index 0000000..cb4224c
--- /dev/null
+++ b/VirtualMac/scripts/development/run-pvg-memory-probe.sh
@@ -0,0 +1,61 @@
+#!/bin/bash
+
+set -euo pipefail
+SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
+# shellcheck source=../lib/common.sh
+source "$SCRIPT_DIR/../lib/common.sh"
+
+need_command xcrun
+need_command sshpass
+
+GUEST_HOST="${VZ_GUEST_HOST:-127.0.0.1}"
+GUEST_PORT="${VZ_GUEST_PORT:-2224}"
+: "${VZ_GUEST_USER:?set VZ_GUEST_USER}"
+GUEST_USER="$VZ_GUEST_USER"
+: "${VZ_GUEST_PASSWORD:?set VZ_GUEST_PASSWORD}"
+CHUNK_MIB="${PVG_PROBE_CHUNK_MIB:-64}"
+MAXIMUM_MIB="${PVG_PROBE_MAXIMUM_MIB:-12288}"
+DELAY_USEC="${PVG_PROBE_DELAY_USEC:-100000}"
+
+OUT="$VZ_BUILD_ROOT/development/pvg-memory-probe"
+RESULT_DIR="$VZ_BUILD_ROOT/diagnostics/pvg-memory-$(date +%Y%m%d-%H%M%S)"
+mkdir -p "$(dirname "$OUT")" "$RESULT_DIR"
+
+xcrun --sdk macosx clang -fno-objc-arc -arch arm64 \
+ -mmacosx-version-min=12.0 -framework Foundation -framework Metal \
+ "$SCRIPT_DIR/pvg-memory-probe.m" -o "$OUT"
+
+SSH_ARGS=(
+ -p "$GUEST_PORT"
+ -o UserKnownHostsFile=/dev/null
+ -o StrictHostKeyChecking=no
+ -o PreferredAuthentications=password
+ -o PubkeyAuthentication=no
+ -o IdentitiesOnly=yes
+)
+SCP_ARGS=(
+ -P "$GUEST_PORT"
+ -o UserKnownHostsFile=/dev/null
+ -o StrictHostKeyChecking=no
+ -o PreferredAuthentications=password
+ -o PubkeyAuthentication=no
+ -o IdentitiesOnly=yes
+)
+TARGET="$GUEST_USER@$GUEST_HOST"
+
+sshpass -p "$VZ_GUEST_PASSWORD" scp "${SCP_ARGS[@]}" \
+ "$OUT" "$TARGET:/tmp/pvg-memory-probe"
+sshpass -p "$VZ_GUEST_PASSWORD" ssh "${SSH_ARGS[@]}" "$TARGET" \
+ "chmod 755 /tmp/pvg-memory-probe; /tmp/pvg-memory-probe \
+ '$CHUNK_MIB' '$MAXIMUM_MIB' '$DELAY_USEC'" \
+ | tee "$RESULT_DIR/guest-probe.log"
+
+if [[ -n "${VZ_IPAD_PASSWORD:-}" ]]; then
+ ensure_ipad_usb
+ ipad_scp "$IPAD_TARGET:/tmp/vmm.stderr.log" \
+ "$RESULT_DIR/vmm.stderr.log" 2>/dev/null || true
+ ipad_scp "$IPAD_TARGET:/tmp/pvg-trace.log" \
+ "$RESULT_DIR/pvg-trace.log" 2>/dev/null || true
+fi
+
+echo "PVG memory probe evidence: $RESULT_DIR"
diff --git a/VirtualMac/scripts/launch-ipad-app.sh b/VirtualMac/scripts/launch-ipad-app.sh
index 1e54c27..bced29f 100755
--- a/VirtualMac/scripts/launch-ipad-app.sh
+++ b/VirtualMac/scripts/launch-ipad-app.sh
@@ -9,7 +9,7 @@ ATTEMPTS="${1:-5}"
START_WAIT="${VZ_IPAD_START_WAIT:-12}"
INPUT_SELF_TEST="${VZ_IPAD_INPUT_SELF_TEST:-0}"
DISMISS_RESTART_ALERT="${VZ_IPAD_DISMISS_RESTART_ALERT:-0}"
-BUNDLE="${VZ_IPAD_VM_BUNDLE:-/var/mobile/Media/VirtualMac/VM_Sequoia.bundle}"
+BUNDLE="${VZ_IPAD_VM_BUNDLE:-/var/mobile/Media/VirtualMac/Sequoia.bundle}"
[[ "$ATTEMPTS" =~ ^[1-9][0-9]*$ ]] ||
die "attempt count must be a positive integer"
diff --git a/VirtualMac/scripts/tests/check-ipad-vm-health.sh b/VirtualMac/scripts/tests/check-ipad-vm-health.sh
index 9c12c6f..0cfe13f 100755
--- a/VirtualMac/scripts/tests/check-ipad-vm-health.sh
+++ b/VirtualMac/scripts/tests/check-ipad-vm-health.sh
@@ -17,7 +17,10 @@ echo "$health" | grep -q "state=1"
test "$(grep -c "TASK_LOOKUP_MISS" /tmp/pvg-trace.log || true)" = 0
test "$(grep "TASK_RESERVE" /tmp/pvg-trace.log | grep -c "result=0x0" || true)" = 0
test "$(grep "TASK_MAP" /tmp/pvg-trace.log | grep -c "result=0" || true)" = 0
-test "$(grep "TASK_MAP" /tmp/pvg-trace.log | grep -c "within=0" || true)" = 0
+if grep "TASK_MAP" /tmp/pvg-trace.log | grep -q "within=0"; then
+ grep -q "TASK_OVERFLOW_RESERVE" /tmp/pvg-trace.log
+fi
+test "$(grep -Ec "task map failed|mapping cannot fit one reservation|overflow reservation failed|graphics address space exhausted" /tmp/vmm.stderr.log || true)" = 0
test "$(grep -c "METAL_COMMAND_BUFFER.*error=" /tmp/pvg-trace.log || true)" = 0
echo "$health"
grep "METAL_HEALTH" /tmp/pvg-trace.log | tail -1
diff --git a/VirtualMac/scripts/tests/test-ipad-vmm-memory-policy.sh b/VirtualMac/scripts/tests/test-ipad-vmm-memory-policy.sh
new file mode 100755
index 0000000..b5a7446
--- /dev/null
+++ b/VirtualMac/scripts/tests/test-ipad-vmm-memory-policy.sh
@@ -0,0 +1,55 @@
+#!/bin/bash
+
+set -euo pipefail
+SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
+# shellcheck source=../lib/common.sh
+source "$SCRIPT_DIR/../lib/common.sh"
+
+SDK="$(xcrun --sdk iphoneos --show-sdk-path)"
+OUT="$VZ_BUILD_ROOT/memorystatus-probe"
+BIN="$OUT/memorystatus-probe"
+REMOTE="${VZ_IPAD_WORK:-/var/root/VirtualMac}/memorystatus-probe"
+
+need_command ldid
+need_command xcrun
+need_file "$VZ_REPO_ROOT/vz/development/probes/memorystatus_probe.c"
+need_file "$VZ_REPO_ROOT/vz/patches/vmm.ents.xml"
+mkdir -p "$OUT"
+
+xcrun --sdk iphoneos clang \
+ -arch arm64e -miphoneos-version-min="$VZ_IPADOS_MIN_VERSION" \
+ -isysroot "$SDK" \
+ "$VZ_REPO_ROOT/vz/development/probes/memorystatus_probe.c" -o "$BIN"
+ldid -S"$VZ_REPO_ROOT/vz/patches/vmm.ents.xml" "$BIN"
+hash="$(ldid -h "$BIN" | sed -n 's/^CDHash=//p')"
+test -n "$hash"
+
+ensure_ipad_usb
+ipad_scp "$BIN" "$IPAD_TARGET:$REMOTE"
+ipad_ssh "PATH=/var/jb/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin; export PATH; \
+ chmod 755 '$REMOTE'; jbctl trustcache add '$hash'; \
+ pid=\$(ps ax -o pid= -o command= | awk \
+ '/com\\.apple\\.Virtualization\\.VirtualMachine/ { print \$1; exit }'); \
+ app_pid=\$(ps ax -o pid= -o command= | awk \
+ '/VirtualMac\\.app\\/VirtualMac/ { print \$1; exit }'); \
+ test -n \"\$pid\" || { echo 'error: no running Virtual Mac VMM' >&2; exit 1; }; \
+ test -n \"\$app_pid\" || { echo 'error: no running Virtual Mac app' >&2; exit 1; }; \
+ expected=\$((\$(sysctl -n hw.memsize) / 524288)); \
+ output=\$('$REMOTE' \"\$pid\"); printf '%s\\n' \"\$output\"; \
+ printf '%s\\n' \"\$output\" | grep -Fq \
+ \"active=\$expected/0x0 inactive=\$expected/0x0\" || { \
+ echo \"error: expected non-fatal VMM limit \$expected MiB\" >&2; \
+ exit 1; \
+ }; \
+ vmm_priority=\$(printf '%s\\n' \"\$output\" | sed -n \
+ 's/.* priority=\\([0-9][0-9]*\\) .*/\\1/p' | tail -1); \
+ app_output=\$('$REMOTE' \"\$app_pid\"); printf '%s\\n' \"\$app_output\"; \
+ app_priority=\$(printf '%s\\n' \"\$app_output\" | sed -n \
+ 's/.* priority=\\([0-9][0-9]*\\) .*/\\1/p' | tail -1); \
+ test -n \"\$vmm_priority\" -a -n \"\$app_priority\" || { \
+ echo 'error: could not read app/VMM jetsam priorities' >&2; exit 1; \
+ }; \
+ test \"\$app_priority\" -gt \"\$vmm_priority\" || { \
+ echo \"error: app jetsam priority \$app_priority must exceed VMM \$vmm_priority\" >&2; \
+ exit 1; \
+ }"
diff --git a/VirtualMac/scripts/update-localizations.py b/VirtualMac/scripts/update-localizations.py
index 98517d5..361fc66 100644
--- a/VirtualMac/scripts/update-localizations.py
+++ b/VirtualMac/scripts/update-localizations.py
@@ -12,7 +12,7 @@ import re
ROOT = Path(__file__).resolve().parents[1]
RESOURCE_ROOT = ROOT / "resources" / "Localizations"
-SOURCE_PATTERN = re.compile(r'VZL\(@"((?:[^"\\]|\\.)*)"\)')
+SOURCE_PATTERN = re.compile(r'(?:VZL|VML)\(@"((?:[^"\\]|\\.)*)"\)')
STRINGS_PATTERN = re.compile(
r'^"((?:[^"\\]|\\.)*)"\s*=\s*"((?:[^"\\]|\\.)*)";', re.M
)
@@ -20,8 +20,9 @@ STRINGS_PATTERN = re.compile(
def source_keys() -> list[str]:
keys: set[str] = set()
- for source in (ROOT / "vz" / "host").glob("*.m"):
- keys.update(SOURCE_PATTERN.findall(source.read_text()))
+ for directory in (ROOT / "vz" / "host", ROOT / "vz" / "guest"):
+ for source in directory.glob("*.m"):
+ keys.update(SOURCE_PATTERN.findall(source.read_text()))
return sorted(keys, key=str.casefold)
diff --git a/VirtualMac/scripts/validate-localizations.py b/VirtualMac/scripts/validate-localizations.py
index 5e90197..53d9e86 100644
--- a/VirtualMac/scripts/validate-localizations.py
+++ b/VirtualMac/scripts/validate-localizations.py
@@ -13,7 +13,7 @@ EXPECTED = {
"nl", "no", "pl", "pt", "pt_PT", "ro", "ru", "sk", "sl", "sv",
"th", "tr", "uk", "vi", "zh_CN", "zh_HK", "zh_TW",
}
-SOURCE_PATTERN = re.compile(r'VZL\(@"((?:[^"\\]|\\.)*)"\)')
+SOURCE_PATTERN = re.compile(r'(?:VZL|VML)\(@"((?:[^"\\]|\\.)*)"\)')
STRINGS_PATTERN = re.compile(r'^"((?:[^"\\]|\\.)*)"\s*=\s*"((?:[^"\\]|\\.)*)";', re.M)
FORMAT_PATTERN = re.compile(
r'%(?:%|(?:\d+\$)?[-+ #0\']*(?:\d+|\*)?(?:\.(?:\d+|\*))?'
@@ -52,7 +52,9 @@ def fail(message: str) -> None:
source_keys = set()
-for source in (ROOT / "vz" / "host").glob("*.m"):
+sources = list((ROOT / "vz" / "host").glob("*.m"))
+sources += list((ROOT / "vz" / "guest").glob("*.m"))
+for source in sources:
contents = source.read_text()
source_keys.update(SOURCE_PATTERN.findall(contents))
for pattern in RAW_UI_PATTERNS:
diff --git a/VirtualMac/vendor/VirtualBuddy/ipsws_v2.json b/VirtualMac/vendor/VirtualBuddy/ipsws_v2.json
index 07a499a..6c9a784 100644
--- a/VirtualMac/vendor/VirtualBuddy/ipsws_v2.json
+++ b/VirtualMac/vendor/VirtualBuddy/ipsws_v2.json
@@ -299,6 +299,30 @@
}
],
"restoreImages" : [
+ {
+ "build" : "26A5416b",
+ "channel" : "devbeta",
+ "downloadSize" : 22740968239,
+ "group" : "goldengate",
+ "id" : "26A5416b",
+ "mobileDeviceMinVersion" : "1853.0.0",
+ "name" : "macOS 27.0 Developer Beta 6",
+ "requirements" : "min_host_26_virtual_installation",
+ "url" : "https:\/\/updates.cdn-apple.com\/2026SummerSeed\/7b1c2bd9-7617-426d-92e5-ef204407ffaa\/UniversalMac_27.0_26A5416b_Restore.ipsw",
+ "version" : "27.0.0"
+ },
+ {
+ "build" : "26A5406e",
+ "channel" : "devbeta",
+ "downloadSize" : 22743302878,
+ "group" : "goldengate",
+ "id" : "26A5406e",
+ "mobileDeviceMinVersion" : "1853.0.0",
+ "name" : "macOS 27.0 Developer Beta 5",
+ "requirements" : "min_host_26_virtual_installation",
+ "url" : "https:\/\/updates.cdn-apple.com\/2026SummerSeed\/fullrestores\/140-81421\/E76AF7DE-7F9D-4808-B023-AC9A8313B177\/UniversalMac_27.0_26A5406e_Restore.ipsw",
+ "version" : "27.0.0"
+ },
{
"build" : "26A5388g",
"channel" : "devbeta",
@@ -359,6 +383,30 @@
"url" : "https:\/\/updates.cdn-apple.com\/2026SummerSeed\/fullrestores\/122-99636\/BB03A927-E303-44C1-BB94-6197F130A163\/UniversalMac_27.0_26A5353q_Restore.ipsw",
"version" : "27.0.0"
},
+ {
+ "build" : "25G83",
+ "channel" : "regular",
+ "downloadSize" : 19772231540,
+ "group" : "tahoe",
+ "id" : "25G83",
+ "mobileDeviceMinVersion" : "1827.100.14",
+ "name" : "macOS 26.6.2",
+ "requirements" : "min_host_13",
+ "url" : "https:\/\/updates.cdn-apple.com\/2026SummerFCS\/fullrestores\/140-75212\/A2A24B94-1FC1-45A3-93F7-C51B02AF1F4D\/UniversalMac_26.6.2_25G83_Restore.ipsw",
+ "version" : "26.6.2"
+ },
+ {
+ "build" : "25G82",
+ "channel" : "devbeta",
+ "downloadSize" : 19772367538,
+ "group" : "tahoe",
+ "id" : "25G82",
+ "mobileDeviceMinVersion" : "1827.100.14",
+ "name" : "macOS 26.6.2 RC",
+ "requirements" : "min_host_13",
+ "url" : "https:\/\/updates.cdn-apple.com\/2026SummerFCS\/fullrestores\/140-83731\/E1F24412-C22B-42A2-AE01-09E5E18573E1\/UniversalMac_26.6.2_25G82_Restore.ipsw",
+ "version" : "26.6.2"
+ },
{
"build" : "25G76",
"channel" : "regular",
diff --git a/VirtualMac/vz/development/harness/vm.sh b/VirtualMac/vz/development/harness/vm.sh
index ae79294..935cc7a 100755
--- a/VirtualMac/vz/development/harness/vm.sh
+++ b/VirtualMac/vz/development/harness/vm.sh
@@ -2,7 +2,7 @@
# Helper for the matching macOS guest VM.
# Keeps the whole ssh/scp command in one script (zsh won't word-split a $VAR of -o flags).
# vz/development/harness/vm.sh ssh '<remote command>'
-# vz/development/harness/vm.sh scp <src> mac@<guest-address>:<dst>
+# vz/development/harness/vm.sh scp <src> <guest-user>@<guest-address>:<dst>
: "${VZ_GUEST_HOST:?set VZ_GUEST_HOST}"
: "${VZ_GUEST_USER:?set VZ_GUEST_USER}"
HOST="$VZ_GUEST_HOST"
diff --git a/VirtualMac/vz/development/probes/NativeBCProbe-Info.plist b/VirtualMac/vz/development/probes/NativeBCProbe-Info.plist
new file mode 100644
index 0000000..52379a7
--- /dev/null
+++ b/VirtualMac/vz/development/probes/NativeBCProbe-Info.plist
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>CFBundleDisplayName</key><string>Native BC Probe</string>
+ <key>CFBundleExecutable</key><string>NativeBCProbe</string>
+ <key>CFBundleIdentifier</key><string>com.mac.virtual.native-bc-probe</string>
+ <key>CFBundleInfoDictionaryVersion</key><string>6.0</string>
+ <key>CFBundleName</key><string>NativeBCProbe</string>
+ <key>CFBundlePackageType</key><string>APPL</string>
+ <key>CFBundleShortVersionString</key><string>1.0</string>
+ <key>CFBundleVersion</key><string>1</string>
+ <key>LSRequiresIPhoneOS</key><true/>
+ <key>MinimumOSVersion</key><string>14.5</string>
+ <key>UILaunchStoryboardName</key><string></string>
+ <key>UIRequiredDeviceCapabilities</key><array><string>arm64</string></array>
+ <key>UISupportedInterfaceOrientations~ipad</key>
+ <array>
+ <string>UIInterfaceOrientationPortrait</string>
+ <string>UIInterfaceOrientationLandscapeLeft</string>
+ <string>UIInterfaceOrientationLandscapeRight</string>
+ </array>
+</dict>
+</plist>
diff --git a/VirtualMac/vz/development/probes/memorystatus_probe.c b/VirtualMac/vz/development/probes/memorystatus_probe.c
new file mode 100644
index 0000000..9825ab9
--- /dev/null
+++ b/VirtualMac/vz/development/probes/memorystatus_probe.c
@@ -0,0 +1,86 @@
+#include <errno.h>
+#include <stdint.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <unistd.h>
+
+extern int memorystatus_control(uint32_t command, int32_t pid,
+ uint32_t flags, void *buffer,
+ size_t buffer_size);
+
+// https://github.com/apple-oss-distributions/xnu/blob/xnu-8792.81.2/bsd/sys/kern_memorystatus.h
+typedef struct {
+ int32_t memlimit_active;
+ uint32_t memlimit_active_attr;
+ int32_t memlimit_inactive;
+ uint32_t memlimit_inactive_attr;
+} memorystatus_memlimit_properties_t;
+
+typedef struct {
+ int32_t pid;
+ int32_t priority;
+ uint64_t user_data;
+ int32_t limit;
+ uint32_t state;
+} memorystatus_priority_entry_t;
+
+static int parseInt(const char *text, int32_t *value) {
+ char *end = NULL;
+ errno = 0;
+ long parsed = strtol(text, &end, 10);
+ if (errno != 0 || end == text || *end != '\0' ||
+ parsed < INT32_MIN || parsed > INT32_MAX)
+ return -1;
+ *value = (int32_t)parsed;
+ return 0;
+}
+
+static int printStatus(pid_t pid) {
+ memorystatus_memlimit_properties_t limits = {0};
+ errno = 0;
+ int limitsResult = memorystatus_control(
+ 8, pid, 0, &limits, sizeof(limits));
+ int limitsError = errno;
+ printf("pid=%d limits-result=%d errno=%d active=%d/0x%x "
+ "inactive=%d/0x%x\n", pid, limitsResult, limitsError,
+ limits.memlimit_active, limits.memlimit_active_attr,
+ limits.memlimit_inactive, limits.memlimit_inactive_attr);
+
+ memorystatus_priority_entry_t priority = {0};
+ errno = 0;
+ int priorityResult = memorystatus_control(
+ 1, pid, 0, &priority, sizeof(priority));
+ int priorityError = errno;
+ printf("pid=%d priority-result=%d errno=%d priority=%d "
+ "cached-limit=%d state=0x%x\n", pid, priorityResult,
+ priorityError, priority.priority, priority.limit, priority.state);
+ return limitsResult == 0 && priorityResult >= 0 ? 0 : 1;
+}
+
+int main(int argc, char **argv) {
+ if (argc != 2 && argc != 4) {
+ fprintf(stderr, "usage: %s PID [ACTIVE_MIB INACTIVE_MIB]\n",
+ argv[0]);
+ return 64;
+ }
+ int32_t pidValue = 0;
+ if (parseInt(argv[1], &pidValue) != 0 || pidValue <= 0) {
+ fprintf(stderr, "invalid pid: %s\n", argv[1]);
+ return 64;
+ }
+ if (argc == 2)
+ return printStatus((pid_t)pidValue);
+
+ memorystatus_memlimit_properties_t limits = {0};
+ if (parseInt(argv[2], &limits.memlimit_active) != 0 ||
+ parseInt(argv[3], &limits.memlimit_inactive) != 0) {
+ fprintf(stderr, "memory limits must be signed MiB integers\n");
+ return 64;
+ }
+ errno = 0;
+ int result = memorystatus_control(7, (pid_t)pidValue, 0,
+ &limits, sizeof(limits));
+ int error = errno;
+ printf("set pid=%d result=%d errno=%d\n", pidValue, result, error);
+ return result == 0 ? printStatus((pid_t)pidValue) : 1;
+}
diff --git a/VirtualMac/vz/development/probes/metal-clear.m b/VirtualMac/vz/development/probes/metal-clear.m
new file mode 100644
index 0000000..410e971
--- /dev/null
+++ b/VirtualMac/vz/development/probes/metal-clear.m
@@ -0,0 +1,141 @@
+#import <Foundation/Foundation.h>
+#import <Metal/Metal.h>
+#import <objc/message.h>
+#import <objc/runtime.h>
+
+static BOOL has_argument(int argc, const char *argv[], const char *argument) {
+ for (int index = 1; index < argc; ++index) {
+ if (strcmp(argv[index], argument) == 0)
+ return YES;
+ }
+ return NO;
+}
+
+int main(int argc, const char *argv[]) {
+ @autoreleasepool {
+ id<MTLDevice> device = MTLCreateSystemDefaultDevice();
+ BOOL customMSAA = has_argument(argc, argv, "--custom-msaa2");
+ BOOL msaa = customMSAA || has_argument(argc, argv, "--msaa2");
+ id<MTLTexture> texture = [device newTextureWithDescriptor:({
+ MTLTextureDescriptor *descriptor = [MTLTextureDescriptor new];
+ descriptor.textureType = msaa
+ ? MTLTextureType2DMultisample : MTLTextureType2D;
+ descriptor.pixelFormat = MTLPixelFormatRGBA8Unorm;
+ descriptor.width = 64;
+ descriptor.height = 64;
+ descriptor.sampleCount = msaa ? 2 : 1;
+ descriptor.storageMode = msaa ? MTLStorageModePrivate :
+ (has_argument(argc, argv, "--managed")
+ ? MTLStorageModeManaged : MTLStorageModeShared);
+ descriptor.usage = MTLTextureUsageRenderTarget;
+ if (has_argument(argc, argv, "--broad-usage")) {
+ descriptor.usage |= MTLTextureUsageShaderRead |
+ MTLTextureUsageShaderWrite | MTLTextureUsagePixelFormatView;
+ }
+ descriptor;
+ })];
+ id<MTLCommandQueue> queue = [device newCommandQueue];
+ id<MTLCommandBuffer> command =
+ has_argument(argc, argv, "--unretained")
+ ? [queue commandBufferWithUnretainedReferences]
+ : [queue commandBuffer];
+ MTLRenderPassDescriptor *pass = [MTLRenderPassDescriptor
+ renderPassDescriptor];
+ pass.colorAttachments[0].texture = texture;
+ pass.colorAttachments[0].loadAction = MTLLoadActionClear;
+ pass.colorAttachments[0].storeAction =
+ has_argument(argc, argv, "--store-unknown")
+ ? MTLStoreActionUnknown : MTLStoreActionStore;
+ pass.colorAttachments[0].clearColor = MTLClearColorMake(
+ 0.25, 0.5, 0.75, 1.0);
+ if (customMSAA) {
+ MTLSamplePosition positions[] = {
+ { .x = 0.75, .y = 0.75 },
+ { .x = 0.25, .y = 0.25 },
+ };
+ [pass setSamplePositions:positions count:2];
+ pass.renderTargetWidth = 64;
+ pass.renderTargetHeight = 64;
+ }
+ if (has_argument(argc, argv, "--dump-ivars")) {
+ for (Class cls = object_getClass(pass); cls != Nil;
+ cls = class_getSuperclass(cls)) {
+ unsigned int count = 0;
+ Method *methods = class_copyMethodList(cls, &count);
+ for (unsigned int index = 0; index < count; ++index) {
+ const char *name = sel_getName(
+ method_getName(methods[index]));
+ if (strcasestr(name, "sample"))
+ printf("method class=%s name=%s type=%s\n",
+ class_getName(cls), name,
+ method_getTypeEncoding(methods[index]));
+ }
+ free(methods);
+ Ivar *ivars = class_copyIvarList(cls, &count);
+ for (unsigned int index = 0; index < count; ++index)
+ printf("ivar class=%s name=%s type=%s offset=%td\n",
+ class_getName(cls), ivar_getName(ivars[index]),
+ ivar_getTypeEncoding(ivars[index]),
+ ivar_getOffset(ivars[index]));
+ free(ivars);
+ }
+ }
+ if (has_argument(argc, argv, "--null-depth-clear"))
+ pass.depthAttachment.loadAction = MTLLoadActionClear;
+ if (has_argument(argc, argv, "--null-stencil-clear"))
+ pass.stencilAttachment.loadAction = MTLLoadActionClear;
+ if (has_argument(argc, argv, "--target-size")) {
+ pass.renderTargetWidth = 64;
+ pass.renderTargetHeight = 64;
+ }
+ if (has_argument(argc, argv, "--null-store-dontcare")) {
+ for (NSUInteger index = 1; index < 8; ++index)
+ pass.colorAttachments[index].storeAction =
+ MTLStoreActionDontCare;
+ }
+ if (has_argument(argc, argv, "--private-opengl"))
+ ((void (*)(id, SEL, BOOL))objc_msgSend)(
+ pass, NSSelectorFromString(@"setOpenGLModeEnabled:"), YES);
+ if (has_argument(argc, argv, "--private-dither"))
+ ((void (*)(id, SEL, BOOL))objc_msgSend)(
+ pass, NSSelectorFromString(@"setDitherEnabled:"), YES);
+ if (has_argument(argc, argv, "--private-point-flip"))
+ ((void (*)(id, SEL, BOOL))objc_msgSend)(
+ pass, NSSelectorFromString(@"setPointCoordYFlipEnabled:"),
+ YES);
+ if (has_argument(argc, argv, "--private-samples"))
+ ((void (*)(id, SEL, NSUInteger))objc_msgSend)(
+ pass,
+ NSSelectorFromString(@"setDefaultRasterSampleCount:"), 1);
+ id<MTLBuffer> visibility = nil;
+ if (has_argument(argc, argv, "--visibility")) {
+ visibility = [device newBufferWithLength:16384 options:0];
+ pass.visibilityResultBuffer = visibility;
+ }
+ id<MTLRenderCommandEncoder> encoder =
+ [command renderCommandEncoderWithDescriptor:pass];
+ if (encoder == nil) {
+ fprintf(stderr, "render encoder is nil\n");
+ return 2;
+ }
+ [encoder endEncoding];
+ [command commit];
+ [command waitUntilCompleted];
+ if (msaa) {
+ printf("status=%ld error=%s\n", (long)command.status,
+ command.error ? command.error.description.UTF8String
+ : "none");
+ return command.status == MTLCommandBufferStatusCompleted ? 0 : 1;
+ }
+ unsigned char pixel[4] = {0};
+ [texture getBytes:pixel bytesPerRow:4 fromRegion:MTLRegionMake2D(0, 0, 1, 1)
+ mipmapLevel:0];
+ printf("status=%ld error=%s pixel=%u,%u,%u,%u\n",
+ (long)command.status,
+ command.error ? command.error.description.UTF8String : "none",
+ pixel[0], pixel[1], pixel[2], pixel[3]);
+ return command.status == MTLCommandBufferStatusCompleted &&
+ pixel[0] == 64 && pixel[1] == 128 && pixel[2] == 191 &&
+ pixel[3] == 255 ? 0 : 1;
+ }
+}
diff --git a/VirtualMac/vz/development/probes/metal-device.m b/VirtualMac/vz/development/probes/metal-device.m
new file mode 100644
index 0000000..e00ef50
--- /dev/null
+++ b/VirtualMac/vz/development/probes/metal-device.m
@@ -0,0 +1,37 @@
+#import <Foundation/Foundation.h>
+#import <Metal/Metal.h>
+#import <objc/message.h>
+
+static id send_object(id object, const char *selector_name) {
+ SEL selector = sel_registerName(selector_name);
+ return [object respondsToSelector:selector]
+ ? ((id (*)(id, SEL))objc_msgSend)(object, selector)
+ : nil;
+}
+
+int main(void) {
+ @autoreleasepool {
+ for (id<MTLDevice> device in MTLCopyAllDevices()) {
+ printf("device=%p class=%s name=%s registryID=0x%llx\n",
+ device, object_getClassName(device),
+ device.name.UTF8String, device.registryID);
+ const char *selector_names[] = {"vendorName", "className"};
+ for (NSUInteger index = 0; index < 2; index++) {
+ const char *selector_name = selector_names[index];
+ id value = send_object(device, selector_name);
+ printf(" %s=%s\n", selector_name,
+ value ? [[value description] UTF8String] : "(missing)");
+ }
+ for (NSUInteger family = 1000; family <= 1012; family++)
+ printf(" supportsFamily:%lu=%d\n", (unsigned long)family,
+ [device supportsFamily:(MTLGPUFamily)family]);
+ for (NSUInteger family = 2000; family <= 2004; family++)
+ printf(" supportsFamily:%lu=%d\n", (unsigned long)family,
+ [device supportsFamily:(MTLGPUFamily)family]);
+ for (NSUInteger family = 3000; family <= 3004; family++)
+ printf(" supportsFamily:%lu=%d\n", (unsigned long)family,
+ [device supportsFamily:(MTLGPUFamily)family]);
+ }
+ }
+ return 0;
+}
diff --git a/VirtualMac/vz/development/probes/native-bc-probe-app.m b/VirtualMac/vz/development/probes/native-bc-probe-app.m
new file mode 100644
index 0000000..04b8266
--- /dev/null
+++ b/VirtualMac/vz/development/probes/native-bc-probe-app.m
@@ -0,0 +1,369 @@
+#import <Foundation/Foundation.h>
+#import <Metal/Metal.h>
+#import <UIKit/UIKit.h>
+#import <dlfcn.h>
+#import <objc/message.h>
+#import <objc/runtime.h>
+
+#import "../../host/native_bc_texture_support.h"
+
+static UITextView *gLogView;
+static BOOL gDumpedTextureClasses;
+
+static void ProbeLog(NSString *format, ...) NS_FORMAT_FUNCTION(1, 2);
+static void ProbeLog(NSString *format, ...) {
+ va_list arguments;
+ va_start(arguments, format);
+ NSString *line = [[NSString alloc] initWithFormat:format arguments:arguments];
+ va_end(arguments);
+ fprintf(stderr, "[NativeBCProbe] %s\n", line.UTF8String);
+ NSString *path = @"/tmp/NativeBCProbe.log";
+ NSFileHandle *handle = [NSFileHandle fileHandleForWritingAtPath:path];
+ if (!handle) {
+ [@"" writeToFile:path atomically:YES encoding:NSUTF8StringEncoding error:nil];
+ handle = [NSFileHandle fileHandleForWritingAtPath:path];
+ }
+ [handle seekToEndOfFile];
+ [handle writeData:[[line stringByAppendingString:@"\n"]
+ dataUsingEncoding:NSUTF8StringEncoding]];
+ [handle closeFile];
+ dispatch_async(dispatch_get_main_queue(), ^{
+ gLogView.text = [(gLogView.text ?: @"") stringByAppendingFormat:@"%@\n", line];
+ });
+}
+
+static void DumpTextureClassLayout(id texture) {
+ if (gDumpedTextureClasses) return;
+ gDumpedTextureClasses = YES;
+ for (Class cls = object_getClass(texture); cls; cls = class_getSuperclass(cls)) {
+ unsigned int count = 0;
+ Ivar *ivars = class_copyIvarList(cls, &count);
+ ProbeLog(@"CLASS %@ size=%lu ivars=%u", NSStringFromClass(cls),
+ (unsigned long)class_getInstanceSize(cls), count);
+ for (unsigned int index = 0; index < count; ++index) {
+ ProbeLog(@" IVAR %s offset=%td type=%s", ivar_getName(ivars[index]),
+ ivar_getOffset(ivars[index]),
+ ivar_getTypeEncoding(ivars[index]));
+ }
+ free(ivars);
+ }
+}
+
+static NSData *RepeatedBlock(const uint8_t block[16], NSUInteger width,
+ NSUInteger height) {
+ NSUInteger count = ((width + 3) / 4) * ((height + 3) / 4);
+ NSMutableData *data = [NSMutableData dataWithLength:count * 16];
+ uint8_t *destination = data.mutableBytes;
+ for (NSUInteger index = 0; index < count; ++index)
+ memcpy(destination + index * 16, block, 16);
+ return data;
+}
+
+static NSData *SolidMagentaBC3(NSUInteger width, NSUInteger height) {
+ const uint8_t block[16] = {
+ 0xff, 0xff, 0, 0, 0, 0, 0, 0,
+ 0x1f, 0xf8, 0x1f, 0xf8, 0, 0, 0, 0,
+ };
+ return RepeatedBlock(block, width, height);
+}
+
+static NSData *SolidMagentaBC7(NSUInteger width, NSUInteger height) {
+ // Generated from opaque magenta with Intel's ISPC Texture Compressor,
+ // using GetProfile_alpha_slow().
+ const uint8_t block[16] = {
+ 0x04, 0xfe, 0xff, 0xff, 0x7f, 0x00, 0x00, 0x00,
+ 0xe0, 0xff, 0xff, 0xff, 0x5f, 0xab, 0xaa, 0xaa,
+ };
+ return RepeatedBlock(block, width, height);
+}
+
+static BOOL SampleTexture(id<MTLDevice> device, id<MTLCommandQueue> queue,
+ id<MTLTexture> texture, NSString *label) {
+ NSError *error = nil;
+ id<MTLLibrary> library = [device newDefaultLibrary];
+ id<MTLFunction> vertex = [library newFunctionWithName:@"native_bc_probe_vertex"];
+ id<MTLFunction> fragment = [library newFunctionWithName:@"native_bc_probe_fragment"];
+ MTLRenderPipelineDescriptor *pipelineDescriptor =
+ [[MTLRenderPipelineDescriptor alloc] init];
+ pipelineDescriptor.vertexFunction = vertex;
+ pipelineDescriptor.fragmentFunction = fragment;
+ pipelineDescriptor.colorAttachments[0].pixelFormat = MTLPixelFormatRGBA8Unorm;
+ id<MTLRenderPipelineState> pipeline = [device
+ newRenderPipelineStateWithDescriptor:pipelineDescriptor error:&error];
+ if (!pipeline) {
+ ProbeLog(@"%@ pipeline FAILED: %@", label, error);
+ return NO;
+ }
+
+ MTLTextureDescriptor *targetDescriptor = [MTLTextureDescriptor
+ texture2DDescriptorWithPixelFormat:MTLPixelFormatRGBA8Unorm
+ width:64 height:64 mipmapped:NO];
+ targetDescriptor.storageMode = MTLStorageModeShared;
+ targetDescriptor.usage = MTLTextureUsageRenderTarget;
+ id<MTLTexture> target = [device newTextureWithDescriptor:targetDescriptor];
+ id<MTLCommandBuffer> command = [queue commandBuffer];
+ MTLRenderPassDescriptor *pass = [MTLRenderPassDescriptor renderPassDescriptor];
+ pass.colorAttachments[0].texture = target;
+ pass.colorAttachments[0].loadAction = MTLLoadActionClear;
+ pass.colorAttachments[0].storeAction = MTLStoreActionStore;
+ pass.colorAttachments[0].clearColor = MTLClearColorMake(0, 0, 0, 1);
+ id<MTLRenderCommandEncoder> encoder =
+ [command renderCommandEncoderWithDescriptor:pass];
+ [encoder setRenderPipelineState:pipeline];
+ [encoder setFragmentTexture:texture atIndex:0];
+ [encoder drawPrimitives:MTLPrimitiveTypeTriangle vertexStart:0 vertexCount:3];
+ [encoder endEncoding];
+ [command commit];
+ [command waitUntilCompleted];
+ uint8_t pixel[4] = {};
+ [target getBytes:pixel bytesPerRow:4
+ fromRegion:MTLRegionMake2D(32, 32, 1, 1) mipmapLevel:0];
+ BOOL passed = command.status == MTLCommandBufferStatusCompleted &&
+ pixel[0] > 240 && pixel[1] < 15 && pixel[2] > 240 && pixel[3] > 240;
+ ProbeLog(@"%@ sample status=%ld error=%@ pixel=%u,%u,%u,%u %@", label,
+ (long)command.status, command.error, pixel[0], pixel[1], pixel[2],
+ pixel[3], passed ? @"PASS" : @"FAIL");
+ return passed;
+}
+
+static BOOL RunFormatProbe(id<MTLDevice> device, id<MTLCommandQueue> queue,
+ MTLPixelFormat format, NSUInteger width,
+ NSUInteger height, NSData *blocks,
+ BOOL useReplaceRegion) {
+ NSString *label = [NSString stringWithFormat:@"format=%lu %lux%lu %@",
+ (unsigned long)format, (unsigned long)width, (unsigned long)height,
+ useReplaceRegion ? @"replaceRegion" : @"GPU-blit"];
+ MTLTextureDescriptor *descriptor = [MTLTextureDescriptor
+ texture2DDescriptorWithPixelFormat:format width:width height:height
+ mipmapped:NO];
+ descriptor.usage = MTLTextureUsageShaderRead;
+ descriptor.storageMode = MTLStorageModePrivate;
+ id<MTLTexture> texture = nil;
+ @try {
+ texture = [device newTextureWithDescriptor:descriptor];
+ } @catch (NSException *exception) {
+ ProbeLog(@"%@ create EXCEPTION %@: %@", label, exception.name,
+ exception.reason);
+ return NO;
+ }
+ ProbeLog(@"%@ create texture=%@ class=%@", label, texture,
+ NSStringFromClass([(id)texture class]));
+ if (!texture) return NO;
+ DumpTextureClassLayout(texture);
+
+ NSUInteger rowBytes = ((width + 3) / 4) * 16;
+ if (useReplaceRegion) {
+ [texture replaceRegion:MTLRegionMake2D(0, 0, width, height)
+ mipmapLevel:0 withBytes:blocks.bytes bytesPerRow:rowBytes];
+ } else {
+ id<MTLBuffer> upload = [device newBufferWithBytes:blocks.bytes
+ length:blocks.length options:0];
+ id<MTLCommandBuffer> command = [queue commandBuffer];
+ id<MTLBlitCommandEncoder> blit = [command blitCommandEncoder];
+ [blit copyFromBuffer:upload sourceOffset:0 sourceBytesPerRow:rowBytes
+ sourceBytesPerImage:blocks.length sourceSize:MTLSizeMake(width, height, 1)
+ toTexture:texture destinationSlice:0 destinationLevel:0
+ destinationOrigin:MTLOriginMake(0, 0, 0)];
+ [blit endEncoding];
+ [command commit];
+ [command waitUntilCompleted];
+ ProbeLog(@"%@ upload status=%ld error=%@", label,
+ (long)command.status, command.error);
+ if (command.status != MTLCommandBufferStatusCompleted) return NO;
+ }
+ return SampleTexture(device, queue, texture, label);
+}
+
+static BOOL RunHeapProbe(id<MTLDevice> device, id<MTLCommandQueue> queue,
+ MTLPixelFormat format, NSData *blocks) {
+ const NSUInteger width = 1024;
+ const NSUInteger height = 512;
+ NSString *label = [NSString stringWithFormat:@"format=%lu heap",
+ (unsigned long)format];
+ MTLTextureDescriptor *descriptor = [MTLTextureDescriptor
+ texture2DDescriptorWithPixelFormat:format width:width height:height
+ mipmapped:NO];
+ descriptor.storageMode = MTLStorageModePrivate;
+ descriptor.usage = MTLTextureUsageShaderRead;
+ MTLSizeAndAlign sizeAndAlign = [device
+ heapTextureSizeAndAlignWithDescriptor:descriptor];
+ ProbeLog(@"%@ size=%llu align=%llu", label,
+ (unsigned long long)sizeAndAlign.size,
+ (unsigned long long)sizeAndAlign.align);
+ if (!sizeAndAlign.size || !sizeAndAlign.align) return NO;
+ MTLHeapDescriptor *heapDescriptor = [[MTLHeapDescriptor alloc] init];
+ heapDescriptor.storageMode = MTLStorageModePrivate;
+ heapDescriptor.size = sizeAndAlign.size;
+ id<MTLHeap> heap = [device newHeapWithDescriptor:heapDescriptor];
+ id<MTLTexture> texture = [heap newTextureWithDescriptor:descriptor];
+ ProbeLog(@"%@ heap=%@ texture=%@", label, heap, texture);
+ if (!texture) return NO;
+ NSUInteger rowBytes = ((width + 3) / 4) * 16;
+ id<MTLBuffer> upload = [device newBufferWithBytes:blocks.bytes
+ length:blocks.length options:0];
+ id<MTLCommandBuffer> command = [queue commandBuffer];
+ id<MTLBlitCommandEncoder> blit = [command blitCommandEncoder];
+ [blit copyFromBuffer:upload sourceOffset:0 sourceBytesPerRow:rowBytes
+ sourceBytesPerImage:blocks.length sourceSize:MTLSizeMake(width, height, 1)
+ toTexture:texture destinationSlice:0 destinationLevel:0
+ destinationOrigin:MTLOriginMake(0, 0, 0)];
+ [blit endEncoding];
+ [command commit];
+ [command waitUntilCompleted];
+ if (command.status != MTLCommandBufferStatusCompleted) {
+ ProbeLog(@"%@ upload FAIL status=%ld error=%@", label,
+ (long)command.status, command.error);
+ return NO;
+ }
+ return SampleTexture(device, queue, texture, label);
+}
+
+static BOOL RunViewProbe(id<MTLDevice> device, id<MTLCommandQueue> queue,
+ MTLPixelFormat baseFormat, MTLPixelFormat viewFormat,
+ NSData *blocks) {
+ const NSUInteger width = 64;
+ const NSUInteger height = 64;
+ NSString *label = [NSString stringWithFormat:@"format=%lu view=%lu",
+ (unsigned long)baseFormat, (unsigned long)viewFormat];
+ MTLTextureDescriptor *descriptor = [MTLTextureDescriptor
+ texture2DDescriptorWithPixelFormat:baseFormat width:width height:height
+ mipmapped:NO];
+ descriptor.storageMode = MTLStorageModePrivate;
+ descriptor.usage = MTLTextureUsageShaderRead | MTLTextureUsagePixelFormatView;
+ id<MTLTexture> texture = [device newTextureWithDescriptor:descriptor];
+ if (!texture) {
+ ProbeLog(@"%@ base texture FAIL", label);
+ return NO;
+ }
+ NSUInteger rowBytes = ((width + 3) / 4) * 16;
+ [texture replaceRegion:MTLRegionMake2D(0, 0, width, height)
+ mipmapLevel:0 withBytes:blocks.bytes bytesPerRow:rowBytes];
+ id<MTLTexture> view = nil;
+ @try {
+ view = [texture newTextureViewWithPixelFormat:viewFormat];
+ } @catch (NSException *exception) {
+ ProbeLog(@"%@ EXCEPTION %@: %@", label, exception.name,
+ exception.reason);
+ return NO;
+ }
+ ProbeLog(@"%@ base=%@ view=%@", label, texture, view);
+ BOOL metadataPassed = view && view.pixelFormat == viewFormat;
+ ProbeLog(@"%@ view metadata pixelFormat=%lu %@", label,
+ (unsigned long)view.pixelFormat,
+ metadataPassed ? @"PASS" : @"FAIL");
+ return metadataPassed && SampleTexture(device, queue, view, label);
+}
+
+typedef struct {
+ uint64_t words[7];
+} ProbePixelFormatInfo;
+typedef ProbePixelFormatInfo (*ProbePixelFormatInfoFn)(
+ id<MTLDevice>, MTLPixelFormat);
+
+static BOOL RunPixelFormatInfoProbe(id<MTLDevice> device,
+ MTLPixelFormat format) {
+ ProbePixelFormatInfoFn getInfo = (ProbePixelFormatInfoFn)dlsym(
+ RTLD_DEFAULT, "MTLPixelFormatGetInfoForDevice");
+ if (!getInfo) {
+ ProbeLog(@"format=%lu frontend metadata symbol missing FAIL",
+ (unsigned long)format);
+ return NO;
+ }
+ ProbePixelFormatInfo actual = getInfo(device, format);
+ ProbePixelFormatInfo surrogate = getInfo(
+ device, VZBCValidationSurrogate(format));
+ BOOL passed = memcmp(&actual, &surrogate, sizeof(actual)) == 0;
+ ProbeLog(@"format=%lu frontend metadata=%016llx,%016llx,%016llx,"
+ "%016llx,%016llx,%016llx,%016llx %@",
+ (unsigned long)format,
+ actual.words[0], actual.words[1], actual.words[2],
+ actual.words[3], actual.words[4], actual.words[5],
+ actual.words[6], passed ? @"PASS" : @"FAIL");
+ return passed;
+}
+
+static void RunNativeBCProbe(void) {
+ [[NSFileManager defaultManager] removeItemAtPath:@"/tmp/NativeBCProbe.log"
+ error:nil];
+ id<MTLDevice> device = MTLCreateSystemDefaultDevice();
+ SEL selector = NSSelectorFromString(@"supportsBCTextureCompression");
+ int supportsBC = [(id)device respondsToSelector:selector]
+ ? ((BOOL (*)(id, SEL))objc_msgSend)(device, selector) : -1;
+ ProbeLog(@"device=%@ class=%@ supportsBC=%d nativePatch=%d", device.name,
+ NSStringFromClass([(id)device class]), supportsBC,
+ VZNativeBCTextureSupportInstalled());
+ id<MTLCommandQueue> queue = [device newCommandQueue];
+ BOOL results[] = {
+ RunPixelFormatInfoProbe(device, (MTLPixelFormat)135),
+ RunPixelFormatInfoProbe(device, (MTLPixelFormat)153),
+ RunFormatProbe(device, queue, (MTLPixelFormat)135, 2048, 2048,
+ SolidMagentaBC3(2048, 2048), NO),
+ RunFormatProbe(device, queue, (MTLPixelFormat)153, 1024, 512,
+ SolidMagentaBC7(1024, 512), NO),
+ RunFormatProbe(device, queue, (MTLPixelFormat)135, 64, 64,
+ SolidMagentaBC3(64, 64), YES),
+ RunFormatProbe(device, queue, (MTLPixelFormat)153, 64, 64,
+ SolidMagentaBC7(64, 64), YES),
+ RunHeapProbe(device, queue, (MTLPixelFormat)135,
+ SolidMagentaBC3(1024, 512)),
+ RunHeapProbe(device, queue, (MTLPixelFormat)153,
+ SolidMagentaBC7(1024, 512)),
+ RunViewProbe(device, queue, (MTLPixelFormat)153,
+ (MTLPixelFormat)152, SolidMagentaBC7(64, 64)),
+ RunViewProbe(device, queue, (MTLPixelFormat)152,
+ (MTLPixelFormat)153, SolidMagentaBC7(64, 64)),
+ };
+ BOOL passed = YES;
+ for (NSUInteger index = 0; index < sizeof(results) / sizeof(results[0]); ++index)
+ passed &= results[index];
+ ProbeLog(@"OVERALL %@", passed ? @"PASS" : @"FAIL");
+}
+
+@interface NativeBCProbeViewController : UIViewController @end
+@implementation NativeBCProbeViewController
+- (void)viewDidLoad {
+ [super viewDidLoad];
+ self.view.backgroundColor = UIColor.systemBackgroundColor;
+ UILabel *title = [[UILabel alloc] init];
+ title.translatesAutoresizingMaskIntoConstraints = NO;
+ title.text = @"Native BC Texture Probe";
+ title.font = [UIFont preferredFontForTextStyle:UIFontTextStyleTitle2];
+ gLogView = [[UITextView alloc] init];
+ gLogView.translatesAutoresizingMaskIntoConstraints = NO;
+ gLogView.editable = NO;
+ gLogView.font = [UIFont monospacedSystemFontOfSize:13 weight:UIFontWeightRegular];
+ [self.view addSubview:title];
+ [self.view addSubview:gLogView];
+ [NSLayoutConstraint activateConstraints:@[
+ [title.topAnchor constraintEqualToAnchor:self.view.safeAreaLayoutGuide.topAnchor constant:20],
+ [title.leadingAnchor constraintEqualToAnchor:self.view.safeAreaLayoutGuide.leadingAnchor constant:20],
+ [gLogView.topAnchor constraintEqualToAnchor:title.bottomAnchor constant:12],
+ [gLogView.leadingAnchor constraintEqualToAnchor:self.view.safeAreaLayoutGuide.leadingAnchor constant:12],
+ [gLogView.trailingAnchor constraintEqualToAnchor:self.view.safeAreaLayoutGuide.trailingAnchor constant:-12],
+ [gLogView.bottomAnchor constraintEqualToAnchor:self.view.safeAreaLayoutGuide.bottomAnchor constant:-12],
+ ]];
+ dispatch_async(dispatch_get_global_queue(QOS_CLASS_USER_INITIATED, 0), ^{
+ RunNativeBCProbe();
+ });
+}
+@end
+
+@interface NativeBCProbeAppDelegate : UIResponder <UIApplicationDelegate>
+@property(nonatomic, strong) UIWindow *window;
+@end
+@implementation NativeBCProbeAppDelegate
+- (BOOL)application:(UIApplication *)application
+ didFinishLaunchingWithOptions:(NSDictionary *)options {
+ self.window = [[UIWindow alloc] initWithFrame:UIScreen.mainScreen.bounds];
+ self.window.rootViewController = [[NativeBCProbeViewController alloc] init];
+ [self.window makeKeyAndVisible];
+ return YES;
+}
+@end
+
+int main(int argc, char **argv) {
+ @autoreleasepool {
+ return UIApplicationMain(argc, argv, nil,
+ NSStringFromClass(NativeBCProbeAppDelegate.class));
+ }
+}
diff --git a/VirtualMac/vz/development/probes/native-bc-probe.metal b/VirtualMac/vz/development/probes/native-bc-probe.metal
new file mode 100644
index 0000000..d33fd3e
--- /dev/null
+++ b/VirtualMac/vz/development/probes/native-bc-probe.metal
@@ -0,0 +1,24 @@
+#include <metal_stdlib>
+using namespace metal;
+
+struct ProbeVertex {
+ float4 position [[position]];
+ float2 texcoord;
+};
+
+vertex ProbeVertex native_bc_probe_vertex(uint vertexID [[vertex_id]]) {
+ const float2 positions[] = {
+ float2(-1.0, -1.0), float2(3.0, -1.0), float2(-1.0, 3.0),
+ };
+ const float2 texcoords[] = {
+ float2(0.0, 1.0), float2(2.0, 1.0), float2(0.0, -1.0),
+ };
+ return { float4(positions[vertexID], 0.0, 1.0), texcoords[vertexID] };
+}
+
+fragment float4 native_bc_probe_fragment(
+ ProbeVertex input [[stage_in]], texture2d<float> texture [[texture(0)]]) {
+ constexpr sampler nearestSampler(coord::normalized, address::clamp_to_edge,
+ filter::nearest);
+ return texture.sample(nearestSampler, input.texcoord);
+}
diff --git a/VirtualMac/vz/development/probes/opengl-ioreg-shim.c b/VirtualMac/vz/development/probes/opengl-ioreg-shim.c
new file mode 100644
index 0000000..b7b48a4
--- /dev/null
+++ b/VirtualMac/vz/development/probes/opengl-ioreg-shim.c
@@ -0,0 +1,40 @@
+#include <CoreFoundation/CoreFoundation.h>
+#include <IOKit/IOKitLib.h>
+#include <stdio.h>
+#include <string.h>
+
+static bool is_paravirtual_gpu(io_registry_entry_t entry) {
+ io_name_t class_name = {0};
+ return IOObjectGetClass(entry, class_name) == KERN_SUCCESS &&
+ strcmp(class_name, "AppleParavirtGPU") == 0;
+}
+
+static CFTypeRef shim_IORegistryEntryCreateCFProperty(
+ io_registry_entry_t entry, CFStringRef key, CFAllocatorRef allocator,
+ IOOptionBits options) {
+ if (is_paravirtual_gpu(entry) &&
+ CFEqual(key, CFSTR("IOGLBundleName"))) {
+ fprintf(stderr,
+ "OpenGLIORegistryShim: supplying AppleMetalOpenGLRenderer\n");
+ return CFRetain(CFSTR("AppleMetalOpenGLRenderer"));
+ }
+ if (is_paravirtual_gpu(entry) &&
+ CFEqual(key, CFSTR("IOGLESBundleName"))) {
+ fprintf(stderr,
+ "OpenGLIORegistryShim: supplying AppleMetalGLRenderer\n");
+ return CFRetain(CFSTR("AppleMetalGLRenderer"));
+ }
+ return IORegistryEntryCreateCFProperty(entry, key, allocator, options);
+}
+
+#define INTERPOSE(replacement, replacee) \
+ __attribute__((used)) static struct { \
+ const void *replacement; \
+ const void *replacee; \
+ } _interpose_##replacee __attribute__((section("__DATA,__interpose"))) = { \
+ (const void *)(uintptr_t)&replacement, \
+ (const void *)(uintptr_t)&replacee \
+ }
+
+INTERPOSE(shim_IORegistryEntryCreateCFProperty,
+ IORegistryEntryCreateCFProperty);
diff --git a/VirtualMac/vz/development/probes/opengl-pvg-shim.m b/VirtualMac/vz/development/probes/opengl-pvg-shim.m
new file mode 100644
index 0000000..34565de
--- /dev/null
+++ b/VirtualMac/vz/development/probes/opengl-pvg-shim.m
@@ -0,0 +1,686 @@
+#import <CoreFoundation/CoreFoundation.h>
+#import <Foundation/Foundation.h>
+#import <IOKit/IOKitLib.h>
+#import <Metal/Metal.h>
+#import <malloc/malloc.h>
+#import <objc/message.h>
+#import <objc/runtime.h>
+
+static IMP originalSupportsFamily;
+static IMP originalNewCommandQueue;
+static IMP originalNewTexture;
+static IMP originalNewBuffer;
+static IMP originalNewBufferNoCopy;
+static IMP originalNewRenderPipeline;
+static IMP originalNewRenderPipelineReflection;
+static IMP originalNewLibrarySource;
+static IMP originalNewLibraryData;
+static IMP originalNewFunctionGLCoreIR;
+static IMP originalNewFunctionGLCoreIRInputs;
+static IMP originalCommandBuffer;
+static IMP originalCommandBufferUnretained;
+static IMP originalRenderEncoder;
+static IMP originalComputeEncoder;
+static IMP originalBlitEncoder;
+static IMP originalCommit;
+static IMP originalEndEncoding;
+static IMP originalSetRenderPipelineState;
+static IMP originalSetVisibilityResultMode;
+static IMP originalSetVertexBuffer;
+static IMP originalSetVertexBytes;
+static IMP originalSetViewport;
+static IMP originalSetFragmentBuffer;
+static IMP originalDrawPrimitives;
+static IMP originalDrawPrimitivesInstanced;
+static IMP originalDrawPrimitivesInstancedBase;
+static IMP originalSetColorStoreAction;
+
+static void replace_method(Class cls, SEL selector, IMP replacement,
+ IMP *original) {
+ Method method = class_getInstanceMethod(cls, selector);
+ if (method == NULL || *original != NULL)
+ return;
+ *original = method_getImplementation(method);
+ class_replaceMethod(cls, selector, replacement,
+ method_getTypeEncoding(method));
+}
+
+static void install_command_buffer_trace(id commandBuffer);
+
+static void trace_descriptor_private_state(id descriptor) {
+ static dispatch_once_t once;
+ dispatch_once(&once, ^{
+ for (Class cls = [descriptor class]; cls != Nil;
+ cls = class_getSuperclass(cls)) {
+ unsigned int count = 0;
+ Method *methods = class_copyMethodList(cls, &count);
+ for (unsigned int index = 0; index < count; ++index) {
+ const char *name = sel_getName(method_getName(methods[index]));
+ if (strcasestr(name, "gl") || strcasestr(name, "flip") ||
+ strcasestr(name, "invert") ||
+ strcasestr(name, "swizzle") ||
+ strcasestr(name, "raster") ||
+ strcasestr(name, "dither") ||
+ strcasestr(name, "viewport") ||
+ strcasestr(name, "point") ||
+ strcasestr(name, "target")) {
+ fprintf(stderr,
+ "OpenGLPVGShim: render-pass method class=%s %s %s\n",
+ class_getName(cls), name,
+ method_getTypeEncoding(methods[index]));
+ }
+ }
+ free(methods);
+ }
+ });
+ SEL dither = [descriptor respondsToSelector:
+ NSSelectorFromString(@"ditherEnabled")]
+ ? NSSelectorFromString(@"ditherEnabled")
+ : NSSelectorFromString(@"isDitherEnabled");
+ fprintf(stderr,
+ "OpenGLPVGShim: render-pass private openGL=%d dither=%d "
+ "pointFlip=%d defaultSamples=%lu\n",
+ ((BOOL (*)(id, SEL))objc_msgSend)(
+ descriptor, NSSelectorFromString(@"openGLModeEnabled")),
+ ((BOOL (*)(id, SEL))objc_msgSend)(descriptor, dither),
+ ((BOOL (*)(id, SEL))objc_msgSend)(
+ descriptor, NSSelectorFromString(@"pointCoordYFlipEnabled")),
+ (unsigned long)((NSUInteger (*)(id, SEL))objc_msgSend)(
+ descriptor,
+ NSSelectorFromString(@"defaultRasterSampleCount")));
+}
+
+static void traced_end_encoding(id self, SEL selector) {
+ fprintf(stderr, "OpenGLPVGShim: end render encoding\n");
+ ((void (*)(id, SEL))originalEndEncoding)(self, selector);
+}
+
+static void traced_set_render_pipeline(id self, SEL selector, id state) {
+ fprintf(stderr, "OpenGLPVGShim: set render pipeline=%p label=%s\n", state,
+ [[[state label] description] UTF8String]);
+ ((void (*)(id, SEL, id))originalSetRenderPipelineState)(self, selector,
+ state);
+}
+
+static void traced_set_visibility(id self, SEL selector, NSUInteger mode,
+ NSUInteger offset) {
+ fprintf(stderr,
+ "OpenGLPVGShim: set visibility mode=%lu offset=%lu\n",
+ (unsigned long)mode, (unsigned long)offset);
+ ((void (*)(id, SEL, NSUInteger, NSUInteger))originalSetVisibilityResultMode)(
+ self, selector, mode, offset);
+}
+
+static void traced_set_vertex_buffer(id self, SEL selector, id buffer,
+ NSUInteger offset, NSUInteger index) {
+ static dispatch_once_t bufferMethodsOnce;
+ dispatch_once(&bufferMethodsOnce, ^{
+ for (Class current = [buffer class]; current != Nil;
+ current = class_getSuperclass(current)) {
+ unsigned int count = 0;
+ Method *methods = class_copyMethodList(current, &count);
+ for (unsigned int methodIndex = 0; methodIndex < count;
+ ++methodIndex) {
+ const char *name = sel_getName(
+ method_getName(methods[methodIndex]));
+ if (strcasestr(name, "sync") ||
+ strcasestr(name, "flush") ||
+ strcasestr(name, "modify") ||
+ strcasestr(name, "content")) {
+ fprintf(stderr,
+ "OpenGLPVGShim: buffer method class=%s %s %s\n",
+ class_getName(current), name,
+ method_getTypeEncoding(methods[methodIndex]));
+ }
+ }
+ free(methods);
+ }
+ });
+ fprintf(stderr,
+ "OpenGLPVGShim: set vertex buffer=%p offset=%lu index=%lu\n",
+ buffer, (unsigned long)offset, (unsigned long)index);
+ SEL originalObjectSelector = NSSelectorFromString(@"originalObject");
+ if ([buffer respondsToSelector:originalObjectSelector]) {
+ id original = ((id (*)(id, SEL))objc_msgSend)(
+ buffer, originalObjectSelector);
+ fprintf(stderr,
+ "OpenGLPVGShim: vertex original=%p class=%s contents=%p\n",
+ original, object_getClassName(original),
+ [original respondsToSelector:@selector(contents)]
+ ? [original contents]
+ : NULL);
+ }
+ if (buffer != nil && [buffer respondsToSelector:@selector(contents)] &&
+ [buffer length] >= offset + 24) {
+ const float *values = (const float *)((const uint8_t *)[buffer contents] +
+ offset);
+ fprintf(stderr,
+ "OpenGLPVGShim: vertex data %.3f %.3f %.3f %.3f %.3f %.3f\n",
+ values[0], values[1], values[2], values[3], values[4],
+ values[5]);
+ const char *inlineLengthText = getenv("GL_PVG_INLINE_VERTEX_BYTES");
+ if (inlineLengthText != NULL) {
+ NSUInteger inlineLength = strtoul(inlineLengthText, NULL, 10);
+ inlineLength = MIN(inlineLength, [buffer length] - offset);
+ fprintf(stderr,
+ "OpenGLPVGShim: replacing vertex buffer with %lu inline "
+ "bytes\n",
+ (unsigned long)inlineLength);
+ ((void (*)(id, SEL, const void *, NSUInteger, NSUInteger))
+ objc_msgSend)(self,
+ @selector(setVertexBytes:length:atIndex:),
+ values, inlineLength, index);
+ return;
+ }
+ }
+ ((void (*)(id, SEL, id, NSUInteger, NSUInteger))originalSetVertexBuffer)(
+ self, selector, buffer, offset, index);
+}
+
+static void traced_set_viewport(id self, SEL selector, MTLViewport viewport) {
+ fprintf(stderr,
+ "OpenGLPVGShim: viewport %.3f %.3f %.3f %.3f %.3f %.3f\n",
+ viewport.originX, viewport.originY, viewport.width,
+ viewport.height, viewport.znear, viewport.zfar);
+ ((void (*)(id, SEL, MTLViewport))originalSetViewport)(self, selector,
+ viewport);
+}
+
+static void traced_set_vertex_bytes(id self, SEL selector, const void *bytes,
+ NSUInteger length, NSUInteger index) {
+ fprintf(stderr,
+ "OpenGLPVGShim: set vertex bytes=%p length=%lu index=%lu\n",
+ bytes, (unsigned long)length, (unsigned long)index);
+ ((void (*)(id, SEL, const void *, NSUInteger, NSUInteger))
+ originalSetVertexBytes)(self, selector, bytes, length, index);
+}
+
+static void traced_set_fragment_buffer(id self, SEL selector, id buffer,
+ NSUInteger offset, NSUInteger index) {
+ fprintf(stderr,
+ "OpenGLPVGShim: set fragment buffer=%p offset=%lu index=%lu\n",
+ buffer, (unsigned long)offset, (unsigned long)index);
+ ((void (*)(id, SEL, id, NSUInteger, NSUInteger))originalSetFragmentBuffer)(
+ self, selector, buffer, offset, index);
+}
+
+static void traced_draw_primitives(id self, SEL selector, NSUInteger type,
+ NSUInteger start, NSUInteger count) {
+ fprintf(stderr,
+ "OpenGLPVGShim: draw primitives type=%lu start=%lu count=%lu\n",
+ (unsigned long)type, (unsigned long)start, (unsigned long)count);
+ ((void (*)(id, SEL, NSUInteger, NSUInteger, NSUInteger))originalDrawPrimitives)(
+ self, selector, type, start, count);
+}
+
+static void traced_draw_primitives_instanced(
+ id self, SEL selector, NSUInteger type, NSUInteger start,
+ NSUInteger count, NSUInteger instances) {
+ fprintf(stderr,
+ "OpenGLPVGShim: draw primitives type=%lu start=%lu count=%lu "
+ "instances=%lu\n",
+ (unsigned long)type, (unsigned long)start, (unsigned long)count,
+ (unsigned long)instances);
+ ((void (*)(id, SEL, NSUInteger, NSUInteger, NSUInteger, NSUInteger))
+ originalDrawPrimitivesInstanced)(self, selector, type, start, count,
+ instances);
+}
+
+static void traced_draw_primitives_instanced_base(
+ id self, SEL selector, NSUInteger type, NSUInteger start,
+ NSUInteger count, NSUInteger instances, NSUInteger baseInstance) {
+ fprintf(stderr,
+ "OpenGLPVGShim: draw primitives type=%lu start=%lu count=%lu "
+ "instances=%lu base=%lu\n",
+ (unsigned long)type, (unsigned long)start, (unsigned long)count,
+ (unsigned long)instances, (unsigned long)baseInstance);
+ ((void (*)(id, SEL, NSUInteger, NSUInteger, NSUInteger, NSUInteger,
+ NSUInteger))originalDrawPrimitivesInstancedBase)(
+ self, selector, type, start, count, instances, baseInstance);
+}
+
+static void traced_set_color_store_action(id self, SEL selector,
+ NSUInteger action,
+ NSUInteger index) {
+ fprintf(stderr,
+ "OpenGLPVGShim: set color store action=%lu index=%lu\n",
+ (unsigned long)action, (unsigned long)index);
+ ((void (*)(id, SEL, NSUInteger, NSUInteger))originalSetColorStoreAction)(
+ self, selector, action, index);
+}
+
+static void install_render_encoder_trace(id encoder) {
+ Class cls = [encoder class];
+ static dispatch_once_t listOnce;
+ dispatch_once(&listOnce, ^{
+ for (Class current = cls; current != Nil;
+ current = class_getSuperclass(current)) {
+ unsigned int count = 0;
+ Method *methods = class_copyMethodList(current, &count);
+ for (unsigned int index = 0; index < count; ++index) {
+ const char *name = sel_getName(method_getName(methods[index]));
+ if (strcasestr(name, "draw") ||
+ strcasestr(name, "vertex")) {
+ fprintf(stderr,
+ "OpenGLPVGShim: encoder method class=%s %s %s\n",
+ class_getName(current), name,
+ method_getTypeEncoding(methods[index]));
+ }
+ }
+ free(methods);
+ }
+ });
+ replace_method(cls, @selector(endEncoding), (IMP)traced_end_encoding,
+ &originalEndEncoding);
+ replace_method(cls, @selector(setRenderPipelineState:),
+ (IMP)traced_set_render_pipeline,
+ &originalSetRenderPipelineState);
+ replace_method(cls, @selector(setVisibilityResultMode:offset:),
+ (IMP)traced_set_visibility,
+ &originalSetVisibilityResultMode);
+ replace_method(cls, @selector(setVertexBuffer:offset:atIndex:),
+ (IMP)traced_set_vertex_buffer, &originalSetVertexBuffer);
+ replace_method(cls, @selector(setVertexBytes:length:atIndex:),
+ (IMP)traced_set_vertex_bytes, &originalSetVertexBytes);
+ replace_method(cls, @selector(setViewport:), (IMP)traced_set_viewport,
+ &originalSetViewport);
+ replace_method(cls, @selector(setFragmentBuffer:offset:atIndex:),
+ (IMP)traced_set_fragment_buffer,
+ &originalSetFragmentBuffer);
+ replace_method(cls, @selector(drawPrimitives:vertexStart:vertexCount:),
+ (IMP)traced_draw_primitives, &originalDrawPrimitives);
+ replace_method(
+ cls,
+ @selector(drawPrimitives:vertexStart:vertexCount:instanceCount:),
+ (IMP)traced_draw_primitives_instanced,
+ &originalDrawPrimitivesInstanced);
+ replace_method(
+ cls,
+ @selector(drawPrimitives:vertexStart:vertexCount:instanceCount:
+ baseInstance:),
+ (IMP)traced_draw_primitives_instanced_base,
+ &originalDrawPrimitivesInstancedBase);
+ replace_method(cls, @selector(setColorStoreAction:atIndex:),
+ (IMP)traced_set_color_store_action,
+ &originalSetColorStoreAction);
+}
+
+static id traced_render_encoder(id self, SEL selector, id descriptor) {
+ fprintf(stderr, "OpenGLPVGShim: render encoder %s\n",
+ [[descriptor description] UTF8String]);
+ trace_descriptor_private_state(descriptor);
+ if (getenv("GL_PVG_FIX_DEFAULT_SAMPLE_COUNT") != NULL) {
+ ((void (*)(id, SEL, NSUInteger))objc_msgSend)(
+ descriptor,
+ NSSelectorFromString(@"setDefaultRasterSampleCount:"), 0);
+ fprintf(stderr,
+ "OpenGLPVGShim: cleared unsupported default sample count\n");
+ }
+ id encoder = ((id (*)(id, SEL, id))originalRenderEncoder)(
+ self, selector, descriptor);
+ fprintf(stderr, "OpenGLPVGShim: render encoder object=%p class=%s\n",
+ encoder, object_getClassName(encoder));
+ install_render_encoder_trace(encoder);
+ return encoder;
+}
+
+static id traced_compute_encoder(id self, SEL selector) {
+ fprintf(stderr, "OpenGLPVGShim: compute encoder\n");
+ return ((id (*)(id, SEL))originalComputeEncoder)(self, selector);
+}
+
+static id traced_blit_encoder(id self, SEL selector) {
+ fprintf(stderr, "OpenGLPVGShim: blit encoder\n");
+ return ((id (*)(id, SEL))originalBlitEncoder)(self, selector);
+}
+
+static void traced_commit(id self, SEL selector) {
+ fprintf(stderr, "OpenGLPVGShim: commit command buffer=%p\n", self);
+ ((void (*)(id, SEL))originalCommit)(self, selector);
+}
+
+static void install_command_buffer_trace(id commandBuffer) {
+ Class cls = [commandBuffer class];
+ replace_method(cls, @selector(renderCommandEncoderWithDescriptor:),
+ (IMP)traced_render_encoder, &originalRenderEncoder);
+ replace_method(cls, @selector(computeCommandEncoder),
+ (IMP)traced_compute_encoder, &originalComputeEncoder);
+ replace_method(cls, @selector(blitCommandEncoder),
+ (IMP)traced_blit_encoder, &originalBlitEncoder);
+ replace_method(cls, @selector(commit),
+ (IMP)traced_commit, &originalCommit);
+}
+
+static id traced_command_buffer(id self, SEL selector) {
+ id commandBuffer = ((id (*)(id, SEL))originalCommandBuffer)(
+ self, selector);
+ fprintf(stderr, "OpenGLPVGShim: command buffer=%p\n", commandBuffer);
+ install_command_buffer_trace(commandBuffer);
+ return commandBuffer;
+}
+
+static id traced_command_buffer_unretained(id self, SEL selector) {
+ BOOL retainReferences = getenv("GL_PVG_RETAIN_REFERENCES") != NULL;
+ id commandBuffer = retainReferences
+ ? ((id (*)(id, SEL))originalCommandBuffer)(self,
+ @selector(commandBuffer))
+ : ((id (*)(id, SEL))originalCommandBufferUnretained)(self, selector);
+ fprintf(stderr,
+ "OpenGLPVGShim: requested unretained command buffer=%p%s\n",
+ commandBuffer,
+ retainReferences ? " (using retained references)" : "");
+ install_command_buffer_trace(commandBuffer);
+ return commandBuffer;
+}
+
+static void install_queue_trace(id queue) {
+ Class cls = [queue class];
+ replace_method(cls, @selector(commandBuffer),
+ (IMP)traced_command_buffer, &originalCommandBuffer);
+ replace_method(cls, NSSelectorFromString(@"commandBufferWithUnretainedReferences"),
+ (IMP)traced_command_buffer_unretained,
+ &originalCommandBufferUnretained);
+}
+
+static id traced_new_command_queue(id self, SEL selector) {
+ id queue = ((id (*)(id, SEL))originalNewCommandQueue)(self, selector);
+ fprintf(stderr,
+ "OpenGLPVGShim: command queue=%p class=%s openGLMode=%d "
+ "isOpenGLQueue=%d\n",
+ queue, object_getClassName(queue),
+ [queue respondsToSelector:NSSelectorFromString(
+ @"setOpenGLModeEnabled:")],
+ [queue respondsToSelector:NSSelectorFromString(
+ @"setIsOpenGLQueue:")]);
+ install_queue_trace(queue);
+ return queue;
+}
+
+static id traced_new_texture(id self, SEL selector, id descriptor) {
+ fprintf(stderr, "OpenGLPVGShim: new texture %s\n",
+ [[descriptor description] UTF8String]);
+ return ((id (*)(id, SEL, id))originalNewTexture)(
+ self, selector, descriptor);
+}
+
+static id traced_new_buffer(id self, SEL selector, NSUInteger length,
+ MTLResourceOptions options) {
+ fprintf(stderr, "OpenGLPVGShim: new buffer length=%lu options=0x%lx\n",
+ (unsigned long)length, (unsigned long)options);
+ return ((id (*)(id, SEL, NSUInteger, MTLResourceOptions))originalNewBuffer)(
+ self, selector, length, options);
+}
+
+static id traced_new_buffer_no_copy(id self, SEL selector, void *bytes,
+ NSUInteger length,
+ MTLResourceOptions options,
+ void (^deallocator)(void *, NSUInteger)) {
+ fprintf(stderr,
+ "OpenGLPVGShim: new no-copy buffer bytes=%p length=%lu "
+ "options=0x%lx\n", bytes, (unsigned long)length,
+ (unsigned long)options);
+ return ((id (*)(id, SEL, void *, NSUInteger, MTLResourceOptions, id))
+ originalNewBufferNoCopy)(self, selector, bytes, length, options,
+ deallocator);
+}
+
+static id traced_new_render_pipeline(id self, SEL selector, id descriptor,
+ NSError **error) {
+ fprintf(stderr, "OpenGLPVGShim: new render pipeline %s\n",
+ [[descriptor description] UTF8String]);
+ id result = ((id (*)(id, SEL, id, NSError **))originalNewRenderPipeline)(
+ self, selector, descriptor, error);
+ fprintf(stderr, "OpenGLPVGShim: render pipeline result=%p error=%s\n",
+ result,
+ error != NULL ? [[[(*error) description] description] UTF8String]
+ : "(no error pointer)");
+ return result;
+}
+
+static id traced_new_render_pipeline_reflection(
+ id self, SEL selector, id descriptor, MTLPipelineOption options,
+ MTLAutoreleasedRenderPipelineReflection reflection, NSError **error) {
+ fprintf(stderr,
+ "OpenGLPVGShim: new render pipeline options=0x%lx %s\n",
+ (unsigned long)options, [[descriptor description] UTF8String]);
+ id result = ((id (*)(id, SEL, id, MTLPipelineOption,
+ MTLAutoreleasedRenderPipelineReflection,
+ NSError **))originalNewRenderPipelineReflection)(
+ self, selector, descriptor, options, reflection, error);
+ fprintf(stderr, "OpenGLPVGShim: render pipeline result=%p error=%s\n",
+ result,
+ error != NULL ? [[[(*error) description] description] UTF8String]
+ : "(no error pointer)");
+ return result;
+}
+
+static uint64_t trace_hash(const void *bytes, size_t length) {
+ const uint8_t *cursor = bytes;
+ uint64_t hash = UINT64_C(1469598103934665603);
+ for (size_t index = 0; index < length; ++index) {
+ hash ^= cursor[index];
+ hash *= UINT64_C(1099511628211);
+ }
+ return hash;
+}
+
+static id traced_new_library_source(id self, SEL selector, NSString *source,
+ id options, NSError **error) {
+ NSData *data = [source dataUsingEncoding:NSUTF8StringEncoding];
+ fprintf(stderr,
+ "OpenGLPVGShim: new library source length=%lu hash=%016llx\n",
+ (unsigned long)data.length,
+ (unsigned long long)trace_hash(data.bytes, data.length));
+ return ((id (*)(id, SEL, id, id, NSError **))originalNewLibrarySource)(
+ self, selector, source, options, error);
+}
+
+static id traced_new_library_data(id self, SEL selector, dispatch_data_t data,
+ NSError **error) {
+ const void *bytes = NULL;
+ size_t length = 0;
+ dispatch_data_t mapped = dispatch_data_create_map(data, &bytes, &length);
+ fprintf(stderr,
+ "OpenGLPVGShim: new library data length=%lu hash=%016llx\n",
+ (unsigned long)length,
+ (unsigned long long)trace_hash(bytes, length));
+ (void)mapped;
+ return ((id (*)(id, SEL, dispatch_data_t, NSError **))
+ originalNewLibraryData)(self, selector, data, error);
+}
+
+static id traced_new_function_glcore(id self, SEL selector,
+ const void *coreIR,
+ NSUInteger functionType) {
+ size_t coreIRSize = malloc_size(coreIR);
+ id result = ((id (*)(id, SEL, const void *, NSUInteger))
+ originalNewFunctionGLCoreIR)(self, selector, coreIR,
+ functionType);
+ fprintf(stderr,
+ "OpenGLPVGShim: GLCoreIR=%p size=%lu hash=%016llx type=%lu "
+ "function=%s\n",
+ coreIR, (unsigned long)coreIRSize,
+ (unsigned long long)trace_hash(coreIR, coreIRSize),
+ (unsigned long)functionType, [[result description] UTF8String]);
+ return result;
+}
+
+static id traced_new_function_glcore_inputs(id self, SEL selector,
+ const void *coreIR, id inputs,
+ NSUInteger functionType) {
+ size_t coreIRSize = malloc_size(coreIR);
+ id result = ((id (*)(id, SEL, const void *, id, NSUInteger))
+ originalNewFunctionGLCoreIRInputs)(
+ self, selector, coreIR, inputs, functionType);
+ fprintf(stderr,
+ "OpenGLPVGShim: GLCoreIR=%p size=%lu hash=%016llx inputs=%s "
+ "type=%lu function=%s\n",
+ coreIR, (unsigned long)coreIRSize,
+ (unsigned long long)trace_hash(coreIR, coreIRSize),
+ [[inputs description] UTF8String],
+ (unsigned long)functionType, [[result description] UTF8String]);
+ return result;
+}
+
+static id underlying_device(id device) {
+ SEL selector = NSSelectorFromString(@"originalObject");
+ while ([device respondsToSelector:selector]) {
+ id next = ((id (*)(id, SEL))objc_msgSend)(device, selector);
+ if (next == nil || next == device)
+ break;
+ device = next;
+ }
+ return device;
+}
+
+static BOOL pvg_supports_family(id self, SEL selector, NSUInteger family) {
+ NSUInteger maximumFamily = 1005;
+ const char *configuredFamily = getenv("GL_PVG_APPLE_FAMILY");
+ if (configuredFamily != NULL) {
+ NSUInteger parsed = (NSUInteger)strtoul(configuredFamily, NULL, 10);
+ if (parsed >= 1 && parsed <= 9)
+ maximumFamily = 1000 + parsed;
+ }
+ if (family >= 1001 && family <= maximumFamily)
+ return YES;
+ return ((BOOL (*)(id, SEL, NSUInteger))originalSupportsFamily)(
+ self, selector, family);
+}
+
+static void enable_apple_gpu_families(id<MTLDevice> device) {
+ device = underlying_device(device);
+ BOOL isPVG = [NSStringFromClass(device.class)
+ isEqualToString:@"AppleParavirtDevice"];
+ if (!isPVG && getenv("GL_PVG_TRACE_ANY_DEVICE") == NULL)
+ return;
+
+ static dispatch_once_t once;
+ dispatch_once(&once, ^{
+ for (Class current = device.class; current != Nil;
+ current = class_getSuperclass(current)) {
+ unsigned int count = 0;
+ Method *methods = class_copyMethodList(current, &count);
+ for (unsigned int index = 0; index < count; ++index) {
+ const char *name = sel_getName(method_getName(methods[index]));
+ if (strcasestr(name, "library") ||
+ strcasestr(name, "function") ||
+ strcasestr(name, "pipeline")) {
+ fprintf(stderr,
+ "OpenGLPVGShim: device method class=%s %s %s\n",
+ class_getName(current), name,
+ method_getTypeEncoding(methods[index]));
+ }
+ }
+ free(methods);
+ }
+ if (isPVG) {
+ SEL selector = @selector(supportsFamily:);
+ Method method = class_getInstanceMethod(device.class, selector);
+ originalSupportsFamily = method_getImplementation(method);
+ class_replaceMethod(device.class, selector,
+ (IMP)pvg_supports_family,
+ method_getTypeEncoding(method));
+ }
+ replace_method(device.class, @selector(newCommandQueue),
+ (IMP)traced_new_command_queue,
+ &originalNewCommandQueue);
+ replace_method(device.class, @selector(newTextureWithDescriptor:),
+ (IMP)traced_new_texture, &originalNewTexture);
+ replace_method(device.class, @selector(newBufferWithLength:options:),
+ (IMP)traced_new_buffer, &originalNewBuffer);
+ replace_method(device.class,
+ NSSelectorFromString(
+ @"newBufferWithBytesNoCopy:length:options:deallocator:"),
+ (IMP)traced_new_buffer_no_copy,
+ &originalNewBufferNoCopy);
+ replace_method(device.class,
+ @selector(newRenderPipelineStateWithDescriptor:error:),
+ (IMP)traced_new_render_pipeline,
+ &originalNewRenderPipeline);
+ replace_method(
+ device.class,
+ @selector(newRenderPipelineStateWithDescriptor:options:reflection:
+ error:),
+ (IMP)traced_new_render_pipeline_reflection,
+ &originalNewRenderPipelineReflection);
+ replace_method(device.class,
+ @selector(newLibraryWithSource:options:error:),
+ (IMP)traced_new_library_source,
+ &originalNewLibrarySource);
+ replace_method(device.class, @selector(newLibraryWithData:error:),
+ (IMP)traced_new_library_data,
+ &originalNewLibraryData);
+ replace_method(
+ device.class,
+ NSSelectorFromString(@"newFunctionWithGLCoreIR:functionType:"),
+ (IMP)traced_new_function_glcore,
+ &originalNewFunctionGLCoreIR);
+ replace_method(
+ device.class,
+ NSSelectorFromString(
+ @"newFunctionWithGLCoreIR:inputsDescription:functionType:"),
+ (IMP)traced_new_function_glcore_inputs,
+ &originalNewFunctionGLCoreIRInputs);
+ fprintf(stderr,
+ "OpenGLPVGShim: tracing device=%s pvg=%d "
+ "openGLMode=%d isOpenGLQueue=%d\n",
+ object_getClassName(device), isPVG,
+ [device respondsToSelector:NSSelectorFromString(
+ @"setOpenGLModeEnabled:")],
+ [device respondsToSelector:NSSelectorFromString(
+ @"setIsOpenGLQueue:")]);
+ });
+}
+
+static NSArray<id<MTLDevice>> *pvg_MTLCopyAllDevices(void)
+ NS_RETURNS_RETAINED {
+ NSArray<id<MTLDevice>> *devices = MTLCopyAllDevices();
+ for (id<MTLDevice> device in devices)
+ enable_apple_gpu_families(device);
+ return devices;
+}
+
+static id<MTLDevice> pvg_MTLCreateSystemDefaultDevice(void) {
+ id<MTLDevice> device = MTLCreateSystemDefaultDevice();
+ enable_apple_gpu_families(device);
+ return device;
+}
+
+static bool is_paravirtual_gpu(io_registry_entry_t entry) {
+ io_name_t class_name = {0};
+ return IOObjectGetClass(entry, class_name) == KERN_SUCCESS &&
+ strcmp(class_name, "AppleParavirtGPU") == 0;
+}
+
+static CFTypeRef pvg_IORegistryEntryCreateCFProperty(
+ io_registry_entry_t entry, CFStringRef key, CFAllocatorRef allocator,
+ IOOptionBits options) {
+ if (getenv("GL_PVG_TRACE_ANY_DEVICE") != NULL &&
+ CFEqual(key, CFSTR("IOGLBundleName"))) {
+ for (id<MTLDevice> device in MTLCopyAllDevices())
+ enable_apple_gpu_families(device);
+ }
+ if (is_paravirtual_gpu(entry) &&
+ CFEqual(key, CFSTR("IOGLBundleName"))) {
+ for (id<MTLDevice> device in MTLCopyAllDevices())
+ enable_apple_gpu_families(device);
+ fprintf(stderr,
+ "OpenGLPVGShim: supplying AppleMetalOpenGLRenderer\n");
+ return CFRetain(CFSTR("AppleMetalOpenGLRenderer"));
+ }
+ return IORegistryEntryCreateCFProperty(entry, key, allocator, options);
+}
+
+#define INTERPOSE(name, replacement, original) \
+ __attribute__((used)) static struct { \
+ const void *replacement; \
+ const void *original; \
+ } name __attribute__((section("__DATA,__interpose"))) = { \
+ (const void *)&replacement, (const void *)&original \
+ }
+
+INTERPOSE(pvg_ioreg_property, pvg_IORegistryEntryCreateCFProperty,
+ IORegistryEntryCreateCFProperty);
+INTERPOSE(pvg_metal_devices, pvg_MTLCopyAllDevices, MTLCopyAllDevices);
+INTERPOSE(pvg_default_metal_device, pvg_MTLCreateSystemDefaultDevice,
+ MTLCreateSystemDefaultDevice);
diff --git a/VirtualMac/vz/development/probes/opengl-renderer.c b/VirtualMac/vz/development/probes/opengl-renderer.c
new file mode 100644
index 0000000..8f7cac9
--- /dev/null
+++ b/VirtualMac/vz/development/probes/opengl-renderer.c
@@ -0,0 +1,196 @@
+#include <OpenGL/OpenGL.h>
+#include <OpenGL/gl3.h>
+#include <stdio.h>
+#include <string.h>
+
+static const char *gl_string(GLenum name) {
+ const GLubyte *value = glGetString(name);
+ return value != NULL ? (const char *)value : "(null)";
+}
+
+static int has_argument(int argc, char **argv, const char *argument) {
+ for (int index = 1; index < argc; ++index) {
+ if (strcmp(argv[index], argument) == 0)
+ return 1;
+ }
+ return 0;
+}
+
+static GLuint compile_shader(GLenum type, const char *source) {
+ GLuint shader = glCreateShader(type);
+ glShaderSource(shader, 1, &source, NULL);
+ glCompileShader(shader);
+ GLint compiled = 0;
+ glGetShaderiv(shader, GL_COMPILE_STATUS, &compiled);
+ if (!compiled) {
+ char log[2048] = {0};
+ glGetShaderInfoLog(shader, sizeof(log), NULL, log);
+ fprintf(stderr, "shader compile failed: %s\n", log);
+ glDeleteShader(shader);
+ return 0;
+ }
+ return shader;
+}
+
+static GLuint make_triangle_program(int useUniform) {
+ static const char *vertexSource =
+ "#version 150\n"
+ "in vec2 position;\n"
+ "void main() { gl_Position = vec4(position, 0.0, 1.0); }\n";
+ static const char *fragmentSource =
+ "#version 150\n"
+ "out vec4 color;\n"
+ "void main() { color = vec4(1.0, 0.0, 1.0, 1.0); }\n";
+ static const char *uniformFragmentSource =
+ "#version 150\n"
+ "uniform vec4 chosenColor;\n"
+ "out vec4 color;\n"
+ "void main() { color = chosenColor; }\n";
+ GLuint vertex = compile_shader(GL_VERTEX_SHADER, vertexSource);
+ GLuint fragment = compile_shader(GL_FRAGMENT_SHADER,
+ useUniform ? uniformFragmentSource : fragmentSource);
+ if (!vertex || !fragment)
+ return 0;
+ GLuint program = glCreateProgram();
+ glAttachShader(program, vertex);
+ glAttachShader(program, fragment);
+ glBindAttribLocation(program, 0, "position");
+ glLinkProgram(program);
+ glDeleteShader(vertex);
+ glDeleteShader(fragment);
+ GLint linked = 0;
+ glGetProgramiv(program, GL_LINK_STATUS, &linked);
+ if (!linked) {
+ char log[2048] = {0};
+ glGetProgramInfoLog(program, sizeof(log), NULL, log);
+ fprintf(stderr, "program link failed: %s\n", log);
+ glDeleteProgram(program);
+ return 0;
+ }
+ return program;
+}
+
+int main(int argc, char **argv) {
+ CGLPixelFormatAttribute acceleratedAttributes[] = {
+ kCGLPFAOpenGLProfile,
+ (CGLPixelFormatAttribute)kCGLOGLPVersion_3_2_Core,
+ kCGLPFAAccelerated,
+ (CGLPixelFormatAttribute)0,
+ };
+ CGLPixelFormatAttribute softwareAttributes[] = {
+ kCGLPFAOpenGLProfile,
+ (CGLPixelFormatAttribute)kCGLOGLPVersion_3_2_Core,
+ (CGLPixelFormatAttribute)0,
+ };
+ CGLPixelFormatObj pixelFormat = NULL;
+ GLint pixelFormatCount = 0;
+ CGLError error = CGLChoosePixelFormat(
+ acceleratedAttributes, &pixelFormat, &pixelFormatCount);
+ printf("choose-accelerated error=%d (%s) count=%d\n", error,
+ CGLErrorString(error), pixelFormatCount);
+ if (error != kCGLNoError || pixelFormat == NULL) {
+ pixelFormatCount = 0;
+ error = CGLChoosePixelFormat(
+ softwareAttributes, &pixelFormat, &pixelFormatCount);
+ printf("choose-fallback error=%d (%s) count=%d\n", error,
+ CGLErrorString(error), pixelFormatCount);
+ if (error != kCGLNoError || pixelFormat == NULL)
+ return 1;
+ }
+
+ GLint accelerated = 0;
+ GLint rendererID = 0;
+ CGLDescribePixelFormat(pixelFormat, 0, kCGLPFAAccelerated,
+ &accelerated);
+ CGLDescribePixelFormat(pixelFormat, 0, kCGLPFARendererID,
+ &rendererID);
+ printf("pixel-format accelerated=%d renderer-id=0x%x\n",
+ accelerated, rendererID);
+
+ CGLContextObj context = NULL;
+ error = CGLCreateContext(pixelFormat, NULL, &context);
+ printf("create error=%d (%s) context=%p\n", error,
+ CGLErrorString(error), context);
+ if (error != kCGLNoError || context == NULL) {
+ CGLDestroyPixelFormat(pixelFormat);
+ return 2;
+ }
+ CGLSetCurrentContext(context);
+ printf("vendor=%s\nrenderer=%s\nversion=%s\n",
+ gl_string(GL_VENDOR), gl_string(GL_RENDERER),
+ gl_string(GL_VERSION));
+
+ GLuint texture = 0;
+ GLuint framebuffer = 0;
+ glGenTextures(1, &texture);
+ glBindTexture(GL_TEXTURE_2D, texture);
+ glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA8, 64, 64, 0,
+ GL_RGBA, GL_UNSIGNED_BYTE, NULL);
+ glGenFramebuffers(1, &framebuffer);
+ glBindFramebuffer(GL_FRAMEBUFFER, framebuffer);
+ glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0,
+ GL_TEXTURE_2D, texture, 0);
+ GLenum framebufferStatus = glCheckFramebufferStatus(GL_FRAMEBUFFER);
+ glViewport(0, 0, 64, 64);
+ glClearColor(0.25f, 0.5f, 0.75f, 1.0f);
+ glClear(GL_COLOR_BUFFER_BIT);
+ GLuint vertexArray = 0;
+ GLuint vertexBuffer = 0;
+ GLuint indexBuffer = 0;
+ GLuint program = 0;
+ if (has_argument(argc, argv, "--triangle")) {
+ const GLfloat vertices[] = {-1.0f, -1.0f, 3.0f, -1.0f,
+ -1.0f, 3.0f};
+ int useUniform = has_argument(argc, argv, "--uniform");
+ program = make_triangle_program(useUniform);
+ glGenVertexArrays(1, &vertexArray);
+ glBindVertexArray(vertexArray);
+ glGenBuffers(1, &vertexBuffer);
+ glBindBuffer(GL_ARRAY_BUFFER, vertexBuffer);
+ glBufferData(GL_ARRAY_BUFFER, sizeof(vertices), vertices,
+ GL_STATIC_DRAW);
+ glEnableVertexAttribArray(0);
+ glVertexAttribPointer(0, 2, GL_FLOAT, GL_FALSE, 0, NULL);
+ glUseProgram(program);
+ if (useUniform) {
+ GLint location = glGetUniformLocation(program, "chosenColor");
+ glUniform4f(location, 1.0f, 0.0f, 1.0f, 1.0f);
+ }
+ if (has_argument(argc, argv, "--indexed")) {
+ const GLushort indices[] = {0, 1, 2};
+ glGenBuffers(1, &indexBuffer);
+ glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, indexBuffer);
+ glBufferData(GL_ELEMENT_ARRAY_BUFFER, sizeof(indices), indices,
+ GL_STATIC_DRAW);
+ glDrawElements(GL_TRIANGLES, 3, GL_UNSIGNED_SHORT, NULL);
+ } else {
+ glDrawArrays(GL_TRIANGLES, 0, 3);
+ }
+ }
+ glFinish();
+ printf("clear-finished gl-error=0x%x\n", glGetError());
+ fflush(stdout);
+ if (has_argument(argc, argv, "--no-readback"))
+ goto cleanup;
+ unsigned char pixel[4] = {0};
+ glReadPixels(0, 0, 1, 1, GL_RGBA, GL_UNSIGNED_BYTE, pixel);
+ GLenum glError = glGetError();
+ printf("fbo-status=0x%x pixel=%u,%u,%u,%u gl-error=0x%x\n",
+ framebufferStatus, pixel[0], pixel[1], pixel[2], pixel[3],
+ glError);
+cleanup:
+ if (vertexBuffer)
+ glDeleteBuffers(1, &vertexBuffer);
+ if (indexBuffer)
+ glDeleteBuffers(1, &indexBuffer);
+ if (vertexArray)
+ glDeleteVertexArrays(1, &vertexArray);
+ if (program)
+ glDeleteProgram(program);
+ glDeleteFramebuffers(1, &framebuffer);
+ glDeleteTextures(1, &texture);
+ CGLSetCurrentContext(NULL);
+ CGLDestroyContext(context);
+ CGLDestroyPixelFormat(pixelFormat);
+ return 0;
+}
diff --git a/VirtualMac/vz/development/probes/pvg-gpu-registry.c b/VirtualMac/vz/development/probes/pvg-gpu-registry.c
new file mode 100644
index 0000000..329d532
--- /dev/null
+++ b/VirtualMac/vz/development/probes/pvg-gpu-registry.c
@@ -0,0 +1,37 @@
+#include <CoreFoundation/CoreFoundation.h>
+#include <IOKit/IOKitLib.h>
+#include <stdio.h>
+
+int main(void) {
+ io_iterator_t iterator = IO_OBJECT_NULL;
+ kern_return_t result = IOServiceGetMatchingServices(
+ kIOMainPortDefault, IOServiceMatching("AppleARMIODevice"),
+ &iterator);
+ if (result != KERN_SUCCESS)
+ return 1;
+
+ io_registry_entry_t entry;
+ while ((entry = IOIteratorNext(iterator)) != IO_OBJECT_NULL) {
+ io_name_t name = {0};
+ IORegistryEntryGetName(entry, name);
+ CFMutableDictionaryRef properties = NULL;
+ result = IORegistryEntryCreateCFProperties(
+ entry, &properties, kCFAllocatorDefault, 0);
+ if (result == KERN_SUCCESS && properties != NULL) {
+ CFTypeRef compatible = CFDictionaryGetValue(
+ properties, CFSTR("compatible"));
+ CFTypeRef deviceType = CFDictionaryGetValue(
+ properties, CFSTR("device_type"));
+ if (compatible != NULL || deviceType != NULL) {
+ fprintf(stderr, "%s compatible=", name);
+ CFShow(compatible);
+ fprintf(stderr, "%s device_type=", name);
+ CFShow(deviceType);
+ }
+ CFRelease(properties);
+ }
+ IOObjectRelease(entry);
+ }
+ IOObjectRelease(iterator);
+ return 0;
+}
diff --git a/VirtualMac/vz/development/probes/set-opengl-renderer-property.c b/VirtualMac/vz/development/probes/set-opengl-renderer-property.c
new file mode 100644
index 0000000..5a9ae20
--- /dev/null
+++ b/VirtualMac/vz/development/probes/set-opengl-renderer-property.c
@@ -0,0 +1,30 @@
+#include <CoreFoundation/CoreFoundation.h>
+#include <IOKit/IOKitLib.h>
+#include <stdio.h>
+
+int main(void) {
+ io_service_t service = IOServiceGetMatchingService(
+ kIOMainPortDefault, IOServiceMatching("AppleParavirtGPU"));
+ if (service == IO_OBJECT_NULL) {
+ fprintf(stderr, "AppleParavirtGPU not found\n");
+ return 1;
+ }
+
+ const void *keys[] = {
+ CFSTR("IOGLBundleName"),
+ CFSTR("IOGLESBundleName"),
+ };
+ const void *values[] = {
+ CFSTR("AppleMetalOpenGLRenderer"),
+ CFSTR("AppleMetalGLRenderer"),
+ };
+ CFDictionaryRef properties = CFDictionaryCreate(
+ kCFAllocatorDefault, keys, values, 2,
+ &kCFTypeDictionaryKeyCallBacks,
+ &kCFTypeDictionaryValueCallBacks);
+ kern_return_t result = IORegistryEntrySetCFProperties(service, properties);
+ printf("IORegistryEntrySetCFProperties: 0x%x\n", result);
+ CFRelease(properties);
+ IOObjectRelease(service);
+ return result == KERN_SUCCESS ? 0 : 2;
+}
diff --git a/VirtualMac/vz/development/probes/virtual-address-space.c b/VirtualMac/vz/development/probes/virtual-address-space.c
new file mode 100644
index 0000000..02edb86
--- /dev/null
+++ b/VirtualMac/vz/development/probes/virtual-address-space.c
@@ -0,0 +1,38 @@
+#include <mach/mach.h>
+#include <stdint.h>
+#include <stdio.h>
+
+extern kern_return_t mach_vm_allocate(vm_map_t target,
+ mach_vm_address_t *address,
+ mach_vm_size_t size, int flags);
+extern kern_return_t mach_vm_deallocate(vm_map_t target,
+ mach_vm_address_t address,
+ mach_vm_size_t size);
+
+static void probe_fixed(const char *name, mach_vm_address_t address,
+ mach_vm_size_t size) {
+ mach_vm_address_t requested = address;
+ kern_return_t result = mach_vm_allocate(
+ mach_task_self(), &requested, size, VM_FLAGS_FIXED);
+ printf("%s address=0x%llx size=0x%llx result=%d actual=0x%llx\n",
+ name, address, size, result, requested);
+ if (result == KERN_SUCCESS)
+ mach_vm_deallocate(mach_task_self(), requested, size);
+}
+
+int main(void) {
+ mach_vm_address_t anywhere = 0;
+ mach_vm_size_t sixteen_gib = 16ULL << 30;
+ kern_return_t result = mach_vm_allocate(
+ mach_task_self(), &anywhere, sixteen_gib, VM_FLAGS_ANYWHERE);
+ printf("anywhere address=0x%llx size=0x%llx result=%d\n",
+ anywhere, sixteen_gib, result);
+ if (result == KERN_SUCCESS)
+ mach_vm_deallocate(mach_task_self(), anywhere, sixteen_gib);
+
+ probe_fixed("below-carveout", 0x0c00000000ULL, sixteen_gib);
+ probe_fixed("gpu-carveout", 0x1000000000ULL, sixteen_gib);
+ probe_fixed("above-carveout", 0x7000000000ULL, sixteen_gib);
+ probe_fixed("above-carveout-next", 0x7400000000ULL, sixteen_gib);
+ return 0;
+}
diff --git a/VirtualMac/vz/development/tools/localpolicy-scan.c b/VirtualMac/vz/development/tools/localpolicy-scan.c
new file mode 100644
index 0000000..1303183
--- /dev/null
+++ b/VirtualMac/vz/development/tools/localpolicy-scan.c
@@ -0,0 +1,80 @@
+#include <errno.h>
+#include <fcntl.h>
+#include <stdint.h>
+#include <stdio.h>
+#include <string.h>
+#include <unistd.h>
+
+typedef struct __attribute__((packed)) {
+ uint8_t type[16];
+ uint8_t unique[16];
+ uint64_t first_lba;
+ uint64_t last_lba;
+ uint64_t attributes;
+ uint16_t name[36];
+} gpt_entry;
+
+int main(int argc, char **argv)
+{
+ if (argc != 3) {
+ fprintf(stderr, "usage: %s Disk.img LocalPolicy.bin\n", argv[0]);
+ return 2;
+ }
+ int input = open(argv[1], O_RDONLY);
+ if (input < 0) return perror(argv[1]), 1;
+ uint8_t header[512];
+ if (pread(input, header, sizeof(header), 512) != sizeof(header) ||
+ memcmp(header, "EFI PART", 8))
+ return fprintf(stderr, "invalid GPT\n"), 1;
+ uint64_t entries_lba = *(uint64_t *)(header + 72);
+ uint32_t entry_count = *(uint32_t *)(header + 80);
+ uint32_t entry_size = *(uint32_t *)(header + 84);
+ static const uint8_t isc_type[16] = {
+ 0x61,0x69,0x64,0x69,0x00,0x67,0xaa,0x11,
+ 0xaa,0x11,0x00,0x30,0x65,0x43,0xec,0xac,
+ };
+ uint64_t first = 0, last = 0;
+ uint8_t entry_bytes[4096];
+ if (!entry_count || entry_count > 1024 ||
+ entry_size < sizeof(gpt_entry) || entry_size > sizeof(entry_bytes))
+ return fprintf(stderr, "unsupported GPT\n"), 1;
+ for (uint32_t index = 0; index < entry_count; ++index) {
+ off_t offset = entries_lba * 512 + (uint64_t)index * entry_size;
+ if (pread(input, entry_bytes, entry_size, offset) != entry_size)
+ return perror("read GPT"), 1;
+ gpt_entry *entry = (gpt_entry *)entry_bytes;
+ if (!memcmp(entry->type, isc_type, sizeof(isc_type))) {
+ first = entry->first_lba * 512;
+ last = (entry->last_lba + 1) * 512;
+ break;
+ }
+ }
+ if (!first || last <= first)
+ return fprintf(stderr, "iSC partition not found\n"), 1;
+ uint8_t block[4096];
+ for (uint64_t offset = first; offset + sizeof(block) <= last;
+ offset += sizeof(block)) {
+ if (pread(input, block, sizeof(block), offset) != sizeof(block))
+ return perror("read iSC"), 1;
+ if (block[0] != 0x30 || memcmp(block + 6, "IMG4", 4) ||
+ !memmem(block, sizeof(block), "lpol", 4) ||
+ !memmem(block, sizeof(block), "IM4M", 4))
+ continue;
+ static const uint8_t recovery_marker[] = {
+ 0x16, 0x04, 'r', 'o', 'l', 'p'
+ };
+ if (memmem(block, sizeof(block), recovery_marker,
+ sizeof(recovery_marker)))
+ continue;
+ int output = open(argv[2], O_WRONLY | O_CREAT | O_TRUNC, 0644);
+ if (output < 0) return perror(argv[2]), 1;
+ ssize_t written = write(output, block, sizeof(block));
+ close(output);
+ if (written != sizeof(block)) return perror("write policy"), 1;
+ printf("0x%llx\n", (unsigned long long)offset);
+ close(input);
+ return 0;
+ }
+ close(input);
+ return fprintf(stderr, "LocalPolicy not found\n"), 1;
+}
diff --git a/VirtualMac/vz/development/tools/localpolicy-transform-test.m b/VirtualMac/vz/development/tools/localpolicy-transform-test.m
new file mode 100644
index 0000000..23409cf
--- /dev/null
+++ b/VirtualMac/vz/development/tools/localpolicy-transform-test.m
@@ -0,0 +1,46 @@
+#import <Foundation/Foundation.h>
+
+// Keep the on-device LocalPolicy implementation and this development probe in
+// one translation unit so the test exercises the exact private DER helpers.
+#import "../../host/VZLocalPolicy.m"
+
+int main(int argc, const char *argv[])
+{
+ @autoreleasepool {
+ if (argc != 4) {
+ fprintf(stderr, "usage: %s input.bin enabled|disabled output.bin\n",
+ argv[0]);
+ return 2;
+ }
+ NSMutableData *data = [NSMutableData dataWithContentsOfFile:
+ [NSString stringWithUTF8String:argv[1]]];
+ if (data.length != kBlockSize) {
+ fprintf(stderr, "input must be one 4096-byte LocalPolicy slot\n");
+ return 2;
+ }
+ BOOL enabled = !strcmp(argv[2], "enabled");
+ if (!enabled && strcmp(argv[2], "disabled")) return 2;
+ LocalPolicyLayout layout;
+ LocalPolicyProperties properties;
+ BOOL parsed = ParseLocalPolicy(data.bytes, data.length, &layout);
+ BOOL propertiesParsed = parsed &&
+ ParsePolicyProperties(layout, &properties);
+ fprintf(stderr, "policy=%d properties=%d sip=%lu insert=%td\n",
+ parsed, propertiesParsed,
+ propertiesParsed ? (unsigned long)properties.sipCount : 0,
+ propertiesParsed && properties.insertionPoint
+ ? properties.insertionPoint - (const uint8_t *)data.bytes
+ : -1);
+ NSError *error = nil;
+ if (!UpdatePolicyInBlock(data.mutableBytes, enabled, &error)) {
+ fprintf(stderr, "%s\n", error.localizedDescription.UTF8String);
+ return 1;
+ }
+ if (![data writeToFile:[NSString stringWithUTF8String:argv[3]]
+ options:NSDataWritingAtomic error:&error]) {
+ fprintf(stderr, "%s\n", error.localizedDescription.UTF8String);
+ return 1;
+ }
+ }
+ return 0;
+}
diff --git a/VirtualMac/vz/guest/OpenGLPVGCompat.m b/VirtualMac/vz/guest/OpenGLPVGCompat.m
new file mode 100644
index 0000000..a63789f
--- /dev/null
+++ b/VirtualMac/vz/guest/OpenGLPVGCompat.m
@@ -0,0 +1,371 @@
+#import <CoreFoundation/CoreFoundation.h>
+#import <Foundation/Foundation.h>
+#import <IOKit/IOKitLib.h>
+#import <Metal/Metal.h>
+#import <objc/message.h>
+#import <objc/runtime.h>
+
+#ifndef EXPERIMENTAL_UNREAL_GAMES
+#define EXPERIMENTAL_UNREAL_GAMES 0
+#endif
+#import <sys/sysctl.h>
+
+// macOS does not advertise its Metal-backed OpenGL renderer for a paravirtual GPU.
+// The renderer itself works over PVG, but the Ventura-era serializer rejects GLD's
+// defaultRasterSampleCount hint and custom FSAA sample locations. This guest shim
+// opts PVG into GLD and normalizes only those redundant overrides before the render
+// pass is serialized. Attachment sample counts, including MSAA, are unchanged.
+
+static IMP gSupportsFamily;
+static IMP gNewCommandQueue;
+static IMP gCommandBuffer;
+static IMP gCommandBufferUnretained;
+static IMP gRenderEncoder;
+static IMP gSetVertexBuffer;
+static IMP gSetVertexBuffers;
+static char gInlineVertexStorageKey;
+static void InstallRenderEncoderCompatibility(id encoder);
+
+static BOOL DebugEnabled(void) {
+ const char *value = getenv("VIRTUAL_MAC_OPENGL_DEBUG");
+ return value != NULL && value[0] != '\0' && strcmp(value, "0") != 0;
+}
+
+static BOOL ProcessIsTranslated(void) {
+ static BOOL translated;
+ static dispatch_once_t once;
+ dispatch_once(&once, ^{
+ int value = 0;
+ size_t size = sizeof(value);
+ translated = sysctlbyname("sysctl.proc_translated", &value, &size,
+ NULL, 0) == 0 && value == 1;
+ });
+ return translated;
+}
+
+static void ReplaceMethod(Class cls, SEL selector, IMP replacement,
+ IMP *original) {
+ Method method = class_getInstanceMethod(cls, selector);
+ if (method == NULL || *original != NULL)
+ return;
+ *original = method_getImplementation(method);
+ class_replaceMethod(cls, selector, replacement,
+ method_getTypeEncoding(method));
+}
+
+static id UnderlyingDevice(id device) {
+ SEL selector = NSSelectorFromString(@"originalObject");
+ while ([device respondsToSelector:selector]) {
+ id next = ((id (*)(id, SEL))objc_msgSend)(device, selector);
+ if (next == nil || next == device)
+ break;
+ device = next;
+ }
+ return device;
+}
+
+static BOOL ClearCustomSamplePositions(id descriptor, NSUInteger count) {
+ // Metal's public setter ignores a zero count once custom positions have
+ // been installed. Locate the count field from Objective-C's complete
+ // runtime type encoding rather than relying on an OS-specific offset.
+ Ivar privateIvar = class_getInstanceVariable(
+ object_getClass(descriptor), "_private");
+ const char *encoding = privateIvar != NULL
+ ? ivar_getTypeEncoding(privateIvar) : NULL;
+ const char *cursor = encoding != NULL ? strchr(encoding, '=') : NULL;
+ if (cursor == NULL)
+ return NO;
+ ++cursor;
+
+ NSUInteger offset = 0;
+ while (*cursor != '\0' && *cursor != '}') {
+ const char *name = NULL;
+ size_t nameLength = 0;
+ if (*cursor == '"') {
+ name = ++cursor;
+ while (*cursor != '\0' && *cursor != '"')
+ ++cursor;
+ nameLength = (size_t)(cursor - name);
+ if (*cursor == '"')
+ ++cursor;
+ }
+
+ NSUInteger size = 0;
+ NSUInteger alignment = 0;
+ const char *next = NSGetSizeAndAlignment(
+ cursor, &size, &alignment);
+ if (next == NULL || next <= cursor || alignment == 0)
+ return NO;
+ offset = (offset + alignment - 1) & ~(alignment - 1);
+
+ static const char target[] = "numCustomSamplePositions";
+ if (nameLength == sizeof(target) - 1 &&
+ memcmp(name, target, sizeof(target) - 1) == 0 &&
+ size == sizeof(NSUInteger)) {
+ ptrdiff_t privateOffset = ivar_getOffset(privateIvar);
+ NSUInteger instanceSize = class_getInstanceSize(
+ object_getClass(descriptor));
+ if (privateOffset < 0 ||
+ (NSUInteger)privateOffset + offset + size > instanceSize)
+ return NO;
+ NSUInteger *storedCount = (NSUInteger *)(
+ (uint8_t *)(__bridge void *)descriptor + privateOffset +
+ offset);
+ if (*storedCount != count)
+ return NO;
+ *storedCount = 0;
+ return YES;
+ }
+
+ offset += size;
+ cursor = next;
+ }
+ return NO;
+}
+
+static BOOL PVGSupportsFamily(id self, SEL selector, NSUInteger family) {
+ // M1 and M2 implement at least Apple7. GLD selects its modern agx2 path
+ // when Apple7 is present; PVG otherwise exposes only Mac/Common families.
+ const NSUInteger maximumFamily = 1007;
+ if (family >= 1001 && family <= maximumFamily)
+ return YES;
+ return ((BOOL (*)(id, SEL, NSUInteger))gSupportsFamily)(
+ self, selector, family);
+}
+
+static id PVGRenderEncoder(id self, SEL selector, id descriptor) {
+ SEL getter = NSSelectorFromString(@"defaultRasterSampleCount");
+ SEL setter = NSSelectorFromString(@"setDefaultRasterSampleCount:");
+ if ([descriptor respondsToSelector:getter] &&
+ [descriptor respondsToSelector:setter] &&
+ ((NSUInteger (*)(id, SEL))objc_msgSend)(descriptor, getter) != 0) {
+ ((void (*)(id, SEL, NSUInteger))objc_msgSend)(
+ descriptor, setter, 0);
+ if (DebugEnabled())
+ fprintf(stderr,
+ "OpenGLPVGCompat: cleared default raster sample count\n");
+ }
+ SEL sampleGetter = @selector(getSamplePositions:count:);
+ if ([descriptor respondsToSelector:sampleGetter] &&
+ class_getInstanceVariable(object_getClass(descriptor), "_private") !=
+ NULL) {
+ NSUInteger count =
+ ((NSUInteger (*)(id, SEL, MTLSamplePosition *, NSUInteger))
+ objc_msgSend)(descriptor, sampleGetter, NULL, 0);
+ if (count != 0 && ClearCustomSamplePositions(descriptor, count)) {
+ if (DebugEnabled())
+ fprintf(stderr,
+ "OpenGLPVGCompat: cleared %lu custom sample "
+ "positions\n", (unsigned long)count);
+ }
+ }
+ id encoder = ((id (*)(id, SEL, id))gRenderEncoder)(
+ self, selector, descriptor);
+ if (encoder != nil && ProcessIsTranslated())
+ InstallRenderEncoderCompatibility(encoder);
+ return encoder;
+}
+
+static void PVGSetVertexBuffer(id self, SEL selector, id buffer,
+ NSUInteger offset, NSUInteger index) {
+ // Rosetta writes GLD's managed 16 KiB staging buffer through its x86
+ // address space. PVG's no-copy mapping does not make those translated
+ // stores visible to the host GPU, even after didModifyRange. Serialize
+ // the staging bytes with the command instead. Native Arm buffers retain
+ // the normal zero-copy path.
+ const NSUInteger maximumInlineLength = 16 * 1024;
+ if (ProcessIsTranslated() && buffer != nil &&
+ [buffer respondsToSelector:@selector(contents)] &&
+ [buffer respondsToSelector:@selector(length)] &&
+ [buffer length] > offset) {
+ // GLD suballocates the active draw data from a larger ring. Its
+ // private inline path transfers one 16 KiB window from the selected
+ // offset, which is also the largest payload validated over PVG.
+ NSUInteger length = MIN([buffer length] - offset,
+ maximumInlineLength);
+ const uint8_t *bytes = (const uint8_t *)[buffer contents] + offset;
+ if (bytes != NULL) {
+ NSData *snapshot = [NSData dataWithBytes:bytes length:length];
+ NSMutableArray *storage = objc_getAssociatedObject(
+ self, &gInlineVertexStorageKey);
+ if (storage == nil) {
+ storage = [NSMutableArray array];
+ objc_setAssociatedObject(
+ self, &gInlineVertexStorageKey, storage,
+ OBJC_ASSOCIATION_RETAIN_NONATOMIC);
+ }
+ [storage addObject:snapshot];
+ ((void (*)(id, SEL, const void *, NSUInteger, NSUInteger))
+ objc_msgSend)(self,
+ @selector(setVertexBytes:length:atIndex:),
+ snapshot.bytes, length, index);
+ if (DebugEnabled()) {
+ static unsigned long count;
+ unsigned long current = __sync_add_and_fetch(&count, 1);
+ if (current <= 8)
+ fprintf(stderr,
+ "OpenGLPVGCompat: inlined Rosetta vertex "
+ "buffer length=%lu index=%lu\n",
+ (unsigned long)length, (unsigned long)index);
+ }
+ return;
+ }
+ }
+ ((void (*)(id, SEL, id, NSUInteger, NSUInteger))gSetVertexBuffer)(
+ self, selector, buffer, offset, index);
+}
+
+static void PVGSetVertexBuffers(id self, SEL selector, const id *buffers,
+ const NSUInteger *offsets, NSRange range) {
+ if (!ProcessIsTranslated()) {
+ ((void (*)(id, SEL, const id *, const NSUInteger *, NSRange))
+ gSetVertexBuffers)(self, selector, buffers, offsets, range);
+ return;
+ }
+ for (NSUInteger position = 0; position < range.length; ++position) {
+ PVGSetVertexBuffer(self, @selector(setVertexBuffer:offset:atIndex:),
+ buffers[position], offsets[position],
+ range.location + position);
+ }
+}
+
+static void InstallRenderEncoderCompatibility(id encoder) {
+ ReplaceMethod([encoder class],
+ @selector(setVertexBuffer:offset:atIndex:),
+ (IMP)PVGSetVertexBuffer, &gSetVertexBuffer);
+ ReplaceMethod([encoder class],
+ @selector(setVertexBuffers:offsets:withRange:),
+ (IMP)PVGSetVertexBuffers, &gSetVertexBuffers);
+}
+
+static void InstallCommandBufferCompatibility(id commandBuffer) {
+ ReplaceMethod([commandBuffer class],
+ @selector(renderCommandEncoderWithDescriptor:),
+ (IMP)PVGRenderEncoder, &gRenderEncoder);
+}
+
+static id PVGCommandBuffer(id self, SEL selector) {
+ id commandBuffer = ((id (*)(id, SEL))gCommandBuffer)(self, selector);
+ InstallCommandBufferCompatibility(commandBuffer);
+ return commandBuffer;
+}
+
+static id PVGCommandBufferUnretained(id self, SEL selector) {
+ id commandBuffer =
+ ((id (*)(id, SEL))gCommandBufferUnretained)(self, selector);
+ InstallCommandBufferCompatibility(commandBuffer);
+ return commandBuffer;
+}
+
+static void InstallQueueCompatibility(id queue) {
+ ReplaceMethod([queue class], @selector(commandBuffer),
+ (IMP)PVGCommandBuffer, &gCommandBuffer);
+ ReplaceMethod([queue class],
+ NSSelectorFromString(
+ @"commandBufferWithUnretainedReferences"),
+ (IMP)PVGCommandBufferUnretained,
+ &gCommandBufferUnretained);
+}
+
+static id PVGNewCommandQueue(id self, SEL selector) {
+ id queue = ((id (*)(id, SEL))gNewCommandQueue)(self, selector);
+ InstallQueueCompatibility(queue);
+ return queue;
+}
+
+static void EnablePVGOpenGL(id<MTLDevice> device) {
+ device = UnderlyingDevice(device);
+ if (![NSStringFromClass([device class])
+ isEqualToString:@"AppleParavirtDevice"])
+ return;
+
+ static dispatch_once_t once;
+ dispatch_once(&once, ^{
+ ReplaceMethod([device class], @selector(supportsFamily:),
+ (IMP)PVGSupportsFamily, &gSupportsFamily);
+ ReplaceMethod([device class], @selector(newCommandQueue),
+ (IMP)PVGNewCommandQueue, &gNewCommandQueue);
+ if (DebugEnabled())
+ fprintf(stderr,
+ "OpenGLPVGCompat: enabled Apple7 GLD profile for PVG\n");
+ });
+}
+
+static bool IsParavirtualGPU(io_registry_entry_t entry) {
+ io_name_t className = {0};
+ return IOObjectGetClass(entry, className) == KERN_SUCCESS &&
+ strcmp(className, "AppleParavirtGPU") == 0;
+}
+
+#if EXPERIMENTAL_UNREAL_GAMES
+static bool IsParavirtualGPUProvider(io_registry_entry_t entry,
+ CFDictionaryRef properties) {
+ CFTypeRef compatible = properties != NULL
+ ? CFDictionaryGetValue(properties, CFSTR("compatible")) : NULL;
+ if (compatible != NULL && CFGetTypeID(compatible) == CFDataGetTypeID()) {
+ static const char name[] = "paravirtualizedgraphics,gpu";
+ CFDataRef data = compatible;
+ if (CFDataGetLength(data) >= (CFIndex)sizeof(name) - 1 &&
+ memcmp(CFDataGetBytePtr(data), name, sizeof(name) - 1) == 0)
+ return true;
+ }
+ io_name_t registryName = {0};
+ return IORegistryEntryGetName(entry, registryName) == KERN_SUCCESS &&
+ strcmp(registryName, "gfx") == 0;
+}
+
+static kern_return_t PVGCreateRegistryProperties(
+ io_registry_entry_t entry, CFMutableDictionaryRef *properties,
+ CFAllocatorRef allocator, IOOptionBits options) {
+ kern_return_t result = IORegistryEntryCreateCFProperties(
+ entry, properties, allocator, options);
+ if (result != KERN_SUCCESS || properties == NULL || *properties == NULL ||
+ !IsParavirtualGPUProvider(entry, *properties))
+ return result;
+ static const UInt8 sgx[] = {'s', 'g', 'x'};
+ CFDataRef deviceType = CFDataCreate(allocator, sgx, sizeof(sgx));
+ if (deviceType != NULL) {
+ CFDictionarySetValue(*properties, CFSTR("device_type"), deviceType);
+ CFRelease(deviceType);
+ }
+ return result;
+}
+
+static CFTypeRef PVGSearchRegistryProperty(
+ io_registry_entry_t entry, const io_name_t plane, CFStringRef key,
+ CFAllocatorRef allocator, IOOptionBits options) {
+ if (IsParavirtualGPU(entry) && CFEqual(key, CFSTR("IOMatchCategory")))
+ return CFRetain(CFSTR("IOAccelerator"));
+ return IORegistryEntrySearchCFProperty(
+ entry, plane, key, allocator, options);
+}
+#endif
+
+static CFTypeRef PVGCreateRegistryProperty(
+ io_registry_entry_t entry, CFStringRef key, CFAllocatorRef allocator,
+ IOOptionBits options) {
+ if (IsParavirtualGPU(entry) &&
+ CFEqual(key, CFSTR("IOGLBundleName"))) {
+ for (id<MTLDevice> device in MTLCopyAllDevices())
+ EnablePVGOpenGL(device);
+ return CFRetain(CFSTR("AppleMetalOpenGLRenderer"));
+ }
+ return IORegistryEntryCreateCFProperty(entry, key, allocator, options);
+}
+
+#define INTERPOSE(name, replacement, original) \
+ __attribute__((used)) static struct { \
+ const void *replacement; \
+ const void *original; \
+ } name __attribute__((section("__DATA,__interpose"))) = { \
+ (const void *)&replacement, (const void *)&original \
+ }
+
+INTERPOSE(pvg_iogl_property, PVGCreateRegistryProperty,
+ IORegistryEntryCreateCFProperty);
+#if EXPERIMENTAL_UNREAL_GAMES
+INTERPOSE(pvg_gpu_registry_properties, PVGCreateRegistryProperties,
+ IORegistryEntryCreateCFProperties);
+INTERPOSE(pvg_gpu_search_property, PVGSearchRegistryProperty,
+ IORegistryEntrySearchCFProperty);
+#endif
diff --git a/VirtualMac/vz/guest/VirtualMacGuestTools-Info.plist b/VirtualMac/vz/guest/VirtualMacGuestTools-Info.plist
new file mode 100644
index 0000000..7655ff0
--- /dev/null
+++ b/VirtualMac/vz/guest/VirtualMacGuestTools-Info.plist
@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN"
+ "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>CFBundleDevelopmentRegion</key>
+ <string>en</string>
+ <key>CFBundleExecutable</key>
+ <string>Virtual Mac Guest Tools</string>
+ <key>CFBundleIconFile</key>
+ <string>VirtualMac</string>
+ <key>CFBundleIdentifier</key>
+ <string>com.mac.virtual.guest-tools</string>
+ <key>CFBundleInfoDictionaryVersion</key>
+ <string>6.0</string>
+ <key>CFBundleName</key>
+ <string>Virtual Mac Guest Tools</string>
+ <key>CFBundlePackageType</key>
+ <string>APPL</string>
+ <key>CFBundleShortVersionString</key>
+ <string>1.2</string>
+ <key>CFBundleVersion</key>
+ <string>1</string>
+ <key>LSMinimumSystemVersion</key>
+ <string>12.0</string>
+ <key>LSUIElement</key>
+ <true/>
+ <key>NSAppleEventsUsageDescription</key>
+ <string>Virtual Mac Guest Tools manages acceleration and input integration.</string>
+</dict>
+</plist>
diff --git a/VirtualMac/vz/guest/VirtualMacGuestToolsApp.m b/VirtualMac/vz/guest/VirtualMacGuestToolsApp.m
new file mode 100644
index 0000000..7acd1e9
--- /dev/null
+++ b/VirtualMac/vz/guest/VirtualMacGuestToolsApp.m
@@ -0,0 +1,331 @@
+#import <AppKit/AppKit.h>
+#import <dlfcn.h>
+
+static NSString * const VMOpenGLKey = @"OpenGLAcceleration";
+static NSString * const VMOpenGLAllowedKey = @"OpenGLAllowed";
+static NSString * const VMPencilSupportKey =
+ @"ApplePencilPressureTiltEnabled";
+static NSString * const VMLibrary = @"/Library/VirtualMac";
+static NSString * const VMHostConfiguration =
+ @"/Library/VirtualMac/HostConfiguration.plist";
+static NSString * const VMReadyTokenKey = @"LastHostReadyToken";
+static NSString * const VMReadyPath = @"/tmp/VirtualMacGuestTools.ready";
+
+static NSString *VML(NSString *key)
+{
+ return [NSBundle.mainBundle localizedStringForKey:key value:key table:nil];
+}
+
+@interface VMGuestToolsDelegate : NSObject <NSApplicationDelegate, NSMenuDelegate>
+@property(nonatomic, retain) NSStatusItem *statusItem;
+@property(nonatomic, retain) NSMenuItem *statusMenuItem;
+@property(nonatomic, retain) NSMenuItem *openGLMenuItem;
+@property(nonatomic, copy) NSString *readyToken;
+@end
+
+@implementation VMGuestToolsDelegate
+
+- (NSUserDefaults *)preferences { return NSUserDefaults.standardUserDefaults; }
+
+- (BOOL)preferenceForKey:(NSString *)key defaultValue:(BOOL)value
+{
+ if ([self.preferences objectForKey:key] == nil)
+ [self.preferences setBool:value forKey:key];
+ return [self.preferences boolForKey:key];
+}
+
+- (void)applyHostConfiguration
+{
+ NSDictionary *configuration = [NSDictionary
+ dictionaryWithContentsOfFile:VMHostConfiguration];
+ if (![configuration isKindOfClass:NSDictionary.class]) return;
+ NSString *token = configuration[@"ReadyToken"];
+ if (![token isKindOfClass:NSString.class] || !token.length) return;
+ self.readyToken = token;
+
+ // Host policy is machine-owned, while the menu extra is the authority for
+ // its own user preference domain. Initialize a new VM boot exactly once so
+ // a user can still toggle OpenGL for the rest of that boot without a host
+ // repair relaunch overwriting the choice.
+ NSString *lastToken = [self.preferences stringForKey:VMReadyTokenKey];
+ if (![lastToken isEqualToString:token]) {
+ NSNumber *openGL = configuration[VMOpenGLKey];
+ if ([openGL isKindOfClass:NSNumber.class])
+ [self.preferences setBool:openGL.boolValue forKey:VMOpenGLKey];
+ [self.preferences setObject:token forKey:VMReadyTokenKey];
+ }
+ for (NSString *key in @[VMOpenGLAllowedKey, VMPencilSupportKey]) {
+ NSNumber *value = configuration[key];
+ if ([value isKindOfClass:NSNumber.class])
+ [self.preferences setBool:value.boolValue forKey:key];
+ }
+ [self.preferences synchronize];
+}
+
+- (void)publishReady
+{
+ if (!self.readyToken.length || !self.statusItem.button || !self.statusItem.menu)
+ return;
+ NSString *temporary = [VMReadyPath stringByAppendingFormat:@".%d", getpid()];
+ NSData *data = [self.readyToken dataUsingEncoding:NSUTF8StringEncoding];
+ if ([data writeToFile:temporary atomically:YES]) {
+ [NSFileManager.defaultManager removeItemAtPath:VMReadyPath error:nil];
+ [NSFileManager.defaultManager moveItemAtPath:temporary
+ toPath:VMReadyPath error:nil];
+ }
+}
+
+- (NSString *)outputForExecutable:(NSString *)path arguments:(NSArray *)arguments
+{
+ NSPipe *pipe = [NSPipe pipe];
+ NSTask *task = [[[NSTask alloc] init] autorelease];
+ task.launchPath = path;
+ task.arguments = arguments;
+ task.standardOutput = pipe;
+ task.standardError = pipe;
+ @try {
+ [task launch];
+ [task waitUntilExit];
+ NSData *data = [pipe.fileHandleForReading readDataToEndOfFile];
+ return [[[NSString alloc] initWithData:data
+ encoding:NSUTF8StringEncoding] autorelease] ?: @"";
+ } @catch (__unused NSException *exception) { return @""; }
+}
+
+- (void)setEnvironmentVariable:(NSString *)name value:(NSString *)value
+{
+ [self outputForExecutable:@"/bin/launchctl"
+ arguments:value ? @[@"setenv", name, value] : @[@"unsetenv", name]];
+}
+
+- (void)setSavedApplicationRelaunchSuppressed:(BOOL)suppressed
+{
+ NSUserDefaults *loginwindow = [[[NSUserDefaults alloc]
+ initWithSuiteName:@"com.apple.loginwindow"] autorelease];
+ for (NSString *key in @[@"TALLogoutSavesState",
+ @"LoginwindowLaunchesRelaunchApps"]) {
+ if (suppressed)
+ [loginwindow setBool:NO forKey:key];
+ else
+ [loginwindow removeObjectForKey:key];
+ }
+ [loginwindow synchronize];
+}
+
+- (BOOL)hostAllowsOpenGL
+{
+ return [self preferenceForKey:VMOpenGLAllowedKey defaultValue:NO];
+}
+
+- (BOOL)guestSupportsOpenGL
+{
+ return NSProcessInfo.processInfo.operatingSystemVersion.majorVersion >= 14;
+}
+
+- (BOOL)securityPolicySupportsOpenGL
+{
+ // Virtual Mac applies SIP capabilities to the running guest kernel while
+ // leaving its signed persistent LocalPolicy untouched. Modern csrutil
+ // reports that persistent startup policy, so query the enforcement ABI
+ // used by dyld and the kernel instead.
+ int (*csr_check_fn)(uint32_t) = dlsym(RTLD_DEFAULT, "csr_check");
+ BOOL unrestrictedFilesystem = csr_check_fn && csr_check_fn(1U << 1) == 0;
+ NSString *bootArguments = [self outputForExecutable:@"/usr/sbin/nvram"
+ arguments:@[@"boot-args"]];
+ return unrestrictedFilesystem &&
+ [bootArguments containsString:@"-arm64e_preview_abi"];
+}
+
+- (BOOL)openGLAvailable
+{
+ return [self guestSupportsOpenGL] && [self hostAllowsOpenGL] &&
+ [self securityPolicySupportsOpenGL] &&
+ [NSFileManager.defaultManager fileExistsAtPath:[VMLibrary
+ stringByAppendingPathComponent:@"OpenGLPVGCompat.dylib"]];
+}
+
+- (void)applyOpenGL
+{
+ BOOL requested = [self preferenceForKey:VMOpenGLKey defaultValue:YES] &&
+ [self guestSupportsOpenGL] && [self hostAllowsOpenGL];
+ BOOL enabled = requested && [self securityPolicySupportsOpenGL] &&
+ [NSFileManager.defaultManager fileExistsAtPath:[VMLibrary
+ stringByAppendingPathComponent:@"OpenGLPVGCompat.dylib"]];
+ NSString *library = [VMLibrary
+ stringByAppendingPathComponent:@"OpenGLPVGCompat.dylib"];
+ // This changes only the requested Aqua environment variable and leaves
+ // unrelated values intact.
+ [self setEnvironmentVariable:@"DYLD_INSERT_LIBRARIES"
+ value:enabled ? library : nil];
+ // loginwindow can restore applications before an ordinary LaunchAgent is
+ // scheduled, so those processes cannot inherit a value published by this
+ // menu extra. While acceleration is enabled, turn off saved-application
+ // relaunch instead of racing loginwindow or injecting a boot-time agent.
+ // Removing the OpenGL preference restores the guest's normal defaults.
+ // Preserve the configured intent if the host is still applying its
+ // running-kernel policy when this login item starts. That transient state
+ // must not re-enable saved-app restoration for the following boot.
+ [self setSavedApplicationRelaunchSuppressed:requested];
+}
+
+- (NSImage *)statusImageNamed:(NSString *)name
+{
+ NSImage *image = [NSImage imageNamed:name];
+ image.template = YES;
+ image.size = NSMakeSize(18, 18);
+ return image;
+}
+
+- (void)updateMenu
+{
+ BOOL available = [self openGLAvailable];
+ BOOL enabled = available &&
+ [self preferenceForKey:VMOpenGLKey defaultValue:YES];
+ self.statusMenuItem.title = VML(@"Virtual Mac");
+ self.openGLMenuItem.state = enabled ? NSControlStateValueOn
+ : NSControlStateValueOff;
+ self.openGLMenuItem.enabled = [self guestSupportsOpenGL];
+ self.statusItem.button.image = [self statusImageNamed:enabled
+ ? @"vm.laptopcomputer.badge.checkmark" : @"vm.laptopcomputer"];
+ self.statusItem.button.imageScaling = NSImageScaleProportionallyDown;
+}
+
+- (void)menuWillOpen:(NSMenu *)menu
+{
+ (void)menu;
+ // The host applies the running-kernel policy asynchronously during boot.
+ // Refresh both the effective environment and the visible checkmark when
+ // the user opens the menu instead of freezing startup-time state.
+ [self applyOpenGL];
+ [self updateMenu];
+}
+
+- (void)showOpenGLUnavailable
+{
+ NSAlert *alert = [[[NSAlert alloc] init] autorelease];
+ alert.messageText = VML(@"OpenGL Acceleration Is Off");
+ alert.informativeText = [self guestSupportsOpenGL]
+ ? VML(@"To enable OpenGL acceleration, shut down this Virtual Mac, then in its options, enable OpenGL Acceleration.")
+ : VML(@"OpenGL Acceleration requires macOS Sonoma or later.");
+ [alert addButtonWithTitle:VML(@"OK")];
+ [alert runModal];
+}
+
+- (void)toggleOpenGL:(NSMenuItem *)sender
+{
+ (void)sender;
+ if (![self openGLAvailable]) {
+ [self showOpenGLUnavailable];
+ [self updateMenu];
+ return;
+ }
+ BOOL enabled = ![self preferenceForKey:VMOpenGLKey defaultValue:YES];
+ [self.preferences setBool:enabled forKey:VMOpenGLKey];
+ [self applyOpenGL];
+ [self updateMenu];
+}
+
+- (NSString *)productVersion
+{
+ NSString *version = [self outputForExecutable:@"/usr/bin/sw_vers"
+ arguments:@[@"-productVersion"]];
+ return [version stringByTrimmingCharactersInSet:
+ NSCharacterSet.whitespaceAndNewlineCharacterSet] ?: @"";
+}
+
+- (void)openWebItem:(NSMenuItem *)sender
+{
+ NSURLComponents *components = [NSURLComponents componentsWithString:
+ @"https://nfzerox.github.io/virtual-mac/app/"];
+ NSString *virtualMacVersion = [NSBundle.mainBundle
+ objectForInfoDictionaryKey:@"CFBundleShortVersionString"] ?: @"";
+ components.queryItems = @[
+ [NSURLQueryItem queryItemWithName:@"app" value:sender.representedObject],
+ [NSURLQueryItem queryItemWithName:@"vm" value:virtualMacVersion],
+ [NSURLQueryItem queryItemWithName:@"os" value:self.productVersion],
+ ];
+ [NSWorkspace.sharedWorkspace openURL:components.URL];
+}
+
+- (void)openSupport:(NSMenuItem *)sender
+{
+ [NSWorkspace.sharedWorkspace openURL:[NSURL URLWithString:
+ sender.representedObject]];
+}
+
+- (NSMenuItem *)itemWithTitle:(NSString *)title action:(SEL)action
+ representedObject:(id)object
+{
+ NSMenuItem *item = [[[NSMenuItem alloc] initWithTitle:title action:action
+ keyEquivalent:@""] autorelease];
+ item.target = self;
+ item.representedObject = object;
+ return item;
+}
+
+- (void)applicationDidFinishLaunching:(NSNotification *)notification
+{
+ (void)notification;
+ [self applyHostConfiguration];
+ [self applyOpenGL];
+ self.statusItem = [NSStatusBar.systemStatusBar
+ statusItemWithLength:NSSquareStatusItemLength];
+ NSMenu *menu = [[[NSMenu alloc] initWithTitle:VML(@"Virtual Mac Guest Tools")]
+ autorelease];
+ menu.autoenablesItems = NO;
+ menu.delegate = self;
+ self.statusMenuItem = [[[NSMenuItem alloc]
+ initWithTitle:VML(@"Virtual Mac")
+ action:nil keyEquivalent:@""] autorelease];
+ self.statusMenuItem.enabled = NO;
+ [menu addItem:self.statusMenuItem];
+ BOOL supportsOpenGL = [self guestSupportsOpenGL];
+ self.openGLMenuItem = [self itemWithTitle:supportsOpenGL
+ ? VML(@"OpenGL Acceleration")
+ : VML(@"OpenGL Acceleration requires macOS Sonoma or later.")
+ action:@selector(toggleOpenGL:) representedObject:nil];
+ [menu addItem:self.openGLMenuItem];
+ [menu addItem:NSMenuItem.separatorItem];
+ [menu addItem:[self itemWithTitle:VML(@"Download Xcode")
+ action:@selector(openWebItem:) representedObject:@"xcode"]];
+ if (supportsOpenGL) {
+ [menu addItem:[self itemWithTitle:VML(@"Download Final Cut Pro Trial")
+ action:@selector(openWebItem:)
+ representedObject:@"final-cut-pro-trial"]];
+ }
+ [menu addItem:[self itemWithTitle:VML(@"Download Logic Pro Trial")
+ action:@selector(openWebItem:) representedObject:@"logic-pro-trial"]];
+ [menu addItem:[self itemWithTitle:VML(@"Download Pixelmator Pro Trial")
+ action:@selector(openWebItem:)
+ representedObject:@"pixelmator-pro-trial"]];
+ if ([self preferenceForKey:VMPencilSupportKey defaultValue:NO]) {
+ [menu addItem:[self itemWithTitle:VML(@"Download Apple Pencil Support")
+ action:@selector(openWebItem:) representedObject:@"pencil"]];
+ }
+ [menu addItem:NSMenuItem.separatorItem];
+ [menu addItem:[self itemWithTitle:VML(@"Get Help")
+ action:@selector(openSupport:) representedObject:
+ @"https://nfzerox.github.io/virtual-mac/help/"]];
+ [menu addItem:[self itemWithTitle:VML(@"Report Issue")
+ action:@selector(openSupport:) representedObject:
+ @"https://nfzerox.github.io/virtual-mac/issues/"]];
+ self.statusItem.menu = menu;
+ [self updateMenu];
+ [self publishReady];
+}
+
+@end
+
+
+int main(int argc, const char *argv[])
+{
+ (void)argc; (void)argv;
+ NSAutoreleasePool *pool = [NSAutoreleasePool new];
+ NSApplication *application = NSApplication.sharedApplication;
+ VMGuestToolsDelegate *delegate = [VMGuestToolsDelegate new];
+ application.delegate = delegate;
+ [application run];
+ [delegate release];
+ [pool drain];
+ return 0;
+}
diff --git a/VirtualMac/vz/guest/com.mac.virtual.guest-tools.plist b/VirtualMac/vz/guest/com.mac.virtual.guest-tools.plist
new file mode 100644
index 0000000..1bca625
--- /dev/null
+++ b/VirtualMac/vz/guest/com.mac.virtual.guest-tools.plist
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN"
+ "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>Label</key>
+ <string>com.mac.virtual.guest-tools</string>
+ <key>LimitLoadToSessionType</key>
+ <string>Aqua</string>
+ <key>ProgramArguments</key>
+ <array>
+ <string>/Library/VirtualMac/Virtual Mac Guest Tools.app/Contents/MacOS/Virtual Mac Guest Tools</string>
+ </array>
+ <key>RunAtLoad</key>
+ <true/>
+ <key>StandardErrorPath</key>
+ <string>/tmp/VirtualMacGuestTools.stderr.log</string>
+ <key>StandardOutPath</key>
+ <string>/tmp/VirtualMacGuestTools.stdout.log</string>
+</dict>
+</plist>
diff --git a/VirtualMac/vz/host/VZAppSettings.h b/VirtualMac/vz/host/VZAppSettings.h
index 20426ba..e1a92d5 100644
--- a/VirtualMac/vz/host/VZAppSettings.h
+++ b/VirtualMac/vz/host/VZAppSettings.h
@@ -25,6 +25,12 @@ FOUNDATION_EXPORT NSString * const VZExternalDisplayScrollFixKey;
FOUNDATION_EXPORT NSString * const VZScrollingSpeedKey;
FOUNDATION_EXPORT NSString * const VZHUDOpacityKey;
FOUNDATION_EXPORT NSString * const VZDebugLoggingKey;
+FOUNDATION_EXPORT NSString * const VZDebugLoggingModeOff;
+FOUNDATION_EXPORT NSString * const VZDebugLoggingModeNextBoot;
+FOUNDATION_EXPORT NSString * const VZDebugLoggingModeAlways;
+
+BOOL VZConsumeDebugLoggingForBoot(void);
+void VZEnableDebugLoggingForNextBoot(void);
// RootHide relocates jailbreak applications below a randomized .jbroot
// directory. Keep this probe independent of its SDK so the same executable
diff --git a/VirtualMac/vz/host/VZAppSettings.m b/VirtualMac/vz/host/VZAppSettings.m
index 726870f..b3bd4f6 100644
--- a/VirtualMac/vz/host/VZAppSettings.m
+++ b/VirtualMac/vz/host/VZAppSettings.m
@@ -23,6 +23,9 @@ NSString * const VZExternalDisplayScrollFixKey = @"ExternalDisplayScrollFix";
NSString * const VZScrollingSpeedKey = @"ScrollingSpeed";
NSString * const VZHUDOpacityKey = @"HUDOpacity";
NSString * const VZDebugLoggingKey = @"DebugLogging";
+NSString * const VZDebugLoggingModeOff = @"off";
+NSString * const VZDebugLoggingModeNextBoot = @"next";
+NSString * const VZDebugLoggingModeAlways = @"always";
static NSString * const VZSettingsPath = @"/var/mobile/Media/VirtualMac/Settings.plist";
static CFStringRef const VZSettingsDarwinNotification =
@@ -69,6 +72,12 @@ BOOL VZIsRootHideEnvironment(void)
NSDictionary *saved = [NSDictionary dictionaryWithContentsOfFile:VZSettingsPath];
_values = [[NSMutableDictionary alloc] initWithDictionary:
[saved isKindOfClass:NSDictionary.class] ? saved : @{}];
+ // Migrate the former switch without changing what an existing user
+ // selected. New writes use an explicit three-state value.
+ id debug = _values[VZDebugLoggingKey];
+ if ([debug isKindOfClass:NSNumber.class])
+ _values[VZDebugLoggingKey] = [debug boolValue]
+ ? VZDebugLoggingModeAlways : VZDebugLoggingModeOff;
}
return self;
}
@@ -95,7 +104,7 @@ BOOL VZIsRootHideEnvironment(void)
VZExternalDisplayScrollFixKey: @YES,
VZScrollingSpeedKey: @"0.25",
VZHUDOpacityKey: @"0.55",
- VZDebugLoggingKey: @NO,
+ VZDebugLoggingKey: VZDebugLoggingModeOff,
};
}
@@ -171,3 +180,23 @@ BOOL VZIsRootHideEnvironment(void)
}
@end
+
+BOOL VZConsumeDebugLoggingForBoot(void)
+{
+ VZAppSettings *settings = VZAppSettings.sharedSettings;
+ NSString *mode = [settings stringForKey:VZDebugLoggingKey];
+ BOOL enabled = [mode isEqualToString:VZDebugLoggingModeAlways] ||
+ [mode isEqualToString:VZDebugLoggingModeNextBoot];
+ if ([mode isEqualToString:VZDebugLoggingModeNextBoot])
+ [settings setString:VZDebugLoggingModeOff forKey:VZDebugLoggingKey];
+ return enabled;
+}
+
+void VZEnableDebugLoggingForNextBoot(void)
+{
+ VZAppSettings *settings = VZAppSettings.sharedSettings;
+ if (![[settings stringForKey:VZDebugLoggingKey]
+ isEqualToString:VZDebugLoggingModeAlways])
+ [settings setString:VZDebugLoggingModeNextBoot
+ forKey:VZDebugLoggingKey];
+}
diff --git a/VirtualMac/vz/host/VZDiagnostics.m b/VirtualMac/vz/host/VZDiagnostics.m
index 0feb869..c3283ea 100644
--- a/VirtualMac/vz/host/VZDiagnostics.m
+++ b/VirtualMac/vz/host/VZDiagnostics.m
@@ -458,6 +458,14 @@ static NSData *VZRuntimePathData(void)
@"/var/root/VirtualMac",
@"/var/root/VirtualMac/install",
@"/var/root/VirtualMac/payload",
+ @"/usr/libexec/VirtualMac/InternetSharing",
+ @"/usr/libexec/VirtualMac/InternetSharing.ipados14",
+ @"/usr/libexec/VirtualMac/bootpd",
+ @"/var/root/VirtualMac/rootful/Library/LaunchDaemons/com.apple.NetworkSharing.plist",
+ @"/var/root/VirtualMac/rootful/Library/LaunchDaemons/com.apple.bootpd.plist",
+ @"/var/root/VirtualMac/rootful/Library/LaunchDaemons/vzi.apple.bootpd-controller.plist",
+ @"/tmp/bootpd.plist",
+ @"/var/db/dhcpd_leases",
@"/Library/MobileSubstrate/DynamicLibraries/VZKeyboardPassthrough.dylib",
@"/usr/lib/TweakInject/VZKeyboardPassthrough.dylib",
@"/var/jb/Library/MobileSubstrate/DynamicLibraries/VZKeyboardPassthrough.dylib",
@@ -537,6 +545,10 @@ static void VZEnumerateDiagnosticEntries(VZDiagnosticEntryHandler handler)
VZBoundedFileData(@"/etc/resolv.conf"));
VZAddEntry(handler, @"device/dns/var-run-resolv.conf",
VZBoundedFileData(@"/var/run/resolv.conf"));
+ VZAddEntry(handler, @"network/bootpd.plist",
+ VZBoundedFileData(@"/tmp/bootpd.plist"));
+ VZAddEntry(handler, @"network/dhcpd-leases.txt",
+ VZBoundedFileData(@"/var/db/dhcpd_leases"));
VZAddEntry(handler, @"jailbreak/environment.txt", VZBootstrapData());
VZAddEntry(handler, @"jailbreak/tweak-injection-files.txt",
VZTweakInventoryData());
@@ -565,6 +577,27 @@ static void VZEnumerateDiagnosticEntries(VZDiagnosticEntryHandler handler)
VZCommandOutput(dpkg, @[@"--verify", @"com.mac.virtual"]));
VZAddEntry(handler, @"package/runtime-paths.txt", VZRuntimePathData());
+ NSString *launchctl = VZFirstExecutablePath(
+ @[@"/var/jb/usr/bin/launchctl", @"/usr/bin/launchctl"]);
+ if (launchctl) {
+ for (NSString *domain in @[@"system", @"user/501"]) {
+ for (NSString *label in @[@"com.apple.NetworkSharing",
+ @"vzi.apple.bootpd",
+ @"vzi.apple.bootpd-controller"]) {
+ NSString *safeDomain = [domain stringByReplacingOccurrencesOfString:@"/"
+ withString:@"-"];
+ VZAddEntry(handler, [NSString stringWithFormat:
+ @"network/launchctl-%@-%@.txt", safeDomain, label],
+ VZCommandOutput(launchctl, @[@"print",
+ [NSString stringWithFormat:@"%@/%@", domain, label]]));
+ }
+ }
+ }
+ NSString *ps = VZFirstExecutablePath(@[@"/var/jb/bin/ps", @"/bin/ps"]);
+ if (ps)
+ VZAddEntry(handler, @"device/processes.txt",
+ VZCommandOutput(ps, @[@"-axo", @"pid,ppid,user,state,command"]));
+
NSData *settings = [NSPropertyListSerialization dataWithPropertyList:
VZAppSettings.sharedSettings.dictionaryRepresentation
format:NSPropertyListXMLFormat_v1_0 options:0 error:nil];
@@ -573,7 +606,10 @@ static void VZEnumerateDiagnosticEntries(VZDiagnosticEntryHandler handler)
NSArray *logNames = @[@"VirtualMac.log", @"vmmhook.log",
@"vmm.stderr.log", @"vzxpchook.log", @"pvg-trace.log",
@"InternetSharing.stdout.log", @"InternetSharing.stderr.log",
- @"bootpd.stdout.log", @"bootpd.stderr.log"];
+ @"bootpd.stdout.log", @"bootpd.stderr.log",
+ @"InternetSharing.out", @"InternetSharing.err",
+ @"bootpd.out", @"bootpd.err",
+ @"bootpd-controller.out", @"bootpd-controller.err"];
for (NSString *name in logNames)
VZAddEntry(handler, [@"logs" stringByAppendingPathComponent:name],
VZBoundedFileData([@"/tmp" stringByAppendingPathComponent:name]));
diff --git a/VirtualMac/vz/host/VZFailureDetailsViewController.m b/VirtualMac/vz/host/VZFailureDetailsViewController.m
index b86c6fd..59e400d 100644
--- a/VirtualMac/vz/host/VZFailureDetailsViewController.m
+++ b/VirtualMac/vz/host/VZFailureDetailsViewController.m
@@ -98,8 +98,7 @@ static NSAttributedString *VZTitleWithBadge(NSString *title,
VZFailureSupportOptionSuggestScreenRecording;
self.screenRecordingCompleted = UIScreen.mainScreen.isCaptured;
if (options & VZFailureSupportOptionSuggestDebugLogging)
- [VZAppSettings.sharedSettings setBool:YES
- forKey:VZDebugLoggingKey];
+ VZEnableDebugLoggingForNextBoot();
[NSNotificationCenter.defaultCenter addObserver:self
selector:@selector(screenCaptureChanged:)
name:UIScreenCapturedDidChangeNotification object:nil];
@@ -192,7 +191,7 @@ static NSAttributedString *VZTitleWithBadge(NSString *title,
(void)tableView;
if (section == 0 &&
(self.options & VZFailureSupportOptionSuggestDebugLogging))
- return VZL(@"Debug Logging has been enabled. You can turn it off later in Settings.");
+ return VZL(@"Debug logging has been enabled for the next boot.");
return nil;
}
diff --git a/VirtualMac/vz/host/VZGuestRuntimePolicy.h b/VirtualMac/vz/host/VZGuestRuntimePolicy.h
new file mode 100644
index 0000000..77c333a
--- /dev/null
+++ b/VirtualMac/vz/host/VZGuestRuntimePolicy.h
@@ -0,0 +1,19 @@
+#import <Foundation/Foundation.h>
+
+#ifndef EXPERIMENT_GDB_DEBUG
+#define EXPERIMENT_GDB_DEBUG 0
+#endif
+
+#if EXPERIMENT_GDB_DEBUG
+NS_ASSUME_NONNULL_BEGIN
+
+// Virtualization's private localhost-only GDB endpoint is used once during
+// early boot to apply the guest policy required by Virtual Mac Guest Tools and
+// enhanced OpenGL. No vCPU or graphics hot path is hooked.
+BOOL VZGuestRuntimePolicyConfigureDebugStub(id configuration, BOOL enabled);
+void VZGuestRuntimePolicyConfigureStartOptions(id startOptions);
+void VZGuestRuntimePolicyApplyAsync(
+ void (^completion)(BOOL success, NSError *_Nullable error));
+
+NS_ASSUME_NONNULL_END
+#endif
diff --git a/VirtualMac/vz/host/VZGuestRuntimePolicy.m b/VirtualMac/vz/host/VZGuestRuntimePolicy.m
new file mode 100644
index 0000000..f7f88d0
--- /dev/null
+++ b/VirtualMac/vz/host/VZGuestRuntimePolicy.m
@@ -0,0 +1,791 @@
+#import "VZGuestRuntimePolicy.h"
+
+#if EXPERIMENT_GDB_DEBUG
+
+#import <mach-o/loader.h>
+#import <objc/message.h>
+#import <objc/runtime.h>
+#import <arpa/inet.h>
+#import <ctype.h>
+#import <errno.h>
+#import <netinet/in.h>
+#import <sys/socket.h>
+#import <stdio.h>
+#import <unistd.h>
+
+static NSString * const VZGuestRuntimePolicyErrorDomain =
+ @"VirtualMacGuestRuntimePolicy";
+static const uint16_t kDebugStubPort = 12345;
+
+typedef struct {
+ int descriptor;
+ uint8_t input[64 * 1024];
+ size_t inputOffset;
+ size_t inputLength;
+ BOOL noAcknowledgements;
+} VZGDBRemote;
+
+static SEL S(const char *name)
+{
+ return sel_registerName(name);
+}
+
+static NSError *PolicyError(NSInteger code, NSString *description)
+{
+ return [NSError errorWithDomain:VZGuestRuntimePolicyErrorDomain code:code
+ userInfo:@{NSLocalizedDescriptionKey: description}];
+}
+
+static BOOL SendAll(int descriptor, const void *bytes, size_t length)
+{
+ const uint8_t *cursor = bytes;
+ while (length) {
+ ssize_t sent = send(descriptor, cursor, length, 0);
+ if (sent < 0 && errno == EINTR) continue;
+ if (sent <= 0) return NO;
+ cursor += sent;
+ length -= (size_t)sent;
+ }
+ return YES;
+}
+
+static int RemoteByte(VZGDBRemote *remote)
+{
+ if (remote->inputOffset == remote->inputLength) {
+ ssize_t count;
+ do {
+ count = recv(remote->descriptor, remote->input,
+ sizeof(remote->input), 0);
+ } while (count < 0 && errno == EINTR);
+ if (count <= 0) return -1;
+ remote->inputOffset = 0;
+ remote->inputLength = (size_t)count;
+ }
+ return remote->input[remote->inputOffset++];
+}
+
+static NSData *ReceivePacket(VZGDBRemote *remote, NSError **error)
+{
+ int byte;
+ do {
+ byte = RemoteByte(remote);
+ } while (byte >= 0 && byte != '$');
+ if (byte < 0) {
+ if (error) *error = PolicyError(2, @"The guest debug connection closed.");
+ return nil;
+ }
+ NSMutableData *payload = [NSMutableData data];
+ uint8_t checksum = 0;
+ while ((byte = RemoteByte(remote)) >= 0 && byte != '#') {
+ uint8_t value = (uint8_t)byte;
+ [payload appendBytes:&value length:1];
+ checksum += value;
+ }
+ int high = RemoteByte(remote), low = RemoteByte(remote);
+ if (byte < 0 || high < 0 || low < 0) {
+ if (error) *error = PolicyError(3, @"The guest debug reply was incomplete.");
+ return nil;
+ }
+ char expected[3];
+ snprintf(expected, sizeof(expected), "%02x", checksum);
+ if (tolower(high) != expected[0] || tolower(low) != expected[1]) {
+ SendAll(remote->descriptor, "-", 1);
+ if (error) *error = PolicyError(4, @"The guest debug checksum was invalid.");
+ return nil;
+ }
+ if (!remote->noAcknowledgements)
+ SendAll(remote->descriptor, "+", 1);
+ return payload;
+}
+
+static NSData *RemoteRequest(VZGDBRemote *remote, NSString *request,
+ NSError **error)
+{
+ NSData *payload = [request dataUsingEncoding:NSASCIIStringEncoding];
+ uint8_t checksum = 0;
+ for (NSUInteger index = 0; index < payload.length; ++index)
+ checksum += ((const uint8_t *)payload.bytes)[index];
+ NSString *suffix = [NSString stringWithFormat:@"#%02x", checksum];
+ if (!SendAll(remote->descriptor, "$", 1) ||
+ !SendAll(remote->descriptor, payload.bytes, payload.length) ||
+ !SendAll(remote->descriptor, suffix.UTF8String, 3)) {
+ if (error) *error = PolicyError(5, @"The guest debug request could not be sent.");
+ return nil;
+ }
+ if (!remote->noAcknowledgements) {
+ int byte;
+ do {
+ byte = RemoteByte(remote);
+ } while (byte >= 0 && byte != '+');
+ if (byte < 0) {
+ if (error) *error = PolicyError(6, @"The guest did not acknowledge the debug request.");
+ return nil;
+ }
+ }
+ return ReceivePacket(remote, error);
+}
+
+static BOOL RemoteConnect(VZGDBRemote *remote, NSError **error)
+{
+ memset(remote, 0, sizeof(*remote));
+ remote->descriptor = -1;
+ for (NSUInteger attempt = 0; attempt < 100; ++attempt) {
+ int descriptor = socket(AF_INET, SOCK_STREAM, 0);
+ if (descriptor < 0) break;
+ struct timeval timeout = { .tv_sec = 5, .tv_usec = 0 };
+ setsockopt(descriptor, SOL_SOCKET, SO_RCVTIMEO, &timeout,
+ sizeof(timeout));
+ setsockopt(descriptor, SOL_SOCKET, SO_SNDTIMEO, &timeout,
+ sizeof(timeout));
+ struct sockaddr_in address = {
+ .sin_len = sizeof(address),
+ .sin_family = AF_INET,
+ .sin_port = htons(kDebugStubPort),
+ .sin_addr = { .s_addr = htonl(INADDR_LOOPBACK) },
+ };
+ if (connect(descriptor, (struct sockaddr *)&address,
+ sizeof(address)) == 0) {
+ remote->descriptor = descriptor;
+ SendAll(descriptor, "+", 1);
+ NSData *reply = RemoteRequest(remote, @"QStartNoAckMode", error);
+ if ([reply isEqualToData:[@"OK" dataUsingEncoding:
+ NSASCIIStringEncoding]]) {
+ remote->noAcknowledgements = YES;
+ return YES;
+ }
+ close(descriptor);
+ remote->descriptor = -1;
+ return NO;
+ }
+ close(descriptor);
+ usleep(100 * 1000);
+ }
+ if (error) *error = PolicyError(7,
+ @"The guest early-boot debug endpoint was unavailable.");
+ return NO;
+}
+
+static void RemoteDetach(VZGDBRemote *remote)
+{
+ if (remote->descriptor < 0) return;
+ NSError *ignored = nil;
+ RemoteRequest(remote, @"D", &ignored);
+ close(remote->descriptor);
+ remote->descriptor = -1;
+}
+
+static NSData *UnescapeBinary(NSData *data, NSError **error)
+{
+ NSMutableData *result = [NSMutableData dataWithCapacity:data.length];
+ const uint8_t *bytes = data.bytes;
+ for (NSUInteger index = 0; index < data.length; ++index) {
+ uint8_t value = bytes[index];
+ if (value == '}') {
+ if (++index >= data.length) {
+ if (error) *error = PolicyError(8,
+ @"The guest memory reply ended in an escape byte.");
+ return nil;
+ }
+ value = bytes[index] ^ 0x20;
+ }
+ [result appendBytes:&value length:1];
+ }
+ return result;
+}
+
+static NSData *RemoteRead(VZGDBRemote *remote, uint64_t address,
+ NSUInteger length, NSError **error)
+{
+ NSData *reply = RemoteRequest(remote, [NSString stringWithFormat:
+ @"x%llx,%lx", address, (unsigned long)length], error);
+ if (!reply) return nil;
+ const uint8_t *bytes = reply.bytes;
+ if (reply.length == 3 && bytes[0] == 'E' &&
+ isxdigit(bytes[1]) && isxdigit(bytes[2])) {
+ if (error) *error = PolicyError(9,
+ @"The guest rejected a kernel memory read.");
+ return nil;
+ }
+ NSData *result = UnescapeBinary(reply, error);
+ if (result.length != length) {
+ if (error && !*error) *error = PolicyError(10,
+ @"The guest returned an incomplete kernel memory read.");
+ return nil;
+ }
+ return result;
+}
+
+static BOOL RemoteWrite(VZGDBRemote *remote, uint64_t address, NSData *data,
+ NSError **error)
+{
+ const uint8_t *bytes = data.bytes;
+ NSMutableString *hex = [NSMutableString stringWithCapacity:data.length * 2];
+ for (NSUInteger index = 0; index < data.length; ++index)
+ [hex appendFormat:@"%02x", bytes[index]];
+ NSData *reply = RemoteRequest(remote, [NSString stringWithFormat:
+ @"M%llx,%lx:%@", address, (unsigned long)data.length, hex], error);
+ if (![reply isEqualToData:[@"OK" dataUsingEncoding:NSASCIIStringEncoding]]) {
+ if (error && !*error) *error = PolicyError(11,
+ @"The guest rejected a kernel memory write.");
+ return NO;
+ }
+ return YES;
+}
+
+static uint64_t ParseProgramCounter(NSData *stopReply)
+{
+ NSString *text = [[[NSString alloc] initWithData:stopReply
+ encoding:NSASCIIStringEncoding] autorelease];
+ for (NSString *field in [text componentsSeparatedByCharactersInSet:
+ [NSCharacterSet characterSetWithCharactersInString:@",;"]]) {
+ if (![field hasPrefix:@"20:"]) continue;
+ NSString *hex = [field substringFromIndex:3];
+ if (hex.length != 16) return 0;
+ uint64_t value = 0;
+ for (NSUInteger index = 0; index < 8; ++index) {
+ unsigned byte = 0;
+ NSScanner *scanner = [NSScanner scannerWithString:
+ [hex substringWithRange:NSMakeRange(index * 2, 2)]];
+ if (![scanner scanHexInt:&byte]) return 0;
+ value |= (uint64_t)byte << (index * 8);
+ }
+ return value;
+ }
+ return 0;
+}
+
+typedef struct {
+ uint64_t textAddress;
+ uint64_t textSize;
+ uint64_t executeAddress;
+ uint64_t executeSize;
+ uint64_t imageStart;
+ uint64_t imageEnd;
+ struct {
+ uint64_t address;
+ uint64_t size;
+ } data[8];
+ NSUInteger dataCount;
+} VZKernelSegments;
+
+static BOOL FindKernel(VZGDBRemote *remote, uint64_t pc,
+ uint64_t *kernelAddress, VZKernelSegments *segments,
+ NSError **error)
+{
+ uint64_t page = pc & ~UINT64_C(0x3fff);
+ for (NSUInteger attempt = 0; attempt < (128 * 1024 * 1024 / 0x4000);
+ ++attempt, page -= 0x4000) {
+ NSData *headerData = RemoteRead(remote, page,
+ sizeof(struct mach_header_64), nil);
+ if (headerData.length != sizeof(struct mach_header_64)) continue;
+ const struct mach_header_64 *header = headerData.bytes;
+ if (header->magic != MH_MAGIC_64 || header->cputype != CPU_TYPE_ARM64 ||
+ (header->filetype != MH_EXECUTE && header->filetype != MH_FILESET) ||
+ !header->ncmds || header->ncmds >= 1000 ||
+ header->sizeofcmds > 1024 * 1024)
+ continue;
+ NSData *commands = RemoteRead(remote,
+ page + sizeof(struct mach_header_64), header->sizeofcmds, nil);
+ if (commands.length != header->sizeofcmds) continue;
+ const uint8_t *cursor = commands.bytes;
+ NSUInteger remaining = commands.length;
+ VZKernelSegments found = {0};
+ BOOL valid = YES;
+ for (uint32_t index = 0; index < header->ncmds; ++index) {
+ if (remaining < sizeof(struct load_command)) { valid = NO; break; }
+ const struct load_command *command = (const void *)cursor;
+ if (command->cmdsize < sizeof(*command) ||
+ command->cmdsize > remaining) { valid = NO; break; }
+ if (command->cmd == LC_SEGMENT_64 &&
+ command->cmdsize >= sizeof(struct segment_command_64)) {
+ const struct segment_command_64 *segment = (const void *)cursor;
+ if (segment->vmsize) {
+ found.imageStart = found.imageStart
+ ? MIN(found.imageStart, segment->vmaddr)
+ : segment->vmaddr;
+ found.imageEnd = MAX(found.imageEnd,
+ segment->vmaddr + segment->vmsize);
+ }
+ if (!strncmp(segment->segname, "__TEXT", 16)) {
+ found.textAddress = segment->vmaddr;
+ found.textSize = segment->vmsize;
+ } else if (!strncmp(segment->segname, "__TEXT_EXEC", 16)) {
+ found.executeAddress = segment->vmaddr;
+ found.executeSize = segment->vmsize;
+ } else if ((!strncmp(segment->segname, "__DATA", 6) ||
+ !strncmp(segment->segname, "__BOOTDATA", 10)) &&
+ found.dataCount < 8 && segment->vmsize <=
+ UINT64_C(64) * 1024 * 1024) {
+ found.data[found.dataCount].address = segment->vmaddr;
+ found.data[found.dataCount].size = segment->vmsize;
+ found.dataCount++;
+ }
+ }
+ cursor += command->cmdsize;
+ remaining -= command->cmdsize;
+ }
+ if (valid && found.textAddress && found.executeAddress) {
+ dprintf(STDERR_FILENO,
+ "[GuestPolicy] kernel segments data=%lu image=[%p,%p)\n",
+ (unsigned long)found.dataCount, (void *)found.imageStart,
+ (void *)found.imageEnd);
+ *kernelAddress = page;
+ *segments = found;
+ return YES;
+ }
+ }
+ if (error) *error = PolicyError(12,
+ @"The running guest kernel could not be identified.");
+ return NO;
+}
+
+static int64_t SignExtend(uint64_t value, unsigned bits)
+{
+ uint64_t sign = UINT64_C(1) << (bits - 1);
+ return (int64_t)((value ^ sign) - sign);
+}
+
+static uint64_t DecodeADRP(uint64_t pc, uint32_t instruction)
+{
+ uint64_t immediate = (((instruction >> 5) & 0x7ffff) << 2) |
+ ((instruction >> 29) & 3);
+ return (uint64_t)((int64_t)(pc & ~UINT64_C(0xfff)) +
+ (SignExtend(immediate, 21) << 12));
+}
+
+// XNU's public boot_args ABI has remained stable across the macOS releases
+// supported by Virtual Mac. See Apple XNU's arm64 boot.h:
+// https://github.com/apple-oss-distributions/xnu/blob/xnu-8019.80.24/pexpert/pexpert/arm64/boot.h
+//
+// Older kernels inline PE_boot_args differently, so an instruction signature
+// alone is not a reliable way to find PE_state.bootArgs. Validate the pointed-
+// to structure instead. This runs once while the guest is stopped in early
+// boot; it is not part of a vCPU or graphics hot path.
+static BOOL LooksLikeBootArgs(NSData *data)
+{
+ if (data.length < 128) return NO;
+ const uint8_t *bytes = data.bytes;
+ uint16_t revision = 0, version = 0;
+ uint64_t virtualBase = 0, physicalBase = 0, memorySize = 0;
+ uint64_t topOfKernelData = 0, deviceTree = 0;
+ uint32_t deviceTreeLength = 0;
+ memcpy(&revision, bytes, sizeof(revision));
+ memcpy(&version, bytes + 2, sizeof(version));
+ memcpy(&virtualBase, bytes + 8, sizeof(virtualBase));
+ memcpy(&physicalBase, bytes + 16, sizeof(physicalBase));
+ memcpy(&memorySize, bytes + 24, sizeof(memorySize));
+ memcpy(&topOfKernelData, bytes + 32, sizeof(topOfKernelData));
+ memcpy(&deviceTree, bytes + 96, sizeof(deviceTree));
+ memcpy(&deviceTreeLength, bytes + 104, sizeof(deviceTreeLength));
+ // macOS 26 uses revision 3 while retaining the same prefix and command
+ // line offset. Leave room for another additive revision, but keep the
+ // remaining physical-memory and Device Tree checks strict.
+ if (revision < 1 || revision > 4 || version < 1 || version > 2 ||
+ (virtualBase & 0xfff) || (physicalBase & 0xfff) ||
+ memorySize < UINT64_C(128) * 1024 * 1024 ||
+ memorySize > UINT64_C(1024) * 1024 * 1024 * 1024 ||
+ topOfKernelData < physicalBase ||
+ topOfKernelData > physicalBase + memorySize ||
+ deviceTree < UINT64_C(0xffff000000000000) ||
+ !deviceTreeLength || deviceTreeLength > 64 * 1024 * 1024)
+ return NO;
+ // The command line may legitimately be empty. Reject control bytes in the
+ // prefix so an unrelated structure with the same small header cannot win.
+ for (NSUInteger index = 108; index < MIN(data.length, (NSUInteger)128);
+ ++index) {
+ uint8_t byte = bytes[index];
+ if (!byte) break;
+ if (byte < 0x20 || byte > 0x7e) return NO;
+ }
+ return YES;
+}
+
+static BOOL FindBootArgsPointerByData(VZGDBRemote *remote,
+ const VZKernelSegments *segments,
+ uint64_t slide,
+ uint64_t *bootArgsPointer,
+ NSError **error)
+{
+ const NSUInteger chunkSize = 256 * 1024;
+ uint64_t liveImageStart = segments->imageStart + slide;
+ uint64_t liveImageEnd = segments->imageEnd + slide;
+ // In practice only PE_state and a few early-boot globals point outside the
+ // kernel image. Keep a small deduplicated list, then validate those targets
+ // after the bulk segment reads have completed.
+ NSMutableData *targetStorage = [NSMutableData dataWithLength:
+ 8192 * sizeof(uint64_t)];
+ NSMutableData *slotStorage = [NSMutableData dataWithLength:
+ 8192 * sizeof(uint64_t)];
+ uint64_t *targets = targetStorage.mutableBytes;
+ uint64_t *slots = slotStorage.mutableBytes;
+ BOOL captureCandidates = [[NSFileManager defaultManager]
+ fileExistsAtPath:@"/tmp/vz-dump-guest-kernel"];
+ NSMutableData *candidateCapture = captureCandidates
+ ? [NSMutableData data] : nil;
+ for (NSUInteger candidateClass = 0; candidateClass < 2;
+ ++candidateClass) {
+ NSUInteger targetCount = 0;
+ for (NSUInteger segmentIndex = 0;
+ segmentIndex < segments->dataCount; ++segmentIndex) {
+ uint64_t start = segments->data[segmentIndex].address + slide;
+ uint64_t size = segments->data[segmentIndex].size;
+ for (uint64_t offset = 0; offset < size; offset += chunkSize) {
+ NSUInteger length = (NSUInteger)MIN((uint64_t)chunkSize,
+ size - offset);
+ NSData *data = RemoteRead(remote, start + offset, length,
+ error);
+ if (!data) return NO;
+ const uint8_t *bytes = data.bytes;
+ for (NSUInteger position = 0; position + 8 <= length;
+ position += 8) {
+ uint64_t target = 0;
+ memcpy(&target, bytes + position, sizeof(target));
+ BOOL pointsIntoData = NO;
+ for (NSUInteger targetSegment = 0;
+ targetSegment < segments->dataCount;
+ ++targetSegment) {
+ uint64_t dataStart =
+ segments->data[targetSegment].address + slide;
+ uint64_t dataEnd = dataStart +
+ segments->data[targetSegment].size;
+ if (target >= dataStart && target < dataEnd) {
+ pointsIntoData = YES;
+ break;
+ }
+ }
+ BOOL pointsOutsideImage =
+ target < liveImageStart || target >= liveImageEnd;
+ if (target < UINT64_C(0xffff000000000000) ||
+ (candidateClass == 0 && !pointsOutsideImage) ||
+ (candidateClass == 1 && !pointsIntoData))
+ continue;
+ BOOL duplicate = NO;
+ for (NSUInteger index = 0; index < targetCount; ++index) {
+ if (targets[index] == target) {
+ duplicate = YES;
+ break;
+ }
+ }
+ if (duplicate || targetCount == 8192) continue;
+ targets[targetCount] = target;
+ slots[targetCount] = start + offset + position;
+ targetCount++;
+ }
+ }
+ }
+ for (NSUInteger index = 0; index < targetCount; ++index) {
+ NSData *candidate = RemoteRead(remote, targets[index], 128, nil);
+ if (candidateCapture && candidate.length == 128) {
+ [candidateCapture appendBytes:&slots[index] length:8];
+ [candidateCapture appendBytes:&targets[index] length:8];
+ [candidateCapture appendData:candidate];
+ }
+ if (!LooksLikeBootArgs(candidate)) continue;
+ *bootArgsPointer = slots[index];
+ if (candidateCapture)
+ [candidateCapture writeToFile:
+ @"/tmp/vz-boot-args-candidates.bin" atomically:NO];
+ dprintf(STDERR_FILENO,
+ "[GuestPolicy] validated boot_args=%p through global=%p\n",
+ (void *)targets[index], (void *)slots[index]);
+ return YES;
+ }
+ dprintf(STDERR_FILENO,
+ "[GuestPolicy] boot_args fallback examined %lu %s pointers\n",
+ (unsigned long)targetCount,
+ candidateClass == 0 ? "external" : "kernel-data");
+ }
+ if (candidateCapture)
+ [candidateCapture writeToFile:@"/tmp/vz-boot-args-candidates.bin"
+ atomically:NO];
+ return YES;
+}
+
+static BOOL FindPolicyGlobals(VZGDBRemote *remote, uint64_t start,
+ uint64_t size, uint64_t *bootArgsPointer,
+ uint64_t *csrCheck, uint64_t *csrConfig,
+ NSError **error)
+{
+ static const uint32_t pePrefix[] = {
+ 0xaa0203e3, 0xaa0103e2, 0xaa0003e1,
+ };
+ static const uint32_t csrCheckTail[] = {
+ 0x321d012a, 0x5280022b, 0x6a0b011f,
+ 0x1a8a0128, 0x6a28001f, 0x1a9f07e0, 0xd65f03c0,
+ };
+ const NSUInteger chunkSize = 256 * 1024;
+ const NSUInteger overlap = 64;
+ size = MIN(size, UINT64_C(32) * 1024 * 1024);
+ BOOL captureKernelText = [[NSFileManager defaultManager]
+ fileExistsAtPath:@"/tmp/vz-dump-guest-kernel"];
+ NSMutableData *kernelText = captureKernelText
+ ? [NSMutableData dataWithLength:(NSUInteger)size] : nil;
+ for (uint64_t offset = 0; offset < size &&
+ (!*bootArgsPointer || !*csrCheck);) {
+ NSUInteger length = (NSUInteger)MIN((uint64_t)chunkSize,
+ size - offset);
+ NSData *data = RemoteRead(remote, start + offset, length, error);
+ if (!data) return NO;
+ if (kernelText)
+ [kernelText replaceBytesInRange:NSMakeRange((NSUInteger)offset,
+ length) withBytes:data.bytes length:length];
+ const uint8_t *bytes = data.bytes;
+ for (NSUInteger position = 0; position + 40 <= data.length;
+ position += 4) {
+ uint64_t pc = start + offset + position;
+ const uint32_t *instruction = (const void *)(bytes + position);
+ if (!*bootArgsPointer &&
+ !memcmp(instruction, pePrefix, sizeof(pePrefix))) {
+ uint32_t adrp = instruction[3], add = instruction[4];
+ uint32_t load = instruction[5], commandLine = instruction[6];
+ if ((adrp & 0x9f00001f) == 0x90000008 &&
+ (add & 0xffc003ff) == 0x91000108 &&
+ (load & 0xffc003ff) == 0xf9400108 &&
+ commandLine == 0x9101b100) {
+ uint64_t addValue = ((add >> 10) & 0xfff) <<
+ ((add & (1 << 22)) ? 12 : 0);
+ uint64_t loadValue = ((load >> 10) & 0xfff) * 8;
+ *bootArgsPointer = DecodeADRP(pc + 12, adrp) +
+ addValue + loadValue;
+ }
+ }
+ // Match the complete csr_check() leaf function, including its
+ // CSR_ALLOW_KERNEL_DEBUGGER synthesis and final EPERM test. This
+ // identifies both the enforcement entry point and csr_config;
+ // matching an isolated load produced false positives.
+ // https://github.com/apple-oss-distributions/xnu/blob/xnu-8792.81.2/bsd/kern/kern_csr.c
+ if (!*csrCheck &&
+ (instruction[2] & 0xff8003ff) == 0x12000109 &&
+ !memcmp(instruction + 3, csrCheckTail,
+ sizeof(csrCheckTail))) {
+ uint32_t adrp = instruction[0], load = instruction[1];
+ if ((adrp & 0x9f00001f) == 0x90000008 &&
+ (load & 0xffc003ff) == 0xb9400108) {
+ uint64_t loadValue = ((load >> 10) & 0xfff) * 4;
+ *csrCheck = pc;
+ *csrConfig = DecodeADRP(pc, adrp) + loadValue;
+ }
+ }
+ }
+ if (length <= overlap) break;
+ offset += length - overlap;
+ }
+ if (kernelText) {
+ [kernelText writeToFile:@"/tmp/vz-guest-kernel-text.bin"
+ atomically:NO];
+ dprintf(STDERR_FILENO,
+ "[GuestPolicy] captured kernel text start=0x%llx size=0x%llx\n",
+ start, size);
+ }
+ return YES;
+}
+
+static BOOL ApplyCSRRuntimePolicy(VZGDBRemote *remote, uint64_t csrCheck,
+ uint64_t csrConfig,
+ NSError **error)
+{
+ // csr_config can be rewritten during early startup as signed LocalPolicy
+ // is imported and the late-read-only region is finalized. Break on the
+ // stable csr_check() ABI and retain the breakpoint until our value survives
+ // from one real CSR check to the next. This is event-driven: there is no
+ // fixed boot delay and no persistent LocalPolicy edit.
+ // https://github.com/apple-oss-distributions/xnu/blob/xnu-8792.81.2/bsd/kern/kern_csr.c
+ NSData *reply = RemoteRequest(remote, [NSString stringWithFormat:
+ @"Z0,%llx,4", csrCheck], error);
+ if (![reply isEqualToData:[@"OK" dataUsingEncoding:
+ NSASCIIStringEncoding]]) {
+ if (error && !*error) *error = PolicyError(18,
+ @"The guest SIP initialization breakpoint was rejected.");
+ return NO;
+ }
+ struct timeval timeout = { .tv_sec = 60, .tv_usec = 0 };
+ setsockopt(remote->descriptor, SOL_SOCKET, SO_RCVTIMEO, &timeout,
+ sizeof(timeout));
+ // Production XNU starts with CSR_DISABLE_FLAGS (0x7f), then
+ // csr_bootstrap() removes CSR_ALLOW_APPLE_INTERNAL. Match that final
+ // enforcement value rather than accidentally opting a release kernel into
+ // Apple-internal behavior.
+ uint32_t disabled = 0x6f;
+ BOOL observedStable = NO;
+ NSUInteger hit = 0;
+ for (; hit < 16; ++hit) {
+ NSData *stop = RemoteRequest(remote, @"c", error);
+ uint64_t stopPC = stop ? ParseProgramCounter(stop) : 0;
+ if (stopPC != csrCheck && stopPC != csrCheck + 4) break;
+ NSData *currentData = RemoteRead(remote, csrConfig,
+ sizeof(disabled), error);
+ uint32_t current = 0;
+ if (currentData.length == sizeof(current))
+ memcpy(&current, currentData.bytes, sizeof(current));
+ if (current == disabled) {
+ observedStable = YES;
+ break;
+ }
+ if (!RemoteWrite(remote, csrConfig,
+ [NSData dataWithBytes:&disabled length:sizeof(disabled)],
+ error))
+ break;
+ }
+ NSError *ignored = nil;
+ RemoteRequest(remote, [NSString stringWithFormat:@"z0,%llx,4", csrCheck],
+ &ignored);
+ if (!observedStable) {
+ if (error && !*error) *error = PolicyError(20,
+ @"The guest SIP policy did not stabilize during startup.");
+ return NO;
+ }
+ dprintf(STDERR_FILENO,
+ "[GuestPolicy] applied stable SIP policy csr-check=%p csr=%p "
+ "hits=%lu\n", (void *)csrCheck, (void *)csrConfig,
+ (unsigned long)(hit + 1));
+ return YES;
+}
+
+static BOOL PatchRuntimePolicy(VZGDBRemote *remote, uint64_t pc,
+ NSError **error)
+{
+ uint64_t kernel = 0;
+ VZKernelSegments segments = {0};
+ if (!FindKernel(remote, pc, &kernel, &segments, error)) return NO;
+ uint64_t slide = kernel - segments.textAddress;
+ uint64_t bootArgsPointer = 0, csrCheck = 0, csrConfig = 0;
+ if (!FindPolicyGlobals(remote, segments.executeAddress + slide,
+ segments.executeSize, &bootArgsPointer, &csrCheck, &csrConfig,
+ error))
+ return NO;
+ if (!bootArgsPointer && !FindBootArgsPointerByData(remote, &segments,
+ slide, &bootArgsPointer, error))
+ return NO;
+ if (!bootArgsPointer) {
+ if (error) *error = PolicyError(13,
+ @"This guest kernel does not expose the supported runtime policy structures.");
+ return NO;
+ }
+ NSData *pointerData = RemoteRead(remote, bootArgsPointer, 8, error);
+ if (!pointerData) return NO;
+ uint64_t bootArgs = 0;
+ memcpy(&bootArgs, pointerData.bytes, sizeof(bootArgs));
+
+ uint64_t commandAddress = bootArgs + 0x6c;
+ NSData *commandData = RemoteRead(remote, commandAddress, 1024, error);
+ if (!commandData) return NO;
+ NSUInteger commandLength = strnlen(commandData.bytes, commandData.length);
+ NSString *command = [[[NSString alloc] initWithBytes:commandData.bytes
+ length:commandLength encoding:NSUTF8StringEncoding] autorelease] ?: @"";
+ NSMutableArray *tokens = [NSMutableArray array];
+ for (NSString *token in [command componentsSeparatedByCharactersInSet:
+ NSCharacterSet.whitespaceAndNewlineCharacterSet]) {
+ if (!token.length || [token isEqualToString:@"-arm64e_preview_abi"] ||
+ [token hasPrefix:@"amfi_get_out_of_my_way="] ||
+ [token hasPrefix:@"ipc_control_port_options="])
+ continue;
+ [tokens addObject:token];
+ }
+ [tokens addObject:@"-arm64e_preview_abi"];
+ NSData *updated = [[tokens componentsJoinedByString:@" "]
+ dataUsingEncoding:NSUTF8StringEncoding];
+ NSMutableData *terminated = [NSMutableData dataWithData:updated];
+ uint8_t zero = 0;
+ [terminated appendBytes:&zero length:1];
+ if (terminated.length >= 1024) {
+ if (error) *error = PolicyError(14,
+ @"The guest boot argument buffer is full.");
+ return NO;
+ }
+ if (!csrCheck || !csrConfig) {
+ if (error) *error = PolicyError(17,
+ @"This guest kernel does not expose the supported SIP policy ABI.");
+ return NO;
+ }
+ if (!RemoteWrite(remote, commandAddress, terminated, error) ||
+ !ApplyCSRRuntimePolicy(remote, csrCheck, csrConfig, error))
+ return NO;
+ dprintf(STDERR_FILENO,
+ "[GuestPolicy] kernel=0x%llx boot-args=0x%llx csr=0x%llx\n",
+ kernel, bootArgs, csrConfig);
+ return YES;
+}
+
+static BOOL ApplyRuntimePolicy(NSError **error)
+{
+ dprintf(STDERR_FILENO, "[GuestPolicy] connecting to early-boot endpoint\n");
+ // Connecting immediately after VZ's start completion can stop either the
+ // last iBoot instructions or the first kernel instructions. Detach from a
+ // low-address stop (which resumes the guest), then reconnect until the
+ // kernel is mapped. This avoids a fixed boot delay across guest releases.
+ for (NSUInteger attempt = 0; attempt < 40; ++attempt) {
+ VZGDBRemote remote;
+ NSError *connectionError = nil;
+ if (!RemoteConnect(&remote, &connectionError)) {
+ if (error) *error = connectionError;
+ return NO;
+ }
+ RemoteRequest(&remote, @"qSupported", &connectionError);
+ NSData *stop = RemoteRequest(&remote, @"?", &connectionError);
+ uint64_t pc = stop ? ParseProgramCounter(stop) : 0;
+ dprintf(STDERR_FILENO,
+ "[GuestPolicy] early-boot stop=%lu pc=0x%llx\n",
+ (unsigned long)attempt, pc);
+ if (!pc) {
+ RemoteDetach(&remote);
+ if (error) *error = connectionError ?: PolicyError(15,
+ @"The guest debug stop did not contain a program counter.");
+ return NO;
+ }
+ if (pc < UINT64_C(0xffff000000000000)) {
+ RemoteDetach(&remote);
+ usleep(100 * 1000);
+ continue;
+ }
+ BOOL success = PatchRuntimePolicy(&remote, pc, error);
+ RemoteDetach(&remote);
+ return success;
+ }
+ if (error) *error = PolicyError(16,
+ @"The guest kernel did not become available during early boot.");
+ return NO;
+}
+
+BOOL VZGuestRuntimePolicyConfigureDebugStub(id configuration, BOOL enabled)
+{
+ if (!enabled) return YES;
+ Class cls = objc_getClass("_VZGDBDebugStubConfiguration");
+ SEL setter = S("_setDebugStub:");
+ if (!cls || ![configuration respondsToSelector:setter]) return NO;
+ id stub = ((id(*)(id, SEL))objc_msgSend)(cls, S("new"));
+ ((void(*)(id, SEL, uint16_t))objc_msgSend)(stub, S("setPort:"),
+ kDebugStubPort);
+ // This is an implementation detail, not a remote-debugging feature.
+ ((void(*)(id, SEL, BOOL))objc_msgSend)(stub,
+ S("setListensOnAllNetworkInterfaces:"), NO);
+ ((void(*)(id, SEL, id))objc_msgSend)(configuration, setter, stub);
+ [stub release];
+ return YES;
+}
+
+void VZGuestRuntimePolicyConfigureStartOptions(id startOptions)
+{
+ SEL selector = S("_setStopInIBootStage1:");
+ if ([startOptions respondsToSelector:selector])
+ ((void(*)(id, SEL, BOOL))objc_msgSend)(startOptions, selector, YES);
+}
+
+void VZGuestRuntimePolicyApplyAsync(
+ void (^completion)(BOOL success, NSError *error))
+{
+ dprintf(STDERR_FILENO, "[GuestPolicy] scheduling runtime update\n");
+ void (^copiedCompletion)(BOOL, NSError *) = [completion copy];
+ dispatch_async(dispatch_get_global_queue(QOS_CLASS_USER_INITIATED, 0), ^{
+ NSError *error = nil;
+ BOOL success = ApplyRuntimePolicy(&error);
+ dprintf(STDERR_FILENO,
+ "[GuestPolicy] runtime worker completed success=%d error=%s\n",
+ success, error.localizedDescription.UTF8String ?: "none");
+ dispatch_async(dispatch_get_main_queue(), ^{
+ copiedCompletion(success, error);
+ [copiedCompletion release];
+ });
+ });
+}
+
+#endif
diff --git a/VirtualMac/vz/host/VZGuestTools.h b/VirtualMac/vz/host/VZGuestTools.h
new file mode 100644
index 0000000..f1e114e
--- /dev/null
+++ b/VirtualMac/vz/host/VZGuestTools.h
@@ -0,0 +1,22 @@
+#import <Foundation/Foundation.h>
+
+NS_ASSUME_NONNULL_BEGIN
+
+// Adds the Virtio socket endpoint consumed by macOS's built-in
+// AppleQEMUGuestAgent. No network connection or guest credentials are used.
+BOOL VZGuestToolsConfigureDevice(id configuration);
+void VZGuestToolsAttachToVirtualMachine(id virtualMachine);
+void VZGuestToolsStartProvisioning(NSString *bundlePath,
+ BOOL guestToolsEnabled,
+ BOOL openGLAccelerationEnabled,
+ BOOL pencilSupportEnabled,
+ BOOL removalPending);
+void VZGuestToolsReset(void);
+
+// Updates the virtual Mac's NVRAM before its platform configuration is used.
+BOOL VZGuestToolsConfigureBootArguments(id auxiliaryStorage,
+ BOOL guestAgentEnabled,
+ BOOL openGLAccelerationEnabled,
+ NSError **error);
+
+NS_ASSUME_NONNULL_END
diff --git a/VirtualMac/vz/host/VZGuestTools.m b/VirtualMac/vz/host/VZGuestTools.m
new file mode 100644
index 0000000..fe71b85
--- /dev/null
+++ b/VirtualMac/vz/host/VZGuestTools.m
@@ -0,0 +1,956 @@
+#import "VZGuestTools.h"
+
+#import <objc/message.h>
+#import <objc/runtime.h>
+#import <CommonCrypto/CommonDigest.h>
+#include <errno.h>
+#include <pthread.h>
+#include <stdarg.h>
+#include <sys/socket.h>
+#include <unistd.h>
+
+typedef void (^VZGuestAgentResponse)(NSDictionary *response);
+typedef void (^VZGuestCommandCompletion)(BOOL success, NSData *output);
+
+static NSMutableData *gGuestOutputBuffer;
+static dispatch_source_t gGuestOutputSource;
+static id gGuestSocketListener;
+static id gGuestSocketDelegate;
+static id gGuestSocketConnection;
+static int gGuestReadDescriptor = -1;
+static int gGuestWriteDescriptor = -1;
+static uint64_t gGuestRequestIdentifier;
+static NSMutableDictionary *gGuestCallbacks;
+static BOOL gGuestProvisioningStarted;
+static NSUInteger gGuestDiagnosticReads;
+static BOOL gGuestToolsEnabled;
+static BOOL gGuestOpenGLAccelerationEnabled;
+static BOOL gGuestPencilSupportEnabled;
+static BOOL gGuestRemovalPending;
+static NSString *gGuestBundlePath;
+static NSString *gGuestReadyToken;
+static BOOL gGuestToolsAcknowledged;
+static BOOL gGuestMenuRestartedForToken;
+static uint64_t gGuestProvisioningGeneration;
+static NSUInteger gGuestConnectionCount;
+
+static void VZGuestToolsProbeAgent(uint64_t generation, NSUInteger attempt);
+
+static void VZGuestToolsLog(NSString *format, ...)
+{
+ va_list arguments;
+ va_start(arguments, format);
+ NSString *message = [[[NSString alloc] initWithFormat:format
+ arguments:arguments] autorelease];
+ va_end(arguments);
+ dprintf(STDERR_FILENO, "[GuestTools] %s\n", message.UTF8String ?: "");
+}
+
+static SEL S(const char *name)
+{
+ return sel_registerName(name);
+}
+
+static id New(const char *name)
+{
+ Class cls = objc_getClass(name);
+ return cls ? ((id(*)(id, SEL))objc_msgSend)(cls, S("new")) : nil;
+}
+
+static void SetObject(id object, const char *selector, id value)
+{
+ if (object && [object respondsToSelector:S(selector)])
+ ((void(*)(id, SEL, id))objc_msgSend)(object, S(selector), value);
+}
+
+static void VZGuestToolsReadOutput(void)
+{
+ int descriptor = gGuestReadDescriptor;
+ if (descriptor < 0) return;
+ uint8_t bytes[4096];
+ for (;;) {
+ ssize_t count = recv(descriptor, bytes, sizeof(bytes), MSG_DONTWAIT);
+ if (count > 0) {
+ if (gGuestDiagnosticReads++ < 8) {
+ NSData *sample = [NSData dataWithBytes:bytes
+ length:(NSUInteger)MIN(count, 96)];
+ VZGuestToolsLog(@"received %zd bytes: %@", count, sample);
+ }
+ [gGuestOutputBuffer appendBytes:bytes length:(NSUInteger)count];
+ continue;
+ }
+ break;
+ }
+
+ for (;;) {
+ const uint8_t *bytes = gGuestOutputBuffer.bytes;
+ NSUInteger length = gGuestOutputBuffer.length;
+ const uint8_t *newline = length ? memchr(bytes, '\n', length) : NULL;
+ if (!newline)
+ break;
+ NSUInteger lineLength = (NSUInteger)(newline - bytes);
+ NSData *line = [gGuestOutputBuffer subdataWithRange:
+ NSMakeRange(0, lineLength)];
+ [gGuestOutputBuffer replaceBytesInRange:NSMakeRange(0, lineLength + 1)
+ withBytes:NULL length:0];
+ if (!line.length)
+ continue;
+ NSError *error = nil;
+ id response = [NSJSONSerialization JSONObjectWithData:line options:0
+ error:&error];
+ if (response) {
+ NSNumber *identifier = [response objectForKey:@"id"];
+ VZGuestAgentResponse callback = nil;
+ @synchronized (gGuestCallbacks) {
+ // AppleQEMUGuestAgent accepts QGA request identifiers but does
+ // not echo them in its replies. Commands on one virtio port
+ // are strictly ordered, so pair an untagged reply with the
+ // oldest outstanding callback. Keep identifier matching for
+ // guest-agent implementations which implement standard QGA.
+ if (!identifier && gGuestCallbacks.count) {
+ identifier = [[gGuestCallbacks.allKeys
+ sortedArrayUsingSelector:@selector(compare:)] firstObject];
+ }
+ callback = [[gGuestCallbacks objectForKey:identifier] copy];
+ if (identifier) [gGuestCallbacks removeObjectForKey:identifier];
+ }
+ if (callback) {
+ callback(response);
+ [callback release];
+ } else if ([response objectForKey:@"error"])
+ VZGuestToolsLog(@"unsolicited agent error: %@", response);
+ } else
+ VZGuestToolsLog(@"invalid guest agent response: %@", error);
+ }
+}
+
+static BOOL VZGuestToolsSend(NSString *command, NSDictionary *arguments,
+ VZGuestAgentResponse callback)
+{
+ if (gGuestWriteDescriptor < 0)
+ return NO;
+ NSMutableDictionary *request = [NSMutableDictionary dictionaryWithObject:
+ command forKey:@"execute"];
+ if (arguments.count)
+ request[@"arguments"] = arguments;
+ NSNumber *identifier = nil;
+ @synchronized (gGuestCallbacks) {
+ identifier = @(++gGuestRequestIdentifier);
+ if (callback) [gGuestCallbacks setObject:[[callback copy] autorelease]
+ forKey:identifier];
+ }
+ request[@"id"] = identifier;
+ NSError *error = nil;
+ NSMutableData *data = [[[NSJSONSerialization dataWithJSONObject:request
+ options:0 error:&error] mutableCopy] autorelease];
+ if (!data) {
+ VZGuestToolsLog(@"could not encode %@: %@", command, error);
+ return NO;
+ }
+ [data appendBytes:"\n" length:1];
+ const uint8_t *bytes = data.bytes;
+ NSUInteger remaining = data.length;
+ while (remaining) {
+ ssize_t count = write(gGuestWriteDescriptor, bytes, remaining);
+ if (count > 0) {
+ bytes += count;
+ remaining -= (NSUInteger)count;
+ continue;
+ }
+ if (count < 0 && errno == EINTR) continue;
+ @synchronized (gGuestCallbacks) {
+ [gGuestCallbacks removeObjectForKey:identifier];
+ }
+ VZGuestToolsLog(@"guest agent write failed for %@: %s", command,
+ strerror(errno));
+ return NO;
+ }
+ return YES;
+}
+
+void VZGuestToolsReset(void)
+{
+ __atomic_add_fetch(&gGuestProvisioningGeneration, 1, __ATOMIC_ACQ_REL);
+ if (gGuestOutputSource) {
+ dispatch_source_cancel(gGuestOutputSource);
+ dispatch_release(gGuestOutputSource);
+ gGuestOutputSource = NULL;
+ }
+ [gGuestSocketConnection release];
+ gGuestSocketConnection = nil;
+ [gGuestSocketListener release];
+ gGuestSocketListener = nil;
+ [gGuestSocketDelegate release];
+ gGuestSocketDelegate = nil;
+ gGuestReadDescriptor = -1;
+ gGuestWriteDescriptor = -1;
+ [gGuestOutputBuffer release];
+ gGuestOutputBuffer = nil;
+ [gGuestCallbacks release];
+ gGuestCallbacks = nil;
+ gGuestRequestIdentifier = 0;
+ gGuestProvisioningStarted = NO;
+ gGuestDiagnosticReads = 0;
+ gGuestConnectionCount = 0;
+ [gGuestBundlePath release];
+ gGuestBundlePath = nil;
+ [gGuestReadyToken release];
+ gGuestReadyToken = nil;
+ gGuestToolsAcknowledged = NO;
+ gGuestMenuRestartedForToken = NO;
+}
+
+BOOL VZGuestToolsConfigureDevice(id configuration)
+{
+ VZGuestToolsReset();
+ id device = New("VZVirtioSocketDeviceConfiguration");
+ if (!device) {
+ VZGuestToolsLog(@"virtio socket configuration unavailable");
+ return NO;
+ }
+ SetObject(configuration, "setSocketDevices:", @[device]);
+ VZGuestToolsLog(@"configured Apple guest agent socket device");
+ [device release];
+ return YES;
+}
+
+static void VZGuestToolsAcceptConnection(id connection)
+{
+ if (!connection) return;
+ BOOL reconnected = gGuestConnectionCount++ > 0;
+ if (reconnected && (gGuestToolsEnabled || gGuestRemovalPending)) {
+ // AppleQEMUGuestAgent opens a new virtio connection after an in-guest
+ // reboot. The previous menu-extra acknowledgement belongs to the old
+ // Aqua session, so invalidate its asynchronous work and require a new
+ // end-to-end acknowledgement. Treat an unexpected agent reconnection
+ // the same way; repairing an interrupted session is harmless.
+ __atomic_add_fetch(&gGuestProvisioningGeneration, 1,
+ __ATOMIC_ACQ_REL);
+ gGuestToolsAcknowledged = NO;
+ gGuestMenuRestartedForToken = NO;
+ [gGuestReadyToken release];
+ gGuestReadyToken = [NSUUID.UUID.UUIDString copy];
+ VZGuestToolsLog(@"guest agent reconnected; starting a new guest "
+ @"tools acknowledgement cycle");
+ }
+ if (gGuestOutputSource) {
+ dispatch_source_cancel(gGuestOutputSource);
+ dispatch_release(gGuestOutputSource);
+ gGuestOutputSource = NULL;
+ }
+ [gGuestSocketConnection release];
+ gGuestSocketConnection = [connection retain];
+ int descriptor = ((int(*)(id, SEL))objc_msgSend)(
+ connection, S("fileDescriptor"));
+ gGuestReadDescriptor = descriptor;
+ gGuestWriteDescriptor = descriptor;
+ [gGuestOutputBuffer release];
+ gGuestOutputBuffer = [NSMutableData new];
+ [gGuestCallbacks release];
+ gGuestCallbacks = [NSMutableDictionary new];
+ gGuestRequestIdentifier = 0;
+ gGuestProvisioningStarted = NO;
+ gGuestDiagnosticReads = 0;
+ gGuestOutputSource = dispatch_source_create(DISPATCH_SOURCE_TYPE_READ,
+ (uintptr_t)descriptor, 0,
+ dispatch_get_global_queue(QOS_CLASS_UTILITY, 0));
+ dispatch_source_set_event_handler(gGuestOutputSource, ^{
+ VZGuestToolsReadOutput();
+ });
+ dispatch_resume(gGuestOutputSource);
+ VZGuestToolsLog(@"Apple guest agent connected over Virtio socket");
+ VZGuestToolsLog(@"Apple guest agent %@ accepted",
+ reconnected ? @"reconnection" : @"connection");
+ uint64_t generation = __atomic_load_n(&gGuestProvisioningGeneration,
+ __ATOMIC_ACQUIRE);
+ dispatch_after(dispatch_time(DISPATCH_TIME_NOW, 100 * NSEC_PER_MSEC),
+ dispatch_get_global_queue(QOS_CLASS_UTILITY, 0), ^{
+ VZGuestToolsProbeAgent(generation, 1);
+ });
+}
+
+@interface VZGuestSocketListenerDelegate : NSObject
+@end
+
+@implementation VZGuestSocketListenerDelegate
+- (BOOL)listener:(id)listener shouldAcceptNewConnection:(id)connection
+ fromSocketDevice:(id)socketDevice
+{
+ (void)listener;
+ (void)socketDevice;
+ VZGuestToolsAcceptConnection(connection);
+ return YES;
+}
+@end
+
+static void VZGuestToolsAttachOnCurrentThread(id virtualMachine)
+{
+ VZGuestToolsLog(@"resolving guest socket runtime devices");
+ NSArray *devices = [virtualMachine respondsToSelector:S("socketDevices")]
+ ? ((id(*)(id, SEL))objc_msgSend)(virtualMachine, S("socketDevices"))
+ : ([virtualMachine respondsToSelector:S("_socketDevices")]
+ ? ((id(*)(id, SEL))objc_msgSend)(virtualMachine,
+ S("_socketDevices")) : nil);
+ id device = devices.firstObject;
+ VZGuestToolsLog(@"guest socket runtime device=%@", device);
+ id listener = New("VZVirtioSocketListener");
+ VZGuestToolsLog(@"created guest socket listener=%@", listener);
+ if (!device || !listener) {
+ VZGuestToolsLog(@"Apple guest agent socket listener unavailable");
+ [listener release];
+ return;
+ }
+ gGuestSocketDelegate = [VZGuestSocketListenerDelegate new];
+ SetObject(listener, "setDelegate:", gGuestSocketDelegate);
+ VZGuestToolsLog(@"configured guest socket listener delegate");
+ ((void(*)(id, SEL, id, uint32_t))objc_msgSend)(
+ device, S("setSocketListener:forPort:"), listener, 505050);
+ VZGuestToolsLog(@"registered guest socket listener port 505050");
+ gGuestSocketListener = [listener retain];
+ [listener release];
+ VZGuestToolsLog(@"listening for Apple guest agent on Virtio port 505050");
+}
+
+static void VZGuestToolsAttachOnMain(void *opaque)
+{
+ VZGuestToolsAttachOnCurrentThread((id)opaque);
+}
+
+void VZGuestToolsAttachToVirtualMachine(id virtualMachine)
+{
+ // VZVirtioSocketDevice's listener registration is main-thread-affine.
+ // iPadOS 14 constructs the otherwise synchronous VZ configuration on a
+ // worker queue to avoid its scene-update watchdog; calling
+ // setSocketListener:forPort: from that queue makes CoreFoundation terminate
+ // the UIKit host with SIGTRAP. Marshal only this small registration step.
+ // iPadOS 15/16 already arrive on main and retain their existing path.
+ if (!pthread_main_np()) {
+ dispatch_sync_f(dispatch_get_main_queue(), virtualMachine,
+ VZGuestToolsAttachOnMain);
+ return;
+ }
+ VZGuestToolsAttachOnCurrentThread(virtualMachine);
+}
+
+static void VZGuestToolsPollProcess(NSNumber *processIdentifier,
+ NSUInteger attempts,
+ VZGuestCommandCompletion completion)
+{
+ VZGuestToolsSend(@"guest-exec-status", @{ @"pid": processIdentifier },
+ ^(NSDictionary *response) {
+ if (response[@"error"])
+ VZGuestToolsLog(@"guest-exec-status failed: %@", response[@"error"]);
+ NSDictionary *result = response[@"return"];
+ if ([result[@"exited"] boolValue]) {
+ NSMutableData *output = [NSMutableData data];
+ for (NSString *key in @[@"out-data", @"err-data"]) {
+ NSString *base64 = result[key];
+ if (![base64 isKindOfClass:NSString.class]) continue;
+ NSData *part = [[[NSData alloc]
+ initWithBase64EncodedString:base64 options:0] autorelease];
+ if (part.length) [output appendData:part];
+ }
+ completion([result[@"exitcode"] integerValue] == 0,
+ output);
+ return;
+ }
+ if (!result || attempts >= 300) {
+ completion(NO, [NSData data]);
+ return;
+ }
+ dispatch_after(dispatch_time(DISPATCH_TIME_NOW,
+ 200 * NSEC_PER_MSEC),
+ dispatch_get_global_queue(QOS_CLASS_UTILITY, 0), ^{
+ VZGuestToolsPollProcess(processIdentifier, attempts + 1,
+ completion);
+ });
+ });
+}
+
+static void VZGuestToolsRun(NSString *path, NSArray *arguments,
+ VZGuestCommandCompletion completion)
+{
+ VZGuestToolsSend(@"guest-exec", @{
+ @"path": path,
+ @"arg": arguments ?: @[],
+ @"capture-output": @YES,
+ }, ^(NSDictionary *response) {
+ if (response[@"error"])
+ VZGuestToolsLog(@"guest-exec %@ failed: %@", path,
+ response[@"error"]);
+ NSNumber *processIdentifier = response[@"return"][@"pid"];
+ if (![processIdentifier isKindOfClass:NSNumber.class]) {
+ completion(NO, [NSData data]);
+ return;
+ }
+ VZGuestToolsPollProcess(processIdentifier, 0, completion);
+ });
+}
+
+static void VZGuestToolsWriteChunks(NSNumber *handle, NSData *data,
+ NSUInteger offset,
+ void (^completion)(BOOL success))
+{
+ if (offset >= data.length) {
+ VZGuestToolsSend(@"guest-file-close", @{ @"handle": handle },
+ ^(NSDictionary *response) {
+ completion(response[@"error"] == nil);
+ });
+ return;
+ }
+ NSUInteger length = MIN((NSUInteger)(48 * 1024), data.length - offset);
+ NSData *chunk = [data subdataWithRange:NSMakeRange(offset, length)];
+ NSString *encoded = [chunk base64EncodedStringWithOptions:0];
+ VZGuestToolsSend(@"guest-file-write", @{
+ @"handle": handle,
+ @"buf-b64": encoded,
+ }, ^(NSDictionary *response) {
+ NSUInteger written = [response[@"return"][@"count"]
+ unsignedIntegerValue];
+ if (written != length) {
+ completion(NO);
+ return;
+ }
+ VZGuestToolsWriteChunks(handle, data, offset + written, completion);
+ });
+}
+
+static void VZGuestToolsWriteFile(NSString *path, NSData *data,
+ void (^completion)(BOOL success))
+{
+ VZGuestToolsSend(@"guest-file-open", @{
+ @"path": path, @"mode": @"w"
+ }, ^(NSDictionary *response) {
+ NSNumber *handle = response[@"return"];
+ if (![handle isKindOfClass:NSNumber.class]) {
+ completion(NO);
+ return;
+ }
+ VZGuestToolsWriteChunks(handle, data, 0, completion);
+ });
+}
+
+static void VZGuestToolsProvisionDesktop(NSUInteger attempt);
+
+static NSData *VZGuestToolsConfigurationData(NSString *build)
+{
+ NSDictionary *configuration = @{
+ @"Build": build ?: @"",
+ @"ReadyToken": gGuestReadyToken ?: @"",
+ @"OpenGLAllowed": @(gGuestOpenGLAccelerationEnabled),
+ @"OpenGLAcceleration": @(gGuestOpenGLAccelerationEnabled),
+ @"ApplePencilPressureTiltEnabled": @(gGuestPencilSupportEnabled),
+ };
+ NSError *error = nil;
+ NSData *data = [NSPropertyListSerialization
+ dataWithPropertyList:configuration
+ format:NSPropertyListXMLFormat_v1_0 options:0 error:&error];
+ if (!data)
+ VZGuestToolsLog(@"could not encode guest policy: %@", error);
+ return data;
+}
+
+static void VZGuestToolsActivate(BOOL payloadChanged, uint64_t generation,
+ void (^completion)(BOOL success))
+{
+ BOOL forceRestart = payloadChanged || !gGuestMenuRestartedForToken;
+ NSString *registeredJobCommand = forceRestart
+ ? @"/bin/launchctl kickstart -k \"$job\" 2>/dev/null || true"
+ : @"/bin/launchctl kickstart \"$job\" 2>/dev/null || true";
+ NSString *script = [NSString stringWithFormat:
+ @"uid=$(/usr/bin/stat -f %%u /dev/console); "
+ "case $uid in ''|0) "
+ "echo VIRTUAL_MAC_WAITING_FOR_DESKTOP; exit 75;; esac; "
+ "test -f /var/db/.AppleSetupDone || { "
+ "echo VIRTUAL_MAC_WAITING_FOR_DESKTOP; exit 75; }; "
+ "/bin/rm -f /tmp/VirtualMacGuestTools.ready; "
+ "/usr/bin/xattr -cr /Library/VirtualMac "
+ "/Library/LaunchAgents/com.mac.virtual.guest-tools.plist; "
+ "job=\"gui/$uid/com.mac.virtual.guest-tools\"; "
+ "if /bin/launchctl print \"$job\" >/dev/null 2>&1; then "
+ "%@; "
+ "else "
+ "/bin/launchctl bootstrap \"gui/$uid\" "
+ "/Library/LaunchAgents/com.mac.virtual.guest-tools.plist "
+ "2>&1; "
+ "bootstrap_status=$?; "
+ "if test $bootstrap_status -ne 0; then "
+ "exit $bootstrap_status; "
+ "fi; "
+ "fi; "
+ "/bin/launchctl print \"$job\" "
+ "2>&1 | /usr/bin/tail -n 24; "
+ "echo VIRTUAL_MAC_ACTIVATED",
+ registeredJobCommand];
+ VZGuestToolsRun(@"/bin/sh", @[@"-c", script],
+ ^(BOOL success, NSData *output) {
+ if (generation != __atomic_load_n(&gGuestProvisioningGeneration,
+ __ATOMIC_ACQUIRE)) return;
+ NSString *text = [[[NSString alloc] initWithData:output
+ encoding:NSUTF8StringEncoding] autorelease];
+ text = [text stringByTrimmingCharactersInSet:
+ NSCharacterSet.whitespaceAndNewlineCharacterSet];
+ text = [text stringByReplacingOccurrencesOfString:
+ @"VIRTUAL_MAC_ACTIVATED" withString:@""];
+ text = [text stringByTrimmingCharactersInSet:
+ NSCharacterSet.whitespaceAndNewlineCharacterSet];
+ VZGuestToolsLog(@"guest menu activation %@: %@",
+ success ? @"succeeded" : @"failed", text ?: @"");
+ if (success) gGuestMenuRestartedForToken = YES;
+ completion(success);
+ });
+}
+
+static void VZGuestToolsDiscoverGuestVersion(void (^completion)(void))
+{
+ VZGuestToolsRun(@"/usr/bin/sw_vers", @[@"-productVersion"],
+ ^(BOOL success, NSData *output) {
+ NSString *version = [[[NSString alloc] initWithData:output
+ encoding:NSUTF8StringEncoding] autorelease];
+ version = [version stringByTrimmingCharactersInSet:
+ NSCharacterSet.whitespaceAndNewlineCharacterSet];
+ NSInteger majorVersion = success
+ ? [[[version componentsSeparatedByString:@"."] firstObject]
+ integerValue] : 0;
+ if (majorVersion > 0) {
+ if (majorVersion < 14) {
+ // Scope compatibility to this observed boot. Do not alter
+ // the saved preference: the same VM can be upgraded to a
+ // newer macOS release before its next start.
+ gGuestOpenGLAccelerationEnabled = NO;
+ VZGuestToolsLog(@"OpenGL disabled for macOS %@; Sonoma "
+ @"or later is required", version);
+ }
+ } else {
+ VZGuestToolsLog(@"could not determine guest macOS version");
+ }
+ completion();
+ });
+}
+
+static void VZGuestToolsMarkRemovalComplete(void)
+{
+ if (!gGuestBundlePath.length) return;
+ NSString *path = [gGuestBundlePath
+ stringByAppendingPathComponent:@"VirtualMac.plist"];
+ NSMutableDictionary *configuration = [NSMutableDictionary
+ dictionaryWithContentsOfFile:path];
+ if (![configuration isKindOfClass:NSMutableDictionary.class]) return;
+ configuration[@"GuestToolsRemovalPending"] = @NO;
+ [configuration writeToFile:path atomically:YES];
+}
+
+static void VZGuestToolsUninstall(void)
+{
+ NSString *script =
+ @"uid=$(/usr/bin/stat -f %u /dev/console); "
+ "case $uid in ''|0) exit 0;; esac; "
+ "user=$(/usr/bin/id -nu \"$uid\"); "
+ "/bin/launchctl bootout \"gui/$uid/com.mac.virtual.guest-tools\" "
+ "2>/dev/null || true; "
+ "/bin/launchctl bootout system/com.mac.virtual.opengl-compat "
+ "2>/dev/null || true; "
+ "/bin/launchctl unsetenv DYLD_INSERT_LIBRARIES "
+ "2>/dev/null || true; "
+ "/bin/launchctl asuser \"$uid\" /bin/launchctl unsetenv "
+ "DYLD_INSERT_LIBRARIES; "
+ "/usr/bin/sudo -u \"$user\" -H /usr/bin/defaults delete "
+ "com.mac.virtual.guest-tools 2>/dev/null || true; "
+ "/usr/bin/sudo -u \"$user\" -H /usr/bin/defaults delete "
+ "com.apple.loginwindow TALLogoutSavesState "
+ "2>/dev/null || true; "
+ "/usr/bin/sudo -u \"$user\" -H /usr/bin/defaults delete "
+ "com.apple.loginwindow LoginwindowLaunchesRelaunchApps "
+ "2>/dev/null || true; "
+ "/bin/rm -rf /Library/VirtualMac "
+ "/Library/LaunchAgents/com.mac.virtual.guest-tools.plist "
+ "/Library/LaunchAgents/com.mac.virtual.opengl-compat.plist "
+ "/Library/LaunchDaemons/com.mac.virtual.opengl-compat.plist";
+ VZGuestToolsRun(@"/bin/sh", @[@"-c", script],
+ ^(BOOL success, NSData *output) {
+ (void)output;
+ VZGuestToolsLog(@"guest payload removal %@",
+ success ? @"succeeded" : @"failed");
+ if (success) VZGuestToolsMarkRemovalComplete();
+ });
+}
+
+static void VZGuestToolsAuditSecurityState(void)
+{
+ NSString *script =
+ @"uid=$(/usr/bin/stat -f %u /dev/console); "
+ "/usr/bin/csrutil status; "
+ "/usr/sbin/nvram boot-args 2>/dev/null || true; "
+ "/bin/launchctl asuser \"$uid\" /bin/launchctl getenv "
+ "DYLD_INSERT_LIBRARIES 2>/dev/null || true; "
+ "/usr/bin/pgrep -fl 'Virtual Mac Guest Tools' 2>/dev/null || true; "
+ "/bin/cat /tmp/VirtualMacGuestTools.stderr.log "
+ "/tmp/VirtualMacGuestTools.stdout.log 2>/dev/null || true; "
+ "/bin/launchctl print \"gui/$uid/com.mac.virtual.guest-tools\" "
+ "2>&1 | /usr/bin/tail -n 20 || true";
+ VZGuestToolsRun(@"/bin/sh", @[@"-c", script],
+ ^(BOOL success, NSData *output) {
+ NSString *text = [[[NSString alloc] initWithData:output
+ encoding:NSUTF8StringEncoding] autorelease];
+ text = [text stringByTrimmingCharactersInSet:
+ NSCharacterSet.whitespaceAndNewlineCharacterSet];
+ VZGuestToolsLog(@"guest security state (%@): %@",
+ success ? @"queried" : @"query failed", text ?: @"");
+ });
+}
+
+static void VZGuestToolsInstallPayload(uint64_t generation,
+ void (^completion)(BOOL success))
+{
+ NSString *directory = [NSBundle.mainBundle.resourcePath
+ stringByAppendingPathComponent:@"GuestTools"];
+ NSData *archive = [NSData dataWithContentsOfFile:[directory
+ stringByAppendingPathComponent:@"VirtualMacGuestTools.tar.gz"]];
+ if (!archive.length) {
+ VZGuestToolsLog(@"packaged guest payload is incomplete");
+ completion(NO);
+ return;
+ }
+ uint8_t digest[CC_SHA256_DIGEST_LENGTH];
+ CC_SHA256(archive.bytes, (CC_LONG)archive.length, digest);
+ NSMutableString *payloadDigest = [NSMutableString string];
+ for (NSUInteger index = 0; index < 8; ++index)
+ [payloadDigest appendFormat:@"%02x", digest[index]];
+ NSString *build = [NSString stringWithFormat:@"%@-%@",
+ [NSBundle.mainBundle objectForInfoDictionaryKey:@"CFBundleVersion"]
+ ?: @"0", payloadDigest];
+ NSData *configuration = VZGuestToolsConfigurationData(build);
+ if (!configuration.length) {
+ completion(NO);
+ return;
+ }
+ VZGuestToolsWriteFile(@"/tmp/VirtualMacGuestToolsConfiguration.plist",
+ configuration, ^(BOOL wroteConfiguration) {
+ if (!wroteConfiguration || generation != __atomic_load_n(
+ &gGuestProvisioningGeneration, __ATOMIC_ACQUIRE)) {
+ VZGuestToolsLog(@"guest policy write failed");
+ completion(NO);
+ return;
+ }
+ NSString *check = [NSString stringWithFormat:
+ @"test \"$(cat /Library/VirtualMac/.build 2>/dev/null)\" = '%@'",
+ build];
+ VZGuestToolsRun(@"/bin/sh", @[@"-c", check],
+ ^(BOOL current, NSData *output) {
+ (void)output;
+ if (generation != __atomic_load_n(&gGuestProvisioningGeneration,
+ __ATOMIC_ACQUIRE)) return;
+ if (current) {
+ NSString *update =
+ @"set -e; /bin/mkdir -p /Library/VirtualMac; "
+ "/usr/sbin/chown root:wheel "
+ "/tmp/VirtualMacGuestToolsConfiguration.plist; "
+ "/bin/chmod 644 "
+ "/tmp/VirtualMacGuestToolsConfiguration.plist; "
+ "/bin/mv -f /tmp/VirtualMacGuestToolsConfiguration.plist "
+ "/Library/VirtualMac/HostConfiguration.plist";
+ VZGuestToolsRun(@"/bin/sh", @[@"-c", update],
+ ^(BOOL updated, NSData *updateOutput) {
+ (void)updateOutput;
+ if (!updated) {
+ completion(NO);
+ return;
+ }
+ VZGuestToolsLog(@"guest payload is current (build %@)", build);
+ VZGuestToolsActivate(NO, generation, completion);
+ });
+ return;
+ }
+ VZGuestToolsWriteFile(@"/tmp/VirtualMacGuestTools.tar.gz", archive,
+ ^(BOOL wroteArchive) {
+ if (!wroteArchive) {
+ VZGuestToolsLog(@"guest payload archive write failed");
+ completion(NO);
+ return;
+ }
+ NSString *finish = [NSString stringWithFormat:
+ @"set -e; "
+ "uid=$(/usr/bin/stat -f %%u /dev/console); "
+ "case $uid in ''|0) exit 75;; esac; "
+ "test -f /var/db/.AppleSetupDone; "
+ "/bin/launchctl bootout "
+ "\"gui/$uid/com.mac.virtual.guest-tools\" "
+ "2>/dev/null || true; "
+ "/bin/launchctl bootout "
+ "\"gui/$uid/com.mac.virtual.opengl-compat\" "
+ "2>/dev/null || true; "
+ "/bin/launchctl bootout system/com.mac.virtual.opengl-compat "
+ "2>/dev/null || true; "
+ "/bin/launchctl unsetenv DYLD_INSERT_LIBRARIES "
+ "2>/dev/null || true; "
+ "login_hook=$(/usr/bin/defaults read "
+ "/Library/Preferences/com.apple.loginwindow LoginHook "
+ "2>/dev/null || true); "
+ "if test \"$login_hook\" = "
+ "'/Library/VirtualMac/Virtual Mac OpenGL Acceleration'; "
+ "then /usr/bin/defaults delete "
+ "/Library/Preferences/com.apple.loginwindow LoginHook "
+ "2>/dev/null || true; fi; "
+ "/bin/rm -rf /tmp/VirtualMacGuestToolsPayload; "
+ "/bin/mkdir -p /tmp/VirtualMacGuestToolsPayload; "
+ "/usr/bin/tar --no-same-owner -xmzf "
+ "/tmp/VirtualMacGuestTools.tar.gz "
+ "-C /tmp/VirtualMacGuestToolsPayload; "
+ "/bin/mkdir -p /Library/VirtualMac /Library/LaunchAgents; "
+ "/bin/rm -rf '/Library/VirtualMac/Virtual Mac Guest Tools.app'; "
+ "/bin/cp -R '/tmp/VirtualMacGuestToolsPayload/Library/VirtualMac/Virtual Mac Guest Tools.app' "
+ "/Library/VirtualMac/; "
+ "/bin/cp -f /tmp/VirtualMacGuestToolsPayload/Library/VirtualMac/OpenGLPVGCompat.dylib "
+ "/Library/VirtualMac/OpenGLPVGCompat.dylib; "
+ "/usr/sbin/chown root:wheel "
+ "/tmp/VirtualMacGuestToolsConfiguration.plist; "
+ "/bin/chmod 644 "
+ "/tmp/VirtualMacGuestToolsConfiguration.plist; "
+ "/bin/mv -f /tmp/VirtualMacGuestToolsConfiguration.plist "
+ "/Library/VirtualMac/HostConfiguration.plist; "
+ "/usr/sbin/chown -R root:wheel /Library/VirtualMac; "
+ "/bin/chmod 755 /Library/VirtualMac/OpenGLPVGCompat.dylib "
+ "'/Library/VirtualMac/Virtual Mac Guest Tools.app/Contents/MacOS/Virtual Mac Guest Tools'; "
+ "/usr/bin/xattr -cr /Library/VirtualMac; "
+ "/usr/bin/codesign --verify --strict "
+ "'/Library/VirtualMac/Virtual Mac Guest Tools.app'; "
+ "/usr/bin/codesign --verify --strict "
+ "/Library/VirtualMac/OpenGLPVGCompat.dylib; "
+ "/bin/cp -f /tmp/VirtualMacGuestToolsPayload/Library/LaunchAgents/com.mac.virtual.guest-tools.plist "
+ "/Library/LaunchAgents/com.mac.virtual.guest-tools.plist.new; "
+ "/usr/sbin/chown root:wheel "
+ "/Library/LaunchAgents/com.mac.virtual.guest-tools.plist.new; "
+ "/bin/chmod 644 "
+ "/Library/LaunchAgents/com.mac.virtual.guest-tools.plist.new; "
+ "/bin/mv -f "
+ "/Library/LaunchAgents/com.mac.virtual.guest-tools.plist.new "
+ "/Library/LaunchAgents/com.mac.virtual.guest-tools.plist; "
+ "printf '%%s' '%@' > /Library/VirtualMac/.build; "
+ "/bin/rm -rf /tmp/VirtualMacGuestToolsPayload "
+ "/tmp/VirtualMacGuestTools.tar.gz; "
+ "echo VIRTUAL_MAC_PAYLOAD_INSTALLED", build];
+ VZGuestToolsRun(@"/bin/sh", @[@"-c", finish],
+ ^(BOOL installed, NSData *finishOutput) {
+ NSString *text = [[[NSString alloc]
+ initWithData:finishOutput
+ encoding:NSUTF8StringEncoding] autorelease];
+ text = [text stringByTrimmingCharactersInSet:
+ NSCharacterSet.whitespaceAndNewlineCharacterSet];
+ if (!installed) {
+ VZGuestToolsLog(@"payload setup failed: %@",
+ text ?: @"unknown error");
+ completion(NO);
+ return;
+ }
+ VZGuestToolsLog(@"installed guest payload build %@", build);
+ VZGuestToolsActivate(YES, generation, completion);
+ });
+ });
+ });
+ });
+}
+
+static void VZGuestToolsProvisionDesktop(NSUInteger attempt)
+{
+ uint64_t generation = __atomic_load_n(
+ &gGuestProvisioningGeneration, __ATOMIC_ACQUIRE);
+ if (gGuestToolsAcknowledged || !gGuestReadyToken.length) return;
+ NSString *probe =
+ @"uid=$(/usr/bin/stat -f %u /dev/console); "
+ "case $uid in ''|0) exit 75;; esac; "
+ "test -f /var/db/.AppleSetupDone || exit 75; "
+ "/bin/cat /tmp/VirtualMacGuestTools.ready 2>/dev/null || true";
+ VZGuestToolsRun(@"/bin/sh", @[@"-c", probe],
+ ^(BOOL success, NSData *output) {
+ NSString *text = [[[NSString alloc] initWithData:output
+ encoding:NSUTF8StringEncoding] autorelease];
+ text = [text stringByTrimmingCharactersInSet:
+ NSCharacterSet.whitespaceAndNewlineCharacterSet];
+ if (generation != __atomic_load_n(&gGuestProvisioningGeneration,
+ __ATOMIC_ACQUIRE)) return;
+ if (success && !gGuestToolsEnabled) {
+ if (gGuestRemovalPending) VZGuestToolsUninstall();
+ return;
+ }
+ if (success && [text isEqualToString:gGuestReadyToken]) {
+ gGuestToolsAcknowledged = YES;
+ VZGuestToolsLog(@"guest menu extra acknowledged token %@",
+ gGuestReadyToken);
+ VZGuestToolsAuditSecurityState();
+ return;
+ }
+ if (!success) {
+ if (attempt == 0)
+ VZGuestToolsLog(@"waiting for a macOS desktop user session");
+ dispatch_after(dispatch_time(DISPATCH_TIME_NOW,
+ 10 * NSEC_PER_SEC),
+ dispatch_get_global_queue(QOS_CLASS_UTILITY, 0), ^{
+ if (generation == __atomic_load_n(
+ &gGuestProvisioningGeneration,
+ __ATOMIC_ACQUIRE))
+ VZGuestToolsProvisionDesktop(attempt + 1);
+ });
+ return;
+ }
+ if (attempt == 0 || attempt % 6 == 0)
+ VZGuestToolsLog(@"guest menu extra not acknowledged; %@ attempt %lu",
+ attempt ? @"repair" : @"installing", (unsigned long)attempt + 1);
+ VZGuestToolsInstallPayload(generation, ^(BOOL installed) {
+ if (!installed && (attempt == 0 || attempt % 6 == 0))
+ VZGuestToolsLog(@"guest payload repair will be retried");
+ dispatch_after(dispatch_time(DISPATCH_TIME_NOW,
+ 10 * NSEC_PER_SEC),
+ dispatch_get_global_queue(QOS_CLASS_UTILITY, 0), ^{
+ if (generation == __atomic_load_n(
+ &gGuestProvisioningGeneration,
+ __ATOMIC_ACQUIRE) && !gGuestToolsAcknowledged)
+ VZGuestToolsProvisionDesktop(attempt + 1);
+ });
+ });
+ });
+}
+
+static void VZGuestToolsProbeAgent(uint64_t generation, NSUInteger attempt)
+{
+ if (generation != __atomic_load_n(&gGuestProvisioningGeneration,
+ __ATOMIC_ACQUIRE) ||
+ gGuestProvisioningStarted || gGuestReadDescriptor < 0)
+ return;
+ if (attempt == 1 || attempt % 60 == 0)
+ VZGuestToolsLog(@"probing Apple guest agent (attempt %lu)",
+ (unsigned long)attempt);
+ // Before the first successful response every outstanding command is this
+ // same readiness probe. AppleQEMUGuestAgent can silently discard requests
+ // sent while it is starting, so retry, but retain at most one callback.
+ // This bounds memory use during a long Setup Assistant or a guest whose
+ // agent never becomes available.
+ @synchronized (gGuestCallbacks) {
+ [gGuestCallbacks removeAllObjects];
+ }
+ VZGuestToolsSend(@"guest-info", nil, ^(NSDictionary *response) {
+ if (generation != __atomic_load_n(&gGuestProvisioningGeneration,
+ __ATOMIC_ACQUIRE)) return;
+ if (response[@"return"] && !gGuestProvisioningStarted) {
+ gGuestProvisioningStarted = YES;
+ VZGuestToolsLog(@"Apple guest agent ready");
+ VZGuestToolsDiscoverGuestVersion(^{
+ VZGuestToolsProvisionDesktop(0);
+ });
+ }
+ });
+ // Do not make durability depend on receiving a reply to an earlier probe.
+ // QGA can appear late during Setup Assistant or after a slow first login.
+ dispatch_after(dispatch_time(DISPATCH_TIME_NOW, 5 * NSEC_PER_SEC),
+ dispatch_get_global_queue(QOS_CLASS_UTILITY, 0), ^{
+ VZGuestToolsProbeAgent(generation, attempt + 1);
+ });
+}
+
+void VZGuestToolsStartProvisioning(NSString *bundlePath,
+ BOOL guestToolsEnabled,
+ BOOL openGLAccelerationEnabled,
+ BOOL pencilSupportEnabled,
+ BOOL removalPending)
+{
+ gGuestToolsEnabled = guestToolsEnabled;
+ gGuestOpenGLAccelerationEnabled = openGLAccelerationEnabled;
+ gGuestPencilSupportEnabled = pencilSupportEnabled;
+ gGuestRemovalPending = removalPending;
+ gGuestToolsAcknowledged = NO;
+ gGuestMenuRestartedForToken = NO;
+ [gGuestReadyToken release];
+ gGuestReadyToken = (guestToolsEnabled || removalPending)
+ ? [NSUUID.UUID.UUIDString copy] : nil;
+ [gGuestBundlePath release];
+ gGuestBundlePath = [bundlePath copy];
+ if (!guestToolsEnabled && !removalPending) return;
+ uint64_t generation = __atomic_load_n(&gGuestProvisioningGeneration,
+ __ATOMIC_ACQUIRE);
+ if (gGuestReadDescriptor >= 0)
+ dispatch_after(dispatch_time(DISPATCH_TIME_NOW, NSEC_PER_SEC),
+ dispatch_get_global_queue(QOS_CLASS_UTILITY, 0), ^{
+ VZGuestToolsProbeAgent(generation, 1);
+ });
+}
+
+BOOL VZGuestToolsConfigureBootArguments(id auxiliaryStorage,
+ BOOL guestAgentEnabled,
+ BOOL openGLAccelerationEnabled,
+ NSError **error)
+{
+ SEL getter = S("_valueForNVRAMVariableNamed:error:");
+ SEL setter = S("_setValue:forNVRAMVariableNamed:error:");
+ if (!auxiliaryStorage || ![auxiliaryStorage respondsToSelector:setter]) {
+ if (error)
+ *error = [NSError errorWithDomain:@"VirtualMacGuestTools"
+ code:1 userInfo:@{NSLocalizedDescriptionKey:
+ @"The Virtual Mac NVRAM interface is unavailable."}];
+ return NO;
+ }
+ NSError *readError = nil;
+ id existing = [auxiliaryStorage respondsToSelector:getter]
+ ? ((id(*)(id, SEL, id, NSError **))objc_msgSend)(
+ auxiliaryStorage, getter, @"boot-args", &readError)
+ : nil;
+ NSString *arguments = nil;
+ if ([existing isKindOfClass:NSData.class])
+ arguments = [[[NSString alloc] initWithData:existing
+ encoding:NSUTF8StringEncoding] autorelease];
+ else if ([existing isKindOfClass:NSString.class])
+ arguments = existing;
+ arguments = [arguments stringByTrimmingCharactersInSet:
+ NSCharacterSet.whitespaceAndNewlineCharacterSet] ?: @"";
+ NSMutableArray *tokens = [NSMutableArray array];
+ for (NSString *token in [arguments componentsSeparatedByCharactersInSet:
+ NSCharacterSet.whitespaceAndNewlineCharacterSet]) {
+ if (token.length && ![token isEqualToString:@"-arm64e_preview_abi"])
+ [tokens addObject:token];
+ }
+ if (openGLAccelerationEnabled)
+ [tokens addObject:@"-arm64e_preview_abi"];
+ NSString *updated = [tokens componentsJoinedByString:@" "];
+ BOOL result = YES;
+ if (![updated isEqualToString:arguments]) {
+ result = ((BOOL(*)(id, SEL, id, id, NSError **))objc_msgSend)(
+ auxiliaryStorage, setter, updated, @"boot-args", error);
+ }
+ if (!result) return NO;
+
+ // VZ advertises this port identifier in the product device-tree node.
+ // AppleQEMUGuestAgent reads the corresponding NVRAM variable from /options
+ // before connecting to host CID 2 through AppleVirtIOAgentDevice. VMs
+ // originally restored without guest-agent support do not have that
+ // variable, so adding the socket device alone leaves the daemon exiting
+ // with status 1. The value is VZ's stable agent port identifier, not a
+ // guest-version or build-specific address.
+ if (!guestAgentEnabled) {
+ SEL remover = S("_removeNVRAMVariableNamed:error:");
+ if ([auxiliaryStorage respondsToSelector:remover]) {
+ @try {
+ ((BOOL(*)(id, SEL, id, NSError **))objc_msgSend)(
+ auxiliaryStorage, remover, @"apple-guest-agent-port",
+ NULL);
+ } @catch (__unused NSException *exception) {}
+ }
+ return YES;
+ }
+ // AppleQEMUGuestAgent parses the /options value as an ASCII decimal port.
+ // (Its fallback copy in the product node is a binary uint32.) The private
+ // setter therefore receives the textual NVRAM representation.
+ @try {
+ result = ((BOOL(*)(id, SEL, id, id, NSError **))objc_msgSend)(
+ auxiliaryStorage, setter, @"505050", @"apple-guest-agent-port",
+ error);
+ } @catch (NSException *exception) {
+ result = NO;
+ if (error)
+ *error = [NSError errorWithDomain:@"VirtualMacGuestTools" code:2
+ userInfo:@{NSLocalizedDescriptionKey:
+ exception.reason ?: @"The guest agent port could not be staged."}];
+ }
+ if (result) {
+ VZGuestToolsLog(@"staged NVRAM boot arguments %@", updated);
+ VZGuestToolsLog(@"staged Apple guest agent port 505050");
+ }
+ return result;
+}
diff --git a/VirtualMac/vz/host/VZLocalPolicy.h b/VirtualMac/vz/host/VZLocalPolicy.h
new file mode 100644
index 0000000..da466a9
--- /dev/null
+++ b/VirtualMac/vz/host/VZLocalPolicy.h
@@ -0,0 +1,16 @@
+#import <Foundation/Foundation.h>
+
+NS_ASSUME_NONNULL_BEGIN
+
+// Disables guest SIP by updating the signed LocalPolicy stored in the VM's
+// iBoot System Container. The disk remains a sparse regular file: at most one
+// already-allocated 4 KiB filesystem block is replaced.
+BOOL VZEnsureGuestSIPDisabled(NSString *bundlePath, NSError **error);
+BOOL VZSetGuestSIPEnabled(NSString *bundlePath, BOOL enabled,
+ NSError **error);
+
+// Restores the exact signed policy saved before Virtual Mac's first change.
+// If no policy was changed, this is a no-op.
+BOOL VZRestoreGuestLocalPolicy(NSString *bundlePath, NSError **error);
+
+NS_ASSUME_NONNULL_END
diff --git a/VirtualMac/vz/host/VZLocalPolicy.m b/VirtualMac/vz/host/VZLocalPolicy.m
new file mode 100644
index 0000000..765405e
--- /dev/null
+++ b/VirtualMac/vz/host/VZLocalPolicy.m
@@ -0,0 +1,779 @@
+#import "VZLocalPolicy.h"
+
+#import <CommonCrypto/CommonDigest.h>
+#import <Security/Security.h>
+#include <fcntl.h>
+#include <stdarg.h>
+#include <sys/stat.h>
+#include <unistd.h>
+
+static NSString * const VZLocalPolicyErrorDomain = @"VirtualMacLocalPolicy";
+enum { kBlockSize = 4096 };
+static NSString * const kPolicyBackupDirectory = @"GuestTools";
+static NSString * const kPolicyBackupFile = @"OriginalLocalPolicy.bin";
+static NSString * const kPolicyMetadataFile = @"LocalPolicy.plist";
+
+static void LocalPolicyLog(NSString *format, ...)
+{
+ va_list arguments;
+ va_start(arguments, format);
+ NSString *message = [[NSString alloc] initWithFormat:format
+ arguments:arguments];
+ va_end(arguments);
+ int descriptor = open("/tmp/VirtualMac.log",
+ O_WRONLY | O_CREAT | O_APPEND | O_CLOEXEC, 0644);
+ if (descriptor >= 0) {
+ dprintf(descriptor, "[GuestTools] %s\n", message.UTF8String);
+ close(descriptor);
+ }
+}
+
+// SEC1 P-384 key embedded in Ventura 13.2.1 libbootpolicy.dylib as
+// `_hacktivation_oik`. The certificate digest below prevents this build-specific
+// development key from signing an unrelated LocalPolicy representation.
+static const uint8_t kHacktivationPrivateKey[] = {
+ 0x30,0x81,0xa4,0x02,0x01,0x01,0x04,0x30,0xe2,0xa4,0xe0,0xe6,0x21,0x41,0x06,0xc1,
+ 0x66,0x37,0xda,0x2d,0x4e,0x38,0x41,0xfc,0x81,0xcf,0xd9,0xca,0x3c,0x9e,0x20,0x16,
+ 0x04,0xc7,0xbc,0x22,0x23,0xec,0xef,0x9e,0x12,0xa4,0x63,0x37,0x2e,0x0c,0x95,0x8c,
+ 0xe6,0x8f,0x39,0x97,0x65,0x68,0xfc,0xae,0xa0,0x07,0x06,0x05,0x2b,0x81,0x04,0x00,
+ 0x22,0xa1,0x64,0x03,0x62,0x00,0x04,0x5f,0x73,0x89,0xa2,0x5f,0xf0,0x6b,0x97,0x25,
+ 0xa6,0xeb,0xbc,0xbf,0x64,0x47,0x70,0x61,0x29,0x1f,0x0a,0x9b,0xa5,0xfe,0xc6,0x5e,
+ 0xfc,0xe8,0x65,0xf9,0x75,0x10,0x61,0x7b,0xc4,0x7e,0x72,0xf0,0xdc,0x82,0xa9,0xa1,
+ 0x8a,0xa8,0x8a,0x43,0x7c,0x1d,0x46,0x47,0x7e,0x3d,0xea,0x30,0x55,0xda,0xf7,0x62,
+ 0xad,0x18,0x55,0x3b,0xab,0x6e,0xd7,0xd2,0x79,0xe8,0x8c,0x6e,0x82,0x8e,0xa5,0xbf,
+ 0x21,0x7d,0xc0,0xef,0x49,0x66,0x6e,0x0a,0xe9,0x3f,0xf8,0xe2,0x4c,0xef,0xe1,0xa6,
+ 0xdf,0xec,0x88,0x7d,0x93,0x29,0x40,
+};
+
+static const uint8_t kHacktivationCertificateChainSHA256[CC_SHA256_DIGEST_LENGTH] = {
+ 0x7d,0x27,0x8c,0x50,0x0a,0x4f,0x32,0x8a,0x52,0x90,0x87,0x95,0x7f,0x73,0xd1,0xef,
+ 0x99,0xf0,0x89,0x05,0x49,0xd7,0xda,0x94,0x5a,0xeb,0x53,0xb0,0x1f,0x28,0x7d,0x50,
+};
+
+typedef struct {
+ const uint8_t *tlv;
+ size_t headerLength;
+ size_t contentLength;
+ uint8_t tag;
+} DERTLV;
+
+static BOOL DERRead(const uint8_t *bytes, size_t available, DERTLV *item)
+{
+ if (available < 2) return NO;
+ size_t header = 2;
+ size_t length = bytes[1];
+ if (length & 0x80) {
+ size_t count = length & 0x7f;
+ if (!count || count > sizeof(size_t) || available < 2 + count)
+ return NO;
+ length = 0;
+ for (size_t index = 0; index < count; ++index)
+ length = (length << 8) | bytes[2 + index];
+ header += count;
+ }
+ if (length > available - header) return NO;
+ item->tlv = bytes;
+ item->headerLength = header;
+ item->contentLength = length;
+ item->tag = bytes[0];
+ return YES;
+}
+
+static BOOL DERReadAnyTag(const uint8_t *bytes, size_t available, DERTLV *item)
+{
+ if (available < 2) return NO;
+ size_t tagLength = 1;
+ if ((bytes[0] & 0x1f) == 0x1f) {
+ while (tagLength < available && (bytes[tagLength++] & 0x80)) {}
+ if (tagLength >= available) return NO;
+ }
+ size_t lengthOffset = tagLength;
+ size_t header = lengthOffset + 1;
+ size_t length = bytes[lengthOffset];
+ if (length & 0x80) {
+ size_t count = length & 0x7f;
+ if (!count || count > sizeof(size_t) ||
+ available < lengthOffset + 1 + count)
+ return NO;
+ length = 0;
+ for (size_t index = 0; index < count; ++index)
+ length = (length << 8) | bytes[lengthOffset + 1 + index];
+ header += count;
+ }
+ if (length > available - header) return NO;
+ item->tlv = bytes;
+ item->headerLength = header;
+ item->contentLength = length;
+ item->tag = bytes[0];
+ return YES;
+}
+
+static BOOL DERSetContentLength(DERTLV item, size_t length)
+{
+ size_t tagLength = 1;
+ if ((item.tlv[0] & 0x1f) == 0x1f)
+ while (tagLength < item.headerLength &&
+ (item.tlv[tagLength++] & 0x80)) {}
+ if (tagLength >= item.headerLength) return NO;
+ uint8_t *lengthBytes = (uint8_t *)item.tlv + tagLength;
+ if (!(lengthBytes[0] & 0x80)) {
+ if (length >= 0x80) return NO;
+ lengthBytes[0] = (uint8_t)length;
+ return YES;
+ }
+ size_t count = lengthBytes[0] & 0x7f;
+ if (!count || tagLength + 1 + count != item.headerLength ||
+ (count < sizeof(size_t) && length >= ((size_t)1 << (count * 8))))
+ return NO;
+ for (size_t index = 0; index < count; ++index) {
+ lengthBytes[count - index] = (uint8_t)(length & 0xff);
+ length >>= 8;
+ }
+ return length == 0;
+}
+
+static const uint8_t *DERContent(DERTLV item)
+{
+ return item.tlv + item.headerLength;
+}
+
+static BOOL DERNext(const uint8_t **cursor, size_t *remaining, DERTLV *item)
+{
+ if (!DERRead(*cursor, *remaining, item)) return NO;
+ size_t total = item->headerLength + item->contentLength;
+ *cursor += total;
+ *remaining -= total;
+ return YES;
+}
+
+static BOOL BytesEqual(DERTLV item, uint8_t tag, const char *value)
+{
+ size_t length = strlen(value);
+ return item.tag == tag && item.contentLength == length &&
+ !memcmp(DERContent(item), value, length);
+}
+
+static BOOL PolicyContainsNamedProperty(DERTLV signedBody,
+ const char name[4])
+{
+ const uint8_t *bytes = signedBody.tlv;
+ size_t length = signedBody.headerLength + signedBody.contentLength;
+ NSUInteger matches = 0;
+ for (size_t offset = 0; offset + 6 <= length; ++offset) {
+ if (bytes[offset] == 0x16 && bytes[offset + 1] == 4 &&
+ !memcmp(bytes + offset + 2, name, 4))
+ ++matches;
+ }
+ return matches == 1;
+}
+
+typedef struct {
+ DERTLV image;
+ DERTLV manifestTag;
+ DERTLV manifest;
+ DERTLV signedBody;
+ DERTLV signature;
+ DERTLV certificates;
+} LocalPolicyLayout;
+
+static BOOL ParseLocalPolicy(const uint8_t *bytes, size_t available,
+ LocalPolicyLayout *layout)
+{
+ DERTLV image;
+ if (!DERRead(bytes, available, &image) || image.tag != 0x30)
+ return NO;
+ const uint8_t *cursor = DERContent(image);
+ size_t remaining = image.contentLength;
+ DERTLV name, payload, manifestTag;
+ if (!DERNext(&cursor, &remaining, &name) ||
+ !BytesEqual(name, 0x16, "IMG4") ||
+ !DERNext(&cursor, &remaining, &payload) || payload.tag != 0x30)
+ return NO;
+ const uint8_t *payloadCursor = DERContent(payload);
+ size_t payloadRemaining = payload.contentLength;
+ DERTLV payloadName, payloadType;
+ if (!DERNext(&payloadCursor, &payloadRemaining, &payloadName) ||
+ !BytesEqual(payloadName, 0x16, "IM4P") ||
+ !DERNext(&payloadCursor, &payloadRemaining, &payloadType) ||
+ !BytesEqual(payloadType, 0x16, "lpol") ||
+ !DERNext(&cursor, &remaining, &manifestTag) ||
+ manifestTag.tag != 0xa0 || remaining)
+ return NO;
+ const uint8_t *manifestCursor = DERContent(manifestTag);
+ size_t manifestRemaining = manifestTag.contentLength;
+ DERTLV manifest;
+ if (!DERNext(&manifestCursor, &manifestRemaining, &manifest) ||
+ manifest.tag != 0x30 || manifestRemaining)
+ return NO;
+ const uint8_t *entry = DERContent(manifest);
+ size_t entryRemaining = manifest.contentLength;
+ DERTLV manifestName, version, signedBody, signature, certificates;
+ if (!DERNext(&entry, &entryRemaining, &manifestName) ||
+ !BytesEqual(manifestName, 0x16, "IM4M") ||
+ !DERNext(&entry, &entryRemaining, &version) || version.tag != 0x02 ||
+ !DERNext(&entry, &entryRemaining, &signedBody) || signedBody.tag != 0x31 ||
+ !DERNext(&entry, &entryRemaining, &signature) || signature.tag != 0x04 ||
+ !DERNext(&entry, &entryRemaining, &certificates) || certificates.tag != 0x30 ||
+ entryRemaining)
+ return NO;
+ layout->image = image;
+ layout->manifestTag = manifestTag;
+ layout->manifest = manifest;
+ layout->signedBody = signedBody;
+ layout->signature = signature;
+ layout->certificates = certificates;
+ return YES;
+}
+
+typedef struct {
+ DERTLV manbWrapper;
+ DERTLV manbSequence;
+ DERTLV manbSet;
+ DERTLV manpWrapper;
+ DERTLV manpSequence;
+ DERTLV manpSet;
+ const uint8_t *sipStart;
+ const uint8_t *sipEnd;
+ const uint8_t *insertionPoint;
+ NSUInteger sipCount;
+} LocalPolicyProperties;
+
+static BOOL ParsePropertyWrapper(DERTLV wrapper, DERTLV *sequence,
+ DERTLV *name, DERTLV *value)
+{
+ const uint8_t *cursor = DERContent(wrapper);
+ size_t remaining = wrapper.contentLength;
+ if (!DERRead(cursor, remaining, sequence) || sequence->tag != 0x30 ||
+ sequence->headerLength + sequence->contentLength != remaining)
+ return NO;
+ cursor = DERContent(*sequence);
+ remaining = sequence->contentLength;
+ return DERNext(&cursor, &remaining, name) && name->tag == 0x16 &&
+ DERNext(&cursor, &remaining, value) && !remaining;
+}
+
+static BOOL ParsePolicyProperties(LocalPolicyLayout layout,
+ LocalPolicyProperties *properties)
+{
+#define POLICY_PARSE_REQUIRE(condition, stage) do { \
+ if (!(condition)) { \
+ if (getenv("VZ_LOCAL_POLICY_TRACE")) \
+ dprintf(STDERR_FILENO, \
+ "[GuestTools] LocalPolicy property parse stage %d failed\n", \
+ (stage)); \
+ return NO; \
+ } \
+} while (0)
+ memset(properties, 0, sizeof(*properties));
+ const uint8_t *cursor = DERContent(layout.signedBody);
+ size_t remaining = layout.signedBody.contentLength;
+ POLICY_PARSE_REQUIRE(DERReadAnyTag(cursor, remaining,
+ &properties->manbWrapper) &&
+ properties->manbWrapper.headerLength +
+ properties->manbWrapper.contentLength == remaining, 1);
+ DERTLV name;
+ POLICY_PARSE_REQUIRE(ParsePropertyWrapper(properties->manbWrapper,
+ &properties->manbSequence,
+ &name,
+ &properties->manbSet) &&
+ BytesEqual(name, 0x16, "MANB") && properties->manbSet.tag == 0x31, 2);
+
+ cursor = DERContent(properties->manbSet);
+ remaining = properties->manbSet.contentLength;
+ while (remaining) {
+ DERTLV wrapper, sequence, entryName, value;
+ POLICY_PARSE_REQUIRE(DERReadAnyTag(cursor, remaining, &wrapper), 3);
+ size_t total = wrapper.headerLength + wrapper.contentLength;
+ POLICY_PARSE_REQUIRE(ParsePropertyWrapper(wrapper, &sequence,
+ &entryName, &value), 4);
+ if (BytesEqual(entryName, 0x16, "MANP")) {
+ POLICY_PARSE_REQUIRE(!properties->manpWrapper.tlv &&
+ value.tag == 0x31, 5);
+ properties->manpWrapper = wrapper;
+ properties->manpSequence = sequence;
+ properties->manpSet = value;
+ }
+ cursor += total;
+ remaining -= total;
+ }
+ POLICY_PARSE_REQUIRE(properties->manpWrapper.tlv, 6);
+
+ cursor = DERContent(properties->manpSet);
+ remaining = properties->manpSet.contentLength;
+ properties->insertionPoint = cursor + remaining;
+ const uint8_t *previousEnd = NULL;
+ const char *expectedSIPNames[] = { "sip0", "sip2", "sip3" };
+ while (remaining) {
+ DERTLV wrapper, sequence, entryName, value;
+ POLICY_PARSE_REQUIRE(DERReadAnyTag(cursor, remaining, &wrapper), 7);
+ size_t total = wrapper.headerLength + wrapper.contentLength;
+ POLICY_PARSE_REQUIRE(ParsePropertyWrapper(wrapper, &sequence,
+ &entryName, &value), 8);
+ if (getenv("VZ_LOCAL_POLICY_TRACE"))
+ dprintf(STDERR_FILENO,
+ "[GuestTools] LocalPolicy MANP property %.*s tag=0x%x\n",
+ (int)entryName.contentLength, DERContent(entryName),
+ value.tag);
+ for (NSUInteger index = 0; index < 3; ++index) {
+ if (!BytesEqual(entryName, 0x16, expectedSIPNames[index]))
+ continue;
+ if (index != properties->sipCount ||
+ (previousEnd && previousEnd != cursor))
+ POLICY_PARSE_REQUIRE(NO, 9);
+ if (!properties->sipStart) properties->sipStart = cursor;
+ properties->sipEnd = cursor + total;
+ previousEnd = properties->sipEnd;
+ ++properties->sipCount;
+ }
+ cursor += total;
+ remaining -= total;
+ }
+ POLICY_PARSE_REQUIRE(properties->insertionPoint &&
+ (properties->sipCount == 0 || properties->sipCount == 3), 10);
+#undef POLICY_PARSE_REQUIRE
+ return YES;
+}
+
+// The DER private tags encode the property fourcc. These three canonical
+// entries are what libbootpolicy writes when SIP is disabled. A normal
+// SIP-enabled LocalPolicy omits the entries instead of storing zero values.
+static const uint8_t kDisabledSIPProperties[] = {
+ 0xff,0x87,0x9b,0xa5,0xe0,0x30,0x0b,0x30,0x09,0x16,0x04,0x73,
+ 0x69,0x70,0x30,0x02,0x01,0x7f,0xff,0x87,0x9b,0xa5,0xe0,0x32,
+ 0x0b,0x30,0x09,0x16,0x04,0x73,0x69,0x70,0x32,0x01,0x01,0xff,
+ 0xff,0x87,0x9b,0xa5,0xe0,0x33,0x0b,0x30,0x09,0x16,0x04,0x73,
+ 0x69,0x70,0x33,0x01,0x01,0xff,
+};
+
+static BOOL AdjustPolicyLengths(LocalPolicyLayout layout,
+ LocalPolicyProperties properties,
+ NSInteger delta)
+{
+ DERTLV ancestors[] = {
+ layout.image, layout.manifestTag, layout.manifest, layout.signedBody,
+ properties.manbWrapper, properties.manbSequence, properties.manbSet,
+ properties.manpWrapper, properties.manpSequence, properties.manpSet,
+ };
+ for (NSUInteger index = 0;
+ index < sizeof(ancestors) / sizeof(ancestors[0]); ++index) {
+ NSInteger length = (NSInteger)ancestors[index].contentLength + delta;
+ if (length < 0 || !DERSetContentLength(ancestors[index],
+ (size_t)length))
+ return NO;
+ }
+ return YES;
+}
+
+static BOOL TransformSIPConfiguration(uint8_t block[kBlockSize], BOOL enabled)
+{
+ LocalPolicyLayout layout;
+ LocalPolicyProperties properties;
+ if (!ParseLocalPolicy(block, kBlockSize, &layout) ||
+ !ParsePolicyProperties(layout, &properties))
+ return NO;
+ size_t imageLength = layout.image.headerLength + layout.image.contentLength;
+ const size_t delta = sizeof(kDisabledSIPProperties);
+ if (enabled) {
+ if (!properties.sipCount) return YES;
+ size_t removed = (size_t)(properties.sipEnd - properties.sipStart);
+ if (removed != delta ||
+ !AdjustPolicyLengths(layout, properties, -(NSInteger)delta))
+ return NO;
+ size_t offset = (size_t)(properties.sipStart - block);
+ memmove(block + offset, block + offset + delta,
+ imageLength - offset - delta);
+ memset(block + imageLength - delta, 0, delta);
+ return YES;
+ }
+ if (properties.sipCount) {
+ return !memcmp(properties.sipStart, kDisabledSIPProperties, delta);
+ }
+ if (imageLength + delta > kBlockSize ||
+ !AdjustPolicyLengths(layout, properties, (NSInteger)delta))
+ return NO;
+ size_t offset = (size_t)(properties.insertionPoint - block);
+ memmove(block + offset + delta, block + offset, imageLength - offset);
+ memcpy(block + offset, kDisabledSIPProperties, delta);
+ return YES;
+}
+
+static SecKeyRef CreateSigningKey(void)
+{
+ // SecKey's EC private external representation is ANSI X9.63 public point
+ // followed by the private scalar, not the SEC1 wrapper stored in dyld.
+ NSMutableData *data = [NSMutableData dataWithCapacity:145];
+ [data appendBytes:kHacktivationPrivateKey + 70 length:97];
+ [data appendBytes:kHacktivationPrivateKey + 8 length:48];
+ NSDictionary *attributes = @{
+ (id)kSecAttrKeyType: (id)kSecAttrKeyTypeECSECPrimeRandom,
+ (id)kSecAttrKeyClass: (id)kSecAttrKeyClassPrivate,
+ (id)kSecAttrKeySizeInBits: @384,
+ };
+ return SecKeyCreateWithData((CFDataRef)data,
+ (CFDictionaryRef)attributes, NULL);
+}
+
+static SecKeyRef CopyLeafPublicKey(DERTLV certificates)
+{
+ const uint8_t *cursor = DERContent(certificates);
+ size_t remaining = certificates.contentLength;
+ DERTLV certificate, leaf = {};
+ while (remaining) {
+ if (!DERNext(&cursor, &remaining, &certificate) ||
+ certificate.tag != 0x30)
+ return NULL;
+ leaf = certificate;
+ }
+ if (!leaf.tlv) return NULL;
+ NSData *data = [NSData dataWithBytes:leaf.tlv
+ length:leaf.headerLength + leaf.contentLength];
+ SecCertificateRef object = SecCertificateCreateWithData(NULL,
+ (CFDataRef)data);
+ SecKeyRef key = object ? SecCertificateCopyKey(object) : NULL;
+ if (object) CFRelease(object);
+ return key;
+}
+
+static BOOL UpdatePolicyInBlock(uint8_t block[kBlockSize], BOOL enabled,
+ NSError **error)
+{
+ LocalPolicyLayout layout;
+ if (!ParseLocalPolicy(block, kBlockSize, &layout)) return NO;
+ uint8_t digest[CC_SHA256_DIGEST_LENGTH];
+ CC_SHA256(DERContent(layout.certificates),
+ (CC_LONG)layout.certificates.contentLength, digest);
+ if (memcmp(digest, kHacktivationCertificateChainSHA256, sizeof(digest)))
+ return NO;
+
+ SecKeyRef publicKey = CopyLeafPublicKey(layout.certificates);
+ NSData *originalBlock = [NSData dataWithBytes:block length:kBlockSize];
+ NSData *originalBody = [NSData dataWithBytes:layout.signedBody.tlv
+ length:layout.signedBody.headerLength + layout.signedBody.contentLength];
+ NSData *originalSignature = [NSData dataWithBytes:
+ DERContent(layout.signature) length:layout.signature.contentLength];
+ BOOL originalValid = publicKey && SecKeyVerifySignature(publicKey,
+ kSecKeyAlgorithmECDSASignatureMessageX962SHA384,
+ (CFDataRef)originalBody, (CFDataRef)originalSignature, NULL);
+ if (!originalValid) {
+ if (error) *error = [NSError errorWithDomain:VZLocalPolicyErrorDomain
+ code:3 userInfo:@{NSLocalizedDescriptionKey:
+ @"The Virtual Mac LocalPolicy signature could not be verified."}];
+ if (publicKey) CFRelease(publicKey);
+ return NO;
+ }
+ if (!TransformSIPConfiguration(block, enabled) ||
+ !ParseLocalPolicy(block, kBlockSize, &layout)) {
+ if (error) *error = [NSError errorWithDomain:VZLocalPolicyErrorDomain
+ code:4 userInfo:@{NSLocalizedDescriptionKey:
+ @"The Virtual Mac LocalPolicy has an unsupported structure."}];
+ CFRelease(publicKey);
+ return NO;
+ }
+ NSData *updatedBlock = [NSData dataWithBytes:block length:kBlockSize];
+ if ([updatedBlock isEqualToData:originalBlock]) {
+ CFRelease(publicKey);
+ return YES;
+ }
+ NSData *updatedBody = [NSData dataWithBytes:layout.signedBody.tlv
+ length:layout.signedBody.headerLength + layout.signedBody.contentLength];
+ SecKeyRef privateKey = CreateSigningKey();
+ if (!privateKey) {
+ if (error) *error = [NSError errorWithDomain:VZLocalPolicyErrorDomain
+ code:6 userInfo:@{NSLocalizedDescriptionKey:
+ @"The Virtual Mac LocalPolicy signing key is unavailable."}];
+ CFRelease(publicKey);
+ return NO;
+ }
+ for (NSUInteger attempt = 0; attempt < 4096; ++attempt) {
+ CFErrorRef signingError = NULL;
+ CFDataRef candidate = SecKeyCreateSignature(privateKey,
+ kSecKeyAlgorithmECDSASignatureMessageX962SHA384,
+ (CFDataRef)updatedBody, &signingError);
+ if (signingError) CFRelease(signingError);
+ if (!candidate) continue;
+ NSData *signature = (__bridge NSData *)candidate;
+ if (signature.length == layout.signature.contentLength &&
+ SecKeyVerifySignature(publicKey,
+ kSecKeyAlgorithmECDSASignatureMessageX962SHA384,
+ (CFDataRef)updatedBody, candidate, NULL)) {
+ memcpy((void *)DERContent(layout.signature), signature.bytes,
+ signature.length);
+ CFRelease(candidate);
+ CFRelease(publicKey);
+ CFRelease(privateKey);
+ return YES;
+ }
+ CFRelease(candidate);
+ }
+ if (error) *error = [NSError errorWithDomain:VZLocalPolicyErrorDomain
+ code:5 userInfo:@{NSLocalizedDescriptionKey:
+ @"Virtual Mac could not create an equal-size LocalPolicy signature."}];
+ CFRelease(publicKey);
+ CFRelease(privateKey);
+ return NO;
+}
+
+static BOOL NormalizePolicyIdentity(uint8_t block[kBlockSize])
+{
+ LocalPolicyLayout layout;
+ if (!TransformSIPConfiguration(block, NO) ||
+ !ParseLocalPolicy(block, kBlockSize, &layout))
+ return NO;
+ memset((void *)DERContent(layout.signature), 0,
+ layout.signature.contentLength);
+ return YES;
+}
+
+static NSString *PolicySupportPath(NSString *bundlePath, NSString *name)
+{
+ return [[bundlePath stringByAppendingPathComponent:kPolicyBackupDirectory]
+ stringByAppendingPathComponent:name];
+}
+
+static BOOL SaveOriginalPolicy(NSString *bundlePath,
+ const uint8_t block[kBlockSize], off_t offset,
+ NSError **error)
+{
+ NSString *backupPath = PolicySupportPath(bundlePath, kPolicyBackupFile);
+ NSString *metadataPath = PolicySupportPath(bundlePath, kPolicyMetadataFile);
+ BOOL hasBackup = [[NSFileManager defaultManager]
+ fileExistsAtPath:backupPath];
+ BOOL hasMetadata = [[NSFileManager defaultManager]
+ fileExistsAtPath:metadataPath];
+ if (hasBackup || hasMetadata)
+ return hasBackup && hasMetadata;
+ NSString *directory = [backupPath stringByDeletingLastPathComponent];
+ if (![[NSFileManager defaultManager] createDirectoryAtPath:directory
+ withIntermediateDirectories:YES attributes:nil error:error])
+ return NO;
+ NSData *data = [NSData dataWithBytes:block length:kBlockSize];
+ if (![data writeToFile:backupPath options:NSDataWritingAtomic error:error])
+ return NO;
+ NSDictionary *metadata = @{ @"Offset": @((long long)offset), @"Version": @1 };
+ NSData *metadataData = [NSPropertyListSerialization
+ dataWithPropertyList:metadata format:NSPropertyListBinaryFormat_v1_0
+ options:0 error:error];
+ if (!metadataData || ![metadataData writeToFile:metadataPath
+ options:NSDataWritingAtomic error:error]) {
+ [[NSFileManager defaultManager] removeItemAtPath:backupPath error:nil];
+ return NO;
+ }
+ return YES;
+}
+
+typedef struct __attribute__((packed)) {
+ uint8_t type[16];
+ uint8_t unique[16];
+ uint64_t firstLBA;
+ uint64_t lastLBA;
+ uint64_t attributes;
+ uint16_t name[36];
+} GPTEntry;
+
+static BOOL ReadISCRange(int descriptor, off_t fileSize,
+ off_t *start, off_t *length)
+{
+ uint8_t sector[512];
+ if (pread(descriptor, sector, sizeof(sector), 512) != sizeof(sector) ||
+ memcmp(sector, "EFI PART", 8)) return NO;
+ uint64_t entriesLBA = *(uint64_t *)(sector + 72);
+ uint32_t entryCount = *(uint32_t *)(sector + 80);
+ uint32_t entrySize = *(uint32_t *)(sector + 84);
+ if (!entryCount || entryCount > 1024 || entrySize < sizeof(GPTEntry) ||
+ entrySize > 4096) return NO;
+ // Apple_APFS_ISC GUID 69646961-6700-11aa-aa11-00306543ecac, encoded in
+ // GPT's mixed-endian on-disk representation.
+ static const uint8_t iscType[16] = {
+ 0x61,0x69,0x64,0x69,0x00,0x67,0xaa,0x11,
+ 0xaa,0x11,0x00,0x30,0x65,0x43,0xec,0xac,
+ };
+ NSMutableData *entryData = [NSMutableData dataWithLength:entrySize];
+ NSUInteger matches = 0;
+ for (uint32_t index = 0; index < entryCount; ++index) {
+ off_t offset = (off_t)entriesLBA * 512 + (off_t)index * entrySize;
+ if (pread(descriptor, entryData.mutableBytes, entrySize, offset) !=
+ (ssize_t)entrySize) return NO;
+ GPTEntry *entry = entryData.mutableBytes;
+ if (memcmp(entry->type, iscType, sizeof(iscType))) continue;
+ if (entry->lastLBA < entry->firstLBA) return NO;
+ off_t rangeStart = (off_t)entry->firstLBA * 512;
+ off_t rangeLength = (off_t)(entry->lastLBA - entry->firstLBA + 1) * 512;
+ if (rangeStart < 0 || rangeLength <= 0 ||
+ rangeStart > fileSize || rangeLength > fileSize - rangeStart)
+ return NO;
+ *start = rangeStart;
+ *length = rangeLength;
+ ++matches;
+ }
+ return matches == 1;
+}
+
+BOOL VZSetGuestSIPEnabled(NSString *bundlePath, BOOL enabled, NSError **error)
+{
+ LocalPolicyLog(@"configuring SIP enabled=%d bundle=%@", enabled,
+ bundlePath.lastPathComponent);
+ NSString *path = [bundlePath stringByAppendingPathComponent:@"Disk.img"];
+ int descriptor = open(path.fileSystemRepresentation, O_RDWR | O_CLOEXEC);
+ if (descriptor < 0) {
+ if (error) *error = [NSError errorWithDomain:NSPOSIXErrorDomain
+ code:errno userInfo:nil];
+ return NO;
+ }
+ struct stat info;
+ off_t rangeStart = 0, rangeLength = 0;
+ BOOL rangeOK = !fstat(descriptor, &info) &&
+ ReadISCRange(descriptor, info.st_size, &rangeStart, &rangeLength);
+ if (!rangeOK) {
+ if (error) *error = [NSError errorWithDomain:VZLocalPolicyErrorDomain
+ code:1 userInfo:@{NSLocalizedDescriptionKey:
+ @"The Virtual Mac iBoot System Container could not be located."}];
+ close(descriptor);
+ return NO;
+ }
+
+ const size_t chunkSize = 4 * 1024 * 1024;
+ NSMutableData *chunk = [NSMutableData dataWithLength:chunkSize];
+ uint8_t original[kBlockSize], replacement[kBlockSize];
+ off_t matchOffset = -1;
+ NSUInteger matches = 0;
+ for (off_t relative = 0; relative < rangeLength; relative += chunkSize) {
+ size_t request = (size_t)MIN((off_t)chunkSize, rangeLength - relative);
+ ssize_t count = pread(descriptor, chunk.mutableBytes, request,
+ rangeStart + relative);
+ if (count != (ssize_t)request) break;
+ uint8_t *bytes = chunk.mutableBytes;
+ for (size_t blockOffset = 0; blockOffset + kBlockSize <= request;
+ blockOffset += kBlockSize) {
+ LocalPolicyLayout layout;
+ if (!ParseLocalPolicy(bytes + blockOffset, kBlockSize, &layout))
+ continue;
+ // The iBoot System Container also carries a RecoveryOS policy for
+ // the same volume group. Its MANP set is explicitly marked `rolp`;
+ // bputil and macOS consume the unmarked policy. Never weaken or
+ // rewrite RecoveryOS while configuring the macOS guest.
+ if (PolicyContainsNamedProperty(layout.signedBody, "rolp")) {
+ LocalPolicyLog(@"skipping RecoveryOS policy at 0x%llx",
+ (unsigned long long)(rangeStart + relative + blockOffset));
+ continue;
+ }
+ memcpy(original, bytes + blockOffset, kBlockSize);
+ memcpy(replacement, original, kBlockSize);
+ NSError *candidateError = nil;
+ if (!UpdatePolicyInBlock(replacement, enabled, &candidateError)) {
+ LocalPolicyLog(@"candidate at 0x%llx rejected: %@",
+ (unsigned long long)(rangeStart + relative + blockOffset),
+ candidateError.localizedDescription ?: @"not compatible");
+ if (candidateError && error) *error = candidateError;
+ continue;
+ }
+ LocalPolicyLog(@"candidate at 0x%llx transformed",
+ (unsigned long long)(rangeStart + relative + blockOffset));
+ matchOffset = rangeStart + relative + blockOffset;
+ ++matches;
+ }
+ }
+ if (matches != 1) {
+ LocalPolicyLog(@"SIP update stopped: compatible candidates=%lu",
+ (unsigned long)matches);
+ if (error && !*error) *error = [NSError errorWithDomain:
+ VZLocalPolicyErrorDomain code:2 userInfo:@{NSLocalizedDescriptionKey:
+ matches ? @"Multiple Virtual Mac LocalPolicy files were found."
+ : @"The Virtual Mac LocalPolicy could not be located."}];
+ close(descriptor);
+ return NO;
+ }
+ if (!SaveOriginalPolicy(bundlePath, original, matchOffset, error)) {
+ close(descriptor);
+ return NO;
+ }
+ if (!memcmp(original, replacement, sizeof(original))) {
+ close(descriptor);
+ LocalPolicyLog(@"LocalPolicy already configured at 0x%llx",
+ (unsigned long long)matchOffset);
+ return YES;
+ }
+ uint8_t current[kBlockSize];
+ BOOL result = pread(descriptor, current, sizeof(current), matchOffset) ==
+ sizeof(current) && !memcmp(current, original, sizeof(current)) &&
+ pwrite(descriptor, replacement, sizeof(replacement), matchOffset) ==
+ sizeof(replacement) && fsync(descriptor) == 0 &&
+ pread(descriptor, current, sizeof(current), matchOffset) ==
+ sizeof(current) && !memcmp(current, replacement, sizeof(current));
+ if (!result && error)
+ *error = [NSError errorWithDomain:NSPOSIXErrorDomain
+ code:errno ?: EIO userInfo:nil];
+ close(descriptor);
+ if (result)
+ LocalPolicyLog(@"LocalPolicy updated and verified at 0x%llx",
+ (unsigned long long)matchOffset);
+ else
+ LocalPolicyLog(@"LocalPolicy write verification failed at 0x%llx",
+ (unsigned long long)matchOffset);
+ return result;
+}
+
+BOOL VZEnsureGuestSIPDisabled(NSString *bundlePath, NSError **error)
+{
+ return VZSetGuestSIPEnabled(bundlePath, NO, error);
+}
+
+BOOL VZRestoreGuestLocalPolicy(NSString *bundlePath, NSError **error)
+{
+ NSString *backupPath = PolicySupportPath(bundlePath, kPolicyBackupFile);
+ NSString *metadataPath = PolicySupportPath(bundlePath, kPolicyMetadataFile);
+ NSData *backup = [NSData dataWithContentsOfFile:backupPath];
+ NSDictionary *metadata = [NSDictionary dictionaryWithContentsOfFile:
+ metadataPath];
+ if (!backup && !metadata)
+ return YES;
+ if (backup.length != kBlockSize ||
+ ![metadata[@"Offset"] isKindOfClass:NSNumber.class]) {
+ if (error) *error = [NSError errorWithDomain:VZLocalPolicyErrorDomain
+ code:7 userInfo:@{NSLocalizedDescriptionKey:
+ @"The saved Virtual Mac LocalPolicy is incomplete."}];
+ return NO;
+ }
+ off_t offset = [metadata[@"Offset"] longLongValue];
+ NSString *diskPath = [bundlePath stringByAppendingPathComponent:@"Disk.img"];
+ int descriptor = open(diskPath.fileSystemRepresentation,
+ O_RDWR | O_CLOEXEC);
+ if (descriptor < 0) {
+ if (error) *error = [NSError errorWithDomain:NSPOSIXErrorDomain
+ code:errno userInfo:nil];
+ return NO;
+ }
+ uint8_t current[kBlockSize], original[kBlockSize];
+ memcpy(original, backup.bytes, kBlockSize);
+ BOOL readOK = offset >= 0 &&
+ pread(descriptor, current, sizeof(current), offset) == sizeof(current);
+ uint8_t normalizedCurrent[kBlockSize], normalizedOriginal[kBlockSize];
+ memcpy(normalizedOriginal, original, kBlockSize);
+ if (readOK) memcpy(normalizedCurrent, current, kBlockSize);
+ BOOL identityOK = readOK && NormalizePolicyIdentity(normalizedCurrent) &&
+ NormalizePolicyIdentity(normalizedOriginal) &&
+ !memcmp(normalizedCurrent, normalizedOriginal, kBlockSize);
+ if (!identityOK) {
+ close(descriptor);
+ if (error) *error = [NSError errorWithDomain:VZLocalPolicyErrorDomain
+ code:8 userInfo:@{NSLocalizedDescriptionKey:
+ @"The saved LocalPolicy does not belong to this Virtual Mac disk."}];
+ return NO;
+ }
+ if (!memcmp(current, original, kBlockSize)) {
+ close(descriptor);
+ return YES;
+ }
+ BOOL result = pwrite(descriptor, original, kBlockSize, offset) == kBlockSize &&
+ fsync(descriptor) == 0 &&
+ pread(descriptor, current, kBlockSize, offset) == kBlockSize &&
+ !memcmp(current, original, kBlockSize);
+ if (!result && error)
+ *error = [NSError errorWithDomain:NSPOSIXErrorDomain
+ code:errno ?: EIO userInfo:nil];
+ close(descriptor);
+ if (result)
+ dprintf(STDERR_FILENO,
+ "[GuestTools] restored original LocalPolicy at 0x%llx\n",
+ (unsigned long long)offset);
+ return result;
+}
diff --git a/VirtualMac/vz/host/VZNewVMViewController.m b/VirtualMac/vz/host/VZNewVMViewController.m
index c370af9..d4de60e 100644
--- a/VirtualMac/vz/host/VZNewVMViewController.m
+++ b/VirtualMac/vz/host/VZNewVMViewController.m
@@ -7,66 +7,6 @@ static NSString *VZCatalogString(id value)
return [value isKindOfClass:NSString.class] ? value : @"";
}
-static NSInteger VZCatalogMajorVersion(NSDictionary *image)
-{
- NSString *candidate = VZCatalogString(image[@"version"]);
- if (!candidate.length)
- candidate = VZCatalogString(image[@"name"]);
- NSScanner *scanner = [NSScanner scannerWithString:candidate];
- [scanner scanUpToCharactersFromSet:NSCharacterSet.decimalDigitCharacterSet
- intoString:nil];
- NSInteger major = 0;
- return [scanner scanInteger:&major] ? major : 0;
-}
-
-static NSString *VZCatalogMarketingName(NSDictionary *image)
-{
- NSString *group = VZCatalogString(image[@"group"]).lowercaseString;
- NSDictionary *known = @{ @"monterey": @"Monterey", @"ventura": @"Ventura",
- @"sonoma": @"Sonoma", @"sequoia": @"Sequoia", @"tahoe": @"Tahoe",
- @"goldengate": @"Golden Gate", @"golden-gate": @"Golden Gate" };
- NSString *name = known[group];
- if (name.length)
- return name;
- switch (VZCatalogMajorVersion(image)) {
- case 12: return @"Monterey";
- case 13: return @"Ventura";
- case 14: return @"Sonoma";
- case 15: return @"Sequoia";
- case 26: return @"Tahoe";
- case 27: return @"Golden Gate";
- default: return nil;
- }
-}
-
-static NSString *VZCatalogDisplayName(NSDictionary *image, BOOL compact)
-{
- NSString *marketing = VZCatalogMarketingName(image);
- NSInteger major = VZCatalogMajorVersion(image);
- if (compact) {
- if (marketing.length && major >= 27)
- return [NSString stringWithFormat:@"macOS %ld %@",
- (long)major, marketing];
- if (marketing.length && major > 0)
- return [NSString stringWithFormat:@"macOS %@ %ld",
- marketing, (long)major];
- if (major > 0)
- return [NSString stringWithFormat:@"macOS %ld", (long)major];
- }
- NSString *version = VZCatalogString(image[@"version"]);
- if ([version hasSuffix:@".0"])
- version = [version substringToIndex:version.length - 2];
- if (marketing.length)
- return version.length
- ? [NSString stringWithFormat:@"macOS %@ %@", marketing, version]
- : [NSString stringWithFormat:@"macOS %@", marketing];
- NSString *name = VZCatalogString(image[@"name"]);
- if (name.length)
- return name;
- return version.length ? [NSString stringWithFormat:@"macOS %@", version]
- : @"macOS";
-}
-
static UIImage *VZCatalogIcon(NSDictionary *image)
{
NSString *name = [VZRestoreCatalog artworkNameForImage:image];
@@ -341,7 +281,8 @@ static UIImage *VZCatalogIcon(NSDictionary *image)
: self.versionImages[indexPath.row];
BOOL compactName = !self.showMinorReleases &&
!self.showDeveloperBetas && !self.showVersionDetails;
- NSString *displayName = VZCatalogDisplayName(image, compactName);
+ NSString *displayName = [VZRestoreCatalog displayNameForImage:image
+ compact:compactName];
cell.textLabel.text = compactName
? [NSString stringWithFormat:VZL(@"Install %@"), displayName]
: displayName;
diff --git a/VirtualMac/vz/host/VZRestoreCatalog.h b/VirtualMac/vz/host/VZRestoreCatalog.h
index 493ee5c..6b43cf1 100644
--- a/VirtualMac/vz/host/VZRestoreCatalog.h
+++ b/VirtualMac/vz/host/VZRestoreCatalog.h
@@ -9,8 +9,15 @@ NS_ASSUME_NONNULL_BEGIN
+ (NSArray<NSString *> *)orderedGroupsForImages:(NSArray<NSDictionary *> *)images;
+ (BOOL)isExperimentalImage:(NSDictionary *)image;
+ (BOOL)isUnsupportedImage:(NSDictionary *)image;
++ (BOOL)enablesOpenGLByDefaultForImage:(NSDictionary *)image;
++ (NSInteger)majorVersionForImage:(NSDictionary *)image;
++ (NSString *)versionForImage:(NSDictionary *)image;
++ (nullable NSString *)marketingNameForImage:(NSDictionary *)image;
++ (NSString *)displayNameForImage:(NSDictionary *)image compact:(BOOL)compact;
+ (NSString *)macOSNameForImage:(NSDictionary *)image;
+ (NSString *)artworkNameForImage:(NSDictionary *)image;
++ (NSString *)artworkNameForMachineName:(NSString *)name;
++ (NSString *)defaultVirtualMachineNameForRestoreImagePath:(NSString *)path;
@end
NS_ASSUME_NONNULL_END
diff --git a/VirtualMac/vz/host/VZRestoreCatalog.m b/VirtualMac/vz/host/VZRestoreCatalog.m
index cbc75b5..881b90d 100644
--- a/VirtualMac/vz/host/VZRestoreCatalog.m
+++ b/VirtualMac/vz/host/VZRestoreCatalog.m
@@ -8,21 +8,105 @@ static NSString *VZRestoreString(id value)
return [value isKindOfClass:NSString.class] ? value : @"";
}
-static NSString *VZRestoreVersionFromName(NSString *name)
+// Keep every release identity in one table. Catalog grouping, user-facing
+// names, restore-image inference, installer artwork, and library wallpaper
+// selection must all resolve through these records so a newly supported
+// macOS release cannot acquire conflicting names in different screens.
+static NSArray<NSDictionary *> *VZMacOSReleaseIdentities(void)
+{
+ static NSArray *identities;
+ static dispatch_once_t once;
+ dispatch_once(&once, ^{
+ identities = [@[
+ @{ @"major": @12, @"group": @"monterey",
+ @"marketing": @"Monterey", @"artwork": @"monterey",
+ @"aliases": @[@"monterey"] },
+ @{ @"major": @13, @"group": @"ventura",
+ @"marketing": @"Ventura", @"artwork": @"ventura",
+ @"aliases": @[@"ventura"] },
+ @{ @"major": @14, @"group": @"sonoma",
+ @"marketing": @"Sonoma", @"artwork": @"sonoma",
+ @"aliases": @[@"sonoma"] },
+ @{ @"major": @15, @"group": @"sequoia",
+ @"marketing": @"Sequoia", @"artwork": @"sequoia",
+ @"aliases": @[@"sequoia"] },
+ @{ @"major": @26, @"group": @"tahoe",
+ @"marketing": @"Tahoe", @"artwork": @"tahoe",
+ @"aliases": @[@"tahoe"] },
+ @{ @"major": @27, @"group": @"goldengate",
+ @"marketing": @"Golden Gate", @"artwork": @"golden-gate",
+ @"aliases": @[@"golden gate", @"golden-gate",
+ @"goldengate"] },
+ ] retain];
+ });
+ return identities;
+}
+
+static NSDictionary *VZMacOSIdentityForMajor(NSInteger major)
+{
+ for (NSDictionary *identity in VZMacOSReleaseIdentities())
+ if ([identity[@"major"] integerValue] == major)
+ return identity;
+ return nil;
+}
+
+static NSDictionary *VZMacOSIdentityForGroup(NSString *group)
+{
+ NSString *lower = group.lowercaseString;
+ for (NSDictionary *identity in VZMacOSReleaseIdentities()) {
+ if ([identity[@"group"] isEqualToString:lower])
+ return identity;
+ for (NSString *alias in identity[@"aliases"])
+ if ([alias isEqualToString:lower])
+ return identity;
+ }
+ return nil;
+}
+
+static NSDictionary *VZMacOSIdentityInText(NSString *text)
+{
+ NSString *lower = text.lowercaseString;
+ for (NSDictionary *identity in VZMacOSReleaseIdentities())
+ for (NSString *alias in identity[@"aliases"])
+ if ([lower containsString:alias])
+ return identity;
+ return nil;
+}
+
+static NSString *VZRestoreVersionFromText(NSString *text)
{
NSRegularExpression *expression = [NSRegularExpression
regularExpressionWithPattern:@"[0-9]+(?:\\.[0-9]+){0,2}"
options:0 error:nil];
- NSTextCheckingResult *match = [expression firstMatchInString:name
- options:0 range:NSMakeRange(0, name.length)];
- return match ? [name substringWithRange:match.range] : @"";
+ NSTextCheckingResult *match = [expression firstMatchInString:text
+ options:0 range:NSMakeRange(0, text.length)];
+ return match ? [text substringWithRange:match.range] : @"";
}
-static NSInteger VZRestoreMajorVersion(NSString *version)
+static NSInteger VZRestoreMajorVersionFromText(NSString *text)
{
+ NSDictionary *identity = VZMacOSIdentityInText(text);
+ if (identity)
+ return [identity[@"major"] integerValue];
+ NSString *version = VZRestoreVersionFromText(text);
NSScanner *scanner = [NSScanner scannerWithString:version];
NSInteger major = 0;
- return [scanner scanInteger:&major] ? major : 0;
+ if (![scanner scanInteger:&major] || major < 10 || major > 99)
+ return 0;
+ return major;
+}
+
+static NSDictionary *VZMacOSIdentityForImage(NSDictionary *image)
+{
+ NSDictionary *identity = VZMacOSIdentityForGroup(
+ VZRestoreString(image[@"group"]));
+ if (identity)
+ return identity;
+ NSInteger major = VZRestoreMajorVersionFromText(
+ VZRestoreString(image[@"version"]));
+ if (major == 0)
+ major = VZRestoreMajorVersionFromText(VZRestoreString(image[@"name"]));
+ return VZMacOSIdentityForMajor(major);
}
@implementation VZRestoreCatalog
@@ -50,13 +134,17 @@ static NSInteger VZRestoreMajorVersion(NSString *version)
NSString *name = VZRestoreString(image[@"name"]);
NSString *version = VZRestoreString(image[@"version"]);
if (!version.length)
- version = VZRestoreVersionFromName(name);
+ version = VZRestoreVersionFromText(name);
NSString *group = VZRestoreString(image[@"group"]).lowercaseString;
- if (!group.length) {
- NSInteger major = VZRestoreMajorVersion(version);
- group = major > 0
+ NSDictionary *groupIdentity = VZMacOSIdentityForGroup(group);
+ if (groupIdentity) {
+ group = groupIdentity[@"group"];
+ } else if (!group.length) {
+ NSInteger major = VZRestoreMajorVersionFromText(version);
+ NSDictionary *identity = VZMacOSIdentityForMajor(major);
+ group = identity[@"group"] ?: (major > 0
? [NSString stringWithFormat:@"macos-%ld", (long)major]
- : @"unknown";
+ : @"unknown");
}
NSString *channel = VZRestoreString(image[@"channel"]).lowercaseString;
if (![channel isEqualToString:@"regular"] &&
@@ -120,8 +208,10 @@ static NSInteger VZRestoreMajorVersion(NSString *version)
+ (NSArray<NSString *> *)orderedGroupsForImages:(NSArray<NSDictionary *> *)images
{
- NSArray *preferred = @[@"goldengate", @"tahoe", @"sequoia",
- @"sonoma", @"ventura", @"monterey"];
+ NSMutableArray *preferred = [NSMutableArray array];
+ for (NSDictionary *identity in
+ [VZMacOSReleaseIdentities() reverseObjectEnumerator])
+ [preferred addObject:identity[@"group"]];
NSMutableArray *result = [NSMutableArray array];
NSMutableSet *present = [NSMutableSet set];
for (NSDictionary *image in images) {
@@ -139,64 +229,108 @@ static NSInteger VZRestoreMajorVersion(NSString *version)
+ (BOOL)isExperimentalImage:(NSDictionary *)image
{
- NSString *group = VZRestoreString(image[@"group"]).lowercaseString;
- NSString *version = VZRestoreString(image[@"version"]);
- if (!version.length)
- version = VZRestoreVersionFromName(VZRestoreString(image[@"name"]));
- return [group isEqualToString:@"goldengate"] ||
- [group isEqualToString:@"golden-gate"] ||
- VZRestoreMajorVersion(version) >= 27;
+ return [self majorVersionForImage:image] >= 27;
}
+ (BOOL)isUnsupportedImage:(NSDictionary *)image
{
+ return [self majorVersionForImage:image] >= 28;
+}
+
++ (BOOL)enablesOpenGLByDefaultForImage:(NSDictionary *)image
+{
+ NSInteger major = [self majorVersionForImage:image];
+ return major == 0 || (major >= 14 && major < 28);
+}
+
++ (NSInteger)majorVersionForImage:(NSDictionary *)image
+{
+ NSDictionary *identity = VZMacOSIdentityForImage(image);
+ if (identity)
+ return [identity[@"major"] integerValue];
NSString *version = VZRestoreString(image[@"version"]);
if (!version.length)
- version = VZRestoreVersionFromName(VZRestoreString(image[@"name"]));
- return VZRestoreMajorVersion(version) >= 28;
+ version = VZRestoreString(image[@"name"]);
+ return VZRestoreMajorVersionFromText(version);
}
-+ (NSString *)macOSNameForImage:(NSDictionary *)image
++ (NSString *)versionForImage:(NSDictionary *)image
{
- NSString *group = VZRestoreString(image[@"group"]).lowercaseString;
NSString *version = VZRestoreString(image[@"version"]);
- if (!version.length)
- version = VZRestoreVersionFromName(VZRestoreString(image[@"name"]));
- NSInteger major = VZRestoreMajorVersion(version);
- NSDictionary *known = @{ @"monterey": @"Monterey",
- @"ventura": @"Ventura", @"sonoma": @"Sonoma",
- @"sequoia": @"Sequoia", @"tahoe": @"Tahoe",
- @"goldengate": @"Golden Gate", @"golden-gate": @"Golden Gate" };
- NSString *marketingName = known[group];
- if (!marketingName.length) {
- NSDictionary *byMajor = @{ @12: @"Monterey", @13: @"Ventura",
- @14: @"Sonoma", @15: @"Sequoia", @26: @"Tahoe",
- @27: @"Golden Gate" };
- marketingName = byMajor[@(major)];
+ return version.length ? version
+ : VZRestoreVersionFromText(VZRestoreString(image[@"name"]));
+}
+
++ (NSString *)marketingNameForImage:(NSDictionary *)image
+{
+ return VZMacOSIdentityForImage(image)[@"marketing"];
+}
+
++ (NSString *)displayNameForImage:(NSDictionary *)image compact:(BOOL)compact
+{
+ NSString *marketing = [self marketingNameForImage:image];
+ NSInteger major = [self majorVersionForImage:image];
+ if (compact) {
+ if (marketing.length && major >= 27)
+ return [NSString stringWithFormat:@"macOS %ld %@",
+ (long)major, marketing];
+ if (marketing.length && major > 0)
+ return [NSString stringWithFormat:@"macOS %@ %ld",
+ marketing, (long)major];
+ if (major > 0)
+ return [NSString stringWithFormat:@"macOS %ld", (long)major];
}
- if (marketingName.length)
- return [@"macOS " stringByAppendingString:marketingName];
+ NSString *version = [self versionForImage:image];
+ if ([version hasSuffix:@".0"])
+ version = [version substringToIndex:version.length - 2];
+ if (marketing.length)
+ return version.length
+ ? [NSString stringWithFormat:@"macOS %@ %@", marketing, version]
+ : [NSString stringWithFormat:@"macOS %@", marketing];
+ NSString *name = VZRestoreString(image[@"name"]);
+ if (name.length)
+ return name;
+ return version.length ? [NSString stringWithFormat:@"macOS %@", version]
+ : @"macOS";
+}
+
++ (NSString *)macOSNameForImage:(NSDictionary *)image
+{
+ NSString *marketing = [self marketingNameForImage:image];
+ NSInteger major = [self majorVersionForImage:image];
+ if (marketing.length)
+ return [@"macOS " stringByAppendingString:marketing];
return major > 0 ? [NSString stringWithFormat:@"macOS %ld", (long)major]
: @"macOS";
}
+ (NSString *)artworkNameForImage:(NSDictionary *)image
{
- NSString *group = VZRestoreString(image[@"group"]).lowercaseString;
- NSDictionary *known = @{ @"monterey": @"monterey",
- @"ventura": @"ventura", @"sonoma": @"sonoma",
- @"sequoia": @"sequoia", @"tahoe": @"tahoe",
- @"goldengate": @"golden-gate", @"golden-gate": @"golden-gate" };
- NSString *artwork = known[group];
- if (artwork.length)
- return artwork;
- NSString *version = VZRestoreString(image[@"version"]);
- if (!version.length)
- version = VZRestoreVersionFromName(VZRestoreString(image[@"name"]));
- NSDictionary *byMajor = @{ @12: @"monterey", @13: @"ventura",
- @14: @"sonoma", @15: @"sequoia", @26: @"tahoe",
- @27: @"golden-gate" };
- return byMajor[@(VZRestoreMajorVersion(version))] ?: @"ipsw";
+ return VZMacOSIdentityForImage(image)[@"artwork"] ?: @"ipsw";
+}
+
++ (NSString *)artworkNameForMachineName:(NSString *)name
+{
+ NSDictionary *identity = VZMacOSIdentityInText(name);
+ if (!identity)
+ identity = VZMacOSIdentityForMajor(
+ VZRestoreMajorVersionFromText(name));
+ return identity[@"artwork"] ?: @"tiger";
+}
+
++ (NSString *)defaultVirtualMachineNameForRestoreImagePath:(NSString *)path
+{
+ NSString *base = path.lastPathComponent.stringByDeletingPathExtension;
+ NSDictionary *identity = VZMacOSIdentityInText(base);
+ if (identity)
+ return identity[@"marketing"];
+ NSInteger major = VZRestoreMajorVersionFromText(base);
+ identity = VZMacOSIdentityForMajor(major);
+ if (identity)
+ return identity[@"marketing"];
+ if (major > 0)
+ return [NSString stringWithFormat:@"macOS %ld", (long)major];
+ return base.length ? base : @"macOS";
}
@end
diff --git a/VirtualMac/vz/host/VZSettingsViewController.m b/VirtualMac/vz/host/VZSettingsViewController.m
index b9bf8f1..480c882 100644
--- a/VirtualMac/vz/host/VZSettingsViewController.m
+++ b/VirtualMac/vz/host/VZSettingsViewController.m
@@ -176,7 +176,8 @@
NSArray *people = @[
@{@"name": @"nfzerox", @"url": @"https://github.com/nfzerox", @"image": @"nfzerox.png"},
@{@"name": @"qwqVictor", @"url": @"https://github.com/qwqVictor", @"image": @"qwqVictor.jpg"},
- @{@"name": @"jamesy0ung", @"url": @"https://github.com/jamesy0ung", @"image": @"jamesy0ung.jpg"}
+ @{@"name": @"jamesy0ung", @"url": @"https://github.com/jamesy0ung", @"image": @"jamesy0ung.jpg"},
+ @{@"name": @"ma-syu", @"url": @"https://github.com/ma-syu", @"image": @"ma-syu.jpg"}
];
cell = [self baseCellForTableView:tableView identifier:@"contributors"];
for (UIView *view in cell.contentView.subviews)
@@ -295,10 +296,19 @@
NSArray *titles = @[VZL(@"Fix Keyboard Crash"),
VZL(@"Fix External Display Scroll Direction"),
VZL(@"Debug Logging")];
- NSArray *keys = @[VZKeyboardCrashWorkaroundKey,
- VZExternalDisplayScrollFixKey,
- VZDebugLoggingKey];
cell.textLabel.text = titles[indexPath.row];
+ if (indexPath.row == 2) {
+ NSString *mode = [settings stringForKey:VZDebugLoggingKey];
+ cell.detailTextLabel.text =
+ [mode isEqualToString:VZDebugLoggingModeAlways]
+ ? VZL(@"Always On")
+ : [mode isEqualToString:VZDebugLoggingModeNextBoot]
+ ? VZL(@"On for Next Boot") : VZL(@"Off");
+ cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator;
+ return cell;
+ }
+ NSArray *keys = @[VZKeyboardCrashWorkaroundKey,
+ VZExternalDisplayScrollFixKey];
UISwitch *toggle = [[[UISwitch alloc] init] autorelease];
toggle.tag = 100 + indexPath.row;
toggle.on = [settings boolForKey:keys[indexPath.row]];
@@ -357,8 +367,7 @@
VZMultitaskingGestureSuppressionKey,
VZHomeIndicatorSuppressionKey];
NSArray *compatibilityKeys = @[VZKeyboardCrashWorkaroundKey,
- VZExternalDisplayScrollFixKey,
- VZDebugLoggingKey];
+ VZExternalDisplayScrollFixKey];
NSString *key = sender.tag >= 100 ? compatibilityKeys[sender.tag - 100]
: sender.tag >= 30 ? iPadOSKeys[sender.tag - 30]
: sender.tag == 20 ? VZKeyboardShortcutCaptureKey
@@ -366,6 +375,31 @@
[VZAppSettings.sharedSettings setBool:sender.on forKey:key];
}
+- (void)chooseDebugLoggingFrom:(UITableViewCell *)cell
+{
+ UIAlertController *picker = [UIAlertController
+ alertControllerWithTitle:VZL(@"Debug Logging") message:nil
+ preferredStyle:UIAlertControllerStyleActionSheet];
+ NSArray *titles = @[VZL(@"Off"), VZL(@"On for Next Boot"),
+ VZL(@"Always On")];
+ NSArray *values = @[VZDebugLoggingModeOff, VZDebugLoggingModeNextBoot,
+ VZDebugLoggingModeAlways];
+ for (NSUInteger index = 0; index < values.count; ++index) {
+ [picker addAction:[UIAlertAction actionWithTitle:titles[index]
+ style:UIAlertActionStyleDefault handler:^(UIAlertAction *action) {
+ (void)action;
+ [VZAppSettings.sharedSettings setString:values[index]
+ forKey:VZDebugLoggingKey];
+ [self.tableView reloadData];
+ }]];
+ }
+ [picker addAction:[UIAlertAction actionWithTitle:VZL(@"Cancel")
+ style:UIAlertActionStyleCancel handler:nil]];
+ picker.popoverPresentationController.sourceView = cell;
+ picker.popoverPresentationController.sourceRect = cell.bounds;
+ [self presentViewController:picker animated:YES completion:nil];
+}
+
- (void)chooseDisplayScalingFrom:(UITableViewCell *)cell
{
UIAlertController *picker = [UIAlertController
@@ -546,6 +580,8 @@
[self chooseDisplayScalingFrom:cell];
else if (indexPath.section == 0 && indexPath.row == 2)
[self chooseHUDVisibilityFrom:cell];
+ else if (indexPath.section == 3 && indexPath.row == 2)
+ [self chooseDebugLoggingFrom:cell];
else if (indexPath.section == 7 && indexPath.row == 0) {
UIPasteboard.generalPasteboard.string = VZVMLibraryPath();
UINotificationFeedbackGenerator *feedback = [[[UINotificationFeedbackGenerator alloc] init] autorelease];
diff --git a/VirtualMac/vz/host/VZSupport.m b/VirtualMac/vz/host/VZSupport.m
index e5b3f2e..1bae84d 100644
--- a/VirtualMac/vz/host/VZSupport.m
+++ b/VirtualMac/vz/host/VZSupport.m
@@ -2,9 +2,9 @@
#import "VZFailureDetailsViewController.h"
NSString * const VZGetHelpURLString =
- @"https://github.com/nfzerox/VirtualMacOniPad#what-if-i-encounter-crashes-bugs-or-other-issues";
+ @"https://nfzerox.github.io/virtual-mac/help/";
NSString * const VZReportIssueURLString =
- @"https://github.com/nfzerox/VirtualMacOniPad/issues?q=is%3Aissue";
+ @"https://nfzerox.github.io/virtual-mac/issues/";
void VZOpenSupportURL(NSString *urlString)
{
diff --git a/VirtualMac/vz/host/VZVMLibraryViewController.h b/VirtualMac/vz/host/VZVMLibraryViewController.h
index 78272d3..ff83e2d 100644
--- a/VirtualMac/vz/host/VZVMLibraryViewController.h
+++ b/VirtualMac/vz/host/VZVMLibraryViewController.h
@@ -3,6 +3,11 @@
NS_ASSUME_NONNULL_BEGIN
FOUNDATION_EXPORT NSString * const VZVMConfigurationFileName;
+FOUNDATION_EXPORT NSString * const VZApplePencilPressureTiltEnabledKey;
+FOUNDATION_EXPORT NSString * const VZVirtualMacGuestToolsEnabledKey;
+FOUNDATION_EXPORT NSString * const VZMetalBCSupportEnabledKey;
+FOUNDATION_EXPORT NSString * const VZOpenGLAccelerationEnabledKey;
+FOUNDATION_EXPORT NSString * const VZGuestToolsRemovalPendingKey;
NSDictionary *VZVMDefaultOptions(void);
NSDictionary *VZVMOptionsForBundle(NSString *bundlePath);
diff --git a/VirtualMac/vz/host/VZVMLibraryViewController.m b/VirtualMac/vz/host/VZVMLibraryViewController.m
index 95db06c..ecebba2 100644
--- a/VirtualMac/vz/host/VZVMLibraryViewController.m
+++ b/VirtualMac/vz/host/VZVMLibraryViewController.m
@@ -21,6 +21,13 @@
extern char **environ;
NSString * const VZVMConfigurationFileName = @"VirtualMac.plist";
+NSString * const VZApplePencilPressureTiltEnabledKey =
+ @"ApplePencilPressureTiltEnabled";
+NSString * const VZVirtualMacGuestToolsEnabledKey =
+ @"VirtualMacGuestToolsEnabled";
+NSString * const VZMetalBCSupportEnabledKey = @"MetalBCSupportEnabled";
+NSString * const VZOpenGLAccelerationEnabledKey = @"OpenGLAccelerationEnabled";
+NSString * const VZGuestToolsRemovalPendingKey = @"GuestToolsRemovalPending";
static NSString * const VZCPUCountKey = @"CPUCount";
static NSString * const VZMemorySizeKey = @"MemorySize";
@@ -302,33 +309,14 @@ static NSString *VZActiveInternetDisplayName(void)
BOOL VZRestoreImageUsesMontereyProfile(NSString *path)
{
- // Match both friendly bundle names and Apple's restore-image convention,
- // for example UniversalMac_12.6_21G115_Restore.ipsw. Requiring a
- // non-digit boundary avoids treating 112.x as Monterey.
- NSString *name = path.lastPathComponent.lowercaseString ?: @"";
- if ([name containsString:@"monterey"] ||
- [name containsString:@"macos 12"] ||
- [name containsString:@"macos_12"] ||
- [name containsString:@"macos-12"])
- return YES;
- NSRange search = NSMakeRange(0, name.length);
- while (search.length) {
- NSRange version = [name rangeOfString:@"12." options:0 range:search];
- if (version.location == NSNotFound)
- break;
- BOOL leftBoundary = version.location == 0 ||
- ![NSCharacterSet.decimalDigitCharacterSet
- characterIsMember:[name characterAtIndex:version.location - 1]];
- NSUInteger digitIndex = NSMaxRange(version);
- BOOL hasMinor = digitIndex < name.length &&
- [NSCharacterSet.decimalDigitCharacterSet
- characterIsMember:[name characterAtIndex:digitIndex]];
- if (leftBoundary && hasMinor)
- return YES;
- NSUInteger next = NSMaxRange(version);
- search = NSMakeRange(next, name.length - next);
- }
- return NO;
+ NSDictionary *image = @{ @"name": path.lastPathComponent ?: @"" };
+ return [VZRestoreCatalog majorVersionForImage:image] == 12;
+}
+
+static BOOL VZDefaultOpenGLAccelerationForRestoreImage(NSString *path)
+{
+ return [VZRestoreCatalog enablesOpenGLByDefaultForImage:
+ @{ @"name": path.lastPathComponent ?: @"" }];
}
static NSString *VZDefaultPointingDeviceForPath(NSString *path)
@@ -355,6 +343,11 @@ NSDictionary *VZVMDefaultOptions(void)
VZSharedDirectoriesKey: @[],
VZPointingDeviceKey: @"MacTrackpad",
VZKeyboardDeviceKey: @"MacKeyboard",
+ VZApplePencilPressureTiltEnabledKey: @NO,
+ VZVirtualMacGuestToolsEnabledKey: @YES,
+ VZMetalBCSupportEnabledKey: @YES,
+ VZOpenGLAccelerationEnabledKey: @YES,
+ VZGuestToolsRemovalPendingKey: @NO,
VZAudioOutputEnabledKey: @YES,
VZAudioInputEnabledKey: @YES,
VZVideoToolboxEnabledKey: @YES,
@@ -374,12 +367,17 @@ NSDictionary *VZVMOptionsForBundle(NSString *bundlePath)
[bundlePath stringByAppendingPathComponent:VZVMConfigurationFileName]];
if ([saved isKindOfClass:NSDictionary.class])
[options addEntriesFromDictionary:saved];
+ [options removeObjectForKey:@"EnhancedMetalOpenGLEnabled"];
if (![saved[VZPointingDeviceKey] isKindOfClass:NSString.class])
options[VZPointingDeviceKey] =
VZDefaultPointingDeviceForPath(bundlePath);
if (![saved[VZKeyboardDeviceKey] isKindOfClass:NSString.class])
options[VZKeyboardDeviceKey] =
VZDefaultKeyboardDeviceForPath(bundlePath);
+ if (![saved[VZOpenGLAccelerationEnabledKey]
+ isKindOfClass:NSNumber.class])
+ options[VZOpenGLAccelerationEnabledKey] =
+ @(VZDefaultOpenGLAccelerationForRestoreImage(bundlePath));
NSString *savedMAC = saved[VZMACAddressKey];
if (![savedMAC isKindOfClass:NSString.class] ||
[savedMAC isEqualToString:@"d6:a7:58:8e:78:d5"])
@@ -479,37 +477,6 @@ NSArray<NSDictionary *> *VZDiscoverVirtualMachines(void)
return machines;
}
-static NSString *VZMarketingNameForRestoreImage(NSURL *url)
-{
- NSString *base = url.lastPathComponent.stringByDeletingPathExtension;
- NSString *lower = base.lowercaseString;
- NSDictionary *named = @{
- @"monterey": @"Monterey", @"ventura": @"Ventura",
- @"sonoma": @"Sonoma", @"sequoia": @"Sequoia",
- @"tahoe": @"Tahoe", @"golden gate": @"Golden Gate",
- @"goldengate": @"Golden Gate",
- };
- for (NSString *token in named)
- if ([lower containsString:token])
- return named[token];
-
- NSRegularExpression *version = [NSRegularExpression
- regularExpressionWithPattern:@"(?:^|[^0-9])([0-9]{2})(?:\\.[0-9]+)(?:[^0-9]|$)"
- options:0 error:nil];
- NSTextCheckingResult *match = [version firstMatchInString:base options:0
- range:NSMakeRange(0, base.length)];
- if (match.numberOfRanges > 1) {
- NSString *major = [base substringWithRange:[match rangeAtIndex:1]];
- NSDictionary *marketing = @{
- @"12": @"Monterey", @"13": @"Ventura",
- @"14": @"Sonoma", @"15": @"Sequoia",
- @"26": @"Tahoe", @"27": @"Golden Gate",
- };
- return marketing[major] ?: [@"macOS " stringByAppendingString:major];
- }
- return base.length ? base : @"macOS";
-}
-
static UIImage *VZInstallerArtworkForImage(NSDictionary *image)
{
NSString *name = [VZRestoreCatalog artworkNameForImage:image];
@@ -852,15 +819,15 @@ void VZRemovePaths(NSArray<NSString *> *paths)
if (section == 1)
return 1 + [self.options[VZSharedDirectoriesKey] count];
if (section == 2)
- return self.bundlePath ? 3 : 2;
+ return self.bundlePath ? 4 : 3;
if (section == 3)
- return 2;
+ return 3;
if (section == 4)
return [VZDisplaySelectionForOptions(self.options)
isEqualToString:@"Custom"]
? 4 : 1;
if (section == 5)
- return 3;
+ return 5;
return self.bundlePath && self.running ? 0 : 1;
}
@@ -875,15 +842,6 @@ void VZRemovePaths(NSArray<NSString *> *paths)
VZL(@"Audio and Acceleration")][section];
}
-- (NSString *)tableView:(UITableView *)tableView
- titleForFooterInSection:(NSInteger)section
-{
- (void)tableView;
- if (self.running && section == 0)
- return VZL(@"Configuration changes take effect after the Virtual Mac is shut down and started again.");
- return nil;
-}
-
- (UITableViewCell *)tableView:(UITableView *)tableView
cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
@@ -947,6 +905,16 @@ void VZRemovePaths(NSArray<NSString *> *paths)
cell.detailTextLabel.text = nil;
} else if (indexPath.section == 2 &&
indexPath.row == (self.bundlePath ? 1 : 0)) {
+ cell.textLabel.text = VZL(@"Virtual Mac Guest Tools");
+ UISwitch *toggle = [[[UISwitch alloc] init] autorelease];
+ toggle.on = [self.options[VZVirtualMacGuestToolsEnabledKey] boolValue];
+ [toggle addTarget:self action:@selector(guestToolsChanged:)
+ forControlEvents:UIControlEventValueChanged];
+ cell.accessoryView = toggle;
+ cell.accessoryType = UITableViewCellAccessoryNone;
+ cell.detailTextLabel.text = nil;
+ } else if (indexPath.section == 2 &&
+ indexPath.row == (self.bundlePath ? 2 : 1)) {
cell.textLabel.text = VZL(@"Network");
NSString *mode = VZEffectiveNetworkMode(self.options);
NSString *interface = self.options[VZBridgeInterfaceKey];
@@ -966,11 +934,21 @@ void VZRemovePaths(NSArray<NSString *> *paths)
cell.detailTextLabel.text =
[self.options[VZKeyboardDeviceKey] isEqualToString:@"USBKeyboard"]
? VZL(@"USB Keyboard") : VZL(@"Mac Keyboard");
- } else if (indexPath.section == 3) {
+ } else if (indexPath.section == 3 && indexPath.row == 1) {
cell.textLabel.text = VZL(@"Pointing Device");
cell.detailTextLabel.text =
[self.options[VZPointingDeviceKey] isEqualToString:@"USBMouse"]
? VZL(@"USB Mouse") : VZL(@"Mac Trackpad");
+ } else if (indexPath.section == 3) {
+ cell.textLabel.text = VZL(@"Apple Pencil Pressure and Tilt");
+ UISwitch *toggle = [[[UISwitch alloc] init] autorelease];
+ toggle.on = [self.options[VZApplePencilPressureTiltEnabledKey]
+ boolValue];
+ [toggle addTarget:self action:@selector(pencilRelayChanged:)
+ forControlEvents:UIControlEventValueChanged];
+ cell.accessoryView = toggle;
+ cell.accessoryType = UITableViewCellAccessoryNone;
+ cell.detailTextLabel.text = nil;
} else if (indexPath.section == 4 && indexPath.row == 0) {
cell.textLabel.text = VZL(@"Resolution");
cell.detailTextLabel.text = VZDisplaySelectionTitle(self.options);
@@ -983,12 +961,21 @@ void VZRemovePaths(NSArray<NSString *> *paths)
stringValue];
} else if (indexPath.section == 5) {
NSArray *names = @[VZL(@"Audio Output"), VZL(@"Microphone Input"),
+ VZL(@"Metal BC Support"),
+ VZL(@"OpenGL Acceleration"),
VZL(@"Video Encoding and Decoding Acceleration")];
NSArray *keys = @[VZAudioOutputEnabledKey, VZAudioInputEnabledKey,
+ VZMetalBCSupportEnabledKey,
+ VZOpenGLAccelerationEnabledKey,
VZVideoToolboxEnabledKey];
cell.textLabel.text = names[indexPath.row];
UISwitch *toggle = [[[UISwitch alloc] init] autorelease];
- toggle.on = [self.options[keys[indexPath.row]] boolValue];
+ BOOL guestTools = [self.options[VZVirtualMacGuestToolsEnabledKey]
+ boolValue];
+ BOOL isOpenGL = indexPath.row == 3;
+ toggle.on = [self.options[keys[indexPath.row]] boolValue] &&
+ (!isOpenGL || guestTools);
+ toggle.enabled = YES;
toggle.tag = indexPath.row;
[toggle addTarget:self action:@selector(deviceToggleChanged:)
forControlEvents:UIControlEventValueChanged];
@@ -1303,7 +1290,7 @@ void VZRemovePaths(NSArray<NSString *> *paths)
[self presentViewController:sheet animated:YES completion:nil];
}
} else if (indexPath.section == 2 &&
- indexPath.row == (self.bundlePath ? 1 : 0)) {
+ indexPath.row == (self.bundlePath ? 2 : 1)) {
UIAlertController *sheet = [UIAlertController
alertControllerWithTitle:VZL(@"Network Attachment") message:nil
preferredStyle:UIAlertControllerStyleActionSheet];
@@ -1335,7 +1322,7 @@ void VZRemovePaths(NSArray<NSString *> *paths)
[tableView cellForRowAtIndexPath:indexPath];
[self presentViewController:sheet animated:YES completion:nil];
} else if (indexPath.section == 2 &&
- indexPath.row == (self.bundlePath ? 2 : 1)) {
+ indexPath.row == (self.bundlePath ? 3 : 2)) {
[self editMACAddress];
} else if (indexPath.section == 3 && indexPath.row == 0) {
[self chooseTitle:VZL(@"Keyboard") message:
@@ -1393,12 +1380,114 @@ void VZRemovePaths(NSArray<NSString *> *paths)
self.options[VZBootRecoveryKey] = @(sender.on);
}
+- (UISwitch *)switchForSection:(NSInteger)section row:(NSInteger)row
+{
+ NSIndexPath *indexPath = [NSIndexPath indexPathForRow:row
+ inSection:section];
+ UIView *accessory = [self.tableView cellForRowAtIndexPath:indexPath]
+ .accessoryView;
+ return [accessory isKindOfClass:UISwitch.class]
+ ? (UISwitch *)accessory : nil;
+}
+
+- (void)setGuestToolsSwitchOn:(BOOL)guestToolsOn
+ openGLOn:(BOOL)openGLOn
+ animated:(BOOL)animated
+{
+ NSInteger guestToolsRow = self.bundlePath ? 1 : 0;
+ [[self switchForSection:2 row:guestToolsRow]
+ setOn:guestToolsOn animated:animated];
+ [[self switchForSection:5 row:3]
+ setOn:openGLOn animated:animated];
+}
+
+- (void)guestToolsChanged:(UISwitch *)sender
+{
+ if (sender.on || ![self.options[VZOpenGLAccelerationEnabledKey] boolValue]) {
+ self.options[VZVirtualMacGuestToolsEnabledKey] = @(sender.on);
+ self.options[VZGuestToolsRemovalPendingKey] = @(!sender.on);
+ [self.tableView reloadSections:[NSIndexSet indexSetWithIndex:5]
+ withRowAnimation:UITableViewRowAnimationNone];
+ return;
+ }
+ // Keep the model unchanged until the dependency change is confirmed, but
+ // leave both controls in the state the user requested while the alert is
+ // visible. Cancel animates the pair back together.
+ [self setGuestToolsSwitchOn:NO openGLOn:NO animated:YES];
+ NSString *dependencyMessage = VZL(@"Because OpenGL acceleration requires Virtual Mac guest tools, turning off Virtual Mac guest tools will also turn off OpenGL acceleration. Apps such as Final Cut Pro mostly use Metal, but they check for OpenGL capabilities in order to launch.");
+ for (NSString *boundary in @[@". ", @"。", @"।"]) {
+ NSRange range = [dependencyMessage rangeOfString:boundary];
+ if (range.location == NSNotFound)
+ continue;
+ NSString *prefix = [dependencyMessage substringToIndex:
+ NSMaxRange(range) - ([boundary hasSuffix:@" "] ? 1 : 0)];
+ NSString *suffix = [dependencyMessage substringFromIndex:
+ NSMaxRange(range)];
+ dependencyMessage = [NSString stringWithFormat:@"%@\n\n%@",
+ prefix, suffix];
+ break;
+ }
+ UIAlertController *alert = [UIAlertController
+ alertControllerWithTitle:VZL(@"Turn Off Virtual Mac Guest Tools?")
+ message:dependencyMessage
+ preferredStyle:UIAlertControllerStyleAlert];
+ [alert addAction:[UIAlertAction actionWithTitle:VZL(@"Cancel")
+ style:UIAlertActionStyleCancel handler:^(UIAlertAction *action) {
+ (void)action;
+ [self setGuestToolsSwitchOn:YES openGLOn:YES animated:YES];
+ }]];
+ [alert addAction:[UIAlertAction actionWithTitle:VZL(@"OK")
+ style:UIAlertActionStyleDefault handler:^(UIAlertAction *action) {
+ (void)action;
+ self.options[VZVirtualMacGuestToolsEnabledKey] = @NO;
+ self.options[VZGuestToolsRemovalPendingKey] = @YES;
+ [self setGuestToolsSwitchOn:NO openGLOn:NO animated:YES];
+ }]];
+ [self presentViewController:alert animated:YES completion:nil];
+}
+
- (void)deviceToggleChanged:(UISwitch *)sender
{
NSArray *keys = @[VZAudioOutputEnabledKey, VZAudioInputEnabledKey,
+ VZMetalBCSupportEnabledKey,
+ VZOpenGLAccelerationEnabledKey,
VZVideoToolboxEnabledKey];
- if (sender.tag < (NSInteger)keys.count)
- self.options[keys[sender.tag]] = @(sender.on);
+ if (sender.tag >= (NSInteger)keys.count)
+ return;
+ if (sender.tag == 3 && sender.on &&
+ ![self.options[VZVirtualMacGuestToolsEnabledKey] boolValue]) {
+ self.options[VZVirtualMacGuestToolsEnabledKey] = @YES;
+ self.options[VZGuestToolsRemovalPendingKey] = @NO;
+ [self setGuestToolsSwitchOn:YES openGLOn:YES animated:YES];
+ }
+ self.options[keys[sender.tag]] = @(sender.on);
+}
+
+- (void)pencilRelayChanged:(UISwitch *)sender
+{
+ self.options[VZApplePencilPressureTiltEnabledKey] = @(sender.on);
+ if (!sender.on)
+ return;
+
+ NSString *name = VZSanitizedVMName(self.vmName);
+ NSString *message = [NSString stringWithFormat:
+ VZL(@"To use Apple Pencil pressure and tilt, download pencil-probe in %@ Virtual Mac."),
+ name];
+ UIAlertController *alert = [UIAlertController
+ alertControllerWithTitle:VZL(@"Apple Pencil Pressure and Tilt")
+ message:message
+ preferredStyle:UIAlertControllerStyleAlert];
+ [alert addAction:[UIAlertAction actionWithTitle:VZL(@"Learn More")
+ style:UIAlertActionStyleDefault handler:^(UIAlertAction *action) {
+ (void)action;
+ NSURL *url = [NSURL URLWithString:
+ @"https://github.com/ma-syu/pencil-probe"];
+ [UIApplication.sharedApplication openURL:url options:@{}
+ completionHandler:nil];
+ }]];
+ [alert addAction:[UIAlertAction actionWithTitle:VZL(@"OK")
+ style:UIAlertActionStyleCancel handler:nil]];
+ [self presentViewController:alert animated:YES completion:nil];
}
- (void)done:(id)sender
@@ -2279,7 +2368,8 @@ static const CGFloat VZLibraryHorizontalInset = 24.0;
options[VZCPUCountKey], @([options[VZMemorySizeKey] unsignedLongLongValue] >> 30),
(unsigned long long)(storage >> 30), VZNetworkModeDisplayName(options),
[machine[@"legacy"] boolValue] ? VZL(@" · Legacy") : @""];
- NSString *wallpaperName = [self wallpaperNameForMachineName:machine[@"name"]];
+ NSString *wallpaperName = [VZRestoreCatalog
+ artworkNameForMachineName:machine[@"name"]];
NSString *art = [[NSBundle mainBundle] pathForResource:wallpaperName
ofType:@"jpg" inDirectory:@"Wallpapers"];
image.image = [UIImage imageWithContentsOfFile:art];
@@ -2372,19 +2462,6 @@ static const CGFloat VZLibraryHorizontalInset = 24.0;
return cell;
}
-- (NSString *)wallpaperNameForMachineName:(NSString *)name
-{
- NSString *lower = name.lowercaseString;
- for (NSString *candidate in @[@"monterey", @"ventura", @"sonoma", @"sequoia", @"tahoe", @"golden-gate"])
- if ([lower containsString:[candidate stringByReplacingOccurrencesOfString:@"-" withString:@" "]] ||
- [lower containsString:[candidate stringByReplacingOccurrencesOfString:@"-" withString:@""]]) return candidate;
- NSDictionary *versions = @{@"macos 12":@"monterey", @"macos 13":@"ventura",
- @"macos 14":@"sonoma", @"macos 15":@"sequoia", @"macos 26":@"tahoe",
- @"macos 27":@"golden-gate"};
- for (NSString *token in versions) if ([lower containsString:token]) return versions[token];
- return @"tiger";
-}
-
- (CGSize)collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout *)layout
sizeForItemAtIndexPath:(NSIndexPath *)indexPath
{
@@ -2521,9 +2598,11 @@ static const CGFloat VZLibraryHorizontalInset = 24.0;
{
self.pendingIPSWURL = url;
NSString *suggested = VZUniqueVMName(
- VZMarketingNameForRestoreImage(url));
+ [VZRestoreCatalog defaultVirtualMachineNameForRestoreImagePath:url.path]);
NSMutableDictionary *defaults = [NSMutableDictionary
dictionaryWithDictionary:VZVMDefaultOptions()];
+ defaults[VZOpenGLAccelerationEnabledKey] =
+ @(VZDefaultOpenGLAccelerationForRestoreImage(url.path));
defaults[VZPointingDeviceKey] = VZDefaultPointingDeviceForPath(url.path);
defaults[VZKeyboardDeviceKey] = VZDefaultKeyboardDeviceForPath(url.path);
VZVMConfigurationViewController *configuration =
@@ -2682,6 +2761,8 @@ static const CGFloat VZLibraryHorizontalInset = 24.0;
VZDefaultPointingDeviceForPath(remoteURL.path);
defaults[VZKeyboardDeviceKey] =
VZDefaultKeyboardDeviceForPath(remoteURL.path);
+ defaults[VZOpenGLAccelerationEnabledKey] =
+ @([VZRestoreCatalog enablesOpenGLByDefaultForImage:image]);
VZVMConfigurationViewController *configuration =
[[[VZVMConfigurationViewController alloc]
initWithBundlePath:nil options:defaults
@@ -2699,7 +2780,8 @@ static const CGFloat VZLibraryHorizontalInset = 24.0;
// Show both the marketing name and any uniqueness suffix while the user
// configures the Virtual Mac, before its bundle is created.
configuration.vmName = VZUniqueVMName(
- VZMarketingNameForRestoreImage(remoteURL) ?: image[@"name"]);
+ [VZRestoreCatalog defaultVirtualMachineNameForRestoreImagePath:
+ remoteURL.path] ?: image[@"name"]);
configuration.showsExperimentalInstallWarning =
[VZRestoreCatalog isExperimentalImage:image];
configuration.showsUnsupportedInstallWarning =
@@ -2751,8 +2833,7 @@ static const CGFloat VZLibraryHorizontalInset = 24.0;
[[[VZProgressViewController alloc] initWithTitle:VZL(@"Downloading macOS")] autorelease];
self.downloadController.heroImage = VZInstallerArtworkForImage(image);
NSString *macOSName = [VZRestoreCatalog macOSNameForImage:image];
- NSString *version = [image[@"version"] isKindOfClass:NSString.class]
- ? image[@"version"] : @"";
+ NSString *version = [VZRestoreCatalog versionForImage:image];
if ([version hasSuffix:@".0"])
version = [version substringToIndex:version.length - 2];
BOOL hasKnownArtwork = ![[VZRestoreCatalog artworkNameForImage:image]
diff --git a/VirtualMac/vz/host/VirtualMac-Info.plist b/VirtualMac/vz/host/VirtualMac-Info.plist
index b59d2eb..75c6ee8 100644
--- a/VirtualMac/vz/host/VirtualMac-Info.plist
+++ b/VirtualMac/vz/host/VirtualMac-Info.plist
@@ -51,7 +51,7 @@
</dict>
</array>
<key>CFBundleShortVersionString</key>
- <string>1.1.2</string>
+ <string>1.2</string>
<key>CFBundleVersion</key>
<string>1</string>
<key>LSRequiresIPhoneOS</key>
diff --git a/VirtualMac/vz/host/VirtualMacApp.m b/VirtualMac/vz/host/VirtualMacApp.m
index 57b43e3..fe7bf9c 100644
--- a/VirtualMac/vz/host/VirtualMacApp.m
+++ b/VirtualMac/vz/host/VirtualMacApp.m
@@ -13,11 +13,14 @@
#import "VZSettingsViewController.h"
#import "VZLocalization.h"
#import "VZSupport.h"
+#import "VZGuestTools.h"
+#import "VZGuestRuntimePolicy.h"
#include <dlfcn.h>
#include <objc/runtime.h>
#include <objc/message.h>
#include <mach-o/loader.h>
#include <errno.h>
+#include <fcntl.h>
#include <pthread.h>
#include <sys/socket.h>
#include <netinet/in.h>
@@ -28,6 +31,52 @@
#include <unistd.h>
extern char **environ;
+extern int memorystatus_control(uint32_t command, int32_t pid,
+ uint32_t flags, void *buffer,
+ size_t buffer_size);
+
+typedef struct {
+ int32_t priority;
+ uint64_t user_data;
+} VZMemorystatusPriorityProperties;
+
+static BOOL gVMJetsamProtectionActive;
+
+static void setVMJetsamProtection(BOOL active)
+{
+ if (gVMJetsamProtectionActive == active)
+ return;
+
+ // The extracted VMM runs as a priority-180 system service on iPadOS 16,
+ // while RunningBoard normally places the UIKit host in foreground band
+ // 100. Under a real VM-page shortage that ordering kills the lightweight
+ // app first and only then tears down its multi-gigabyte VMM. Keep the UI
+ // one band above the VMM while a guest is running, so jetsam reclaims the
+ // process that owns the memory and the surviving app can report the stop.
+ // XNU 20/21 use the same bands before their iPadOS 16 tenfold renumbering.
+ // https://github.com/apple-oss-distributions/xnu/blob/xnu-7195.141.2/bsd/sys/kern_memorystatus.h
+ // https://github.com/apple-oss-distributions/xnu/blob/xnu-8019.41.5/bsd/sys/kern_memorystatus.h
+ // https://github.com/apple-oss-distributions/xnu/blob/xnu-8792.81.2/bsd/sys/kern_memorystatus.h
+ NSInteger hostMajor = NSProcessInfo.processInfo.operatingSystemVersion.majorVersion;
+ VZMemorystatusPriorityProperties properties = {
+ .priority = active ? (hostMajor >= 16 ? 190 : 19)
+ : 0,
+ .user_data = 0,
+ };
+ const uint32_t setPriorityProperties = 2;
+ const uint32_t priorityIsAssertion = 1;
+ errno = 0;
+ // Clear only our assertion band when the VM stops. RunningBoard retains
+ // ownership of the app's ordinary requested foreground/background band.
+ int result = memorystatus_control(setPriorityProperties, getpid(),
+ priorityIsAssertion, &properties, sizeof(properties));
+ int error = errno;
+ printf("[VirtualMac] VM jetsam protection active=%d priority=%d "
+ "result=%d errno=%d\n", active, properties.priority,
+ result, error);
+ if (result == 0)
+ gVMJetsamProtectionActive = active;
+}
static id gVirtualMachine;
static id gVirtualMachineDelegate;
@@ -61,6 +110,7 @@ static BOOL gFixExternalDisplayScrollDirection;
static CGFloat gScrollingSpeed = 0.25;
static BOOL gRootHideInformationVisible;
static BOOL gRootHidePivotalActionApproved;
+static BOOL gVideoMemoryAlertPresented;
static NSMutableArray *gRootHideInformationCompletions;
// Globe-held state, tracked from the Darwin relay (the tweak reports the
// globe's raw HID press, which is reliable and prompt). The tweak translates
@@ -996,6 +1046,49 @@ static void installShellShortcutRelay(void) {
}
}
+static void videoMemoryExhaustedNotification(CFNotificationCenterRef center,
+ void *observer,
+ CFStringRef name,
+ const void *object,
+ CFDictionaryRef userInfo) {
+ (void)center; (void)observer; (void)name; (void)object; (void)userInfo;
+ dispatch_async(dispatch_get_main_queue(), ^{
+ if (!gVirtualMachine || gVideoMemoryAlertPresented)
+ return;
+ gVideoMemoryAlertPresented = YES;
+ UIWindow *window = nil;
+ for (UIWindow *candidate in UIApplication.sharedApplication.windows) {
+ if (candidate.isKeyWindow) { window = candidate; break; }
+ }
+ window = window ?: UIApplication.sharedApplication.windows.firstObject;
+ UIViewController *controller = window.rootViewController;
+ NSString *path = nil;
+ @try { path = [controller valueForKey:@"activeVMBundlePath"]; }
+ @catch (__unused NSException *exception) {}
+ NSString *virtualMacName = path.lastPathComponent.stringByDeletingPathExtension;
+ if (!virtualMacName.length)
+ virtualMacName = VZL(@"Virtual Mac");
+ UIAlertController *alert = [UIAlertController
+ alertControllerWithTitle:VZL(@"Out of Video Memory")
+ message:[NSString stringWithFormat:
+ VZL(@"%@ is out of video memory. macOS may appear frozen."),
+ virtualMacName]
+ preferredStyle:UIAlertControllerStyleAlert];
+ [alert addAction:[UIAlertAction actionWithTitle:VZL(@"OK")
+ style:UIAlertActionStyleDefault handler:nil]];
+ [VZTopPresentedController(controller)
+ presentViewController:alert animated:YES completion:nil];
+ });
+}
+
+static void installVideoMemoryWarningRelay(void) {
+ CFNotificationCenterAddObserver(
+ CFNotificationCenterGetDarwinNotifyCenter(), NULL,
+ videoMemoryExhaustedNotification,
+ CFSTR("com.mac.virtual.video-memory-exhausted"), NULL,
+ CFNotificationSuspensionBehaviorDeliverImmediately);
+}
+
@interface NSObject (VZScrollEventSPI)
- (CGVector)nonAcceleratedDelta;
- (CGVector)acceleratedDelta;
@@ -1052,6 +1145,8 @@ static void sendSoftwareKey(UIKeyboardHIDUsage usage, BOOL shifted);
BOOL _vzTwoFingerCandidate;
BOOL _vzLongPressConsumed;
BOOL _vzDirectPrimaryPressed;
+ BOOL _vzPencilRelayStrokeClaimed;
+ BOOL _vzPencilRelayStrokeConnected;
}
@end
@@ -1710,7 +1805,7 @@ static void sendSoftwareChord(UIKeyboardHIDUsage usage, BOOL shifted,
// address or network configuration is needed — vsock is VM-internal.
static const uint32_t kPencilVsockPort = 9949;
-static const int kPencilPacketSize = 21;
+enum { kPencilPacketSize = 21 };
// Wire protocol event types. Must match PencilEventType in pencil-probe.
static const uint8_t kPencilEventPoint = 0;
@@ -1718,11 +1813,13 @@ static const uint8_t kPencilEventProximityEnter = 1;
static const uint8_t kPencilEventProximityLeave = 2;
// Wire protocol byte offsets. Must match PencilPacket offsets in pencil-probe.
-static const int kPencilOffsetPressure = 1;
-static const int kPencilOffsetX = 5;
-static const int kPencilOffsetY = 9;
-static const int kPencilOffsetAltitude = 13;
-static const int kPencilOffsetAzimuth = 17;
+enum {
+ kPencilOffsetPressure = 1,
+ kPencilOffsetX = 5,
+ kPencilOffsetY = 9,
+ kPencilOffsetAltitude = 13,
+ kPencilOffsetAzimuth = 17,
+};
// VZVirtioSocketDevice from the running VM.
// Set after VM start via pencilVsockSetup().
@@ -1732,37 +1829,6 @@ static id gPencilVsockDevice = nil;
// its file descriptor; releasing it invalidates the fd.
static id gPencilVsockConnection = nil;
-// --- Pencil vsock relay logging ---
-//
-// Write timestamped log entries to a fixed path so behavior can be
-// reviewed after testing. GUI apps on iOS don't reliably send printf
-// output anywhere accessible, so we append to a file instead.
-
-#include <sys/time.h>
-#include <stdarg.h>
-
-static void pencilLog(const char *fmt, ...) {
- static FILE *logFile = NULL;
- if (!logFile) {
- logFile = fopen("/var/mobile/Documents/pencil-vsock.log", "a");
- if (!logFile) return;
- setlinebuf(logFile);
- }
- struct timeval tv;
- gettimeofday(&tv, NULL);
- struct tm *tm = localtime(&tv.tv_sec);
- fprintf(logFile, "%02d:%02d:%02d.%03d ",
- tm->tm_hour, tm->tm_min, tm->tm_sec,
- (int)(tv.tv_usec / 1000));
- va_list ap;
- va_start(ap, fmt);
- vfprintf(logFile, fmt, ap);
- va_end(ap);
- va_start(ap, fmt);
- vprintf(fmt, ap);
- va_end(ap);
-}
-
// --- Pencil vsock relay ---
//
// Virtualization.framework only exposes mouse events to the guest —
@@ -1786,6 +1852,8 @@ static void pencilLog(const char *fmt, ...) {
// them to CGEvent tiltX/tiltY.
static int gPencilVsockFd = -1;
+static BOOL gPencilRelayEnabled;
+static uint64_t gPencilConnectionGeneration;
// After a failed connect, suppress retries for this many seconds.
// Without this, every Pencil touch would trigger an async connect
@@ -1797,16 +1865,37 @@ static const CFTimeInterval kPencilRetryInterval = 5.0;
// (VZVirtioSocketDevice.connectToPort:completionHandler:), so
// multiple touch events could trigger concurrent calls.
static volatile int gPencilVsockConnecting = 0;
+static void pencilVsockConnect(void);
+
+static BOOL pencilRelayEnabled(void) {
+ return __atomic_load_n(&gPencilRelayEnabled, __ATOMIC_ACQUIRE);
+}
+
+static void pencilVsockReset(void) {
+ __atomic_store_n(&gPencilRelayEnabled, NO, __ATOMIC_RELEASE);
+ __atomic_add_fetch(&gPencilConnectionGeneration, 1, __ATOMIC_ACQ_REL);
+ gPencilVsockFd = -1;
+ gPencilVsockConnecting = 0;
+ gPencilRetryAfter = 0;
+ [gPencilVsockConnection release];
+ gPencilVsockConnection = nil;
+ [gPencilVsockDevice release];
+ gPencilVsockDevice = nil;
+}
/// Grab the VZVirtioSocketDevice from the running VM.
/// Call once after the VM starts successfully.
static void pencilVsockSetup(void) {
+ if (!pencilRelayEnabled())
+ return;
NSArray *devices = m0(gVirtualMachine, "socketDevices");
if (devices.count > 0) {
+ [gPencilVsockDevice release];
gPencilVsockDevice = [devices[0] retain];
- pencilLog("[Pencil] vsock device found, relay enabled\n");
+ printf("[VirtualMac] Pencil vsock device ready\n");
+ pencilVsockConnect();
} else {
- pencilLog("[Pencil] no vsock device, relay disabled\n");
+ printf("[VirtualMac] Pencil relay enabled but no vsock device found\n");
}
}
@@ -1819,33 +1908,42 @@ static void pencilVsockConnect(void) {
if (now < gPencilRetryAfter) return;
gPencilVsockConnecting = 1;
+ uint64_t generation = __atomic_load_n(
+ &gPencilConnectionGeneration, __ATOMIC_ACQUIRE);
void (^handler)(id, NSError *) = ^(id connection, NSError *error) {
- if (error || !connection) {
- pencilLog("[Pencil] vsock connect port %u failed: %s\n",
- kPencilVsockPort,
- error ? error.localizedDescription.UTF8String
- : "nil connection");
- gPencilRetryAfter = CFAbsoluteTimeGetCurrent()
- + kPencilRetryInterval;
+ dispatch_async(dispatch_get_main_queue(), ^{
+ if (!pencilRelayEnabled() || generation != __atomic_load_n(
+ &gPencilConnectionGeneration, __ATOMIC_ACQUIRE))
+ return;
+ if (error || !connection) {
+ printf("[VirtualMac] Pencil vsock connect port %u failed: %s\n",
+ kPencilVsockPort,
+ error ? error.localizedDescription.UTF8String
+ : "nil connection");
+ gPencilRetryAfter = CFAbsoluteTimeGetCurrent()
+ + kPencilRetryInterval;
+ gPencilVsockConnecting = 0;
+ return;
+ }
+ int fd = (int)((NSInteger(*)(id, SEL))objc_msgSend)(
+ connection, S("fileDescriptor"));
+
+ // Never let a stalled guest receiver block UIKit's Pencil event
+ // path. The relay traffic is only 21 bytes per sample.
+ int flags = fcntl(fd, F_GETFL, 0);
+ if (flags >= 0)
+ fcntl(fd, F_SETFL, flags | O_NONBLOCK);
+ int nsp = 1;
+ setsockopt(fd, SOL_SOCKET, SO_NOSIGPIPE, &nsp, sizeof(nsp));
+
+ [gPencilVsockConnection release];
+ gPencilVsockConnection = [connection retain];
+ gPencilVsockFd = fd;
gPencilVsockConnecting = 0;
- return;
- }
- int fd = (int)((NSInteger(*)(id, SEL))objc_msgSend)(
- connection, S("fileDescriptor"));
-
- // SO_NOSIGPIPE: prevent SIGPIPE when the relay disconnects.
- int nsp = 1;
- setsockopt(fd, SOL_SOCKET, SO_NOSIGPIPE, &nsp, sizeof(nsp));
-
- // Retain the connection object — releasing it invalidates
- // the file descriptor.
- if (gPencilVsockConnection) [gPencilVsockConnection release];
- gPencilVsockConnection = [connection retain];
- gPencilVsockFd = fd;
- gPencilVsockConnecting = 0;
- pencilLog("[Pencil] vsock connected port %u fd=%d\n",
- kPencilVsockPort, fd);
+ printf("[VirtualMac] Pencil vsock connected port %u fd=%d\n",
+ kPencilVsockPort, fd);
+ });
};
((void(*)(id, SEL, uint32_t, id))objc_msgSend)(
@@ -1871,6 +1969,7 @@ static void pencilWriteLE32(uint8_t *buf, float value) {
static bool pencilVsockSend(uint8_t type, float pressure,
float nx, float ny,
float altitude, float azimuth) {
+ if (!pencilRelayEnabled()) return false;
if (gPencilVsockFd < 0) pencilVsockConnect();
// Connect is async, so the fd may not be ready yet on the first
// touch. Fall through to mouse mode until the connection completes.
@@ -1884,15 +1983,13 @@ static bool pencilVsockSend(uint8_t type, float pressure,
pencilWriteLE32(buf + kPencilOffsetAltitude, altitude);
pencilWriteLE32(buf + kPencilOffsetAzimuth, azimuth);
- ssize_t n = write(gPencilVsockFd, buf, kPencilPacketSize);
- if (n <= 0) {
- pencilLog("[Pencil] vsock write failed, disconnecting\n");
- close(gPencilVsockFd);
+ ssize_t n = send(gPencilVsockFd, buf, kPencilPacketSize, MSG_DONTWAIT);
+ if (n != kPencilPacketSize) {
+ printf("[VirtualMac] Pencil vsock short write=%ld error=%d; reconnecting\n",
+ (long)n, n < 0 ? errno : 0);
gPencilVsockFd = -1;
- if (gPencilVsockConnection) {
- [gPencilVsockConnection release];
- gPencilVsockConnection = nil;
- }
+ [gPencilVsockConnection release];
+ gPencilVsockConnection = nil;
return false;
}
return true;
@@ -1916,7 +2013,7 @@ static bool pencilVsockSend(uint8_t type, float pressure,
// (without), causing duplicate strokes or overriding the pressure.
// When the relay is not running, fall through so the Pencil still
// works as a regular pointing device (no pressure, but usable).
- for (UITouch *t in touches) {
+ if (pencilRelayEnabled()) for (UITouch *t in touches) {
if (t.type == UITouchTypeStylus) {
CGPoint p = [t locationInView:self];
CGRect b = self.bounds;
@@ -1926,7 +2023,13 @@ static bool pencilVsockSend(uint8_t type, float pressure,
float ny = (b.size.height > 0) ? (float)(p.y / b.size.height) : 0;
float altitude = (float)t.altitudeAngle;
float azimuth = (float)[t azimuthAngleInView:self];
- if (pencilVsockSend(kPencilEventProximityEnter, pressure, nx, ny, altitude, azimuth)) return;
+ _vzPencilRelayStrokeConnected = pencilVsockSend(
+ kPencilEventProximityEnter, pressure, nx, ny,
+ altitude, azimuth);
+ _vzPencilRelayStrokeClaimed =
+ _vzPencilRelayStrokeConnected;
+ if (_vzPencilRelayStrokeClaimed)
+ return;
break;
}
}
@@ -1981,7 +2084,7 @@ static bool pencilVsockSend(uint8_t type, float pressure,
}
// Same Pencil handling as touchesBegan — see comments there.
// type=0 (point) for continuous drag events.
- for (UITouch *t in touches) {
+ if (_vzPencilRelayStrokeClaimed) for (UITouch *t in touches) {
if (t.type == UITouchTypeStylus) {
CGPoint p = [t locationInView:self];
CGRect b = self.bounds;
@@ -1991,8 +2094,11 @@ static bool pencilVsockSend(uint8_t type, float pressure,
float ny = (b.size.height > 0) ? (float)(p.y / b.size.height) : 0;
float altitude = (float)t.altitudeAngle;
float azimuth = (float)[t azimuthAngleInView:self];
- if (pencilVsockSend(kPencilEventPoint, pressure, nx, ny, altitude, azimuth)) return;
- break;
+ if (_vzPencilRelayStrokeConnected)
+ _vzPencilRelayStrokeConnected = pencilVsockSend(
+ kPencilEventPoint, pressure, nx, ny,
+ altitude, azimuth);
+ return;
}
}
if (touch) {
@@ -2023,7 +2129,7 @@ static bool pencilVsockSend(uint8_t type, float pressure,
// Pressure is 0 because the pen is no longer touching.
// altitude=π/2 (perpendicular): the pen has no meaningful tilt
// at lift-off, and this gives tilt=(0,0) after conversion.
- for (UITouch *t in touches) {
+ if (_vzPencilRelayStrokeClaimed) for (UITouch *t in touches) {
if (t.type == UITouchTypeStylus) {
CGPoint p = [t locationInView:self];
CGRect b = self.bounds;
@@ -2031,8 +2137,12 @@ static bool pencilVsockSend(uint8_t type, float pressure,
float ny = (b.size.height > 0) ? (float)(p.y / b.size.height) : 0;
float altitude = (float)t.altitudeAngle;
float azimuth = (float)[t azimuthAngleInView:self];
- if (pencilVsockSend(kPencilEventProximityLeave, 0, nx, ny, altitude, azimuth)) return;
- break;
+ if (_vzPencilRelayStrokeConnected)
+ pencilVsockSend(kPencilEventProximityLeave, 0, nx, ny,
+ altitude, azimuth);
+ _vzPencilRelayStrokeClaimed = NO;
+ _vzPencilRelayStrokeConnected = NO;
+ return;
}
}
UITouch *touch = [touches anyObject];
@@ -2752,6 +2862,7 @@ static void VZWriteInstallationAttempt(NSString *attemptPath, NSString *state,
}
printf("[VirtualMac] selected VM path=%s options=%s\n", path.UTF8String,
options.description.UTF8String);
+ gVideoMemoryAlertPresented = NO;
self.activeVMBundlePath = path;
if (self.libraryNavigationController.view.window &&
!self.libraryNavigationController.view.hidden) {
@@ -3001,7 +3112,6 @@ static void VZWriteInstallationAttempt(NSString *attemptPath, NSString *state,
if ([VZAppSettings.sharedSettings boolForKey:VZAutoDeleteRestoreImageKey])
VZRemovePaths(@[self.installationRestoreImagePath]);
NSString *installedPath = [[self.installationBundlePath copy] autorelease];
- NSDictionary *installedOptions = [[self.installationOptions copy] autorelease];
self.installationController.cancellationHandler = nil;
[self.installationController.navigationController dismissViewControllerAnimated:YES completion:^{
self.installationController = nil;
@@ -3025,14 +3135,29 @@ static void VZWriteInstallationAttempt(NSString *attemptPath, NSString *state,
preferredStyle:UIAlertControllerStyleAlert];
[success addAction:[UIAlertAction actionWithTitle:VZL(@"OK")
style:UIAlertActionStyleCancel handler:nil]];
- [success addAction:[UIAlertAction actionWithTitle:VZL(@"Start")
- style:UIAlertActionStyleDefault handler:^(UIAlertAction *action) {
- (void)action;
- VZVMLibraryViewController *library = (id)
- self.libraryNavigationController.viewControllers.firstObject;
- [self vmLibrary:library bootBundleAtPath:installedPath
- options:installedOptions];
- }]];
+ // Starting a second VZVirtualMachine in this process can
+ // replace the active display plumbing and freeze the running
+ // guest's framebuffer. Leave the completed VM in the library
+ // and offer Start only when there is no active VM.
+ if (!gVirtualMachine) {
+ [success addAction:[UIAlertAction
+ actionWithTitle:VZL(@"Start")
+ style:UIAlertActionStyleDefault
+ handler:^(UIAlertAction *action) {
+ (void)action;
+ // The installation sheet owns a mutable working copy of
+ // the configuration. Reload the durable manifest after
+ // installation so a same-session first boot receives the
+ // exact options that later library boots use, including
+ // newly introduced guest-tool feature keys.
+ NSDictionary *installedOptions =
+ VZVMOptionsForBundle(installedPath);
+ VZVMLibraryViewController *library = (id)
+ self.libraryNavigationController.viewControllers.firstObject;
+ [self vmLibrary:library bootBundleAtPath:installedPath
+ options:installedOptions];
+ }]];
+ }
[self presentViewController:success animated:YES completion:nil];
}];
return;
@@ -3167,7 +3292,9 @@ static void VZWriteInstallationAttempt(NSString *attemptPath, NSString *state,
- (void)finishVMAndShowLibraryWithError:(NSError *)error
{
+ setVMJetsamProtection(NO);
gSoftwareKeyboardRequested = NO;
+ pencilVsockReset();
disconnectExternalDisplay();
[gDisplayLayer removeFromSuperlayer];
gDisplayLayer = nil;
@@ -3177,6 +3304,7 @@ static void VZWriteInstallationAttempt(NSString *attemptPath, NSString *state,
gFramebufferView = nil;
[gVirtualMachine release];
gVirtualMachine = nil;
+ gVideoMemoryAlertPresented = NO;
gVirtualMachineDelegate = nil;
gKeyboard = nil;
gGlobeDown = NO;
@@ -3834,11 +3962,28 @@ static void configureDirectorySharing(id configuration,
static id makeConfiguration(NSString *bundlePath, NSDictionary *options,
NSError **error) {
+ BOOL guestToolsEnabled =
+ [options[VZVirtualMacGuestToolsEnabledKey] boolValue];
+ BOOL runtimePolicyEnabled = guestToolsEnabled &&
+ [options[VZOpenGLAccelerationEnabledKey] boolValue];
+ BOOL guestToolsRemovalPending =
+ [options[VZGuestToolsRemovalPendingKey] boolValue];
+#if EXPERIMENT_GDB_DEBUG
+ BOOL externalKernelDebug = [[NSFileManager defaultManager]
+ fileExistsAtPath:@"/tmp/vz-external-kernel-debug"];
+#endif
id platform = NEW("VZMacPlatformConfiguration");
id auxiliaryStorage = ((id(*)(id, SEL, id))objc_msgSend)(
m0(CLS("VZMacAuxiliaryStorage"), "alloc"),
S("initWithContentsOfURL:"),
fileURL([bundlePath stringByAppendingPathComponent:@"AuxiliaryStorage"]));
+ NSError *bootArgumentError = nil;
+ if (!VZGuestToolsConfigureBootArguments(auxiliaryStorage,
+ guestToolsEnabled || guestToolsRemovalPending,
+ runtimePolicyEnabled,
+ &bootArgumentError))
+ fprintf(stderr, "[GuestTools] NVRAM update failed: %s\n",
+ bootArgumentError.localizedDescription.UTF8String);
setObj(platform, "setAuxiliaryStorage:", auxiliaryStorage);
NSData *hardwareModelData = [NSData dataWithContentsOfFile:
@@ -3979,13 +4124,31 @@ static id makeConfiguration(NSString *bundlePath, NSDictionary *options,
configureNetwork(configuration, options);
configureDirectorySharing(configuration, options);
- // Vsock: expose a VirtioSocket device so the guest can communicate
- // with the host over AF_VSOCK without network configuration.
- // Used by pencil-probe to relay Apple Pencil pressure data.
- id socketDevice = NEW("VZVirtioSocketDeviceConfiguration");
- if (socketDevice) {
- setObj(configuration, "setSocketDevices:", @[socketDevice]);
- printf("[VirtualMac] configured vsock device\n");
+#if EXPERIMENT_GDB_DEBUG
+ if (!VZGuestRuntimePolicyConfigureDebugStub(configuration,
+ externalKernelDebug)) {
+ if (error) *error = [NSError errorWithDomain:@"VirtualMac" code:7
+ userInfo:@{NSLocalizedDescriptionKey:
+ VZL(@"The Virtual Mac configuration could not be created.")}];
+ return nil;
+ }
+#endif
+
+ // Keep the stock VM device set when tools are disabled. Add the console
+ // only while tools are active or for the single cleanup boot requested by
+ // an explicit transition from on to off.
+ if (guestToolsEnabled || guestToolsRemovalPending)
+ VZGuestToolsConfigureDevice(configuration);
+
+ if ([options[VZApplePencilPressureTiltEnabledKey] boolValue]) {
+ // Do not add a socket device for the default configuration. The
+ // Pencil relay and its host/guest input path are entirely opt-in.
+ id socketDevice = (guestToolsEnabled || guestToolsRemovalPending)
+ ? nil : NEW("VZVirtioSocketDeviceConfiguration");
+ if (socketDevice) {
+ setObj(configuration, "setSocketDevices:", @[socketDevice]);
+ printf("[VirtualMac] configured Pencil vsock device\n");
+ }
}
return configuration;
@@ -4136,6 +4299,12 @@ static void invokeVirtualMachineStartOnMain(void *opaque) {
static void startVirtualMachineWorker(UIView *container, id delegate,
NSString *bundlePath,
NSDictionary *options) {
+ setVMJetsamProtection(YES);
+ pencilVsockReset();
+ VZGuestToolsReset();
+ __atomic_store_n(&gPencilRelayEnabled,
+ [options[VZApplePencilPressureTiltEnabledKey] boolValue],
+ __ATOMIC_RELEASE);
unlink("/tmp/vzxpchook.log");
unlink("/tmp/vmmhook.log");
unlink("/tmp/vmm.stderr.log");
@@ -4145,7 +4314,9 @@ static void startVirtualMachineWorker(UIView *container, id delegate,
setenv("VZ_AVP_BOOTER",
"/var/root/VirtualMac/payload/Frameworks/Virtualization.framework/Resources/AVPBooter.vmapple2.bin",
1);
- gDebugLogging = [VZAppSettings.sharedSettings boolForKey:VZDebugLoggingKey];
+ // Consume the one-shot mode at the actual boot boundary. The current boot
+ // keeps the captured value while Settings immediately returns to Off.
+ gDebugLogging = VZConsumeDebugLoggingForBoot();
setenv("VZ_DEBUG_LOGGING", gDebugLogging ? "1" : "0", 1);
setenv("VMMHOOK_TRACE_VCPU_LIMIT", gDebugLogging ? "256" : "8", 1);
setenv("VMMHOOK_TRACE_XPC_LIMIT", gDebugLogging ? "200" : "8", 1);
@@ -4162,16 +4333,37 @@ static void startVirtualMachineWorker(UIView *container, id delegate,
setenv("PVG_TRACE_METHODS", "1", 1);
else
unsetenv("PVG_TRACE_METHODS");
- // WindowServer's long-lived PVG task reached 1.07 GiB while Launchpad was
- // populating its icon textures. Keep ordinary app clients at 1 GiB so 20+
- // simultaneous clients fit in the iPad VA, but give the first three
- // long-lived system clients 2 GiB. Their slots are recycled on deletion.
- setenv("PVG_TASK_RESERVATION_GB", "1", 1);
- setenv("PVG_LARGE_TASK_RESERVATION_GB", "2", 1);
+ // Ordinary clients start with a compact reservation and grow lazily below.
+ // Keep the first three long-lived system clients contiguous, however.
+ // WindowServer's Launchpad task crosses 256 MiB in one burst and older
+ // guests can stop submitting frames after that task is split across host
+ // reservations even though every individual map succeeds. Two GiB matches
+ // the proven 1.1.2 policy and still uses only a small fraction of iPadOS's
+ // roughly 63 GiB extended address space.
+ setenv("PVG_TASK_RESERVATION_MB", "256", 1);
+ // Once an ordinary client crosses its primary reservation, the PVG host
+ // adds a separate 2 GiB sparse reservation and translates PGTask's address
+ // helpers. Final Cut exceeded the old fixed 512 MiB reservation, while a
+ // launch-all stress test showed that only two of 74 ordinary clients did.
+ setenv("PVG_TASK_OVERFLOW_MB", "2048", 1);
+ setenv("PVG_LARGE_TASK_RESERVATION_MB", "2048", 1);
setenv("PVG_LARGE_TASK_COUNT", "3", 1);
+ setenv("PVG_MIN_TASK_RESERVATION_MB", "64", 1);
setenv("PVG_METALLIB_FALLBACK", "1", 1);
+ BOOL metalBCSupport =
+ [options[VZMetalBCSupportEnabledKey] boolValue];
+ setenv("VZ_METAL_BC_SUPPORT", metalBCSupport ? "1" : "0", 1);
setStatus(VZL(@"Loading extracted Apple virtualization frameworks…"));
+ BOOL guestToolsEnabled =
+ [options[VZVirtualMacGuestToolsEnabledKey] boolValue];
+ BOOL openGLAcceleration = guestToolsEnabled &&
+ [options[VZOpenGLAccelerationEnabledKey] boolValue];
+ setenv("VZ_GUEST_RUNTIME_POLICY", openGLAcceleration ? "1" : "0", 1);
+ fprintf(stderr, "[GuestTools] VM option enabled=%d OpenGL=%d BC=%d pencil=%d\n",
+ guestToolsEnabled,
+ openGLAcceleration, metalBCSupport,
+ [options[VZApplePencilPressureTiltEnabledKey] boolValue]);
if (!loadExtractedFrameworks()) {
setStatus(VZL(@"Failed to load extracted frameworks"));
NSError *loadError = [NSError errorWithDomain:@"VirtualMac" code:1
@@ -4194,8 +4386,11 @@ static void startVirtualMachineWorker(UIView *container, id delegate,
finishVMThreadSafe(delegate, error);
return;
}
+ printf("[VirtualMac] validating VM configuration\n");
BOOL valid = ((BOOL(*)(id, SEL, NSError **))objc_msgSend)(
configuration, S("validateWithError:"), &error);
+ printf("[VirtualMac] VM configuration validation result=%d error=%s\n",
+ valid, error ? error.description.UTF8String : "(none)");
if (!valid) {
setStatus([NSString stringWithFormat:VZL(@"Validation failed: %@"),
error.localizedDescription]);
@@ -4203,9 +4398,14 @@ static void startVirtualMachineWorker(UIView *container, id delegate,
return;
}
+ printf("[VirtualMac] constructing VM runtime\n");
gVirtualMachine = ((id(*)(id, SEL, id))objc_msgSend)(
m0(CLS("VZVirtualMachine"), "alloc"),
S("initWithConfiguration:"), configuration);
+ printf("[VirtualMac] VM runtime constructed=%p\n", gVirtualMachine);
+ if (guestToolsEnabled ||
+ [options[VZGuestToolsRemovalPendingKey] boolValue])
+ VZGuestToolsAttachToVirtualMachine(gVirtualMachine);
gVirtualMachineDelegate = delegate;
if ([gVirtualMachine respondsToSelector:S("setDelegate:")])
setObj(gVirtualMachine, "setDelegate:", delegate);
@@ -4230,6 +4430,21 @@ static void startVirtualMachineWorker(UIView *container, id delegate,
return;
}
setStatus(VZL(@"Starting Virtual Mac…"));
+ BOOL runtimePolicyEnabled = openGLAcceleration;
+#if EXPERIMENT_GDB_DEBUG
+ BOOL externalKernelDebug = [[NSFileManager defaultManager]
+ fileExistsAtPath:@"/tmp/vz-external-kernel-debug"];
+#endif
+ void (^finishStartedVM)(void) = ^{
+ dumpRPCHandlers(gVirtualMachine, "after-start");
+ setStatus(VZL(@"Virtual Mac running — preparing native PVG display"));
+ pencilVsockSetup();
+ VZGuestToolsStartProvisioning(bundlePath, guestToolsEnabled,
+ openGLAcceleration,
+ [options[VZApplePencilPressureTiltEnabledKey] boolValue],
+ [options[VZGuestToolsRemovalPendingKey] boolValue]);
+ gHostVMStarted();
+ };
void (^completion)(NSError *) = ^(NSError *startError) {
if (startError) {
setStatus([NSString stringWithFormat:VZL(@"Virtual Mac start failed: %@"),
@@ -4240,16 +4455,15 @@ static void startVirtualMachineWorker(UIView *container, id delegate,
printf("[VirtualMac] VM STARTED state=%ld\n",
(long)((NSInteger(*)(id, SEL))objc_msgSend)(
gVirtualMachine, S("state")));
- dumpRPCHandlers(gVirtualMachine, "after-start");
- setStatus(VZL(@"Virtual Mac running — preparing native PVG display"));
- pencilVsockSetup();
- gHostVMStarted();
- // Let the start reply return before exposing the registered display.
- dispatch_after(
- dispatch_time(DISPATCH_TIME_NOW, 250 * NSEC_PER_MSEC),
- dispatch_get_main_queue(), ^{
- activateFramebuffer();
- });
+ // Publish the display as soon as VZ accepts the start, rather than
+ // hiding iBoot and the Apple progress UI behind the policy scan.
+ dispatch_after(dispatch_time(DISPATCH_TIME_NOW,
+ 250 * NSEC_PER_MSEC), dispatch_get_main_queue(), ^{
+ activateFramebuffer();
+ });
+ fprintf(stderr, "[GuestPolicy] start completion enabled=%d\n",
+ runtimePolicyEnabled);
+ finishStartedVM();
};
id startOptions = nil;
if ([options[@"BootRecovery"] boolValue] &&
@@ -4260,6 +4474,16 @@ static void startVirtualMachineWorker(UIView *container, id delegate,
startOptions, S("setStartUpFromMacOSRecovery:"), YES);
printf("[VirtualMac] configured recovery start\n");
}
+#if EXPERIMENT_GDB_DEBUG
+ if (externalKernelDebug &&
+ [gVirtualMachine respondsToSelector:
+ S("startWithOptions:completionHandler:")]) {
+ if (!startOptions)
+ startOptions = NEW("VZMacOSVirtualMachineStartOptions");
+ VZGuestRuntimePolicyConfigureStartOptions(startOptions);
+ printf("[GuestPolicy] configured development debug stop\n");
+ }
+#endif
if (NSProcessInfo.processInfo.operatingSystemVersion.majorVersion == 14 &&
!pthread_main_np()) {
VZInvokeStartContext *context = calloc(1, sizeof(*context));
@@ -4548,6 +4772,7 @@ static void disconnectExternalDisplay(void) {
#endif
installKeyboardRenderingFix();
installShellShortcutRelay();
+ installVideoMemoryWarningRelay();
gFixExternalDisplayScrollDirection = [VZAppSettings.sharedSettings
boolForKey:VZExternalDisplayScrollFixKey];
gScrollingSpeed = MAX(0.1, MIN(1.0,
diff --git a/VirtualMac/vz/host/VirtualMacControl-Info.plist b/VirtualMac/vz/host/VirtualMacControl-Info.plist
index 82f483c..743fd78 100644
--- a/VirtualMac/vz/host/VirtualMacControl-Info.plist
+++ b/VirtualMac/vz/host/VirtualMacControl-Info.plist
@@ -18,7 +18,7 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
- <string>1.1.2</string>
+ <string>1.2</string>
<key>CFBundleVersion</key>
<string>1</string>
<key>LSMinimumSystemVersion</key>
diff --git a/VirtualMac/vz/host/metalshim.m b/VirtualMac/vz/host/metalshim.m
index 629bf5d..86959ae 100644
--- a/VirtualMac/vz/host/metalshim.m
+++ b/VirtualMac/vz/host/metalshim.m
@@ -6,11 +6,14 @@
// Wire-up: change the VMM binary's Metal LC_LOAD_DYLIB to /var/root/metalshim.ios.
#import <Foundation/Foundation.h>
#import <Metal/Metal.h>
+#import <dlfcn.h>
#import <objc/message.h>
#import <objc/runtime.h>
#include <stdlib.h>
#include <string.h>
+#import "native_bc_texture_support.h"
+
static id (*gNewBufferWithLength)(id, SEL, NSUInteger, MTLResourceOptions);
static id (*gNewBufferWithBytes)(
id, SEL, const void *, NSUInteger, MTLResourceOptions);
@@ -24,8 +27,57 @@ static id (*gNewTextureWithDescriptorIOSurface)(
static void (*gSetTextureStorageMode)(id, SEL, MTLStorageMode);
static void (*gSetTexturePixelFormat)(id, SEL, MTLPixelFormat);
static void (*gSetHeapStorageMode)(id, SEL, MTLStorageMode);
+static BOOL (*gValidateTextureDescriptor)(id, SEL, id);
+static void (*gTextureReplaceRegionSlice)(
+ id, SEL, MTLRegion, NSUInteger, NSUInteger, const void *, NSUInteger,
+ NSUInteger);
+static void (*gTextureReplaceRegion)(
+ id, SEL, MTLRegion, NSUInteger, const void *, NSUInteger);
+static id (*gHeapNewTextureWithDescriptor)(
+ id, SEL, MTLTextureDescriptor *);
+static id (*gNewTextureView)(id, SEL, MTLPixelFormat);
+static id (*gNewTextureViewWithRanges)(
+ id, SEL, MTLPixelFormat, MTLTextureType, NSRange, NSRange);
+static id (*gNewTextureViewWithRangesAndSwizzle)(
+ id, SEL, MTLPixelFormat, MTLTextureType, NSRange, NSRange,
+ MTLTextureSwizzleChannels);
+typedef void (*ValidateTextureViewFn)(
+ id, id<MTLTexture>, MTLPixelFormat, MTLTextureType,
+ NSUInteger, NSUInteger, NSUInteger, NSUInteger, BOOL);
+static ValidateTextureViewFn gValidateTextureView;
+
+// Metal returns this private, 56-byte value indirectly on arm64. Keeping the
+// exact aggregate shape is important: declaring the hook as a pointer-return
+// function would put the hidden result pointer in the wrong register.
+typedef struct {
+ uint64_t words[7];
+} VZPixelFormatInfo;
+typedef VZPixelFormatInfo (*PixelFormatGetInfoForDeviceFn)(
+ id<MTLDevice>, MTLPixelFormat);
+static PixelFormatGetInfoForDeviceFn gPixelFormatGetInfoForDevice;
+
+typedef void (*MSHookFunctionFn)(void *, void *, void **);
+static MSHookFunctionFn LoadMetalHookFunction(void) {
+ MSHookFunctionFn hook =
+ (MSHookFunctionFn)dlsym(RTLD_DEFAULT, "MSHookFunction");
+ if (hook) return hook;
+ static const char *paths[] = {
+ "/var/jb/usr/lib/libellekit.dylib",
+ "/var/jb/usr/lib/libhooker.dylib",
+ "/usr/lib/libhooker.dylib",
+ };
+ for (NSUInteger index = 0;
+ index < sizeof(paths) / sizeof(paths[0]); ++index) {
+ void *image = dlopen(paths[index], RTLD_NOW | RTLD_LOCAL);
+ hook = image ? (MSHookFunctionFn)dlsym(image, "MSHookFunction") : NULL;
+ if (hook) return hook;
+ }
+ return NULL;
+}
static BOOL gInstalledSharedBufferCompatibility;
static unsigned long gMacCompressedTextureCount;
+static id<MTLDevice> gMetalDevice;
+static id<MTLCommandQueue> gBCUploadQueue;
static BOOL DebugLoggingEnabled(void) {
static BOOL enabled;
@@ -156,40 +208,26 @@ static void iPadSetTextureStorageMode(id self, SEL selector,
self, selector, iPadMetalStorageMode(storageMode));
}
-static BOOL IsMacBCPixelFormat(MTLPixelFormat pixelFormat) {
- // BC1 through BC7 occupy the Mac-only Metal values 130...153.
- // iPadOS's descriptor validator rejects the enum.
- return (NSUInteger)pixelFormat >= 130 && (NSUInteger)pixelFormat <= 153;
-}
-
-static MTLPixelFormat iPadCompressedFallback(MTLPixelFormat pixelFormat) {
- // Keep each format's 4x4 block dimensions and byte count so guest upload
- // pitches, mip offsets, and buffer sizes remain valid. iPadOS 16.3 rejects
- // BC formats before the GPU driver; its native ETC/EAC/ASTC formats are a
- // safe crash-prevention fallback for effects and transient image textures.
- switch ((NSUInteger)pixelFormat) {
- case 130: return (MTLPixelFormat)180; // BC1 -> ETC2 RGB8
- case 131: return (MTLPixelFormat)181; // BC1 sRGB -> ETC2 RGB8 sRGB
- case 140: return (MTLPixelFormat)170; // BC4 unorm -> EAC R11 unorm
- case 141: return (MTLPixelFormat)172; // BC4 snorm -> EAC R11 snorm
- case 142: return (MTLPixelFormat)174; // BC5 unorm -> EAC RG11 unorm
- case 143: return (MTLPixelFormat)176; // BC5 snorm -> EAC RG11 snorm
- case 133: case 135: case 153:
- return (MTLPixelFormat)186; // 16-byte sRGB -> ASTC 4x4 sRGB
- case 150: case 151:
- return (MTLPixelFormat)222; // BC6H -> ASTC 4x4 HDR
- default:
- return (MTLPixelFormat)204; // 16-byte linear -> ASTC 4x4 LDR
- }
-}
-
static void iPadSetTexturePixelFormat(id self, SEL selector,
MTLPixelFormat pixelFormat) {
- if (!IsMacBCPixelFormat(pixelFormat)) {
+ if (!VZIsBCPixelFormat(pixelFormat)) {
gSetTexturePixelFormat(self, selector, pixelFormat);
return;
}
- MTLPixelFormat fallback = iPadCompressedFallback(pixelFormat);
+ if (VZNativeBCTextureSupportInstalled()) {
+ void *descriptorPrivate = ((void *(*)(id, SEL))objc_msgSend)(
+ self, sel_registerName("descriptorPrivate"));
+ if (descriptorPrivate == NULL) return;
+ ((NSUInteger *)descriptorPrivate)[1] = (NSUInteger)pixelFormat;
+ if (DebugLoggingEnabled())
+ fprintf(stderr,
+ "[metalshim] passing native Mac BC format=%lu to AGX\n",
+ (unsigned long)pixelFormat);
+ return;
+ }
+ // Hosts without the exact, validated native AGX table retain the shipped
+ // crash-prevention mapping. No conversion code runs in either path.
+ MTLPixelFormat fallback = VZBCValidationSurrogate(pixelFormat);
if (DebugLoggingEnabled()) {
unsigned long count = __sync_add_and_fetch(
&gMacCompressedTextureCount, 1);
@@ -206,18 +244,98 @@ static void iPadSetHeapStorageMode(id self, SEL selector,
self, selector, iPadMetalStorageMode(storageMode));
}
+static BOOL iPadValidateTextureDescriptor(id self, SEL selector, id device) {
+ if (!VZNativeBCTextureSupportInstalled())
+ return gValidateTextureDescriptor(self, selector, device);
+ NSUInteger *descriptorPrivate = ((NSUInteger *(*)(id, SEL))objc_msgSend)(
+ self, sel_registerName("descriptorPrivate"));
+ MTLPixelFormat format = descriptorPrivate
+ ? (MTLPixelFormat)descriptorPrivate[1] : MTLPixelFormatInvalid;
+ if (!VZIsBCPixelFormat(format))
+ return gValidateTextureDescriptor(self, selector, device);
+ descriptorPrivate[1] = (NSUInteger)VZBCValidationSurrogate(format);
+ BOOL valid = gValidateTextureDescriptor(self, selector, device);
+ descriptorPrivate[1] = (NSUInteger)format;
+ return valid;
+}
+
static void NormalizeTextureDescriptor(MTLTextureDescriptor *descriptor) {
if ((NSUInteger)descriptor.storageMode == 1) {
descriptor.storageMode = MTLStorageModeShared;
}
}
+// iPadOS 16.3.1's Metal framework predates the public BC pixel-format enum
+// entries. AGX accepts the 16.4 format records installed above, but the common
+// IOGPU texture object otherwise records the format as Invalid. That metadata
+// is consulted when an engine creates a texture view, causing Metal's view
+// compatibility validation to abort even though the underlying AGX resource
+// is valid. Restore the metadata that iPadOS 16.4 records natively.
+static void SetNativeBCTextureMetadata(id texture, MTLPixelFormat format) {
+ if (!texture || !VZNativeBCTextureSupportInstalled() ||
+ !VZIsBCPixelFormat(format)) return;
+ Ivar pixelFormat = class_getInstanceVariable([texture class], "_pixelFormat");
+ Ivar compressed = class_getInstanceVariable([texture class], "_isCompressed");
+ if (pixelFormat)
+ *(MTLPixelFormat *)((uint8_t *)(void *)texture +
+ ivar_getOffset(pixelFormat)) = format;
+ if (compressed)
+ *(BOOL *)((uint8_t *)(void *)texture + ivar_getOffset(compressed)) = YES;
+}
+
+static void ValidateNativeBCTextureView(
+ id device, id<MTLTexture> texture, MTLPixelFormat format,
+ MTLTextureType type, NSUInteger levelStart, NSUInteger levelCount,
+ NSUInteger sliceStart, NSUInteger sliceCount, BOOL compressedView) {
+ MTLPixelFormat sourceFormat = texture.pixelFormat;
+ if (!VZIsBCPixelFormat(sourceFormat) || !VZIsBCPixelFormat(format)) {
+ gValidateTextureView(device, texture, format, type,
+ levelStart, levelCount, sliceStart, sliceCount,
+ compressedView);
+ return;
+ }
+ Ivar pixelFormat = class_getInstanceVariable([texture class], "_pixelFormat");
+ if (!pixelFormat) {
+ gValidateTextureView(device, texture, format, type,
+ levelStart, levelCount, sliceStart, sliceCount,
+ compressedView);
+ return;
+ }
+ MTLPixelFormat *stored = (MTLPixelFormat *)((uint8_t *)(void *)texture +
+ ivar_getOffset(pixelFormat));
+ @try {
+ *stored = VZBCValidationSurrogate(sourceFormat);
+ gValidateTextureView(device, texture,
+ VZBCValidationSurrogate(format), type,
+ levelStart, levelCount, sliceStart, sliceCount,
+ compressedView);
+ } @finally {
+ *stored = sourceFormat;
+ }
+}
+
+// Ventura's MetalSerializer asks the host Metal framework for block geometry
+// when it replays guest uploads. iPadOS 16.3.1's generic Metal table, unlike
+// its AGX command path, has no BC records, so the replay can allocate a valid
+// native texture and then copy zero or incorrectly-strided data into it. The
+// selected iPad formats have identical 4x4 block geometry, byte size, signed
+// or sRGB character to their BC counterpart. Use their generic metadata only
+// for frontend sizing/validation; the descriptor and AGX resource retain the
+// original BC pixel-format number.
+static VZPixelFormatInfo NativeBCPixelFormatInfoForDevice(
+ id<MTLDevice> device, MTLPixelFormat format) {
+ if (VZNativeBCTextureSupportInstalled() && VZIsBCPixelFormat(format))
+ format = VZBCValidationSurrogate(format);
+ return gPixelFormatGetInfoForDevice(device, format);
+}
+
static id iPadNewTextureWithDescriptor(
id self, SEL selector, MTLTextureDescriptor *descriptor) {
NormalizeTextureDescriptor(descriptor);
id texture = gNewTextureWithDescriptor(self, selector, descriptor);
- if (DebugLoggingEnabled() && IsMacBCPixelFormat(descriptor.pixelFormat))
- fprintf(stderr, "[metalshim] BC texture format=%lu %lux%lu -> %p\n",
+ SetNativeBCTextureMetadata(texture, descriptor.pixelFormat);
+ if (DebugLoggingEnabled() && VZIsBCPixelFormat(descriptor.pixelFormat))
+ fprintf(stderr, "[metalshim] native BC texture format=%lu %lux%lu -> %p\n",
(unsigned long)descriptor.pixelFormat,
(unsigned long)descriptor.width,
(unsigned long)descriptor.height, texture);
@@ -228,8 +346,90 @@ static id iPadNewTextureWithDescriptorIOSurface(
id self, SEL selector, MTLTextureDescriptor *descriptor,
void *surface, NSUInteger plane) {
NormalizeTextureDescriptor(descriptor);
- return gNewTextureWithDescriptorIOSurface(
+ id texture = gNewTextureWithDescriptorIOSurface(
self, selector, descriptor, surface, plane);
+ SetNativeBCTextureMetadata(texture, descriptor.pixelFormat);
+ return texture;
+}
+
+static id iPadHeapNewTextureWithDescriptor(
+ id self, SEL selector, MTLTextureDescriptor *descriptor) {
+ NormalizeTextureDescriptor(descriptor);
+ id texture = gHeapNewTextureWithDescriptor(self, selector, descriptor);
+ SetNativeBCTextureMetadata(texture, descriptor.pixelFormat);
+ return texture;
+}
+
+static id iPadNewTextureView(id self, SEL selector,
+ MTLPixelFormat format) {
+ id texture = gNewTextureView(self, selector, format);
+ SetNativeBCTextureMetadata(texture, format);
+ return texture;
+}
+
+static id iPadNewTextureViewWithRanges(
+ id self, SEL selector, MTLPixelFormat format, MTLTextureType type,
+ NSRange levels, NSRange slices) {
+ id texture = gNewTextureViewWithRanges(
+ self, selector, format, type, levels, slices);
+ SetNativeBCTextureMetadata(texture, format);
+ return texture;
+}
+
+static id iPadNewTextureViewWithRangesAndSwizzle(
+ id self, SEL selector, MTLPixelFormat format, MTLTextureType type,
+ NSRange levels, NSRange slices, MTLTextureSwizzleChannels swizzle) {
+ id texture = gNewTextureViewWithRangesAndSwizzle(
+ self, selector, format, type, levels, slices, swizzle);
+ SetNativeBCTextureMetadata(texture, format);
+ return texture;
+}
+
+static BOOL UploadNativeBCTexture(id<MTLTexture> texture, MTLRegion region,
+ NSUInteger level, NSUInteger slice,
+ const void *bytes, NSUInteger bytesPerRow,
+ NSUInteger bytesPerImage) {
+ if (!VZNativeBCTextureSupportInstalled() ||
+ !VZIsBCPixelFormat(texture.pixelFormat) || !gBCUploadQueue) return NO;
+ NSUInteger blockRows = MAX((region.size.height + 3) / 4, (NSUInteger)1);
+ NSUInteger imageBytes = bytesPerImage ?: bytesPerRow * blockRows;
+ NSUInteger totalBytes = imageBytes * MAX(region.size.depth, (NSUInteger)1);
+ id<MTLBuffer> upload = [gMetalDevice newBufferWithBytes:bytes
+ length:totalBytes options:0];
+ id<MTLCommandBuffer> command = [gBCUploadQueue commandBuffer];
+ id<MTLBlitCommandEncoder> blit = [command blitCommandEncoder];
+ [blit copyFromBuffer:upload sourceOffset:0 sourceBytesPerRow:bytesPerRow
+ sourceBytesPerImage:imageBytes sourceSize:region.size toTexture:texture
+ destinationSlice:slice destinationLevel:level
+ destinationOrigin:region.origin];
+ [blit endEncoding];
+ [command commit];
+ [command waitUntilCompleted];
+ if (command.status != MTLCommandBufferStatusCompleted) {
+ fprintf(stderr, "[metalshim] native BC upload failed: %s\n",
+ command.error.description.UTF8String ?: "unknown error");
+ }
+ [upload release];
+ return YES;
+}
+
+static void iPadTextureReplaceRegionSlice(
+ id self, SEL selector, MTLRegion region, NSUInteger level,
+ NSUInteger slice, const void *bytes, NSUInteger bytesPerRow,
+ NSUInteger bytesPerImage) {
+ if (!UploadNativeBCTexture(self, region, level, slice, bytes, bytesPerRow,
+ bytesPerImage)) {
+ gTextureReplaceRegionSlice(self, selector, region, level, slice, bytes,
+ bytesPerRow, bytesPerImage);
+ }
+}
+
+static void iPadTextureReplaceRegion(
+ id self, SEL selector, MTLRegion region, NSUInteger level,
+ const void *bytes, NSUInteger bytesPerRow) {
+ if (!UploadNativeBCTexture(self, region, level, 0, bytes, bytesPerRow, 0)) {
+ gTextureReplaceRegion(self, selector, region, level, bytes, bytesPerRow);
+ }
}
static void iPadSharedBufferDidModifyRange(id self, SEL selector,
@@ -292,6 +492,38 @@ static void InstallMacMetalDeviceCompatibility(void) {
if (device == nil) {
return;
}
+ const char *bcSupport = getenv("VZ_METAL_BC_SUPPORT");
+ BOOL nativeBC = (!bcSupport || strcmp(bcSupport, "0")) &&
+ VZInstallNativeBCTextureSupport();
+ if (nativeBC) {
+ gMetalDevice = [device retain];
+ gBCUploadQueue = [device newCommandQueue];
+ MSHookFunctionFn hook = LoadMetalHookFunction();
+ void *validator = dlsym(
+ RTLD_DEFAULT,
+ "_mtlValidateArgumentsForTextureViewOnDevice");
+ if (hook && validator) {
+ hook(validator, (void *)ValidateNativeBCTextureView,
+ (void **)&gValidateTextureView);
+ }
+ void *pixelFormatInfo = dlsym(
+ RTLD_DEFAULT, "MTLPixelFormatGetInfoForDevice");
+ if (hook && pixelFormatInfo) {
+ hook(pixelFormatInfo,
+ (void *)NativeBCPixelFormatInfoForDevice,
+ (void **)&gPixelFormatGetInfoForDevice);
+ }
+ Class descriptorClass =
+ NSClassFromString(@"MTLTextureDescriptorInternal");
+ Method validationMethod = class_getInstanceMethod(
+ descriptorClass, sel_registerName("validateWithDevice:"));
+ if (validationMethod != NULL) {
+ gValidateTextureDescriptor =
+ (BOOL (*)(id, SEL, id))method_setImplementation(
+ validationMethod,
+ (IMP)iPadValidateTextureDescriptor);
+ }
+ }
class_addMethod([device class],
NSSelectorFromString(@"isLowPower"),
(IMP)iPadMetalDeviceIsLowPower,
@@ -380,12 +612,62 @@ static void InstallMacMetalDeviceCompatibility(void) {
[textureDescriptor class], @"setPixelFormat:",
(IMP)iPadSetTexturePixelFormat);
+ if (nativeBC) {
+ id<MTLTexture> sampleTexture =
+ [device newTextureWithDescriptor:textureDescriptor];
+ if (sampleTexture != nil) {
+ gTextureReplaceRegionSlice =
+ (void (*)(id, SEL, MTLRegion, NSUInteger, NSUInteger,
+ const void *, NSUInteger, NSUInteger))
+ ReplaceMetalMethod(
+ [sampleTexture class],
+ @"replaceRegion:mipmapLevel:slice:withBytes:bytesPerRow:bytesPerImage:",
+ (IMP)iPadTextureReplaceRegionSlice);
+ gTextureReplaceRegion =
+ (void (*)(id, SEL, MTLRegion, NSUInteger, const void *,
+ NSUInteger))ReplaceMetalMethod(
+ [sampleTexture class],
+ @"replaceRegion:mipmapLevel:withBytes:bytesPerRow:",
+ (IMP)iPadTextureReplaceRegion);
+ gNewTextureView =
+ (id (*)(id, SEL, MTLPixelFormat))ReplaceMetalMethod(
+ [sampleTexture class],
+ @"newTextureViewWithPixelFormat:",
+ (IMP)iPadNewTextureView);
+ gNewTextureViewWithRanges =
+ (id (*)(id, SEL, MTLPixelFormat, MTLTextureType,
+ NSRange, NSRange))ReplaceMetalMethod(
+ [sampleTexture class],
+ @"newTextureViewWithPixelFormat:textureType:levels:slices:",
+ (IMP)iPadNewTextureViewWithRanges);
+ gNewTextureViewWithRangesAndSwizzle =
+ (id (*)(id, SEL, MTLPixelFormat, MTLTextureType,
+ NSRange, NSRange, MTLTextureSwizzleChannels))
+ ReplaceMetalMethod(
+ [sampleTexture class],
+ @"newTextureViewWithPixelFormat:textureType:levels:slices:swizzle:",
+ (IMP)iPadNewTextureViewWithRangesAndSwizzle);
+ }
+ }
+
MTLHeapDescriptor *heapDescriptor = [[MTLHeapDescriptor alloc] init];
gSetHeapStorageMode =
(void (*)(id, SEL, MTLStorageMode))ReplaceMetalMethod(
[heapDescriptor class],
@"setStorageMode:",
(IMP)iPadSetHeapStorageMode);
+ if (nativeBC) {
+ heapDescriptor.storageMode = MTLStorageModePrivate;
+ heapDescriptor.size = 64 * 1024;
+ id<MTLHeap> sampleHeap = [device newHeapWithDescriptor:heapDescriptor];
+ if (sampleHeap) {
+ gHeapNewTextureWithDescriptor =
+ (id (*)(id, SEL, MTLTextureDescriptor *))ReplaceMetalMethod(
+ [sampleHeap class], @"newTextureWithDescriptor:",
+ (IMP)iPadHeapNewTextureWithDescriptor);
+ }
+ [sampleHeap release];
+ }
MTLSamplerDescriptor *samplerDescriptor =
[[MTLSamplerDescriptor alloc] init];
diff --git a/VirtualMac/vz/host/native_bc_texture_support.h b/VirtualMac/vz/host/native_bc_texture_support.h
new file mode 100644
index 0000000..e5eeb63
--- /dev/null
+++ b/VirtualMac/vz/host/native_bc_texture_support.h
@@ -0,0 +1,9 @@
+#pragma once
+
+#import <Foundation/Foundation.h>
+#import <Metal/Metal.h>
+
+BOOL VZInstallNativeBCTextureSupport(void);
+BOOL VZNativeBCTextureSupportInstalled(void);
+BOOL VZIsBCPixelFormat(MTLPixelFormat format);
+MTLPixelFormat VZBCValidationSurrogate(MTLPixelFormat format);
diff --git a/VirtualMac/vz/host/native_bc_texture_support.m b/VirtualMac/vz/host/native_bc_texture_support.m
new file mode 100644
index 0000000..241fbf8
--- /dev/null
+++ b/VirtualMac/vz/host/native_bc_texture_support.m
@@ -0,0 +1,378 @@
+#import "native_bc_texture_support.h"
+
+#import <dlfcn.h>
+#import <mach-o/dyld.h>
+#import <mach-o/loader.h>
+#import <ptrauth.h>
+
+typedef const void *(*ChooseTextureFormatFn)(uint32_t);
+typedef void (*MSHookFunctionFn)(void *, void *, void **);
+
+static ChooseTextureFormatFn gChooseTextureFormatTrampoline;
+static const void *gFormatDescriptors[1024];
+static const void *gInvalidFormatDescriptor;
+static uint32_t gFormatDescriptorCount;
+static BOOL gNativeBCInstalled;
+
+// These fourteen 0x60-byte AGX TextureFormat records are the exact new table
+// entries added in iOS/iPadOS 16.4 for MTLPixelFormat 130...135, 140...143,
+// and 150...153. The surrounding A16 G15 and M2 G14G table layouts and GPU
+// command paths are already present in 16.3.1 (20D67).
+// See vz/development/research/BC_TEXTURE_SUPPORT.md for the reproducible
+// binary-diff addresses and validation probe.
+static const uint32_t kBCFormatDescriptors[14][24]
+ __attribute__((aligned(16))) = {
+ {0x74,0,0,0,0,0,1,4,0,0,0x74,0,0x800,0,2,3,
+ 0x2c680,0x2c680,0,0,0,0,8,0},
+ {0x74,0,0,0,0,0,1,4,0,0,0x74,0,0x800,0,2,3,
+ 0x2c680,0x2c680,0,0,0,3,8,0},
+ {0x75,0,0,0,0,0,1,4,0,0,0x75,0,0x1000,0,2,3,
+ 0x2c680,0x2c680,0,0,0,0,0x10,0},
+ {0x75,0,0,0,0,0,1,4,0,0,0x75,0,0x1000,0,2,3,
+ 0x2c680,0x2c680,0,0,0,3,0x10,0},
+ {0x76,0,0,0,0,0,1,4,0,0,0x76,0,0x1000,0,2,3,
+ 0x2c680,0x2c680,0,0,0,0,0x10,0},
+ {0x76,0,0,0,0,0,1,4,0,0,0x76,0,0x1000,0,2,3,
+ 0x2c680,0x2c680,0,0,0,3,0x10,0},
+ {0x77,0,0,0,0,0,1,1,0,0,0x77,0,0x800,0,2,3,
+ 0x8080,0x12480,0,0,0,0,8,0},
+ {0x77,0,1,0,1,0,1,1,0,0,0x77,0,0x800,1,2,3,
+ 0x8080,0x12480,0,0,0,0,8,0},
+ {0x78,0,0,0,0,0,1,2,0,0,0x78,0,0x1000,0,2,3,
+ 0x8680,0x12680,0,0,0,0,0x10,0},
+ {0x78,0,1,0,1,0,1,2,0,0,0x78,0,0x1000,1,2,3,
+ 0x8680,0x12680,0,0,0,0,0x10,0},
+ {0x79,0,4,0,4,0,1,3,0,0,0x79,0,0x1000,4,2,3,
+ 0xc680,0x14680,0,0,0,0,0x10,0},
+ {0x7a,0,4,0,4,0,1,3,0,0,0x7a,0,0x1000,4,2,3,
+ 0xc680,0x14680,0,0,0,0,0x10,0},
+ {0x7b,0,0,0,0,0,1,4,0,0,0x7b,0,0x1000,0,2,3,
+ 0x2c680,0x2c680,0,0,0,0,0x10,0},
+ {0x7b,0,0,0,0,0,1,4,0,0,0x7b,0,0x1000,0,2,3,
+ 0x2c680,0x2c680,0,0,0,3,0x10,0},
+};
+
+_Static_assert(sizeof(kBCFormatDescriptors[0]) == 0x60,
+ "AGX texture-format records must remain 0x60 bytes");
+
+static const uint16_t kBCFormats[] = {
+ 130, 131, 132, 133, 134, 135, 140,
+ 141, 142, 143, 150, 151, 152, 153,
+};
+
+BOOL VZIsBCPixelFormat(MTLPixelFormat format) {
+ switch ((NSUInteger)format) {
+ case 130: case 131: case 132: case 133: case 134: case 135:
+ case 140: case 141: case 142: case 143:
+ case 150: case 151: case 152: case 153:
+ return YES;
+ default:
+ return NO;
+ }
+}
+
+MTLPixelFormat VZBCValidationSurrogate(MTLPixelFormat format) {
+ switch ((NSUInteger)format) {
+ case 130: return (MTLPixelFormat)180; // ETC2 RGB8
+ case 131: return (MTLPixelFormat)181; // ETC2 RGB8 sRGB
+ case 140: return (MTLPixelFormat)170; // EAC R11 unorm
+ case 141: return (MTLPixelFormat)172; // EAC R11 snorm
+ case 142: return (MTLPixelFormat)174; // EAC RG11 unorm
+ case 143: return (MTLPixelFormat)176; // EAC RG11 snorm
+ case 133: case 135: case 153:
+ return (MTLPixelFormat)186; // ASTC 4x4 sRGB
+ case 150: case 151:
+ return (MTLPixelFormat)222; // ASTC 4x4 HDR
+ default:
+ return (MTLPixelFormat)204; // ASTC 4x4 LDR
+ }
+}
+
+static const void *ChooseTextureFormat(uint32_t format) {
+ return format < gFormatDescriptorCount
+ ? gFormatDescriptors[format] : gInvalidFormatDescriptor;
+}
+
+typedef struct {
+ const struct mach_header_64 *header;
+ const uint32_t *text;
+ size_t textInstructionCount;
+ intptr_t slide;
+ const char *name;
+} AGXImage;
+
+static BOOL RuntimeAddressIsInImage(const AGXImage *image,
+ const void *address, size_t length) {
+ uintptr_t start = (uintptr_t)address;
+ if (start + length < start) return NO;
+ const uint8_t *loadCommand = (const uint8_t *)(image->header + 1);
+ for (uint32_t index = 0; index < image->header->ncmds; ++index) {
+ const struct load_command *command =
+ (const struct load_command *)loadCommand;
+ if (command->cmd == LC_SEGMENT_64) {
+ const struct segment_command_64 *segment =
+ (const struct segment_command_64 *)command;
+ if (strcmp(segment->segname, SEG_LINKEDIT) != 0) {
+ uintptr_t segmentStart = segment->vmaddr + image->slide;
+ uintptr_t segmentEnd = segmentStart + segment->vmsize;
+ if (start >= segmentStart && start + length <= segmentEnd)
+ return YES;
+ }
+ }
+ if (command->cmdsize < sizeof(*command)) return NO;
+ loadCommand += command->cmdsize;
+ }
+ return NO;
+}
+
+static BOOL ReadAGXImage(uint32_t imageIndex, AGXImage *result) {
+ const char *name = _dyld_get_image_name(imageIndex);
+ // Apple uses generation-specific names such as AGXMetal13_3,
+ // AGXMetalG14G, and AGXMetalG15. Match the extension location, not a GPU,
+ // product model, or OS-generation substring.
+ if (!name || !strstr(name, "/System/Library/Extensions/AGXMetal"))
+ return NO;
+ const struct mach_header *rawHeader = _dyld_get_image_header(imageIndex);
+ if (!rawHeader || rawHeader->magic != MH_MAGIC_64) return NO;
+ const struct mach_header_64 *header =
+ (const struct mach_header_64 *)rawHeader;
+ intptr_t slide = _dyld_get_image_vmaddr_slide(imageIndex);
+ const uint8_t *loadCommand = (const uint8_t *)(header + 1);
+ for (uint32_t index = 0; index < header->ncmds; ++index) {
+ const struct load_command *command =
+ (const struct load_command *)loadCommand;
+ if (command->cmd == LC_SEGMENT_64) {
+ const struct segment_command_64 *segment =
+ (const struct segment_command_64 *)command;
+ const struct section_64 *section =
+ (const struct section_64 *)(segment + 1);
+ for (uint32_t sectionIndex = 0;
+ sectionIndex < segment->nsects; ++sectionIndex) {
+ if (!strcmp(section[sectionIndex].segname, SEG_TEXT) &&
+ !strcmp(section[sectionIndex].sectname, SECT_TEXT) &&
+ !(section[sectionIndex].size & 3)) {
+ result->header = header;
+ result->text = (const uint32_t *)(
+ section[sectionIndex].addr + slide);
+ result->textInstructionCount =
+ section[sectionIndex].size / sizeof(uint32_t);
+ result->slide = slide;
+ result->name = name;
+ return YES;
+ }
+ }
+ }
+ if (command->cmdsize < sizeof(*command)) return NO;
+ loadCommand += command->cmdsize;
+ }
+ return NO;
+}
+
+static BOOL IsADRP(uint32_t instruction, uint32_t destinationRegister) {
+ return (instruction & 0x9f00001fU) ==
+ (0x90000000U | destinationRegister);
+}
+
+static BOOL IsADDImmediate(uint32_t instruction, uint32_t destinationRegister,
+ uint32_t sourceRegister) {
+ const uint32_t registerBits = destinationRegister | (sourceRegister << 5);
+ return (instruction & 0xffc003ffU) == (0x91000000U | registerBits);
+}
+
+// AGX implements its private pixel-format chooser as a bounded switch over
+// `format - 1`. Find that semantic dispatcher rather than using a VM address,
+// image UUID, OS version, or device-generation name. The immediates containing
+// table addresses are deliberately ignored. Requiring the complete dispatcher
+// makes this substantially narrower than a three-instruction fingerprint.
+static BOOL MatchTextureFormatChooser(const uint32_t *code,
+ uint32_t *formatCount) {
+ // iPadOS 14 receives MTLPixelFormat as x0; later compilers narrow it to
+ // w0. Both implement the same unsigned enum switch and callable ABI.
+ BOOL wideInput = code[0] == 0xd1000410U;
+ if (!wideInput && code[0] != 0x51000410U) return NO;
+ if ((code[1] & 0xffc003ffU) !=
+ (wideInput ? 0xf100021fU : 0x7100021fU)) return NO;
+ if ((code[2] & 0xff00001fU) != 0x54000008U) return NO; // b.hi
+ if (!IsADRP(code[3], 0) || !IsADDImmediate(code[4], 0, 0)) return NO;
+ if ((code[5] & 0xffc003ffU) != 0xf100021fU) return NO;
+ if (code[6] != 0x9a9f9210U || !IsADRP(code[7], 17) ||
+ !IsADDImmediate(code[8], 17, 17) || code[9] != 0xb8b07a30U ||
+ code[10] != 0x10000011U || code[11] != 0x8b100230U ||
+ code[12] != 0xd61f0200U) return NO;
+ uint32_t firstLimit = (code[1] >> 10) & 0xfffU;
+ uint32_t secondLimit = (code[5] >> 10) & 0xfffU;
+ if (!firstLimit || firstLimit != secondLimit) return NO;
+ uint32_t count = firstLimit + 2; // valid enum values are 0...limit+1
+ if (count > sizeof(gFormatDescriptors) /
+ sizeof(gFormatDescriptors[0])) return NO;
+ *formatCount = count;
+ return YES;
+}
+
+static BOOL FindTextureFormatChooser(AGXImage *foundImage,
+ void **foundAddress,
+ uint32_t *foundFormatCount) {
+ NSUInteger matches = 0;
+ for (uint32_t imageIndex = 0; imageIndex < _dyld_image_count();
+ ++imageIndex) {
+ AGXImage image = {};
+ if (!ReadAGXImage(imageIndex, &image)) continue;
+ for (size_t instructionIndex = 0;
+ instructionIndex + 17 < image.textInstructionCount;
+ ++instructionIndex) {
+ uint32_t formatCount = 0;
+ const uint32_t *candidate = image.text + instructionIndex;
+ if (!MatchTextureFormatChooser(candidate, &formatCount)) continue;
+ // The out-of-range branch must land on an adrp/add/ret record
+ // return, as it does independently in the old and new drivers.
+ int32_t branchWords =
+ ((int32_t)(candidate[2] << 8) >> 13);
+ const uint32_t *target = candidate + 2 + branchWords;
+ if (target < image.text ||
+ target + 3 > image.text + image.textInstructionCount ||
+ !IsADRP(target[0], 0) ||
+ !IsADDImmediate(target[1], 0, 0) ||
+ target[2] != 0xd65f03c0U) continue;
+ ++matches;
+ *foundImage = image;
+ *foundAddress = (void *)candidate;
+ *foundFormatCount = formatCount;
+ }
+ }
+ return matches == 1;
+}
+
+static uint64_t DescriptorABIHash(const void *record) {
+ const uint8_t *bytes = record;
+ uint64_t hash = 14695981039346656037ULL;
+ for (NSUInteger index = 0; index < 0x60; ++index) {
+ hash ^= bytes[index];
+ hash *= 1099511628211ULL;
+ }
+ return hash;
+}
+
+static BOOL ValidateTextureFormatABI(const AGXImage *image,
+ ChooseTextureFormatFn chooser,
+ uint32_t formatCount,
+ const void **invalidResult,
+ BOOL *alreadyNative) {
+ if (formatCount <= 204) return NO;
+ const void *invalid = chooser(UINT32_MAX);
+ if (!invalid || chooser(0) != invalid ||
+ chooser(formatCount) != invalid ||
+ !RuntimeAddressIsInImage(image, invalid, 0x60)) return NO;
+
+ // Prove that the dispatcher returns records owned by this AGX image and
+ // that the image uses the 0x60-byte record ABI copied below. This avoids
+ // applying those records to a future driver that merely has a similar
+ // switch implementation.
+ const uint32_t probes[] = {1, 10, 30, 70, 80, 115, 170, 180, 204};
+ const void *records[sizeof(probes) / sizeof(probes[0])] = {};
+ NSUInteger adjacentPairs = 0;
+ for (NSUInteger index = 0;
+ index < sizeof(probes) / sizeof(probes[0]); ++index) {
+ records[index] = chooser(probes[index]);
+ if (!records[index] || records[index] == invalid ||
+ !RuntimeAddressIsInImage(image, records[index], 0x60)) return NO;
+ for (NSUInteger previous = 0; previous < index; ++previous) {
+ uintptr_t a = (uintptr_t)records[index];
+ uintptr_t b = (uintptr_t)records[previous];
+ uintptr_t distance = a > b ? a - b : b - a;
+ if (distance == 0x60) ++adjacentPairs;
+ }
+ }
+ if (adjacentPairs < 2) return NO;
+
+ // These are format records, not an image/build fingerprint. EAC R11,
+ // ETC2 RGB8, and ASTC 4x4 have byte-identical records in the first and
+ // last qualified iOS/iPadOS 14/15/16 M1, M2, and A16 firmwares. They prove
+ // the field encoding consumed by the static BC records.
+ if (DescriptorABIHash(chooser(170)) != 0x96c7f2141f60b4c2ULL ||
+ DescriptorABIHash(chooser(180)) != 0xe095d5cb46537e57ULL ||
+ DescriptorABIHash(chooser(204)) != 0xd0cb277563853582ULL)
+ return NO;
+
+ NSUInteger nativeCount = 0;
+ NSUInteger invalidCount = 0;
+ for (NSUInteger index = 0;
+ index < sizeof(kBCFormats) / sizeof(kBCFormats[0]); ++index) {
+ const void *record = chooser(kBCFormats[index]);
+ if (record == invalid) {
+ ++invalidCount;
+ } else if (record && RuntimeAddressIsInImage(image, record, 0x60)) {
+ ++nativeCount;
+ } else {
+ return NO;
+ }
+ }
+ if (nativeCount && invalidCount) return NO;
+ *invalidResult = invalid;
+ *alreadyNative = nativeCount ==
+ sizeof(kBCFormats) / sizeof(kBCFormats[0]);
+ return nativeCount || invalidCount;
+}
+
+static MSHookFunctionFn LoadHookFunction(void) {
+ MSHookFunctionFn hook = dlsym(RTLD_DEFAULT, "MSHookFunction");
+ if (hook) return hook;
+ static const char *paths[] = {
+ "/var/jb/usr/lib/libellekit.dylib",
+ "/var/jb/usr/lib/libhooker.dylib",
+ "/usr/lib/libhooker.dylib",
+ };
+ for (NSUInteger index = 0; index < sizeof(paths) / sizeof(paths[0]); ++index) {
+ void *image = dlopen(paths[index], RTLD_NOW | RTLD_LOCAL);
+ hook = image ? dlsym(image, "MSHookFunction") : NULL;
+ if (hook) return hook;
+ }
+ return NULL;
+}
+
+BOOL VZInstallNativeBCTextureSupport(void) {
+ static dispatch_once_t once;
+ dispatch_once(&once, ^{
+ AGXImage image = {};
+ void *unhookedAddress = NULL;
+ uint32_t formatCount = 0;
+ if (!FindTextureFormatChooser(&image, &unhookedAddress,
+ &formatCount)) return;
+ ChooseTextureFormatFn unhooked =
+ ptrauth_sign_unauthenticated(
+ unhookedAddress, ptrauth_key_function_pointer, 0);
+ BOOL alreadyNative = NO;
+ if (!ValidateTextureFormatABI(&image, unhooked, formatCount,
+ &gInvalidFormatDescriptor,
+ &alreadyNative)) return;
+ if (alreadyNative) {
+ gNativeBCInstalled = YES;
+ fprintf(stderr,
+ "[metalshim] AGX driver already provides native BC "
+ "texture formats\n");
+ return;
+ }
+ MSHookFunctionFn hook = LoadHookFunction();
+ if (!hook) return;
+
+ gFormatDescriptorCount = formatCount;
+ for (uint32_t format = 0; format < formatCount; ++format)
+ gFormatDescriptors[format] = unhooked(format);
+ for (NSUInteger index = 0;
+ index < sizeof(kBCFormats) / sizeof(kBCFormats[0]); ++index) {
+ gFormatDescriptors[kBCFormats[index]] = kBCFormatDescriptors[index];
+ }
+ hook(unhookedAddress, (void *)ChooseTextureFormat,
+ (void **)&gChooseTextureFormatTrampoline);
+ gNativeBCInstalled = gChooseTextureFormatTrampoline != NULL;
+ if (gNativeBCInstalled) {
+ fprintf(stderr,
+ "[metalshim] enabled native BC texture formats in %s "
+ "after runtime ABI validation\n", image.name);
+ }
+ });
+ return gNativeBCInstalled;
+}
+
+BOOL VZNativeBCTextureSupportInstalled(void) {
+ return gNativeBCInstalled;
+}
diff --git a/VirtualMac/vz/host/pvg_trace.m b/VirtualMac/vz/host/pvg_trace.m
index 1620869..c0213a0 100644
--- a/VirtualMac/vz/host/pvg_trace.m
+++ b/VirtualMac/vz/host/pvg_trace.m
@@ -7,6 +7,7 @@
#import <fcntl.h>
#import <ptrauth.h>
#import <pthread.h>
+#import <notify.h>
#import <stdint.h>
#import <stdlib.h>
#import <string.h>
@@ -40,15 +41,20 @@ static uint64_t gTaskLookupCount;
static uint64_t gTaskLookupMissCount;
static uint64_t gTaskMapCount;
static uint64_t gTaskMapHighWater;
+static uint64_t gTaskMapFailures;
static uint64_t gManagedTextureTranslations;
static BOOL gDebugLogging;
static pthread_mutex_t gLargeTaskLock = PTHREAD_MUTEX_INITIALIZER;
-static pthread_mutex_t gTaskCreateLock = PTHREAD_MUTEX_INITIALIZER;
-static uint32_t gLargeTaskIDs[8];
+static void *gLargeTaskPointers[8];
+static bool gLargeTaskSlotUsed[8];
static uint32_t gLargeTaskLimit;
-static uint64_t gLargeTaskReservationGB;
-static uint64_t gCreatingTaskReservationGB;
+static uint64_t gLargeTaskReservationMB;
+static uint64_t gMinimumTaskReservationMB;
+static uint64_t gTaskReservationFallbacks;
+static uint64_t gTaskReservationFailures;
static id (*gOriginalGetBufferForReferenceNonNull)(id, SEL, uint32_t);
+static const char * const VZVideoMemoryExhaustedNotification =
+ "com.mac.virtual.video-memory-exhausted";
extern id PGNewDeviceWithDescriptor(id descriptor);
static void InstallMetalLibraryFallback(id<MTLDevice> device);
@@ -78,10 +84,366 @@ static NSString *HostMetalLibraryResourceName(void) {
return @"default";
}
+static void Trace(NSString *format, ...) NS_FORMAT_FUNCTION(1, 2);
+
typedef void *(^PVGCreateTaskBlock)(uint64_t length, void **baseAddress);
+typedef void (^PVGDestroyTaskBlock)(void *task);
typedef BOOL (^PVGMapMemoryBlock)(void *task, uint32_t segmentCount,
uint64_t offset, BOOL readonly,
const uint64_t *ranges);
+typedef BOOL (^PVGUnmapMemoryBlock)(void *task, uint64_t offset,
+ uint64_t length);
+
+// A macOS host can leave the complete 16 GiB guest GPU address space sparsely
+// reserved for every PGTask. iPadOS has only about 63 GiB of process VA, so
+// doing that for tens of guest clients is impossible. Keep the inexpensive
+// primary reservation and add large, discontiguous host reservations only for
+// tasks that actually cross it. PGTask's address helpers are translated to the
+// reservation containing the requested guest range; Metal resources therefore
+// retain stable host pointers for their full lifetime.
+#define PVG_SEGMENT_BUCKET_COUNT 64
+#define PVG_MAX_TASK_SEGMENTS 16
+
+typedef struct {
+ void *task;
+ void *base;
+ uint64_t logicalStart;
+ uint64_t length;
+} PVGTaskSegment;
+
+typedef struct PVGSegmentedTask {
+ void *primaryTask;
+ uint64_t logicalLength;
+ uint32_t segmentCount;
+ PVGCreateTaskBlock createTask;
+ pthread_mutex_t mutex;
+ PVGTaskSegment segments[PVG_MAX_TASK_SEGMENTS];
+ struct PVGSegmentedTask *next;
+} PVGSegmentedTask;
+
+static pthread_rwlock_t gSegmentedTaskLock = PTHREAD_RWLOCK_INITIALIZER;
+static PVGSegmentedTask *gSegmentedTaskBuckets[PVG_SEGMENT_BUCKET_COUNT];
+static uint64_t gTaskOverflowReservationMB;
+static Ivar gPGTaskHandleIvar;
+static SEL gOriginalAddressForOffsetSelector;
+static SEL gOriginalMappedAddressForOffsetSelector;
+static BOOL gSegmentedAddressHooksInstalled;
+
+static size_t SegmentedTaskBucket(void *task) {
+ return (((uintptr_t)task) >> 4) % PVG_SEGMENT_BUCKET_COUNT;
+}
+
+// The caller must hold gSegmentedTaskLock for reading or writing.
+static PVGSegmentedTask *FindSegmentedTaskLocked(void *task) {
+ if (task == NULL)
+ return NULL;
+ PVGSegmentedTask *entry =
+ gSegmentedTaskBuckets[SegmentedTaskBucket(task)];
+ while (entry != NULL && entry->primaryTask != task)
+ entry = entry->next;
+ return entry;
+}
+
+static BOOL RegisterSegmentedTask(void *task, void *base,
+ uint64_t reservedLength,
+ uint64_t logicalLength,
+ PVGCreateTaskBlock createTask) {
+ if (task == NULL || base == NULL || reservedLength == 0 ||
+ reservedLength >= logicalLength || gTaskOverflowReservationMB == 0 ||
+ createTask == nil)
+ return NO;
+ PVGSegmentedTask *entry = calloc(1, sizeof(*entry));
+ if (entry == NULL)
+ return NO;
+ entry->primaryTask = task;
+ entry->logicalLength = logicalLength;
+ entry->segmentCount = 1;
+ entry->createTask = [createTask copy];
+ if (entry->createTask == nil) {
+ free(entry);
+ return NO;
+ }
+ entry->segments[0] = (PVGTaskSegment){
+ .task = task,
+ .base = base,
+ .logicalStart = 0,
+ .length = reservedLength,
+ };
+ pthread_mutex_init(&entry->mutex, NULL);
+
+ size_t bucket = SegmentedTaskBucket(task);
+ pthread_rwlock_wrlock(&gSegmentedTaskLock);
+ entry->next = gSegmentedTaskBuckets[bucket];
+ gSegmentedTaskBuckets[bucket] = entry;
+ pthread_rwlock_unlock(&gSegmentedTaskLock);
+ return YES;
+}
+
+static PVGSegmentedTask *RemoveSegmentedTask(void *task) {
+ size_t bucket = SegmentedTaskBucket(task);
+ pthread_rwlock_wrlock(&gSegmentedTaskLock);
+ PVGSegmentedTask **cursor = &gSegmentedTaskBuckets[bucket];
+ while (*cursor != NULL && (*cursor)->primaryTask != task)
+ cursor = &(*cursor)->next;
+ PVGSegmentedTask *entry = *cursor;
+ if (entry != NULL)
+ *cursor = entry->next;
+ pthread_rwlock_unlock(&gSegmentedTaskLock);
+ return entry;
+}
+
+// The task mutex must be held. A returned segment always contains the entire
+// range; a single Metal allocation is never allowed to straddle unrelated host
+// reservations because Metal retains the resulting CPU pointer.
+static PVGTaskSegment *SegmentForRangeLocked(PVGSegmentedTask *entry,
+ uint64_t offset,
+ uint64_t length,
+ BOOL create) {
+ if (entry == NULL || length == 0 || UINT64_MAX - offset < length ||
+ offset + length > entry->logicalLength)
+ return NULL;
+ uint64_t end = offset + length;
+ for (uint32_t index = 0; index < entry->segmentCount; index++) {
+ PVGTaskSegment *segment = &entry->segments[index];
+ if (offset >= segment->logicalStart &&
+ end <= segment->logicalStart + segment->length)
+ return segment;
+ }
+ if (!create || entry->createTask == nil ||
+ entry->segmentCount >= PVG_MAX_TASK_SEGMENTS)
+ return NULL;
+
+ uint64_t primaryLength = entry->segments[0].length;
+ uint64_t overflowLength = gTaskOverflowReservationMB << 20;
+ if (offset < primaryLength || overflowLength == 0)
+ return NULL;
+ uint64_t logicalStart = primaryLength +
+ ((offset - primaryLength) / overflowLength) * overflowLength;
+ uint64_t reservationLength = MIN(
+ overflowLength, entry->logicalLength - logicalStart);
+ if (end > logicalStart + reservationLength)
+ return NULL;
+
+ void *base = NULL;
+ void *task = entry->createTask(reservationLength, &base);
+ if (task == NULL || base == NULL) {
+ dprintf(STDERR_FILENO,
+ "VirtualMac PVG: overflow reservation failed primary=%p "
+ "start=%llu length=%llu\n",
+ entry->primaryTask,
+ (unsigned long long)logicalStart,
+ (unsigned long long)reservationLength);
+ return NULL;
+ }
+ PVGTaskSegment *segment = &entry->segments[entry->segmentCount++];
+ *segment = (PVGTaskSegment){
+ .task = task,
+ .base = base,
+ .logicalStart = logicalStart,
+ .length = reservationLength,
+ };
+ Trace(@"TASK_OVERFLOW_RESERVE\tprimary=%p\tsegment=%p"
+ "\tbase=%p\tstart=%llu\tlength=%llu",
+ entry->primaryTask, task, base,
+ (unsigned long long)logicalStart,
+ (unsigned long long)reservationLength);
+ return segment;
+}
+
+static void *PGTaskHandle(id taskObject) {
+ if (taskObject == nil || gPGTaskHandleIvar == NULL)
+ return NULL;
+ void *task = NULL;
+ ptrdiff_t offset = ivar_getOffset(gPGTaskHandleIvar);
+ memcpy(&task, (const uint8_t *)(__bridge const void *)taskObject + offset,
+ sizeof(task));
+ return task;
+}
+
+static void *TranslatedTaskAddress(void *task, uint64_t offset,
+ uint64_t length, BOOL create) {
+ void *address = NULL;
+ pthread_rwlock_rdlock(&gSegmentedTaskLock);
+ PVGSegmentedTask *entry = FindSegmentedTaskLocked(task);
+ if (entry != NULL) {
+ pthread_mutex_lock(&entry->mutex);
+ PVGTaskSegment *segment = SegmentForRangeLocked(
+ entry, offset, length, create);
+ if (segment != NULL)
+ address = (uint8_t *)segment->base +
+ (offset - segment->logicalStart);
+ pthread_mutex_unlock(&entry->mutex);
+ }
+ pthread_rwlock_unlock(&gSegmentedTaskLock);
+ return address;
+}
+
+static void *SegmentedAddressForOffset(id self, SEL selector,
+ uint64_t offset, uint64_t length) {
+ // Preserve PGTask's native range validation and exception behavior.
+ void *nativeAddress = ((void *(*)(id, SEL, uint64_t, uint64_t))
+ objc_msgSend)(self, gOriginalAddressForOffsetSelector, offset, length);
+ void *translated = TranslatedTaskAddress(
+ PGTaskHandle(self), offset, length, YES);
+ return translated ?: nativeAddress;
+}
+
+static void *SegmentedMappedAddressForOffset(id self, SEL selector,
+ uint64_t offset,
+ uint64_t length) {
+ // The original method maintains PGTask's mapped-range tracker and invokes
+ // the descriptor callback. Discard only its base+offset result.
+ void *nativeAddress = ((void *(*)(id, SEL, uint64_t, uint64_t))
+ objc_msgSend)(self, gOriginalMappedAddressForOffsetSelector,
+ offset, length);
+ void *translated = TranslatedTaskAddress(
+ PGTaskHandle(self), offset, length, NO);
+ return translated ?: nativeAddress;
+}
+
+static BOOL InstallSegmentedPGTaskAddressHooks(void) {
+ if (gSegmentedAddressHooksInstalled)
+ return YES;
+ Class taskClass = NSClassFromString(@"PGTask");
+ if (taskClass == Nil)
+ return NO;
+ gPGTaskHandleIvar = class_getInstanceVariable(taskClass, "_task");
+ Method addressMethod = class_getInstanceMethod(
+ taskClass, NSSelectorFromString(@"addressForOffset:length:"));
+ Method mappedMethod = class_getInstanceMethod(
+ taskClass, NSSelectorFromString(@"mappedAddressForOffset:length:"));
+ if (gPGTaskHandleIvar == NULL || addressMethod == NULL ||
+ mappedMethod == NULL)
+ return NO;
+ // iPadOS 14/15 cannot safely call a Ventura arm64e IMP returned by
+ // method_setImplementation through a plain C function pointer. Preserve
+ // each implementation as a private Objective-C method instead. Dispatch
+ // through objc_msgSend then uses the current runtime's own pointer-
+ // authentication convention on every supported host release.
+ gOriginalAddressForOffsetSelector = sel_registerName(
+ "_virtualMac_originalAddressForOffset:length:");
+ gOriginalMappedAddressForOffsetSelector = sel_registerName(
+ "_virtualMac_originalMappedAddressForOffset:length:");
+ if (!class_addMethod(taskClass, gOriginalAddressForOffsetSelector,
+ method_getImplementation(addressMethod),
+ method_getTypeEncoding(addressMethod)) ||
+ !class_addMethod(taskClass, gOriginalMappedAddressForOffsetSelector,
+ method_getImplementation(mappedMethod),
+ method_getTypeEncoding(mappedMethod))) {
+ return NO;
+ }
+ method_setImplementation(addressMethod, (IMP)SegmentedAddressForOffset);
+ method_setImplementation(mappedMethod,
+ (IMP)SegmentedMappedAddressForOffset);
+ Trace(@"TASK_OVERFLOW_HOOKS\tinstalled=1");
+ gSegmentedAddressHooksInstalled = YES;
+ return YES;
+}
+
+static BOOL MapSegmentedTaskRange(PVGMapMemoryBlock originalMap,
+ void *task, uint32_t segmentCount,
+ uint64_t offset, uint64_t mappedLength,
+ BOOL readonly, const uint64_t *ranges) {
+ BOOL result = NO;
+ pthread_rwlock_rdlock(&gSegmentedTaskLock);
+ PVGSegmentedTask *entry = FindSegmentedTaskLocked(task);
+ if (entry != NULL) {
+ pthread_mutex_lock(&entry->mutex);
+ PVGTaskSegment *segment = SegmentForRangeLocked(
+ entry, offset, mappedLength, YES);
+ if (segment != NULL) {
+ result = originalMap(
+ segment->task, segmentCount,
+ offset - segment->logicalStart, readonly, ranges);
+ } else {
+ dprintf(STDERR_FILENO,
+ "VirtualMac PVG: mapping cannot fit one reservation "
+ "task=%p offset=%llu length=%llu\n",
+ task, (unsigned long long)offset,
+ (unsigned long long)mappedLength);
+ }
+ pthread_mutex_unlock(&entry->mutex);
+ }
+ pthread_rwlock_unlock(&gSegmentedTaskLock);
+ return result;
+}
+
+static BOOL UnmapSegmentedTaskRange(PVGUnmapMemoryBlock originalUnmap,
+ void *task, uint64_t offset,
+ uint64_t length) {
+ BOOL result = NO;
+ pthread_rwlock_rdlock(&gSegmentedTaskLock);
+ PVGSegmentedTask *entry = FindSegmentedTaskLocked(task);
+ if (entry != NULL) {
+ pthread_mutex_lock(&entry->mutex);
+ PVGTaskSegment *segment = SegmentForRangeLocked(
+ entry, offset, length, NO);
+ if (segment != NULL) {
+ result = originalUnmap(
+ segment->task, offset - segment->logicalStart, length);
+ }
+ pthread_mutex_unlock(&entry->mutex);
+ }
+ pthread_rwlock_unlock(&gSegmentedTaskLock);
+ return result;
+}
+
+static void *CreateTaskWithAdaptiveReservation(
+ PVGCreateTaskBlock createTask, uint64_t requestedLength,
+ uint64_t preferredLength, void **baseAddress) {
+ if (requestedLength != (16ULL << 30) || preferredLength == 0)
+ return createTask(requestedLength, baseAddress);
+
+ uint64_t minimumLength = MAX(gMinimumTaskReservationMB, 1) << 20;
+ minimumLength = MIN(minimumLength, preferredLength);
+ uint64_t candidate = preferredLength;
+ while (true) {
+ if (baseAddress != NULL)
+ *baseAddress = NULL;
+ void *task = createTask(candidate, baseAddress);
+ if (task != NULL) {
+ if (candidate != preferredLength) {
+ uint64_t fallback = __atomic_add_fetch(
+ &gTaskReservationFallbacks, 1, __ATOMIC_RELAXED);
+ dprintf(STDERR_FILENO,
+ "VirtualMac PVG: task reservation fell back from "
+ "%llu to %llu bytes (fallback %llu)\n",
+ (unsigned long long)preferredLength,
+ (unsigned long long)candidate,
+ (unsigned long long)fallback);
+ }
+ return task;
+ }
+ if (candidate == minimumLength)
+ break;
+ candidate = MAX(candidate / 2, minimumLength);
+ }
+
+ // Keep the VMM and guest alive long enough for the user to decide whether
+ // to save non-graphical work or force shutdown. A real 1 MiB task is safer
+ // than returning nil (which makes _PGDevice enter an unbounded Invalid
+ // task loop), while the host warning makes the degraded state explicit.
+ uint64_t failure = __atomic_add_fetch(
+ &gTaskReservationFailures, 1, __ATOMIC_RELAXED);
+ if (baseAddress != NULL)
+ *baseAddress = NULL;
+ void *emergencyTask = createTask(1ULL << 20, baseAddress);
+ notify_post(VZVideoMemoryExhaustedNotification);
+ if (emergencyTask != NULL) {
+ dprintf(STDERR_FILENO,
+ "VirtualMac PVG: graphics address space exhausted; using "
+ "1 MiB emergency task so the guest can remain alive "
+ "(failure %llu)\n",
+ (unsigned long long)failure);
+ return emergencyTask;
+ }
+ dprintf(STDERR_FILENO,
+ "VirtualMac PVG: graphics address space exhausted after "
+ "reservation retries, including the emergency task; stopping "
+ "VMM (failure %llu)\n",
+ (unsigned long long)failure);
+ abort();
+}
static const char *TracePath(void) {
const char *configured = getenv("PVG_TRACE_PATH");
@@ -188,32 +550,48 @@ static id TaskDictionary(id device) {
return tasksIvar != NULL ? object_getIvar(device, tasksIvar) : nil;
}
-static BOOL ReserveLargeTaskSlot(uint32_t taskID, uint64_t length) {
- if (length != (16ULL << 30) || gLargeTaskReservationGB == 0 ||
+static int32_t ClaimLargeTaskSlot(uint64_t length) {
+ if (length != (16ULL << 30) || gLargeTaskReservationMB == 0 ||
gLargeTaskLimit == 0)
- return NO;
- BOOL reserved = NO;
+ return -1;
+ int32_t claimedSlot = -1;
pthread_mutex_lock(&gLargeTaskLock);
for (uint32_t index = 0; index < gLargeTaskLimit; index++) {
- if (gLargeTaskIDs[index] == taskID) {
- reserved = YES;
+ if (!gLargeTaskSlotUsed[index]) {
+ gLargeTaskSlotUsed[index] = true;
+ gLargeTaskPointers[index] = NULL;
+ claimedSlot = (int32_t)index;
break;
}
- if (gLargeTaskIDs[index] == 0) {
- gLargeTaskIDs[index] = taskID;
- reserved = YES;
- break;
+ }
+ pthread_mutex_unlock(&gLargeTaskLock);
+ return claimedSlot;
+}
+
+static void FinishLargeTaskSlot(int32_t slot, void *task) {
+ if (slot < 0)
+ return;
+ pthread_mutex_lock(&gLargeTaskLock);
+ if ((uint32_t)slot < gLargeTaskLimit) {
+ if (task != NULL) {
+ gLargeTaskPointers[slot] = task;
+ } else {
+ gLargeTaskSlotUsed[slot] = false;
+ gLargeTaskPointers[slot] = NULL;
}
}
pthread_mutex_unlock(&gLargeTaskLock);
- return reserved;
}
-static void ReleaseLargeTaskSlot(uint32_t taskID) {
+static void ReleaseLargeTaskSlotForPointer(void *task) {
+ if (task == NULL)
+ return;
pthread_mutex_lock(&gLargeTaskLock);
for (uint32_t index = 0; index < gLargeTaskLimit; index++) {
- if (gLargeTaskIDs[index] == taskID) {
- gLargeTaskIDs[index] = 0;
+ if (gLargeTaskSlotUsed[index] &&
+ gLargeTaskPointers[index] == task) {
+ gLargeTaskSlotUsed[index] = false;
+ gLargeTaskPointers[index] = NULL;
break;
}
}
@@ -223,30 +601,14 @@ static void ReleaseLargeTaskSlot(uint32_t taskID) {
static void TraceCreateTaskID(id self, SEL selector, uint32_t taskID,
uint32_t taskRoot, uint64_t length,
BOOL restoring) {
- BOOL largeTask = ReserveLargeTaskSlot(taskID, length);
if (gDebugLogging) {
Trace(@"TASK_CREATE\tbegin\tid=%u\troot=%u\tlength=%llu"
- "\trestoring=%d\tlarge=%d\ttasks=%@",
+ "\trestoring=%d\ttasks=%@",
taskID, taskRoot, (unsigned long long)length, restoring,
- largeTask, TaskDictionary(self));
+ TaskDictionary(self));
}
- // The extracted framework invokes createTask on another thread while the
- // createTaskWithID: call is in flight. Serialize creations and publish the
- // selected tier process-wide so that callback sees it.
- pthread_mutex_lock(&gTaskCreateLock);
- __atomic_store_n(&gCreatingTaskReservationGB,
- largeTask ? gLargeTaskReservationGB : 0,
- __ATOMIC_RELEASE);
- @try {
- gOriginalCreateTaskID(
- self, selector, taskID, taskRoot, length, restoring);
- } @finally {
- __atomic_store_n(&gCreatingTaskReservationGB, 0, __ATOMIC_RELEASE);
- pthread_mutex_unlock(&gTaskCreateLock);
- }
- id createdTask = [TaskDictionary(self) objectForKey:@(taskID)];
- if (largeTask && createdTask == nil)
- ReleaseLargeTaskSlot(taskID);
+ gOriginalCreateTaskID(
+ self, selector, taskID, taskRoot, length, restoring);
if (gDebugLogging)
Trace(@"TASK_CREATE\tend\tid=%u\ttasks=%@",
taskID, TaskDictionary(self));
@@ -257,8 +619,6 @@ static BOOL TraceDeleteTaskID(id self, SEL selector, uint32_t taskID) {
Trace(@"TASK_DELETE\tbegin\tid=%u\ttasks=%@",
taskID, TaskDictionary(self));
BOOL result = gOriginalDeleteTaskID(self, selector, taskID);
- if (result || [TaskDictionary(self) objectForKey:@(taskID)] == nil)
- ReleaseLargeTaskSlot(taskID);
if (gDebugLogging) {
Trace(@"TASK_DELETE\tend\tid=%u\tresult=%d\ttasks=%@",
taskID, result, TaskDictionary(self));
@@ -520,41 +880,96 @@ static id TracePGNewDeviceWithDescriptor(id descriptor) {
// Keep PVG's logical 16 GiB task size but reduce the VMM's sparse host
// reservation. The map wrapper verifies whether the guest ever crosses
// the physical reservation before forwarding each fixed remap.
- const char *reservationText = getenv("PVG_TASK_RESERVATION_GB");
- uint64_t reservationGB = reservationText && reservationText[0]
+ const char *reservationText = getenv("PVG_TASK_RESERVATION_MB");
+ uint64_t reservationMB = reservationText && reservationText[0]
? strtoull(reservationText, NULL, 10) : 0;
const char *largeReservationText = getenv(
- "PVG_LARGE_TASK_RESERVATION_GB");
- gLargeTaskReservationGB = largeReservationText &&
+ "PVG_LARGE_TASK_RESERVATION_MB");
+ gLargeTaskReservationMB = largeReservationText &&
largeReservationText[0]
? strtoull(largeReservationText, NULL, 10) : 0;
const char *largeTaskCountText = getenv("PVG_LARGE_TASK_COUNT");
uint64_t largeTaskCount = largeTaskCountText && largeTaskCountText[0]
? strtoull(largeTaskCountText, NULL, 10) : 0;
gLargeTaskLimit = (uint32_t)MIN(
- largeTaskCount, sizeof(gLargeTaskIDs) / sizeof(gLargeTaskIDs[0]));
+ largeTaskCount,
+ sizeof(gLargeTaskPointers) / sizeof(gLargeTaskPointers[0]));
+ const char *minimumReservationText = getenv(
+ "PVG_MIN_TASK_RESERVATION_MB");
+ gMinimumTaskReservationMB = minimumReservationText &&
+ minimumReservationText[0]
+ ? strtoull(minimumReservationText, NULL, 10) : 64;
+ const char *overflowReservationText = getenv(
+ "PVG_TASK_OVERFLOW_MB");
+ gTaskOverflowReservationMB = overflowReservationText &&
+ overflowReservationText[0]
+ ? strtoull(overflowReservationText, NULL, 10) : 0;
+ if (gTaskOverflowReservationMB != 0 &&
+ !InstallSegmentedPGTaskAddressHooks()) {
+ dprintf(STDERR_FILENO,
+ "VirtualMac PVG: segmented address hooks unavailable; "
+ "using the established 512 MiB fixed reservation\n");
+ gTaskOverflowReservationMB = 0;
+ reservationMB = MAX(reservationMB, 512);
+ }
if (createTask != nil) {
PVGCreateTaskBlock originalCreate = (PVGCreateTaskBlock)createTask;
PVGCreateTaskBlock wrappedCreate = ^void *(uint64_t length,
void **baseAddress) {
uint64_t effectiveLength = length;
- uint64_t creatingReservationGB = __atomic_load_n(
- &gCreatingTaskReservationGB, __ATOMIC_ACQUIRE);
- uint64_t selectedReservationGB = creatingReservationGB
- ? creatingReservationGB : reservationGB;
- if (selectedReservationGB != 0 && length == (16ULL << 30))
- effectiveLength = selectedReservationGB << 30;
- void *task = originalCreate(effectiveLength, baseAddress);
+ int32_t largeSlot = ClaimLargeTaskSlot(length);
+ uint64_t selectedReservationMB = largeSlot >= 0
+ ? gLargeTaskReservationMB : reservationMB;
+ if (selectedReservationMB != 0 && length == (16ULL << 30))
+ effectiveLength = selectedReservationMB << 20;
+ void *task = CreateTaskWithAdaptiveReservation(
+ originalCreate, length, effectiveLength, baseAddress);
+ FinishLargeTaskSlot(largeSlot, task);
+ uint64_t actualLength = task != NULL
+ ? ((const uint64_t *)task)[1] : 0;
+ if (task != NULL && baseAddress != NULL &&
+ gTaskOverflowReservationMB != 0) {
+ RegisterSegmentedTask(
+ task, *baseAddress, actualLength, length,
+ originalCreate);
+ }
Trace(@"TASK_RESERVE\trequested=%llu\teffective=%llu"
- "\tresult=%p\tbase=%p",
+ "\tactual=%llu\tresult=%p\tbase=%p",
(unsigned long long)length,
(unsigned long long)effectiveLength,
+ (unsigned long long)actualLength,
task,
baseAddress ? *baseAddress : NULL);
return task;
};
[descriptor setValue:wrappedCreate forKey:@"createTask"];
}
+ if (destroyTask != nil) {
+ PVGDestroyTaskBlock originalDestroy =
+ (PVGDestroyTaskBlock)destroyTask;
+ PVGDestroyTaskBlock wrappedDestroy = ^(void *task) {
+ PVGSegmentedTask *segmented = RemoveSegmentedTask(task);
+ @try {
+ if (segmented != NULL) {
+ pthread_mutex_lock(&segmented->mutex);
+ for (uint32_t index = 1;
+ index < segmented->segmentCount; index++) {
+ originalDestroy(segmented->segments[index].task);
+ }
+ pthread_mutex_unlock(&segmented->mutex);
+ }
+ originalDestroy(task);
+ } @finally {
+ ReleaseLargeTaskSlotForPointer(task);
+ if (segmented != NULL) {
+ [segmented->createTask release];
+ pthread_mutex_destroy(&segmented->mutex);
+ free(segmented);
+ }
+ }
+ };
+ [descriptor setValue:wrappedDestroy forKey:@"destroyTask"];
+ }
if (mapMemory != nil) {
PVGMapMemoryBlock originalMap = (PVGMapMemoryBlock)mapMemory;
PVGMapMemoryBlock wrappedMap = ^BOOL(
@@ -580,8 +995,30 @@ static id TracePGNewDeviceWithDescriptor(id descriptor) {
// VMM. Report a clean map failure instead of corrupting adjacent
// virtual allocations.
BOOL withinReservation = task && end <= reserved;
- BOOL result = withinReservation && originalMap(
- task, segmentCount, offset, readonly, ranges);
+ BOOL result = withinReservation
+ ? originalMap(task, segmentCount, offset, readonly, ranges)
+ : MapSegmentedTaskRange(
+ originalMap, task, segmentCount, offset, mappedLength,
+ readonly, ranges);
+ if (!result) {
+ uint64_t failure = __atomic_add_fetch(
+ &gTaskMapFailures, 1, __ATOMIC_RELAXED);
+ dprintf(STDERR_FILENO,
+ "VirtualMac PVG: task map failed task=%p "
+ "base=0x%llx reserved=%llu offset=%llu length=%llu "
+ "end=%llu within=%d segments=%u readonly=%d "
+ "failure=%llu\n",
+ task,
+ (unsigned long long)base,
+ (unsigned long long)reserved,
+ (unsigned long long)offset,
+ (unsigned long long)mappedLength,
+ (unsigned long long)end,
+ withinReservation,
+ segmentCount,
+ readonly,
+ (unsigned long long)failure);
+ }
if (gDebugLogging) {
uint64_t count = __atomic_add_fetch(
&gTaskMapCount, 1, __ATOMIC_RELAXED);
@@ -598,8 +1035,13 @@ static id TracePGNewDeviceWithDescriptor(id descriptor) {
}
BOOL crossedHighWaterBucket = raisedHighWater &&
((end >> 24) != (previousHighWater >> 24));
- if (count <= 16 || !result || !withinReservation ||
- crossedHighWaterBucket) {
+ // Crossing the primary reservation is normal when segmented
+ // tasks are active. Logging every overflow page made debug
+ // mode open and append this file hundreds of thousands of
+ // times during boot, materially changing graphics timing.
+ // Segment creation plus high-water buckets retain enough
+ // evidence without putting I/O in the mapping hot path.
+ if (count <= 16 || !result || crossedHighWaterBucket) {
Trace(@"TASK_MAP\tcount=%llu\ttask=%p\tbase=0x%llx"
"\treserved=%llu\toffset=%llu\tlength=%llu"
"\tend=%llu\twithin=%d\thighwater=%d\tsegments=%u"
@@ -619,6 +1061,21 @@ static id TracePGNewDeviceWithDescriptor(id descriptor) {
};
[descriptor setValue:wrappedMap forKey:@"mapMemory"];
}
+ if (unmapMemory != nil) {
+ PVGUnmapMemoryBlock originalUnmap =
+ (PVGUnmapMemoryBlock)unmapMemory;
+ PVGUnmapMemoryBlock wrappedUnmap = ^BOOL(
+ void *task, uint64_t offset, uint64_t length) {
+ uint64_t reserved = task ? ((const uint64_t *)task)[1] : 0;
+ if (task != NULL && UINT64_MAX - offset >= length &&
+ offset + length <= reserved) {
+ return originalUnmap(task, offset, length);
+ }
+ return UnmapSegmentedTaskRange(
+ originalUnmap, task, offset, length);
+ };
+ [descriptor setValue:wrappedUnmap forKey:@"unmapMemory"];
+ }
id result = PGNewDeviceWithDescriptor(descriptor);
Trace(@"CALL\tPGNewDeviceWithDescriptor\tresult=%@", result);
if (result != nil && HostPredatesIPadOS16()) {
@@ -938,14 +1395,12 @@ static void InstallPVGTrace(void) {
if (gDebugLogging)
InstallMetalSerializerReferenceTrace();
- // The create/delete wrappers select and recycle the larger sparse
- // reservations required by WindowServer. They are compatibility,
- // not tracing, and must remain active when Debug Logging is off.
- // Saved Ventura arm64e IMPs cannot safely round-trip through the
- // older Objective-C runtimes, so iPadOS 14/15 retain their established
- // factory-only compatibility path.
+ // Functional reservation selection and recycling use only the stable
+ // descriptor block ABI on every supported iPadOS release. These
+ // authenticated Objective-C method hooks are diagnostics only; saved
+ // Ventura arm64e IMPs cannot safely round-trip through older runtimes.
BOOL canInstallAuthenticatedMethods = !HostPredatesIPadOS16();
- if (canInstallAuthenticatedMethods) {
+ if (gDebugLogging && canInstallAuthenticatedMethods) {
Method createTaskMethod = class_getInstanceMethod(
cls, createTaskSelector);
if (createTaskMethod != NULL) {
diff --git a/VirtualMac/vz/host/vmmhook.m b/VirtualMac/vz/host/vmmhook.m
index e5e0669..615759e 100644
--- a/VirtualMac/vz/host/vmmhook.m
+++ b/VirtualMac/vz/host/vmmhook.m
@@ -27,6 +27,7 @@
#include <limits.h>
#include <dlfcn.h>
#include <mach-o/dyld.h>
+#include <mach-o/loader.h>
#include <mach/mach_time.h>
#include <ptrauth.h>
#include <pthread.h>
@@ -61,8 +62,67 @@ extern char _xpc_type_connection[]; // XPC_TYPE_CONNECTION
extern char _xpc_type_dictionary[]; // XPC_TYPE_DICTIONARY
extern char _xpc_type_error[]; // XPC_TYPE_ERROR
extern int sandbox_init(const char *profile, uint64_t flags, char **errorbuf);
-
+extern int memorystatus_control(uint32_t command, int32_t pid,
+ uint32_t flags, void *buffer,
+ size_t buffer_size);
static void logf_(const char *fmt, ...);
+
+// Stable userspace memorystatus_control ABI across the supported kernels:
+// https://github.com/apple-oss-distributions/xnu/blob/xnu-7195.141.2/bsd/sys/kern_memorystatus.h
+// https://github.com/apple-oss-distributions/xnu/blob/xnu-8019.41.5/bsd/sys/kern_memorystatus.h
+// https://github.com/apple-oss-distributions/xnu/blob/xnu-8792.81.2/bsd/sys/kern_memorystatus.h
+typedef struct {
+ int32_t memlimit_active;
+ uint32_t memlimit_active_attr;
+ int32_t memlimit_inactive;
+ uint32_t memlimit_inactive_attr;
+} vmm_memlimit_properties_t;
+
+static void configure_vmm_memory_policy(void) {
+ // The increased-memory-limit entitlement leaves this process with a
+ // 5 GiB high-water mark on supported iPads. PVG maps guest-backed pages a
+ // second time into each graphics task, so the VMM ledger can exceed
+ // physical RAM without consuming that much unique memory. In particular,
+ // an 8 GiB guest plus an 8 GiB Metal workload reaches a one-times-physical
+ // limit on a 16 GiB iPad and kills the complete app coalition. Allow two
+ // times physical RAM for that alias accounting. This changes only the
+ // non-fatal high-water mark; the existing jetsam priority and global
+ // pressure policy continue to protect the system under real pressure.
+ uint64_t physicalBytes = 0;
+ size_t physicalSize = sizeof(physicalBytes);
+ if (sysctlbyname("hw.memsize", &physicalBytes, &physicalSize,
+ NULL, 0) != 0 || physicalBytes < (1ULL << 30)) {
+ logf_("[vmmhook] memory policy skipped: hw.memsize errno=%d", errno);
+ return;
+ }
+ uint64_t limitMiB = physicalBytes >> 19;
+ if (limitMiB > INT32_MAX)
+ limitMiB = INT32_MAX;
+
+ const uint32_t setProperties = 7;
+ const uint32_t getProperties = 8;
+ vmm_memlimit_properties_t requested = {
+ .memlimit_active = (int32_t)limitMiB,
+ .memlimit_active_attr = 0, // non-fatal high-water mark
+ .memlimit_inactive = (int32_t)limitMiB,
+ .memlimit_inactive_attr = 0,
+ };
+ errno = 0;
+ int setResult = memorystatus_control(setProperties, getpid(), 0,
+ &requested, sizeof(requested));
+ int setError = errno;
+ vmm_memlimit_properties_t actual = {0};
+ errno = 0;
+ int getResult = memorystatus_control(getProperties, getpid(), 0,
+ &actual, sizeof(actual));
+ int getError = errno;
+ logf_("[vmmhook] memory policy requested=%llu MiB set=%d/%d "
+ "get=%d/%d active=%d/0x%x inactive=%d/0x%x",
+ limitMiB, setResult, setError, getResult, getError,
+ actual.memlimit_active, actual.memlimit_active_attr,
+ actual.memlimit_inactive, actual.memlimit_inactive_attr);
+}
+
static NSInteger host_ipados_major_version(void);
static BOOL host_is_ipados14(void);
@@ -350,6 +410,568 @@ static bool runtime_trace_all_vcpu;
static uint64_t runtime_xpc_trace_limit = 8;
static uint64_t runtime_vcpu_trace_limit = 8;
+#ifndef EXPERIMENT_VENTURA_OPENGL
+#define EXPERIMENT_VENTURA_OPENGL 0
+#endif
+
+// OpenGL acceleration needs SIP disabled before the guest launches system
+// applications. The private VZ GDB device is not ABI-compatible with older
+// guests when used with the extracted Ventura framework, but the VMM already
+// owns writable host mappings of guest physical memory. Keep an inventory of
+// those mappings and apply the policy directly there. This is enabled only for
+// a VM whose OpenGL option is on and adds no debug device to its configuration.
+typedef struct {
+ uint8_t *address;
+ uint64_t ipa;
+ size_t size;
+ uint64_t flags;
+} vmm_guest_mapping_t;
+
+static pthread_mutex_t guest_policy_mapping_lock = PTHREAD_MUTEX_INITIALIZER;
+static vmm_guest_mapping_t guest_policy_mappings[64];
+static size_t guest_policy_mapping_count;
+static bool guest_runtime_policy_enabled;
+static uint32_t guest_runtime_policy_worker_started;
+static uint32_t guest_runtime_policy_generation;
+static uint64_t guest_policy_kernel_pc;
+static uint64_t guest_policy_ttbr1;
+static uint64_t guest_policy_tcr;
+
+static int64_t guest_policy_sign_extend(uint64_t value, unsigned bits) {
+ uint64_t sign = UINT64_C(1) << (bits - 1);
+ return (int64_t)((value ^ sign) - sign);
+}
+
+static uint64_t guest_policy_decode_adrp(uint64_t pc,
+ uint32_t instruction) {
+ uint64_t immediate = (((instruction >> 5) & 0x7ffff) << 2) |
+ ((instruction >> 29) & 3);
+ return (uint64_t)((int64_t)(pc & ~UINT64_C(0xfff)) +
+ (guest_policy_sign_extend(immediate, 21) << 12));
+}
+
+static uint8_t *guest_policy_host_for_ipa(
+ const vmm_guest_mapping_t *mappings, size_t count, uint64_t ipa,
+ size_t size) {
+ for (size_t index = 0; index < count; ++index) {
+ if (ipa >= mappings[index].ipa && size <= mappings[index].size &&
+ ipa - mappings[index].ipa <= mappings[index].size - size)
+ return mappings[index].address + (ipa - mappings[index].ipa);
+ }
+ return NULL;
+}
+
+typedef struct {
+ unsigned pageBits;
+ unsigned indexBits;
+ unsigned startLevel;
+ uint64_t pageMask;
+} guest_policy_translation_t;
+
+static bool guest_policy_translation_parameters(
+ uint64_t tcr, guest_policy_translation_t *translation) {
+ unsigned tg1 = (unsigned)((tcr >> 30) & 3);
+ if (tg1 == 2) {
+ translation->pageBits = 12;
+ translation->indexBits = 9;
+ } else if (tg1 == 1) {
+ translation->pageBits = 14;
+ translation->indexBits = 11;
+ } else if (tg1 == 3) {
+ translation->pageBits = 16;
+ translation->indexBits = 13;
+ } else {
+ return false;
+ }
+ unsigned t1sz = (unsigned)((tcr >> 16) & 0x3f);
+ unsigned virtualBits = 64 - t1sz;
+ if (virtualBits <= translation->pageBits || virtualBits > 52)
+ return false;
+ unsigned indexLevels = (virtualBits - translation->pageBits +
+ translation->indexBits - 1) / translation->indexBits;
+ if (!indexLevels || indexLevels > 4) return false;
+ translation->startLevel = 4 - indexLevels;
+ translation->pageMask = (UINT64_C(1) << translation->pageBits) - 1;
+ return true;
+}
+
+static uint8_t *guest_policy_translate_virtual(
+ const vmm_guest_mapping_t *mappings, size_t count,
+ const guest_policy_translation_t *translation, uint64_t ttbr1,
+ uint64_t virtualAddress) {
+ const uint64_t physicalMask = UINT64_C(0x0000ffffffffffff);
+ uint64_t tableIPA = ttbr1 & physicalMask & ~translation->pageMask;
+ for (unsigned level = translation->startLevel; level <= 3; ++level) {
+ unsigned shift = translation->pageBits +
+ translation->indexBits * (3 - level);
+ uint64_t indexMask = (UINT64_C(1) << translation->indexBits) - 1;
+ uint64_t index = (virtualAddress >> shift) & indexMask;
+ uint8_t *descriptorAddress = guest_policy_host_for_ipa(
+ mappings, count, tableIPA + index * sizeof(uint64_t),
+ sizeof(uint64_t));
+ if (!descriptorAddress) return NULL;
+ uint64_t descriptor = 0;
+ memcpy(&descriptor, descriptorAddress, sizeof(descriptor));
+ if (!(descriptor & 1)) return NULL;
+ bool table = level < 3 && (descriptor & 2);
+ if (table) {
+ tableIPA = descriptor & physicalMask & ~translation->pageMask;
+ continue;
+ }
+ uint64_t outputMask = (UINT64_C(1) << shift) - 1;
+ uint64_t outputIPA = (descriptor & physicalMask & ~outputMask) |
+ (virtualAddress & outputMask);
+ return guest_policy_host_for_ipa(mappings, count, outputIPA, 1);
+ }
+ return NULL;
+}
+
+static bool guest_policy_read_virtual(
+ const vmm_guest_mapping_t *mappings, size_t count,
+ const guest_policy_translation_t *translation, uint64_t ttbr1,
+ uint64_t virtualAddress, void *output, size_t size) {
+ uint8_t *destination = output;
+ size_t pageSize = (size_t)UINT64_C(1) << translation->pageBits;
+ while (size) {
+ size_t pageRemaining = pageSize -
+ ((size_t)virtualAddress & (pageSize - 1));
+ size_t chunk = MIN(size, pageRemaining);
+ uint8_t *source = guest_policy_translate_virtual(
+ mappings, count, translation, ttbr1, virtualAddress);
+ if (!source) return false;
+ memcpy(destination, source, chunk);
+ destination += chunk;
+ virtualAddress += chunk;
+ size -= chunk;
+ }
+ return true;
+}
+
+// TUNABLE(bool, bootarg_arm64e_preview_abi, "-arm64e_preview_abi", false)
+// emits a startup_tunable_spec containing the exact string pointer, variable
+// pointer, byte size, and Boolean marker. Locate that data description rather
+// than matching compiler instructions or a build-specific address. This is
+// needed when Apple Silicon LocalPolicy leaves the NVRAM value visible in the
+// Device Tree but excludes it from XNU's allowed boot arguments.
+// https://github.com/apple-oss-distributions/xnu/blob/xnu-8792.81.2/osfmk/kern/startup.h#L761-L771
+// https://github.com/apple-oss-distributions/xnu/blob/xnu-8792.81.2/bsd/kern/kern_exec.c#L201
+#if EXPERIMENT_VENTURA_OPENGL
+// Ventura's preview-ABI tunable can be found and changed reliably, but its
+// AppleMetalOpenGLRenderer output has blank regions through the iPad PVG
+// stack. Keep the build-independent locator for future investigation without
+// activating that incomplete renderer path in production.
+static volatile uint8_t *guest_policy_find_arm64e_preview_virtual(void) {
+ vmm_guest_mapping_t mappings[64];
+ pthread_mutex_lock(&guest_policy_mapping_lock);
+ size_t count = MIN(guest_policy_mapping_count,
+ sizeof(mappings) / sizeof(mappings[0]));
+ memcpy(mappings, guest_policy_mappings, count * sizeof(mappings[0]));
+ pthread_mutex_unlock(&guest_policy_mapping_lock);
+ guest_policy_translation_t translation = {0};
+ if (!guest_policy_translation_parameters(guest_policy_tcr,
+ &translation))
+ return NULL;
+
+ typedef struct {
+ uint64_t address;
+ uint64_t size;
+ } candidate_section_t;
+ candidate_section_t keySections[8] = {0};
+ candidate_section_t specSections[8] = {0};
+ size_t keySectionCount = 0, specSectionCount = 0;
+ uint64_t pageSize = UINT64_C(1) << translation.pageBits;
+ uint64_t kernelHeader = guest_policy_kernel_pc & ~(pageSize - 1);
+ uint64_t textVMAddress = 0;
+ struct mach_header_64 header = {0};
+ for (unsigned attempt = 0;
+ attempt < 128 * 1024 * 1024 / pageSize; ++attempt,
+ kernelHeader -= pageSize) {
+ if (!guest_policy_read_virtual(mappings, count, &translation,
+ guest_policy_ttbr1, kernelHeader, &header, sizeof(header)) ||
+ header.magic != MH_MAGIC_64 || header.cputype != CPU_TYPE_ARM64 ||
+ (header.filetype != MH_EXECUTE && header.filetype != MH_FILESET) ||
+ !header.ncmds || header.ncmds >= 1000 ||
+ header.sizeofcmds > 1024 * 1024)
+ continue;
+ uint8_t *commands = malloc(header.sizeofcmds);
+ if (!commands) return NULL;
+ if (!guest_policy_read_virtual(mappings, count, &translation,
+ guest_policy_ttbr1, kernelHeader + sizeof(header), commands,
+ header.sizeofcmds)) {
+ free(commands);
+ continue;
+ }
+ const uint8_t *cursor = commands;
+ size_t remaining = header.sizeofcmds;
+ bool valid = true;
+ keySectionCount = specSectionCount = 0;
+ textVMAddress = 0;
+ for (uint32_t index = 0; index < header.ncmds; ++index) {
+ if (remaining < sizeof(struct load_command)) {
+ valid = false;
+ break;
+ }
+ const struct load_command *command = (const void *)cursor;
+ if (command->cmdsize < sizeof(*command) ||
+ command->cmdsize > remaining) {
+ valid = false;
+ break;
+ }
+ if (command->cmd == LC_SEGMENT_64 &&
+ command->cmdsize >= sizeof(struct segment_command_64)) {
+ const struct segment_command_64 *segment =
+ (const void *)cursor;
+ if (!strncmp(segment->segname, "__TEXT", 16))
+ textVMAddress = segment->vmaddr;
+ size_t sectionsSize = (size_t)segment->nsects *
+ sizeof(struct section_64);
+ if (sectionsSize <= command->cmdsize - sizeof(*segment)) {
+ const struct section_64 *sections =
+ (const void *)(segment + 1);
+ for (uint32_t sectionIndex = 0;
+ sectionIndex < segment->nsects; ++sectionIndex) {
+ const struct section_64 *section =
+ &sections[sectionIndex];
+ bool keySection =
+ ((!strncmp(section->segname, "__TEXT", 16) ||
+ !strncmp(section->segname, "__KLDDATA", 16)) &&
+ !strncmp(section->sectname, "__cstring", 16)) ||
+ (!strncmp(section->segname, "__BOOTDATA", 16) &&
+ !strncmp(section->sectname, "__init", 16));
+ bool specSection =
+ (!strncmp(section->segname, "__KLDDATA", 16) &&
+ !strncmp(section->sectname, "__const", 16)) ||
+ (!strncmp(section->segname, "__BOOTDATA", 16) &&
+ !strncmp(section->sectname, "__init", 16)) ||
+ (!strncmp(section->segname, "__DATA_CONST", 16) &&
+ !strncmp(section->sectname, "__init", 16));
+ if (keySection && keySectionCount <
+ sizeof(keySections) / sizeof(keySections[0]))
+ keySections[keySectionCount++] =
+ (candidate_section_t){section->addr,
+ section->size};
+ if (specSection && specSectionCount <
+ sizeof(specSections) / sizeof(specSections[0]))
+ specSections[specSectionCount++] =
+ (candidate_section_t){section->addr,
+ section->size};
+ }
+ }
+ }
+ cursor += command->cmdsize;
+ remaining -= command->cmdsize;
+ }
+ free(commands);
+ if (valid && textVMAddress && keySectionCount && specSectionCount)
+ break;
+ textVMAddress = 0;
+ keySectionCount = specSectionCount = 0;
+ }
+ if (!textVMAddress || !keySectionCount || !specSectionCount) return NULL;
+ uint64_t slide = kernelHeader - textVMAddress;
+ static const char key[] = "-arm64e_preview_abi";
+ uint64_t keyAddresses[8] = {0};
+ size_t keyAddressCount = 0;
+ for (size_t candidateIndex = 0; candidateIndex < keySectionCount;
+ ++candidateIndex) {
+ uint64_t size64 = keySections[candidateIndex].size;
+ if (!size64 || size64 > 64 * 1024 * 1024) continue;
+ size_t size = (size_t)size64;
+ uint64_t liveAddress = keySections[candidateIndex].address + slide;
+ uint8_t *bytes = malloc(size);
+ if (!bytes) return NULL;
+ if (!guest_policy_read_virtual(mappings, count, &translation,
+ guest_policy_ttbr1, liveAddress, bytes, size)) {
+ free(bytes);
+ continue;
+ }
+ for (size_t keyOffset = 0;
+ keyOffset + sizeof(key) <= size; ++keyOffset) {
+ if (memcmp(bytes + keyOffset, key, sizeof(key))) continue;
+ if (keyAddressCount < sizeof(keyAddresses) /
+ sizeof(keyAddresses[0]))
+ keyAddresses[keyAddressCount++] = liveAddress + keyOffset;
+ }
+ free(bytes);
+ }
+ if (!keyAddressCount) return NULL;
+ for (size_t candidateIndex = 0; candidateIndex < specSectionCount;
+ ++candidateIndex) {
+ uint64_t size64 = specSections[candidateIndex].size;
+ if (!size64 || size64 > 64 * 1024 * 1024) continue;
+ size_t size = (size_t)size64;
+ uint64_t liveAddress = specSections[candidateIndex].address + slide;
+ uint8_t *bytes = malloc(size);
+ if (!bytes) return NULL;
+ if (!guest_policy_read_virtual(mappings, count, &translation,
+ guest_policy_ttbr1, liveAddress, bytes, size)) {
+ free(bytes);
+ continue;
+ }
+ for (size_t keyIndex = 0; keyIndex < keyAddressCount; ++keyIndex) {
+ uint64_t keyAddress = keyAddresses[keyIndex];
+ // struct startup_tunable_spec is two pointers, int, bool, bool,
+ // then tail padding (24 bytes on arm64).
+ for (size_t specOffset = 0; specOffset + 24 <= size;
+ specOffset += sizeof(uint64_t)) {
+ uint64_t nameAddress = 0, variableAddress = 0;
+ int32_t variableLength = 0;
+ memcpy(&nameAddress, bytes + specOffset, 8);
+ if (nameAddress != keyAddress) continue;
+ memcpy(&variableAddress, bytes + specOffset + 8, 8);
+ memcpy(&variableLength, bytes + specOffset + 16, 4);
+ bool variableIsBool = bytes[specOffset + 20] != 0;
+ bool variableIsString = bytes[specOffset + 21] != 0;
+ if (variableLength != 1 || !variableIsBool ||
+ variableIsString)
+ continue;
+ volatile uint8_t *variable =
+ (volatile uint8_t *)guest_policy_translate_virtual(
+ mappings, count, &translation, guest_policy_ttbr1,
+ variableAddress);
+ if (!variable || *variable > 1) continue;
+ logf_("[GuestPolicy] arm64e preview tunable va=%p host=%p "
+ "current=%u", (void *)variableAddress,
+ (void *)variable, *variable);
+ free(bytes);
+ return variable;
+ }
+ }
+ free(bytes);
+ }
+ return NULL;
+}
+#endif
+
+static volatile uint32_t *guest_policy_find_csr_virtual(void) {
+ vmm_guest_mapping_t mappings[64];
+ pthread_mutex_lock(&guest_policy_mapping_lock);
+ size_t count = MIN(guest_policy_mapping_count,
+ sizeof(mappings) / sizeof(mappings[0]));
+ memcpy(mappings, guest_policy_mappings, count * sizeof(mappings[0]));
+ pthread_mutex_unlock(&guest_policy_mapping_lock);
+ guest_policy_translation_t translation = {0};
+ if (!guest_policy_translation_parameters(guest_policy_tcr,
+ &translation)) {
+ logf_("[GuestPolicy] unsupported guest translation tcr=0x%llx",
+ (unsigned long long)guest_policy_tcr);
+ return NULL;
+ }
+
+ uint64_t pageSize = UINT64_C(1) << translation.pageBits;
+ uint64_t kernelHeader = guest_policy_kernel_pc & ~(pageSize - 1);
+ struct mach_header_64 header = {0};
+ uint8_t *commands = NULL;
+ uint64_t textVMAddress = 0, executeVMAddress = 0, executeSize = 0;
+ for (unsigned attempt = 0;
+ attempt < 128 * 1024 * 1024 / pageSize; ++attempt,
+ kernelHeader -= pageSize) {
+ if (!guest_policy_read_virtual(mappings, count, &translation,
+ guest_policy_ttbr1, kernelHeader, &header, sizeof(header)) ||
+ header.magic != MH_MAGIC_64 || header.cputype != CPU_TYPE_ARM64 ||
+ (header.filetype != MH_EXECUTE && header.filetype != MH_FILESET) ||
+ !header.ncmds || header.ncmds >= 1000 ||
+ header.sizeofcmds > 1024 * 1024)
+ continue;
+ commands = malloc(header.sizeofcmds);
+ if (!commands) return NULL;
+ if (!guest_policy_read_virtual(mappings, count, &translation,
+ guest_policy_ttbr1, kernelHeader + sizeof(header), commands,
+ header.sizeofcmds)) {
+ free(commands);
+ commands = NULL;
+ continue;
+ }
+ const uint8_t *cursor = commands;
+ size_t remaining = header.sizeofcmds;
+ bool valid = true;
+ for (uint32_t index = 0; index < header.ncmds; ++index) {
+ if (remaining < sizeof(struct load_command)) {
+ valid = false;
+ break;
+ }
+ const struct load_command *command = (const void *)cursor;
+ if (command->cmdsize < sizeof(*command) ||
+ command->cmdsize > remaining) {
+ valid = false;
+ break;
+ }
+ if (command->cmd == LC_SEGMENT_64 &&
+ command->cmdsize >= sizeof(struct segment_command_64)) {
+ const struct segment_command_64 *segment =
+ (const void *)cursor;
+ if (!strncmp(segment->segname, "__TEXT", 16))
+ textVMAddress = segment->vmaddr;
+ else if (!strncmp(segment->segname, "__TEXT_EXEC", 16)) {
+ executeVMAddress = segment->vmaddr;
+ executeSize = segment->vmsize;
+ }
+ }
+ cursor += command->cmdsize;
+ remaining -= command->cmdsize;
+ }
+ free(commands);
+ commands = NULL;
+ if (valid && textVMAddress && executeVMAddress) break;
+ textVMAddress = executeVMAddress = executeSize = 0;
+ }
+ if (!textVMAddress || !executeVMAddress) return NULL;
+ uint64_t slide = kernelHeader - textVMAddress;
+ uint64_t executeLive = executeVMAddress + slide;
+ executeSize = MIN(executeSize, UINT64_C(32) * 1024 * 1024);
+ static const uint32_t csrCheckTail[] = {
+ 0x321d012a, 0x5280022b, 0x6a0b011f,
+ 0x1a8a0128, 0x6a28001f, 0x1a9f07e0, 0xd65f03c0,
+ };
+ const size_t chunkSize = 256 * 1024;
+ const size_t overlap = 64;
+ uint8_t *chunk = malloc(chunkSize);
+ if (!chunk) return NULL;
+ for (uint64_t offset = 0; offset < executeSize;) {
+ size_t length = (size_t)MIN((uint64_t)chunkSize,
+ executeSize - offset);
+ if (!guest_policy_read_virtual(mappings, count, &translation,
+ guest_policy_ttbr1, executeLive + offset, chunk, length))
+ break;
+ for (size_t position = 0; position + 40 <= length; position += 4) {
+ const uint32_t *instruction = (const void *)(chunk + position);
+ if ((instruction[2] & 0xff8003ff) != 0x12000109 ||
+ memcmp(instruction + 3, csrCheckTail,
+ sizeof(csrCheckTail)))
+ continue;
+ uint32_t adrp = instruction[0], load = instruction[1];
+ if ((adrp & 0x9f00001f) != 0x90000008 ||
+ (load & 0xffc003ff) != 0xb9400108)
+ continue;
+ uint64_t pc = executeLive + offset + position;
+ uint64_t csrVA = guest_policy_decode_adrp(pc, adrp) +
+ (((load >> 10) & 0xfff) * 4);
+ volatile uint32_t *csr = (volatile uint32_t *)
+ guest_policy_translate_virtual(mappings, count, &translation,
+ guest_policy_ttbr1, csrVA);
+ free(chunk);
+ logf_("[GuestPolicy] guest kernel=%p csr-va=%p tcr=0x%llx",
+ (void *)kernelHeader, (void *)csrVA,
+ (unsigned long long)guest_policy_tcr);
+ return csr;
+ }
+ if (length <= overlap) break;
+ offset += length - overlap;
+ }
+ free(chunk);
+ return NULL;
+}
+
+static void guest_policy_worker(uint32_t generation) {
+ volatile uint32_t *csr = NULL;
+#if EXPERIMENT_VENTURA_OPENGL
+ volatile uint8_t *arm64ePreview = NULL;
+#endif
+ // Kernel collection placement varies by guest release. Wait for resident
+ // kernel pages rather than delaying the vCPU or guessing a macOS version.
+ for (unsigned attempt = 0; attempt < 400 && !csr; ++attempt) {
+ if (generation != __atomic_load_n(
+ &guest_runtime_policy_generation, __ATOMIC_ACQUIRE))
+ return;
+#if EXPERIMENT_VENTURA_OPENGL
+ if (!arm64ePreview && attempt < 40)
+ arm64ePreview = guest_policy_find_arm64e_preview_virtual();
+ if (arm64ePreview)
+ __atomic_store_n(arm64ePreview, 1, __ATOMIC_RELEASE);
+#endif
+ csr = guest_policy_find_csr_virtual();
+ if (!csr) usleep(50 * 1000);
+ }
+ if (!csr) {
+ logf_("[GuestPolicy] guest kernel CSR policy was not found");
+ return;
+ }
+ logf_("[GuestPolicy] guest CSR policy found at host=%p", csr);
+#if EXPERIMENT_VENTURA_OPENGL
+ if (!arm64ePreview)
+ logf_("[GuestPolicy] arm64e preview tunable was not found");
+#endif
+ const uint32_t disabled = 0x6f;
+ uint32_t previous = UINT32_MAX;
+ unsigned changes = 0;
+ // csr_bootstrap imports signed LocalPolicy after the kernel first starts.
+ // Reassert across that bounded initialization window, then leave the vCPU
+ // hot path and guest memory untouched for the rest of the boot.
+ for (unsigned attempt = 0; attempt < 1500; ++attempt) {
+ if (generation != __atomic_load_n(
+ &guest_runtime_policy_generation, __ATOMIC_ACQUIRE))
+ return;
+#if EXPERIMENT_VENTURA_OPENGL
+ if (arm64ePreview &&
+ __atomic_load_n(arm64ePreview, __ATOMIC_ACQUIRE) != 1)
+ __atomic_store_n(arm64ePreview, 1, __ATOMIC_RELEASE);
+#endif
+ uint32_t current = __atomic_load_n(csr, __ATOMIC_ACQUIRE);
+ if (current != disabled) {
+ __atomic_store_n(csr, disabled, __ATOMIC_RELEASE);
+ if (changes++ < 8)
+ logf_("[GuestPolicy] guest CSR 0x%x -> 0x%x",
+ current, disabled);
+ }
+ previous = current;
+ usleep(20 * 1000);
+ }
+ logf_("[GuestPolicy] guest CSR policy complete changes=%u last=0x%x",
+ changes, previous);
+}
+
+static void guest_policy_start_worker_if_needed(uint64_t kernelPC,
+ uint64_t ttbr1,
+ uint64_t tcr) {
+ if (!guest_runtime_policy_enabled)
+ return;
+ uint32_t expected = 0;
+ if (!__atomic_compare_exchange_n(&guest_runtime_policy_worker_started,
+ &expected, 2, false, __ATOMIC_ACQ_REL, __ATOMIC_ACQUIRE))
+ return;
+ guest_policy_kernel_pc = kernelPC;
+ guest_policy_ttbr1 = ttbr1;
+ guest_policy_tcr = tcr;
+ uint32_t generation = __atomic_load_n(
+ &guest_runtime_policy_generation, __ATOMIC_ACQUIRE);
+
+ // This call runs after the first early-kernel VM exit but before the VMM
+ // can enter the guest again. Apply the policy synchronously so AMFI and
+ // dyld cannot latch the signed LocalPolicy first. The asynchronous worker
+ // below remains responsible for the later csr_bootstrap import.
+ volatile uint32_t *csr = guest_policy_find_csr_virtual();
+ if (csr) {
+ uint32_t current = __atomic_load_n(csr, __ATOMIC_ACQUIRE);
+ if (current != 0x6f) {
+ __atomic_store_n(csr, 0x6f, __ATOMIC_RELEASE);
+ logf_("[GuestPolicy] early guest CSR 0x%x -> 0x6f", current);
+ }
+ } else {
+ logf_("[GuestPolicy] early guest CSR policy was not found");
+ }
+
+ expected = 2;
+ if (!__atomic_compare_exchange_n(&guest_runtime_policy_worker_started,
+ &expected, 1, false, __ATOMIC_RELEASE, __ATOMIC_ACQUIRE))
+ return;
+ dispatch_async(dispatch_get_global_queue(QOS_CLASS_USER_INITIATED, 0), ^{
+ guest_policy_worker(generation);
+ });
+}
+
+static void guest_policy_rearm_after_reboot(void) {
+ if (!guest_runtime_policy_enabled)
+ return;
+ __atomic_add_fetch(&guest_runtime_policy_generation, 1,
+ __ATOMIC_ACQ_REL);
+ guest_policy_kernel_pc = 0;
+ guest_policy_ttbr1 = 0;
+ guest_policy_tcr = 0;
+ __atomic_store_n(&guest_runtime_policy_worker_started, 0,
+ __ATOMIC_RELEASE);
+ logf_("[GuestPolicy] primary vCPU reset rearmed runtime policy");
+}
+
static bool environment_flag_enabled(const char *name) {
const char *value = getenv(name);
return value && value[0] && strcmp(value, "0") != 0;
@@ -2234,6 +2856,8 @@ static void start_health_timer(void) {
__attribute__((constructor)) static void hook_init(void) {
runtime_debug_logging = environment_flag_enabled("VZ_DEBUG_LOGGING");
+ guest_runtime_policy_enabled =
+ environment_flag_enabled("VZ_GUEST_RUNTIME_POLICY");
runtime_trace_all_vcpu = runtime_debug_logging &&
environment_flag_enabled("VMMHOOK_TRACE_VCPU");
const char *xpcLimit = getenv("VMMHOOK_TRACE_XPC_LIMIT");
@@ -2243,6 +2867,7 @@ __attribute__((constructor)) static void hook_init(void) {
if (vcpuLimit && vcpuLimit[0])
runtime_vcpu_trace_limit = strtoull(vcpuLimit, NULL, 0);
logf_("[vmmhook] loaded pid %d", getpid());
+ configure_vmm_memory_policy();
// macOS configures its host audio endpoint through CoreAudio HAL. On iOS,
// the same endpoint needs an explicit per-process AVAudioSession before
// input buffers contain microphone samples. The VMM owns the actual host
@@ -2512,6 +3137,17 @@ _ip_hv_vm_create __attribute__((section("__DATA,__interpose"))) =
extern int hv_vm_map(void *addr, uint64_t ipa, size_t size, uint64_t flags);
static int vmm_hv_vm_map(void *addr, uint64_t ipa, size_t size, uint64_t flags) {
int rc = hv_vm_map(addr, ipa, size, flags);
+ if (rc == 0 && guest_runtime_policy_enabled) {
+ pthread_mutex_lock(&guest_policy_mapping_lock);
+ if (guest_policy_mapping_count <
+ sizeof(guest_policy_mappings) / sizeof(guest_policy_mappings[0])) {
+ guest_policy_mappings[guest_policy_mapping_count++] =
+ (vmm_guest_mapping_t){
+ .address = addr, .ipa = ipa, .size = size, .flags = flags,
+ };
+ }
+ pthread_mutex_unlock(&guest_policy_mapping_lock);
+ }
uint64_t count = diagnostic_sequence(&vmm_vm_map_calls, 8);
if (count || rc != 0) {
logf_("[vmmhook] hv_vm_map #%llu addr=%p ipa=0x%llx size=0x%zx flags=0x%llx -> rc=%d",
@@ -2567,6 +3203,25 @@ _ip_hv_vcpu_create __attribute__((section("__DATA,__interpose"))) =
extern int hv_vcpu_run(uint64_t vcpu);
extern int hv_vcpu_get_reg(uint64_t vcpu, uint32_t reg, uint64_t *value);
extern int hv_vcpu_get_sys_reg(uint64_t vcpu, uint32_t reg, uint64_t *value);
+extern int hv_vcpu_set_reg(uint64_t vcpu, uint32_t reg, uint64_t value);
+
+static int vmm_hv_vcpu_set_reg(uint64_t vcpu, uint32_t reg, uint64_t value) {
+ int rc = hv_vcpu_set_reg(vcpu, reg, value);
+ // Virtualization.framework resets the primary vCPU PC to the low iBoot
+ // address when a guest reboots while the VMM process remains alive. This
+ // is the earliest reliable lifecycle event: guest-agent reconnect is too
+ // late because AMFI has already initialized by then.
+ if (rc == 0 && guest_runtime_policy_enabled && vcpu == 0 &&
+ reg == 31 /* HV_REG_PC */ && value < UINT64_C(0x100000000) &&
+ __atomic_load_n(&guest_runtime_policy_worker_started,
+ __ATOMIC_ACQUIRE) != 0)
+ guest_policy_rearm_after_reboot();
+ return rc;
+}
+__attribute__((used)) static struct { const void *replacement; const void *replacee; }
+_ip_hv_vcpu_set_reg __attribute__((section("__DATA,__interpose"))) =
+ { (const void *)&vmm_hv_vcpu_set_reg, (const void *)&hv_vcpu_set_reg };
+
static int vmm_hv_vcpu_run(uint64_t vcpu) {
static uint64_t seen_vcpus;
uint64_t bit = vcpu < 64 ? (1ULL << vcpu) : 0;
@@ -2578,6 +3233,20 @@ static int vmm_hv_vcpu_run(uint64_t vcpu) {
logf_("[vmmhook] hv_vcpu_run CALLED vcpu=0x%llx%s",
(unsigned long long)vcpu, first_run ? " (first)" : "");
int rc = hv_vcpu_run(vcpu);
+ if (guest_runtime_policy_enabled &&
+ !__atomic_load_n(&guest_runtime_policy_worker_started,
+ __ATOMIC_ACQUIRE)) {
+ uint64_t pc = 0, ttbr1 = 0, tcr = 0;
+ if (hv_vcpu_get_reg(vcpu, 31 /* HV_REG_PC */, &pc) == 0 &&
+ pc >= UINT64_C(0xffff000000000000) &&
+ hv_vcpu_get_sys_reg(vcpu,
+ 0xc101 /* HV_SYS_REG_TTBR1_EL1 */, &ttbr1) == 0 &&
+ hv_vcpu_get_sys_reg(vcpu,
+ 0xc102 /* HV_SYS_REG_TCR_EL1 */, &tcr) == 0 &&
+ ttbr1 && tcr) {
+ guest_policy_start_worker_if_needed(pc, ttbr1, tcr);
+ }
+ }
uint64_t exit_count = vcpu < 64
? diagnostic_sequence(
&vmm_vcpu_exit_counts[vcpu], runtime_vcpu_trace_limit)
diff --git a/VirtualMac/vz/host/vzxpchook.m b/VirtualMac/vz/host/vzxpchook.m
index c527727..0c5266d 100644
--- a/VirtualMac/vz/host/vzxpchook.m
+++ b/VirtualMac/vz/host/vzxpchook.m
@@ -81,6 +81,7 @@ static dispatch_queue_t gVZConnectionQueue;
static uint64_t gHostEventCount;
static uint64_t gInputSendCount;
static uint64_t gFrameAckCount;
+static uint64_t gSurfaceLookupCount;
static bool gDebugLogging;
static uint64_t diagnostic_sequence(uint64_t *counter, uint64_t limit) {
@@ -784,8 +785,10 @@ static void vz_xpc_connection_set_event_handler(
// The frame RPC decoder returns false when IOSurfaceLookupFromXPCObject
// rejects the cross-process object. Rebind this one import while porting so
-// every device run records the exact object and whether the native iOS
-// IOSurface implementation accepted it.
+// the first few lookups record the exact object and whether the native iOS
+// IOSurface implementation accepted it. This is a framebuffer hot path: a
+// file open, XPC description allocation, and write for every frame can build
+// an old-frame backlog under memory and storage pressure.
static void *vz_IOSurfaceLookupFromXPCObject(xo_t object) {
static void *(*realLookup)(xo_t);
static void *(*lookupFromMachPort)(mach_port_t);
@@ -805,7 +808,6 @@ static void *vz_IOSurfaceLookupFromXPCObject(xo_t object) {
? (void *(*)(uint32_t))dlsym(image, "IOSurfaceLookup")
: NULL;
}
- char *description = xpc_copy_description(object);
void *type = xpc_get_type(object);
void *surface = realLookup ? realLookup(object) : NULL;
mach_port_t port = MACH_PORT_NULL;
@@ -821,12 +823,17 @@ static void *vz_IOSurfaceLookupFromXPCObject(xo_t object) {
: 0;
if (!surface && identifier && identifier <= UINT32_MAX && lookupFromID)
surface = lookupFromID((uint32_t)identifier);
- L("[vzxpchook] IOSurfaceLookupFromXPCObject(%s) -> %p "
- "real=%p port=0x%x fallback=%p global-id=%llu lookup-id=%p",
- description ?: "(no description)", surface, realLookup,
- port, lookupFromMachPort, (unsigned long long)identifier,
- lookupFromID);
- free(description);
+ uint64_t count = diagnostic_sequence(&gSurfaceLookupCount, 8);
+ if (count && (count <= 8 || (gDebugLogging && count % 300 == 0))) {
+ char *description = xpc_copy_description(object);
+ L("[vzxpchook] IOSurfaceLookupFromXPCObject #%llu (%s) -> %p "
+ "real=%p port=0x%x fallback=%p global-id=%llu lookup-id=%p",
+ (unsigned long long)count,
+ description ?: "(no description)", surface, realLookup,
+ port, lookupFromMachPort, (unsigned long long)identifier,
+ lookupFromID);
+ free(description);
+ }
return surface;
}
diff --git a/VirtualMac/vz/install/start-install.sh b/VirtualMac/vz/install/start-install.sh
index 574f281..157eaba 100644
--- a/VirtualMac/vz/install/start-install.sh
+++ b/VirtualMac/vz/install/start-install.sh
@@ -218,6 +218,12 @@ export VZ_INSTALL_CPU_COUNT="$cpu"
export VZ_INSTALL_MEMORY_SIZE="$memory"
export VZ_INSTALL_STORAGE_SIZE="$disk"
export VZ_VMM_STDERR_LOG=/tmp/restore-vmm.stderr.log
+# RestoreOS must never inherit the normal-boot guest kernel policy from the
+# UIKit process. The app deliberately keeps that setting in its environment
+# for a running OpenGL-enabled VM, and install-launcher inherits the app's
+# environment. Without clearing it here, a later restore in the same app
+# process can run the SIP/CSR worker against the temporary RestoreOS kernel.
+unset VZ_GUEST_RUNTIME_POLICY
# The setuid restore host must create its own rendezvous names. Inheriting the
# UIKit app's mobile-owned names lets the root VMM replace them and can prevent
# every later VM from starting. The host hook generates root-scoped paths.