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.1

nfzerox36884db779dd
diff --git a/LICENSE b/LICENSE
index 1a1d7a5..46c4151 100644
--- a/LICENSE
+++ b/LICENSE
@@ -1,6 +1,6 @@
MIT License
-Copyright (c) 2026 nfzerox
+Copyright (c) 2026 nfzerox, qwqVictorVictor, and jamesy0ung
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
diff --git a/README.md b/README.md
index 9c522e8..22a030f 100644
--- a/README.md
+++ b/README.md
@@ -1,14 +1,14 @@
# 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 16 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 and Terminal 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)
-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), [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!
## Installation
-1. [Jailbreak an iPad Pro (M1, M2) or iPad Air (M1) running iPadOS 16 up to 16.3.1](https://ios.cfw.guide/installing-dopamine-trollstore/). Choose "TrollInstallerX (16.0..." on the page to view the appropriate instructions. If jailbreak fails, switch to a different exploit in Dopamine settings.
+1. Jailbreak a compatible iPad Pro (M1, M2) or iPad Air (M1). [View instructions for iPadOS 15 up to 16.3.1](https://ios.cfw.guide/installing-dopamine-trollstore/), or [instructions for iPadOS 14 up to 14.8.1](https://ios.cfw.guide/installing-taurine/). If jailbreak fails, switch to a different exploit in Dopamine or Taurine settings.
2. Add the [https://nfzerox.github.io/cydia/](https://nfzerox.github.io/cydia/) repository in Sileo, then search and install Virtual Mac.
Ran into a problem? [Check the troubleshooting section](https://github.com/nfzerox/VirtualMacOniPad#what-if-i-encounter-crashes-bugs-or-other-issues).
@@ -17,28 +17,25 @@ Ran into a problem? [Check the troubleshooting section](https://github.com/nfzer
### Which iPad and iPadOS versions does this require?
-Virtual Mac on iPad requires an iPad Pro (M1, M2) or iPad Air (M1) running iPadOS 16 up to 16.3.1. iPad Pro models with 1 TB or 2 TB of storage have 16 GB of RAM and provide the best performance and experience.
+Virtual Mac on iPad requires an iPad Pro (M1, M2) or iPad Air (M1) running iPadOS 14 up to 16.3.1. iPad Pro models with 1 TB or 2 TB of storage have 16 GB of RAM and provide the best performance and experience.
### Which versions of macOS does this support?
-Virtual Mac on iPad is compatible with macOS 12 Monterey up to 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. Support for macOS 26 Tahoe and macOS 27 Golden Gate is experimental, and you may encounter visual or performance issues.
+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.
-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.
+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.
### Do I need a Magic Keyboard?
-Magic Keyboard is not required, but is recommended for the best experience. If you don't have a Magic Keyboard, you can use the touchscreen and virtual keyboard instead:
-
-- To select a menu item, tap and drag.
-- To open a document or folder, tap it, then press Command + O using the virtual keyboard.
-- To make scrolling easier, go to System Settings > Appearance > Show Scroll Bars and set it to Always.
+Magic Keyboard is not required because you can also use the touchscreen and virtual keyboard:
+- Tap to click, secondary click by tapping with two fingers, and scroll with two fingers.
- To access the virtual keyboard, tap the keyboard icon. If the virtual keyboard gets in the way, press and hold the bottom-right icon to switch to Floating mode.
- If the HUD gets in the way, move it to a different corner or hide it from the More menu. To show it again, press and hold the Virtual Mac icon on the iPad Home Screen, then tap Show Virtual Mac Controls.
- To automatically start up your virtual Mac, enable System Settings > Users & Groups > Automatically log in, and set System Settings > Lock Screen to Never. Then in Virtual Mac's in-app Settings, change Start on Launch from Show Library to the name of your virtual Mac. To show library again, press and hold the Virtual Mac icon on the iPad Home Screen, then tap Show Library.
-### Is it possible to support additional versions of iPadOS?
+### Is it possible to support newer versions of iPadOS?
-Supporting iPadOS 16.4 or later presents additional challenges because [Hypervisor support was removed from the iPadOS XNU kernel](https://x.com/UTMapp/status/1708907045314035986). Adding support for iPadOS 15 should be relatively straightforward. Contributions toward either goal are welcome!
+Supporting iPadOS 16.4 or later presents additional challenges because [Hypervisor support was removed from the iPadOS XNU kernel](https://x.com/UTMapp/status/1708907045314035986). Contributions are welcome!
### What kind of performance does Virtual Mac on iPad offer?
@@ -46,21 +43,34 @@ Virtual Mac on iPad uses hardware CPU virtualization and supports graphics accel
### What if I encounter crashes, bugs, or other issues?
-First, try these fixes for common issues:
-- If you see "[install-launcher failed: Permission denied](https://github.com/nfzerox/VirtualMacOniPad/issues/10)", 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)", open Sileo > Packages, search for usbmuxd and [temporarily uninstall it](VirtualMac/screenshots/troubleshooting/troubleshooting-usbmuxd.png).
+First, open Sileo and update to the latest version of Virtual Mac. If the issue remains, try these fixes for common issues:
+- 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, 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 the corresponding crash log from Settings > Privacy & Security > Analytics & Improvements > Analytics Data.
-
-To save time when troubleshooting, open Virtual Mac's in app settings, and turn off Delete IPSW After Installation so it doesn't redownload the IPSW each time you install macOS.
+[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.
If you have access to Codex or Claude Code, install `openssh` and `lldb` in Sileo, then connect your iPad to a computer. Point the coding agent to this repository, then ask it to diagnose live and fix the issue. Because many issues can be setup-specific, this is usually the easiest way to fix issues. If you find a solution, please update the issue or open a pull request. Contributions are welcome!
As a last resort, open Dopamine > Settings > Remove Jailbreak, then jailbreak again and reinstall Virtual Mac on iPad. If this still doesn't work, back up all data, open Dopamine > Settings > Remove Jailbreak, and erase your iPad in Settings > General > Transfer or Reset iPad > Erase All Content and Settings to start fresh.
+## Screenshots
+
+<p align="center">
+ <img src="VirtualMac/screenshots/VirtualMac_Library.png" alt="Virtual Mac grid library" width="49%">
+ <img src="VirtualMac/screenshots/VirtualMac_LibraryList.png" alt="Virtual Mac list library" width="49%">
+</p>
+<p align="center">
+ <img src="VirtualMac/screenshots/VirtualMac_Create.png" alt="Create a Virtual Mac" width="49%">
+ <img src="VirtualMac/screenshots/VirtualMac_Download.png" alt="Downloading macOS" width="49%">
+</p>
+<p align="center">
+ <img src="VirtualMac/screenshots/VirtualMac_Configuration.png" alt="Virtual Mac configuration" width="49%">
+ <img src="VirtualMac/screenshots/VirtualMac_macOS.png" alt="macOS running on iPad" width="49%">
+</p>
+
## Technical Overview
Creating Virtual Mac on iPad begins with extracting Hypervisor, Virtualization, ParavirtualizedGraphics, and supporting frameworks from macOS. Because dyld shared cache creation is a one way optimization process, extractions are lossy and can't be loaded directly.
diff --git a/VirtualMac/.env.example b/VirtualMac/.env.example
index 74f6db8..1c8f199 100644
--- a/VirtualMac/.env.example
+++ b/VirtualMac/.env.example
@@ -4,6 +4,9 @@
VZ_BUILD_ROOT=
VZ_DOWNLOAD_ROOT=
VZ_MACOS_IPSW=
+VZ_BIG_SUR_IPSW=
+VZ_IPADOS14_IPSW=
+VZ_IPADOS15_IPSW=
VZ_IPADOS_IPSW=
VZ_DEVICE_SUPPORT_DMG=
VZ_XCODE_PATH=
diff --git a/VirtualMac/Brewfile b/VirtualMac/Brewfile
index 370f28d..aded5f5 100644
--- a/VirtualMac/Brewfile
+++ b/VirtualMac/Brewfile
@@ -4,7 +4,7 @@ brew "aria2"
brew "dpkg"
brew "gnu-tar"
brew "go"
-brew "ldid"
+brew "ldid-procursus"
brew "libimobiledevice"
brew "python"
brew "rsync"
diff --git a/VirtualMac/assets/VirtualMacTemplate.png b/VirtualMac/assets/VirtualMacTemplate.png
new file mode 100644
index 0000000..2501244
Binary files /dev/null and b/VirtualMac/assets/VirtualMacTemplate.png differ
diff --git a/VirtualMac/assets/developers/jamesy0ung.jpg b/VirtualMac/assets/developers/jamesy0ung.jpg
new file mode 100644
index 0000000..0be4547
Binary files /dev/null and b/VirtualMac/assets/developers/jamesy0ung.jpg differ
diff --git a/VirtualMac/assets/developers/nfzerox.png b/VirtualMac/assets/developers/nfzerox.png
new file mode 100644
index 0000000..0b26c2d
Binary files /dev/null and b/VirtualMac/assets/developers/nfzerox.png differ
diff --git a/VirtualMac/assets/developers/qwqVictor.jpg b/VirtualMac/assets/developers/qwqVictor.jpg
new file mode 100644
index 0000000..2579fff
Binary files /dev/null and b/VirtualMac/assets/developers/qwqVictor.jpg differ
diff --git a/VirtualMac/assets/installers/golden-gate.png b/VirtualMac/assets/installers/golden-gate.png
new file mode 100644
index 0000000..7da05e2
Binary files /dev/null and b/VirtualMac/assets/installers/golden-gate.png differ
diff --git a/VirtualMac/assets/installers/ipsw.png b/VirtualMac/assets/installers/ipsw.png
new file mode 100644
index 0000000..21ee453
Binary files /dev/null and b/VirtualMac/assets/installers/ipsw.png differ
diff --git a/VirtualMac/assets/installers/monterey.png b/VirtualMac/assets/installers/monterey.png
new file mode 100644
index 0000000..812f15b
Binary files /dev/null and b/VirtualMac/assets/installers/monterey.png differ
diff --git a/VirtualMac/assets/installers/sequoia.png b/VirtualMac/assets/installers/sequoia.png
new file mode 100644
index 0000000..7acc853
Binary files /dev/null and b/VirtualMac/assets/installers/sequoia.png differ
diff --git a/VirtualMac/assets/installers/sonoma.png b/VirtualMac/assets/installers/sonoma.png
new file mode 100644
index 0000000..db27e2e
Binary files /dev/null and b/VirtualMac/assets/installers/sonoma.png differ
diff --git a/VirtualMac/assets/installers/tahoe.png b/VirtualMac/assets/installers/tahoe.png
new file mode 100644
index 0000000..3f69144
Binary files /dev/null and b/VirtualMac/assets/installers/tahoe.png differ
diff --git a/VirtualMac/assets/installers/ventura.png b/VirtualMac/assets/installers/ventura.png
new file mode 100644
index 0000000..00d496e
Binary files /dev/null and b/VirtualMac/assets/installers/ventura.png differ
diff --git a/VirtualMac/packaging/DEBIAN/control b/VirtualMac/packaging/DEBIAN/control
index 9e92e41..2b108f9 100644
--- a/VirtualMac/packaging/DEBIAN/control
+++ b/VirtualMac/packaging/DEBIAN/control
@@ -1,15 +1,16 @@
Package: com.mac.virtual
Name: Virtual Mac
Version: @VERSION@
-Architecture: iphoneos-arm64
+Architecture: all
Description: 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 and Terminal to run directly on device.
- Requires iPad Pro (M1, M2) or iPad Air (M1) running iPadOS 16 up to 16.3.1.
+ Requires iPad Pro (M1, M2) or iPad Air (M1) running iPadOS 14 up to 16.3.1.
Maintainer: Virtual Mac
Author: Virtual Mac
+Icon: https://raw.githubusercontent.com/nfzerox/VirtualMacOniPad/main/VirtualMac/assets/VirtualMac.png
Section: Utilities
Priority: optional
Installed-Size: @INSTALLED_SIZE@
-Depends: firmware (>= 16.0), firmware (<< 16.4), dopamine-basebin-link, ellekit
+Depends: firmware (>= @MIN_IOS@), firmware (<< 16.4), ellekit | org.coolstar.libhooker
Tag: role::enduser
diff --git a/VirtualMac/packaging/DEBIAN/postinst b/VirtualMac/packaging/DEBIAN/postinst
index 0318c71..f55f894 100755
--- a/VirtualMac/packaging/DEBIAN/postinst
+++ b/VirtualMac/packaging/DEBIAN/postinst
@@ -1,15 +1,240 @@
-#!/var/jb/bin/sh
+#!/bin/sh
set -eu
export PATH=/var/jb/usr/bin:/var/jb/usr/sbin:/var/jb/bin:/var/jb/sbin:/usr/bin:/bin:/usr/sbin:/sbin
runtime=/var/root/VirtualMac
-app=/var/jb/Applications/VirtualMac.app
+tweak_payload=$runtime/bootstrap-common/usr/lib/TweakInject
library=/var/mobile/Media/VirtualMac
support=$library
-launchctl=/var/jb/usr/bin/launchctl
+host_version="$(sw_vers -productVersion)"
+objc_class_data_auth=0
+# iPadOS changed Objective-C class-data authentication during iPadOS 15.
+# Detect the actual libobjc implementation: the newer runtime's safe_ro helper is present
+# in the system cache's local-symbol companion beginning with 15.4, while 15.3.1 and earlier lack it.
+case "$host_version" in
+ 15.*)
+ objc_symbols=/System/Library/Caches/com.apple.dyld/dyld_shared_cache_arm64e.symbols
+ if test -f "$objc_symbols" && \
+ LC_ALL=C grep -a -q '_ZNK17class_data_bits_t7safe_roEv' "$objc_symbols"; then
+ objc_class_data_auth=1
+ fi
+ ;;
+esac
+prefix=/var/jb
+rootless=1
+jbctl=/var/jb/usr/bin/jbctl
+
+# Taurine caches code-signing state on the vnode. Overwriting an already
+# executed Mach-O in place can leave the old validation attached to the new
+# bytes and produce EAUTH until an on-device signer rewrites it. Install every
+# selected/copied executable and dylib through a new inode instead.
+replace_file() {
+ replace_source="$1"
+ replace_destination="$2"
+ replace_temporary="${replace_destination}.virtualmac-new"
+ cp "$replace_source" "$replace_temporary"
+ chmod 755 "$replace_temporary"
+ mv -f "$replace_temporary" "$replace_destination"
+}
+
+test -x "$jbctl" || jbctl=/var/jb/basebin/jbctl
+if test ! -x "$jbctl"; then
+ # Taurine is rootful. The framework runtime already lives at the common
+ # /var/root path; install only the bootstrap-specific app and helpers.
+ rootless=0
+ prefix=
+ rootful_payload="$runtime/bootstrap-rootful"
+ universal_payload=/var/jb
+ test -d "$universal_payload/Applications/VirtualMac.app"
+ test -x "$rootful_payload/usr/libexec/VirtualMac/InternetSharing.ipados14"
+ # Replace the app bundle as a unit so resources removed by an update do
+ # not survive indefinitely on a rootful device.
+ rm -rf /Applications/VirtualMac.app
+ cp -R "$universal_payload/Applications/VirtualMac.app" /Applications/
+ replace_file \
+ "$universal_payload/Applications/VirtualMac.app/VirtualMac" \
+ /Applications/VirtualMac.app/VirtualMac
+ replace_file \
+ "$universal_payload/Applications/VirtualMac.app/VZHostCompat.dylib" \
+ /Applications/VirtualMac.app/VZHostCompat.dylib
+ mkdir -p /usr/bin
+ replace_file "$universal_payload/usr/bin/virtualmac-diagnostics" \
+ /usr/bin/virtualmac-diagnostics
+ mkdir -p /usr/lib/VirtualMac /usr/libexec/VirtualMac \
+ /usr/sbin/VirtualMac
+ for source_file in \
+ "$universal_payload/usr/lib/libmrc.dylib" \
+ "$universal_payload/usr/lib/AuthorizationCompat.dylib" \
+ "$universal_payload/usr/lib/OpenDirectoryCompat.dylib" \
+ "$universal_payload/usr/lib/IOKit14Compat.dylib"; do
+ replace_file "$source_file" "/usr/lib/VirtualMac/${source_file##*/}"
+ done
+ for source_file in "$rootful_payload/usr/libexec/VirtualMac/"*; do
+ replace_file "$source_file" "/usr/libexec/VirtualMac/${source_file##*/}"
+ done
+ replace_file "$universal_payload/usr/sbin/rtadvd" \
+ /usr/sbin/VirtualMac/rtadvd
+
+ # Releases before 1.1 staged a second copy of these shared files below the
+ # rootful bootstrap directory. They are no longer package payload; remove
+ # only those exact legacy paths after their replacements are installed.
+ rm -rf \
+ "$rootful_payload/Applications" \
+ "$rootful_payload/Library" \
+ "$rootful_payload/usr/bin" \
+ "$rootful_payload/usr/lib" \
+ "$rootful_payload/usr/sbin"
+ rm -f \
+ "$rootful_payload/usr/libexec/InternetSharing" \
+ "$rootful_payload/usr/libexec/InternetSharing.ipados14" \
+ "$rootful_payload/usr/libexec/InternetSharing.ipados15" \
+ "$rootful_payload/usr/libexec/InternetSharing.ipados16"
+fi
+app="$prefix/Applications/VirtualMac.app"
+launchctl="$prefix/usr/bin/launchctl"
+uicache="$prefix/usr/bin/uicache"
+helper_bin_dir="$prefix/usr/libexec"
+helper_lib_dir="$prefix/usr/lib"
+launch_daemons="$prefix/Library/LaunchDaemons"
+
+# Install this only after dpkg has removed paths owned by 1.0. The former
+# MobileSubstrate path can be a symlink to this canonical directory, so
+# unpacking the new file before obsolete-file cleanup is not upgrade-safe.
+tweak_dir="$prefix/usr/lib/TweakInject"
+mkdir -p "$tweak_dir"
+replace_file "$tweak_payload/VZKeyboardPassthrough.dylib" \
+ "$tweak_dir/VZKeyboardPassthrough.dylib"
+cp "$tweak_payload/VZKeyboardPassthrough.plist" \
+ "$tweak_dir/VZKeyboardPassthrough.plist.virtualmac-new"
+chmod 644 "$tweak_dir/VZKeyboardPassthrough.plist.virtualmac-new"
+mv -f "$tweak_dir/VZKeyboardPassthrough.plist.virtualmac-new" \
+ "$tweak_dir/VZKeyboardPassthrough.plist"
+if test "$rootless" = 0; then
+ helper_bin_dir=/usr/libexec/VirtualMac
+ helper_lib_dir=/usr/lib/VirtualMac
+ launch_daemons="$runtime/rootful/Library/LaunchDaemons"
+fi
chmod 755 "$app/VirtualMac" "$app/VZHostCompat.dylib"
+
+vmm_dir="$runtime/payload/VirtualMachine.xpc/Contents/MacOS"
+vmm_variant="$vmm_dir/com.apple.Virtualization.VirtualMachine.ipados16"
+case "$host_version" in
+ 14.*)
+ vmm_variant="$vmm_dir/com.apple.Virtualization.VirtualMachine.ipados14"
+ ;;
+ 15.*)
+ vmm_variant="$vmm_dir/com.apple.Virtualization.VirtualMachine.ipados15"
+ ;;
+esac
+replace_file "$vmm_variant" \
+ "$vmm_dir/com.apple.Virtualization.VirtualMachine"
+case "$host_version" in
+ 14.*)
+ hook_variant="$runtime/payload/Frameworks/LaunchServicesCompat.dylib.ipados14"
+ ;;
+ *)
+ hook_variant=""
+ ;;
+esac
+if test -n "$hook_variant"; then
+ replace_file "$hook_variant" \
+ "$runtime/payload/Frameworks/LaunchServicesCompat.dylib"
+fi
+
+installation_frameworks="$runtime/payload/Installation.xpc/Contents/Frameworks"
+installation_macos="$runtime/payload/Installation.xpc/Contents/MacOS"
+installation_variant="$installation_macos/com.apple.Virtualization.Installation.ipados16"
+installation_compat_variant="$installation_frameworks/InstallationCompat.dylib.ipados16"
+mobile_device_dir="$installation_frameworks/MobileDevice.framework/Versions/A"
+mobile_device_variant="$mobile_device_dir/MobileDevice.ipados16"
+case "$host_version" in
+ 14.*)
+ installation_variant="$installation_macos/com.apple.Virtualization.Installation.ipados14"
+ installation_compat_variant="$installation_frameworks/InstallationCompat.dylib.ipados14"
+ mobile_device_variant="$mobile_device_dir/MobileDevice.ipados14"
+ ;;
+ 15.*)
+ installation_variant="$installation_macos/com.apple.Virtualization.Installation.ipados15"
+ installation_compat_variant="$installation_frameworks/InstallationCompat.dylib.ipados15"
+ mobile_device_variant="$mobile_device_dir/MobileDevice.ipados15"
+ ;;
+esac
+if test "$objc_class_data_auth" = 1; then
+ installation_variant="$installation_macos/com.apple.Virtualization.Installation.ipados15-auth"
+ mobile_device_variant="$mobile_device_dir/MobileDevice.ipados15-auth"
+fi
+replace_file "$installation_variant" \
+ "$installation_macos/com.apple.Virtualization.Installation"
+replace_file "$installation_compat_variant" \
+ "$installation_frameworks/InstallationCompat.dylib"
+replace_file "$mobile_device_variant" "$mobile_device_dir/MobileDevice"
+
+# iPadOS 15.4 and later authenticate class_t::data like Ventura; 15.3.1 and
+# earlier do not. The symbol probe above selects the matching form.
+if test "$objc_class_data_auth" = 1; then
+ replace_file "$helper_lib_dir/libmrc.ipados15-auth.dylib" \
+ "$helper_lib_dir/libmrc.dylib"
+fi
+
+sharing_variant="$helper_bin_dir/InternetSharing.ipados16"
+case "$host_version" in
+ 14.*)
+ sharing_variant="$helper_bin_dir/InternetSharing.ipados14"
+ ;;
+ 15.*)
+ sharing_variant="$helper_bin_dir/InternetSharing.ipados15"
+ ;;
+esac
+replace_file "$sharing_variant" "$helper_bin_dir/InternetSharing"
+chmod 755 "$helper_bin_dir/InternetSharing" \
+ "$helper_lib_dir/libmrc.dylib"
+
+# Select framework binaries from the same package by the actual host ABI.
+# The normal payload is the established iPadOS 16 runtime. Replace only on
+# 14/15 with binaries carrying their older Objective-C class-data ABI.
+case "$host_version" in
+ 14.*)
+ compat="$runtime/payload/Compatibility/iPadOS14"
+ ;;
+ 15.*)
+ compat="$runtime/payload/Compatibility/iPadOS15"
+ ;;
+esac
+if test "$objc_class_data_auth" = 1; then
+ compat="$runtime/payload/Compatibility/iPadOS15Authenticated"
+fi
+case "$host_version" in
+ 14.*|15.*)
+ replace_file "$compat/Hypervisor" \
+ "$runtime/payload/Frameworks/Hypervisor.framework/Versions/A/Hypervisor"
+ if test "$host_version" != "${host_version#14.}"; then
+ replace_file "$compat/HypervisorBigSur" \
+ "$runtime/payload/Frameworks/Hypervisor.framework/Versions/A/HypervisorBigSur"
+ replace_file "$compat/LibSystemCompat.dylib" \
+ "$runtime/payload/Frameworks/LibSystem14"
+ replace_file "$compat/vmnet" \
+ "$runtime/payload/Frameworks/vmnet.framework/vmnet"
+ replace_file "$compat/Netrb" \
+ "$runtime/payload/Frameworks/Netrb.framework/Netrb"
+ fi
+ replace_file "$compat/ParavirtualizedGraphics" \
+ "$runtime/payload/Frameworks/ParavirtualizedGraphics.framework/Versions/A/ParavirtualizedGraphics"
+ replace_file "$compat/Virtualization" \
+ "$runtime/payload/Frameworks/Virtualization.framework/Versions/A/Virtualization"
+ replace_file "$compat/MetalSerializer" \
+ "$runtime/payload/Frameworks/MetalSerializer.framework/Versions/A/MetalSerializer"
+ replace_file "$compat/VideoToolbox" \
+ "$runtime/payload/Frameworks/VideoToolbox.framework/VideoToolbox"
+ replace_file "$compat/DiskImages2" \
+ "$runtime/payload/Frameworks/DiskImages2.framework/Versions/A/DiskImages2"
+ if test "$host_version" != "${host_version#14.}"; then
+ replace_file "$compat/IOKit15Compat.dylib" \
+ "$runtime/payload/Frameworks/IOKit15Compat.dylib"
+ fi
+ ;;
+esac
chmod 755 \
"$runtime/payload/VirtualMachine.xpc/Contents/MacOS/com.apple.Virtualization.VirtualMachine" \
"$runtime/payload/Installation.xpc/Contents/MacOS/com.apple.Virtualization.Installation" \
@@ -32,28 +257,112 @@ touch /var/db/dhcpd_leases
chown root:wheel /var/db/dhcpd_leases
chmod 644 /var/db/dhcpd_leases
-while IFS="$(printf '\t')" read -r hash file; do
- test -n "$hash"
- test -f "$file"
- jbctl trustcache add "$hash"
-done </var/jb/usr/share/VirtualMac/trustcache.txt
+if test "$rootless" = 1; then
+ while IFS="$(printf '\t')" read -r hash file; do
+ test -n "$hash"
+ test -f "$file"
+ "$jbctl" trustcache add "$hash"
+ done <"$prefix/usr/share/VirtualMac/trustcache.txt"
+elif test -x /taurine/jbexec; then
+ # Taurine's amfid bypass validates ad-hoc signatures, but privileged
+ # platform binaries must also be preflighted with jailbreakd. Otherwise
+ # their CDHashes are accepted only after an LLDB launch and disappear on
+ # the next respring, making the app look like it crashes before dyld.
+ #
+ # The package manifest uses rootless /var/jb paths. Map those entries to
+ # their rootful install locations; runtime files already use /var/root.
+ while IFS="$(printf '\t')" read -r hash file; do
+ target="$file"
+ case "$target" in
+ /var/jb/*) target="/${target#/var/jb/}" ;;
+ esac
+ test -f "$target" || continue
+ # jbexec registers the file before it performs a diagnostic spawn.
+ # Dylibs and XPC executables can report EPERM from that final spawn
+ # even though preflight succeeded, so do not fail package setup on its
+ # diagnostic exit status.
+ PREFLIGHT=1 /bin/bash -c \
+ 'exec -a "$1" /taurine/jbexec' _ "$target" >/dev/null || true
+ done </var/jb/usr/share/VirtualMac/trustcache.txt
+ # Files copied from the universal bootstrap payload have path-dependent
+ # Taurine trust. Preflight every final package-owned rootful Mach-O after
+ # the copy; preflighting only its /var/root staging source is insufficient.
+ for target in \
+ /usr/libexec/VirtualMac/InternetSharing \
+ /usr/libexec/VirtualMac/InternetSharing.ipados14 \
+ /usr/libexec/VirtualMac/bootpd \
+ /usr/lib/VirtualMac/AuthorizationCompat.dylib \
+ /usr/lib/VirtualMac/libmrc.dylib \
+ /usr/lib/VirtualMac/OpenDirectoryCompat.dylib \
+ /usr/lib/VirtualMac/IOKit14Compat.dylib \
+ /usr/sbin/VirtualMac/rtadvd \
+ /usr/lib/TweakInject/VZKeyboardPassthrough.dylib; do
+ test -f "$target" || continue
+ PREFLIGHT=1 /bin/bash -c \
+ 'exec -a "$1" /taurine/jbexec' _ "$target" >/dev/null || true
+ done
+fi
for domain in system user/501; do
- "$launchctl" bootout "$domain/com.apple.bootpd" 2>/dev/null || true
+ "$launchctl" bootout "$domain/vzi.apple.bootpd-controller" 2>/dev/null || true
"$launchctl" bootout "$domain/vzi.apple.bootpd" 2>/dev/null || true
"$launchctl" bootout "$domain/com.apple.NetworkSharing" 2>/dev/null || true
done
-"$launchctl" enable user/501/vzi.apple.bootpd
-"$launchctl" bootstrap user/501 \
- /var/jb/Library/LaunchDaemons/com.apple.bootpd.plist
-"$launchctl" bootstrap user/501 \
- /var/jb/Library/LaunchDaemons/com.apple.NetworkSharing.plist
-"$launchctl" kickstart -k user/501/com.apple.NetworkSharing
-
-/var/jb/usr/bin/uicache -p "$app"
-
-# Let Sileo offer its Restart SpringBoard completion button. Never restart the
-# user's session from a package maintainer script.
-echo "finish:restart"
+# iPadOS 15 has no launchd user/501 domain. Keep the established iPadOS 16
+# foreground-user placement unchanged, but use the system domain on older
+# hosts (both jobs already declare UserName=root).
+network_domain=user/501
+case "$host_version" in
+ 14.*)
+ network_domain=system
+ ;;
+ 15.*) network_domain=system ;;
+esac
+if test "$host_version" != "${host_version#14.}"; then
+ # Avoid opening UDP/67 before the configuration exists. NetworkSharing is
+ # started before vmnet because iPadOS 14 cannot resolve this private
+ # system-domain Mach service on demand. It writes the config when the VMM
+ # attaches its NIC; the controller then enables the private socket job.
+ # launchd enable/disable overrides survive a job reload, so explicitly
+ # clear a prior development package's enable. The controller loads the
+ # private job later, when InternetSharing has written its config.
+ "$launchctl" disable "$network_domain/vzi.apple.bootpd"
+ rm -f /tmp/bootpd.plist
+ "$launchctl" bootstrap "$network_domain" \
+ "$launch_daemons/vzi.apple.bootpd-controller.plist"
+ "$launchctl" bootstrap "$network_domain" \
+ "$launch_daemons/com.apple.NetworkSharing.plist"
+ "$launchctl" kickstart -k \
+ "$network_domain/com.apple.NetworkSharing"
+else
+ "$launchctl" bootstrap "$network_domain" \
+ "$launch_daemons/com.apple.NetworkSharing.plist"
+ "$launchctl" kickstart -k "$network_domain/com.apple.NetworkSharing"
+ # Keep the established iPadOS 15/16 behavior, where the helper does not
+ # enter the iPadOS 14 missing-configuration socket retry loop.
+ "$launchctl" enable "$network_domain/vzi.apple.bootpd"
+ "$launchctl" bootstrap "$network_domain" \
+ "$launch_daemons/com.apple.bootpd.plist"
+fi
+
+"$uicache" -p "$app"
+
+# Sileo passes its result descriptor and protocol version through $CYDIA.
+# Stdout is only a log stream and does not create a Restart SpringBoard action.
+if test -n "${CYDIA:-}"; then
+ read -r finish_fd finish_version <<EOF
+$CYDIA
+EOF
+ case "$finish_fd" in
+ ''|*[!0-9]*) ;;
+ *)
+ if test "${finish_version:-0}" -ge 1 2>/dev/null; then
+ echo "finish:restart" >&$finish_fd
+ fi
+ ;;
+ esac
+else
+ echo "finish:restart"
+fi
exit 0
diff --git a/VirtualMac/packaging/DEBIAN/postrm b/VirtualMac/packaging/DEBIAN/postrm
index 499afec..9041cb4 100755
--- a/VirtualMac/packaging/DEBIAN/postrm
+++ b/VirtualMac/packaging/DEBIAN/postrm
@@ -1,11 +1,26 @@
-#!/var/jb/bin/sh
+#!/bin/sh
set -eu
export PATH=/var/jb/usr/bin:/var/jb/usr/sbin:/var/jb/bin:/var/jb/sbin:/usr/bin:/bin:/usr/sbin:/sbin
if test "${1:-}" = remove || test "${1:-}" = purge; then
# VM bundles deliberately remain in /var/mobile/Media/VirtualMac.
- /var/jb/usr/bin/uicache -a 2>/dev/null || true
- echo "finish:restart"
+ uicache -a 2>/dev/null || true
+ if test -n "${CYDIA:-}"; then
+ read -r finish_fd finish_version <<EOF
+$CYDIA
+EOF
+ case "$finish_fd" in
+ ''|*[!0-9]*) ;;
+ *)
+ if test "${finish_version:-0}" -ge 1 2>/dev/null; then
+ echo "finish:restart" >&$finish_fd
+ fi
+ ;;
+ esac
+ else
+ echo "finish:restart"
+ fi
fi
+rm -f /var/root/.virtualmac-preserve-root 2>/dev/null || true
exit 0
diff --git a/VirtualMac/packaging/DEBIAN/preinst b/VirtualMac/packaging/DEBIAN/preinst
index e57e9a0..89dc37e 100755
--- a/VirtualMac/packaging/DEBIAN/preinst
+++ b/VirtualMac/packaging/DEBIAN/preinst
@@ -1,8 +1,22 @@
-#!/var/jb/bin/sh
+#!/bin/sh
set -eu
export PATH=/var/jb/usr/bin:/var/jb/usr/sbin:/var/jb/bin:/var/jb/sbin:/usr/bin:/bin:/usr/sbin:/sbin
+# Prepare ElleKit's canonical loader directory for postinst. Some bootstrap
+# revisions omit it, while their MobileSubstrate compatibility path may be a
+# dangling symlink. The tweak is copied here only after dpkg has cleaned paths
+# owned by 1.0, avoiding an upgrade-time alias collision.
+mkdir -p /var/jb/usr/lib/TweakInject
+
+# Some iPadOS 16 builds leave /var/root at 0750. Virtual Mac itself runs as
+# mobile and must traverse this directory to execute its root-owned setuid
+# restore launcher. Add traverse permission only; this does not permit mobile
+# to list /var/root. Preserve every existing owner/group permission bit.
+if test -d /var/root && ! su mobile -c 'test -x /var/root' 2>/dev/null; then
+ chmod o+x /var/root
+fi
+
killall VirtualMac 2>/dev/null || true
killall com.apple.Virtualization.VirtualMachine 2>/dev/null || true
killall com.apple.Virtualization.Installation 2>/dev/null || true
diff --git a/VirtualMac/packaging/DEBIAN/prerm b/VirtualMac/packaging/DEBIAN/prerm
index f5f7a30..e309cfe 100755
--- a/VirtualMac/packaging/DEBIAN/prerm
+++ b/VirtualMac/packaging/DEBIAN/prerm
@@ -1,17 +1,47 @@
-#!/var/jb/bin/sh
+#!/bin/sh
set -eu
export PATH=/var/jb/usr/bin:/var/jb/usr/sbin:/var/jb/bin:/var/jb/sbin:/usr/bin:/bin:/usr/sbin:/sbin
+# dpkg owns the package's /var/root/VirtualMac subtree but must never attempt
+# to remove the /var/root mount point after deleting it. A temporary unowned
+# entry makes the parent non-empty during dpkg's directory-removal pass;
+# postrm removes the marker after that pass has completed.
+touch /var/root/.virtualmac-preserve-root 2>/dev/null || true
+
killall VirtualMac 2>/dev/null || true
killall com.apple.Virtualization.VirtualMachine 2>/dev/null || true
killall com.apple.Virtualization.Installation 2>/dev/null || true
+launchctl=/usr/bin/launchctl
+app=/Applications/VirtualMac.app
+if test -x /var/jb/usr/bin/launchctl; then
+ launchctl=/var/jb/usr/bin/launchctl
+ app=/var/jb/Applications/VirtualMac.app
+fi
for domain in system user/501; do
- /var/jb/usr/bin/launchctl bootout "$domain/vzi.apple.bootpd" \
+ "$launchctl" bootout "$domain/vzi.apple.bootpd-controller" \
+ 2>/dev/null || true
+ "$launchctl" bootout "$domain/vzi.apple.bootpd" \
2>/dev/null || true
- /var/jb/usr/bin/launchctl bootout "$domain/com.apple.NetworkSharing" \
+ "$launchctl" bootout "$domain/com.apple.NetworkSharing" \
2>/dev/null || true
done
-/var/jb/usr/bin/uicache -u /var/jb/Applications/VirtualMac.app \
- 2>/dev/null || true
+uicache -u "$app" 2>/dev/null || true
+prefix=/var/jb
+if test ! -x /var/jb/usr/bin/jbctl && test ! -x /var/jb/basebin/jbctl; then
+ prefix=
+fi
+rm -f "$prefix/usr/lib/TweakInject/VZKeyboardPassthrough.dylib" \
+ "$prefix/usr/lib/TweakInject/VZKeyboardPassthrough.plist"
+if test ! -x /var/jb/usr/bin/jbctl && test ! -x /var/jb/basebin/jbctl; then
+ rm -rf /Applications/VirtualMac.app
+ # Remove only files copied by this package. Networking helpers live below
+ # /var/root/VirtualMac and are removed as package payload; never touch an
+ # Apple executable or daemon plist under /usr or /System.
+ rm -f /Library/LaunchDaemons/com.apple.bootpd.plist \
+ /Library/LaunchDaemons/com.apple.NetworkSharing.plist \
+ /usr/bin/virtualmac-diagnostics
+ rm -rf /usr/lib/VirtualMac /usr/libexec/VirtualMac \
+ /usr/sbin/VirtualMac
+fi
exit 0
diff --git a/VirtualMac/packaging/rootful/bootpd-controller.sh b/VirtualMac/packaging/rootful/bootpd-controller.sh
new file mode 100644
index 0000000..05b0912
--- /dev/null
+++ b/VirtualMac/packaging/rootful/bootpd-controller.sh
@@ -0,0 +1,47 @@
+#!/bin/sh
+
+# iPadOS 14 InternetSharing is sandboxed and cannot call launchctl itself.
+# Cross that boundary with Apple's /bin/sh under a root launchd job, and touch
+# only Virtual Mac's private label and package-owned plist/program paths.
+set -u
+
+launchctl=/usr/bin/launchctl
+label=system/vzi.apple.bootpd
+plist=/var/root/VirtualMac/rootful/Library/LaunchDaemons/com.apple.bootpd.plist
+config=/tmp/bootpd.plist
+
+dhcp_active=0
+if test -s "$config"; then
+ # WatchPaths may fire while a writer is completing an atomic replacement.
+ sleep 1
+ test -s "$config" || exit 0
+ in_dhcp_enabled=0
+ while IFS= read -r line; do
+ case "$line" in
+ *'<key>dhcp_enabled</key>'*)
+ in_dhcp_enabled=1
+ ;;
+ *'<string>bridge100</string>'*)
+ if test "$in_dhcp_enabled" = 1; then
+ dhcp_active=1
+ break
+ fi
+ ;;
+ *'</array>'*)
+ in_dhcp_enabled=0
+ ;;
+ esac
+ done <"$config"
+fi
+
+if test "$dhcp_active" = 1; then
+ "$launchctl" enable "$label"
+ if ! "$launchctl" print "$label" >/dev/null 2>&1; then
+ "$launchctl" bootstrap system "$plist"
+ fi
+else
+ "$launchctl" bootout "$label" 2>/dev/null || true
+ "$launchctl" disable "$label"
+fi
+
+exit 0
diff --git a/VirtualMac/packaging/rootful/vzi.apple.bootpd-controller.plist b/VirtualMac/packaging/rootful/vzi.apple.bootpd-controller.plist
new file mode 100644
index 0000000..bc5f154
--- /dev/null
+++ b/VirtualMac/packaging/rootful/vzi.apple.bootpd-controller.plist
@@ -0,0 +1,25 @@
+<?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>vzi.apple.bootpd-controller</string>
+ <key>ProgramArguments</key>
+ <array>
+ <string>/bin/sh</string>
+ <string>/usr/libexec/VirtualMac/bootpd-controller.sh</string>
+ </array>
+ <key>RunAtLoad</key>
+ <true/>
+ <key>WatchPaths</key>
+ <array>
+ <string>/tmp/bootpd.plist</string>
+ </array>
+ <key>ProcessType</key>
+ <string>Interactive</string>
+ <key>StandardOutPath</key>
+ <string>/tmp/bootpd-controller.out</string>
+ <key>StandardErrorPath</key>
+ <string>/tmp/bootpd-controller.err</string>
+</dict>
+</plist>
diff --git a/VirtualMac/resources/Localizations/cs.lproj/InfoPlist.strings b/VirtualMac/resources/Localizations/cs.lproj/InfoPlist.strings
new file mode 100644
index 0000000..364f89b
--- /dev/null
+++ b/VirtualMac/resources/Localizations/cs.lproj/InfoPlist.strings
@@ -0,0 +1,2 @@
+"CFBundleDisplayName" = "Virtuální Mac";
+"CFBundleName" = "Virtuální Mac";
diff --git a/VirtualMac/resources/Localizations/cs.lproj/Localizable.strings b/VirtualMac/resources/Localizations/cs.lproj/Localizable.strings
new file mode 100644
index 0000000..d1d4390
--- /dev/null
+++ b/VirtualMac/resources/Localizations/cs.lproj/Localizable.strings
@@ -0,0 +1,247 @@
+/* Virtual Mac 1.1 localization. */
+" · Legacy" = " · Starší";
+"%.0f%% complete" = "%.0f %% dokončeno";
+"%@ CPU · %@ GB RAM · %llu GB · %@%@" = "%@ CPU · %@ GB RAM · %llu GB · %@%@";
+"%@ is not supported" = "%@ není podporován";
+"%@ 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á %@";
+"%@\n\n%@\n\nThe incomplete Virtual Mac was retained in Temporary Installation Files as %@. It can be deleted from Settings." = "%@\n\n%@\n\nNedokončený virtuální Mac byl zachován v Dočasných instalačních souborech jako %@. Můžete ho smazat v Nastavení.";
+"%@\nState: %@\n%@\n\n" = "%@\nStav: %@\n%@\n\n";
+"A previous macOS installation did not finish. You can review its details, keep it for debugging, or delete it." = "Předchozí instalace macOS nebyla dokončena. Můžete zobrazit podrobnosti, ponechat ji pro ladění nebo ji smazat.";
+"About" = "O aplikaci";
+"Accommodate Finger Double-Taps" = "Usnadnit dvojité klepnutí prstem";
+"Add Shared Folder" = "Přidat sdílenou složku";
+"Advanced" = "Pokročilé";
+"Allowed: %llu–%llu%@" = "Povoleno: %llu–%llu%@";
+"Always Hidden" = "Vždy skrytý";
+"Always Visible" = "Vždy viditelné";
+"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";
+"Audio and Acceleration" = "Zvuk a akcelerace";
+"Audio Output" = "Zvukový výstup";
+"Automatic" = "Automatický";
+"Automatic hides the controls when an external keyboard and pointing device are connected." = "Automaticky skryje ovládací prvky, když je připojena externí klávesnice a polohovací zařízení.";
+"Available macOS Releases" = "Dostupná vydání macOS";
+"Available macOS Versions" = "Dostupné verze macOS";
+"Boot and Network" = "Spouštění a síť";
+"Bottom Left" = "Vlevo dole";
+"Bottom Right" = "Vpravo dole";
+"Bridge" = "Most";
+"Bridge via %@" = "Přemostit přes %@";
+"Bridge: %@" = "Most: %@";
+"Build %@" = "Sestavení %@";
+"Calculating speed…" = "Výpočet rychlosti…";
+"Cancel" = "Zrušit";
+"Cancel Download" = "Zrušit stahování";
+"Cancel Download?" = "Zrušit stahování?";
+"Cancel Installation" = "Zrušit instalaci";
+"Cancel Installation?" = "Zrušit instalaci?";
+"Cellular" = "Mobilní síť";
+"Choose a Different Version" = "Vybrat jinou verzi";
+"Choose a macOS IPSW restore image." = "Vyberte obraz obnovení macOS IPSW.";
+"Choose a name for this Virtual Mac." = "Vyberte název tohoto virtuálního Macu.";
+"Choose Custom IPSW" = "Vybrat vlastní IPSW";
+"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. Renaming and deletion are unavailable while it is running." = "Změny konfigurace se projeví po vypnutí a opětovném spuštění virtuálního Macu. Za běhu ho nelze přejmenovat ani smazat.";
+"Configuration failed: %@" = "Konfigurace selhala: %@";
+"Configure %@" = "Konfigurovat %@";
+"Continue" = "Pokračovat";
+"Controls Hidden" = "Ovládací prvky jsou skryté";
+"Controls Opacity" = "Neprůhlednost ovládacích prvků";
+"Copy Library Path" = "Kopírovat cestu knihovny";
+"Copying Restore Image" = "Kopírování obrazu pro obnovení";
+"Could Not Copy IPSW" = "IPSW se nepodařilo zkopírovat";
+"Could Not Prepare Restore Image" = "Obraz obnovení se nepodařilo připravit";
+"Could Not Rename Virtual Mac" = "Virtuální Mac se nepodařilo přejmenovat";
+"Could Not Save" = "Nepodařilo se uložit";
+"Could Not Start Installer" = "Instalátor se nepodařilo spustit";
+"Couldn’t Export Diagnostics" = "Diagnostiku se nepodařilo exportovat";
+"Create Virtual Mac" = "Vytvořit Virtuální Mac";
+"Custom" = "Vlastní";
+"Debug Logging" = "Protokolování ladění";
+"Delete" = "Smazat";
+"Delete All" = "Smazat vše";
+"Delete Cached Install Images" = "Smazat instalační obrazy z mezipaměti";
+"Delete Cached Install Images?" = "Smazat instalační obrazy z mezipaměti?";
+"Delete Incomplete Installation" = "Smazat nedokončenou instalaci";
+"Delete IPSW After Successful Installation" = "Po úspěšné instalaci odstraňte IPSW";
+"Delete or rename the existing Virtual Mac first." = "Nejprve smažte nebo přejmenujte existující virtuální Mac.";
+"Delete Temporary Installation Files" = "Odstranit dočasné instalační soubory";
+"Delete Temporary Installation Files?" = "Odstranit dočasné instalační soubory?";
+"Delete Virtual Mac" = "Smazat virtuální Mac";
+"Delete Virtual Mac?" = "Smazat virtuální Mac?";
+"Developer Beta" = "Vývojářská betaverze";
+"Developers" = "Vývojáři";
+"Disabled" = "Vypnuto";
+"Discard Changes" = "Zahodit změny";
+"Discard Changes?" = "Zahodit změny?";
+"Disk Exceeds Available Storage" = "Disk přesahuje dostupné úložiště";
+"Display" = "Displej";
+"Display Height" = "Výška displeje";
+"Display Resolution" = "Rozlišení displeje";
+"Display Width" = "Šířka displeje";
+"Done" = "Hotovo";
+"Double-tap to hold or release this modifier" = "Dvojitým klepnutím tuto modifikační klávesu podržíte nebo uvolníte";
+"Download Failed" = "Stahování se nezdařilo";
+"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 (%@)";
+"Experimental" = "Experimentální";
+"Export Diagnostics" = "Exportovat diagnostiku";
+"Failed to load extracted frameworks" = "Extrahované frameworky se nepodařilo načíst";
+"Failed to load the extracted Apple virtualization frameworks." = "Extrahované frameworky Apple pro virtualizaci se nepodařilo načíst.";
+"Fill Window" = "Vyplnit okno";
+"Fit in Window" = "Přizpůsobit oknu";
+"Fit in Window shows the entire display. Fill Window crops its edges when the window has a different shape." = "Přizpůsobit oknu zobrazí celý displej. Vyplnit okno ořízne okraje, pokud má okno jiný tvar.";
+"Force Shut Down" = "Vynutit vypnutí";
+"Force Shut Down Virtual Mac?" = "Vynutit vypnutí virtuálního Macu?";
+"Full Screen" = "Celá obrazovka";
+"General" = "Obecné";
+"Get Help" = "Nápověda";
+"Height" = "Výška";
+"Hide for This Boot" = "Skrýt pro toto spuštění";
+"Incomplete Installation" = "Nedokončená instalace";
+"Incomplete Installations" = "Nedokončené instalace";
+"Input" = "Vstup";
+"Input While a Virtual Mac Is Running" = "Ovládání za běhu virtuálního Macu";
+"Install %@" = "Nainstalovat %@";
+"Install macOS" = "Nainstalujte macOS";
+"Installation Details" = "Podrobnosti instalace";
+"Installation Failed" = "Instalace se nezdařila";
+"Installation progress may pause for several minutes while the Virtual Mac starts the installation environment. Your iPad will remain awake." = "Průběh instalace se může na několik minut pozastavit, zatímco Virtuální Mac spouští instalační prostředí. iPad zůstane vzhůru.";
+"Installation progress may remain unchanged while macOS prepares the next installation stage. Your iPad will remain awake." = "Průběh instalace se nemusí měnit, zatímco macOS připravuje další fázi instalace. iPad zůstane vzhůru.";
+"Installed, but settings save failed: %@" = "Nainstalováno, ale nastavení se nepodařilo uložit: %@";
+"Installing macOS" = "Instalace macOS";
+"iPad Internet Connection" = "Internetové připojení iPadu";
+"Keep Downloading" = "Pokračovat ve stahování";
+"Keep Editing" = "Pokračovat v úpravách";
+"Keep Installing" = "Pokračovat v instalaci";
+"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";
+"Keyboard Crash Workaround" = "Řešení pádu klávesnice";
+"Keyboard Crash Workaround takes effect the next time Virtual Mac opens. Debug Logging takes effect the next time a Virtual Mac starts." = "Řešení pádu klávesnice se projeví při příštím otevření aplikace Virtuální Mac. Protokolování ladění se projeví při příštím spuštění virtuálního Macu.";
+"Library Appearance" = "Vzhled knihovny";
+"Loading extracted Apple virtualization frameworks…" = "Načítání extrahovaných frameworků Apple pro virtualizaci…";
+"MAC Address" = "MAC adresa";
+"Mac Keyboard" = "Klávesnice Mac";
+"Mac Keyboard Shortcuts" = "Klávesové zkratky Mac";
+"Mac Trackpad" = "Trackpad Mac";
+"macOS Installed" = "macOS je nainstalován";
+"Memory" = "Paměť";
+"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";
+"Name" = "Název";
+"Name Already Used" = "Název se už používá";
+"NAT: Share %@" = "NAT: Sdílet %@";
+"Network" = "Síť";
+"Network Attachment" = "Síťové připojení";
+"Network Bridge (%@)" = "Síťový most (%@)";
+"New Virtual Mac" = "Nový Virtuální Mac";
+"No Results" = "Žádné výsledky";
+"No Virtual Macs match your search." = "Žádný virtuální Mac neodpovídá vašemu hledání.";
+"OK" = "OK";
+"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.";
+"Options" = "Volby";
+"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í";
+"Portrait Full Screen" = "Celá obrazovka na výšku";
+"Preparing installation…" = "Příprava instalace…";
+"Preparing the IPSW for installation. Your iPad will remain awake." = "Příprava IPSW k instalaci. iPad zůstane aktivní.";
+"Preparing virtual hardware…" = "Příprava virtuálního hardwaru…";
+"Preparing…" = "Příprava…";
+"Processors" = "Procesory";
+"Read & Write" = "Čtení a zápis";
+"Read Only" = "Jen pro čtení";
+"Reading restore image…" = "Načítání obrazu pro obnovení…";
+"Recommended macOS Release" = "Doporučené vydání macOS";
+"Recover Networking After Sleep" = "Obnovení sítě po spánku";
+"Release" = "Vydání";
+"Remove" = "Odstranit";
+"Report Issue" = "Nahlásit problém";
+"Reset" = "Resetovat";
+"Reset Settings" = "Obnovit nastavení";
+"Reset Settings?" = "Resetovat nastavení?";
+"Resolution" = "Rozlišení";
+"Resources" = "Prostředky";
+"Resume" = "Pokračovat";
+"Save" = "Uložit";
+"Search Virtual Mac" = "Hledat Virtuální Mac";
+"Settings" = "Nastavení";
+"Shared Folder" = "Sdílená složka";
+"Shared via %@" = "Sdíleno přes %@";
+"Show Developer Betas" = "Zobrazit vývojářské betaverze";
+"Show Library" = "Zobrazit knihovnu";
+"Show Minor Releases" = "Zobrazit dílčí vydání";
+"Show Version Details" = "Zobrazit podrobnosti verze";
+"Show Virtual Mac Controls" = "Zobrazit ovládací prvky virtuálního Macu";
+"Start" = "Spustit";
+"Start %@" = "Spustit %@";
+"Start in Recovery" = "Spustit v zotavení";
+"Start on Launch" = "Spustit při otevření";
+"Starting installation environment…" = "Spouštění instalačního prostředí…";
+"Starting installation services…" = "Spouštění instalačních služeb…";
+"Starting installation…" = "Spouštění instalace…";
+"Starting Virtual Mac…" = "Spouštění virtuálního Macu…";
+"Storage" = "Úložiště";
+"Support" = "Podpora";
+"Support for %@ is experimental" = "Podpora %@ je experimentální";
+"Suppress iPadOS Home Indicator" = "Skrýt indikátor plochy iPadOS";
+"Suppress iPadOS Multitasking Gestures" = "Potlačit gesta multitaskingu iPadOS";
+"Suppress iPadOS System Edge Gestures" = "Potlačit systémová gesta od okrajů iPadOS";
+"Switch to Running Virtual Mac" = "Přepnout na spuštěný virtuální Mac";
+"Switch to the running Virtual Mac and shut it down before starting another one." = "Před spuštěním jiného virtuálního Macu přepněte na ten spuštěný a vypněte ho.";
+"The diagnostics archive could not be created." = "Diagnostický archiv se nepodařilo vytvořit.";
+"The first progress value can take several minutes while the Virtual Mac changes from DFU to RestoreOS. Your iPad will remain awake." = "První hodnota průběhu může trvat několik minut, zatímco virtuální Mac přechází z DFU do RestoreOS. iPad zůstane aktivní.";
+"The incomplete Virtual Mac and its installation files will be deleted." = "Nedokončený virtuální Mac a jeho instalační soubory budou smazány.";
+"The install image and temporary installation files were kept so the failure can be diagnosed. You can export diagnostics from Settings." = "Instalační obraz a dočasné instalační soubory byly zachovány, aby bylo možné chybu diagnostikovat. Diagnostiku můžete exportovat v Nastavení.";
+"The installer could not be started: %s" = "Instalační program se nepodařilo spustit: %s";
+"The new Virtual Mac is ready to use." = "Nový virtuální Mac je připraven k použití.";
+"The partial restore image will be deleted." = "Částečně stažený obraz pro obnovení bude smazán.";
+"The Virtual Mac configuration could not be created." = "Konfiguraci virtuálního Macu se nepodařilo vytvořit.";
+"The Virtual Mac did not publish a display framebuffer." = "Virtuální Mac nezveřejnil framebuffer displeje.";
+"The Virtual Mac display view is unavailable" = "Zobrazení displeje virtuálního Macu není dostupné";
+"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 show the controls again during this boot, touch and hold the Virtual Mac icon on the Home Screen, then choose Show Virtual Mac Controls." = "Chcete-li během tohoto spuštění znovu zobrazit ovládací prvky, podržte ikonu Virtual Mac na ploše a zvolte Zobrazit ovládací prvky virtuálního Macu.";
+"Top Left" = "Vlevo nahoře";
+"Top Right" = "Vpravo nahoře";
+"Touch and Hold for Secondary Click" = "Klepněte a podržte pro sekundární kliknutí";
+"Two-Finger Tap for Secondary Click" = "Klepnutí dvěma prsty pro sekundární kliknutí";
+"Two-Finger Touch Scrolling" = "Dotykové rolování dvěma prsty";
+"Unknown" = "Není známo";
+"Unsaved changes in macOS may be lost." = "Neuložené změny v macOS mohou být ztraceny.";
+"Unsupported Restore Image" = "Nepodporovaný obraz obnovení";
+"USB Keyboard" = "USB klávesnice";
+"USB Mouse" = "USB myš";
+"Use an IPSW on your iPad" = "Použít IPSW v iPadu";
+"Use USB Keyboard for macOS Monterey. Newer guests support the Mac keyboard device." = "V macOS Monterey použijte USB klávesnici. Novější verze macOS podporují klávesnici Mac.";
+"Use USB Mouse for macOS Monterey. Newer guests support the Mac trackpad device." = "V macOS Monterey použijte USB myš. Novější verze macOS podporují trackpad Mac.";
+"Validation failed: %@" = "Ověření selhalo: %@";
+"Verify your iPad has sufficient free storage and try again." = "Ověřte, že je na iPadu dostatek volného místa, a zkuste to znovu.";
+"Version" = "Verze";
+"Video Encoding and Decoding Acceleration" = "Akcelerace kódování a dekódování videa";
+"View Details" = "Zobrazit podrobnosti";
+"Virtual Mac" = "Virtuální Mac";
+"Virtual Mac %@ does not support %@. Check for updates in Sileo." = "Virtual Mac %@ nepodporuje %@. Zkontrolujte aktualizace v Sileu.";
+"Virtual Mac Controls" = "Ovládací prvky Virtuálního Macu";
+"Virtual Mac devices are stored in %@." = "Virtuální Macy se ukládají do %@.";
+"Virtual Mac Display" = "Displej Virtuálního Macu";
+"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";
+"Virtual Mac start failed: %@" = "Virtuální Mac se nepodařilo spustit: %@";
+"Virtual Mac Stopped" = "Virtuální Mac se zastavil";
+"Virtual Mac stopped: %@" = "Virtuální Mac byl zastaven: %@";
+"VPN" = "VPN";
+"Waiting for installation output…" = "Čekání na výstup instalace…";
+"Welcome to Virtual Mac" = "Vítejte ve Virtuálním Macu";
+"Wi-Fi" = "Wi-Fi";
+"Width" = "Šířka";
+"You can also copy an existing Virtual Mac bundle to /var/mobile/Media/VirtualMac using an app such as iMazing or Filza." = "Existující balíček virtuálního Macu můžete také zkopírovat do /var/mobile/Media/VirtualMac pomocí aplikace, jako je iMazing nebo Filza.";
+"Your changes to this Virtual Mac will not be saved." = "Změny tohoto virtuálního Macu nebudou uloženy.";
+"“%@” and all files stored in it will be permanently deleted." = "„%@“ a všechny soubory v něm budou trvale smazány.";
diff --git a/VirtualMac/resources/Localizations/da.lproj/InfoPlist.strings b/VirtualMac/resources/Localizations/da.lproj/InfoPlist.strings
new file mode 100644
index 0000000..bf6070f
--- /dev/null
+++ b/VirtualMac/resources/Localizations/da.lproj/InfoPlist.strings
@@ -0,0 +1,2 @@
+"CFBundleDisplayName" = "Virtuel Mac";
+"CFBundleName" = "Virtuel Mac";
diff --git a/VirtualMac/resources/Localizations/da.lproj/Localizable.strings b/VirtualMac/resources/Localizations/da.lproj/Localizable.strings
new file mode 100644
index 0000000..2281f62
--- /dev/null
+++ b/VirtualMac/resources/Localizations/da.lproj/Localizable.strings
@@ -0,0 +1,247 @@
+/* Virtual Mac 1.1 localization. */
+" · Legacy" = " · Ældre";
+"%.0f%% complete" = "%.0f%% fuldført";
+"%@ CPU · %@ GB RAM · %llu GB · %@%@" = "%@ CPU · %@ GB RAM · %llu GB · %@%@";
+"%@ is not supported" = "%@ understøttes ikke";
+"%@ 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";
+"%@\n\n%@\n\nThe incomplete Virtual Mac was retained in Temporary Installation Files as %@. It can be deleted from Settings." = "%@\n\n%@\n\nDen ufuldstændige Virtual Mac blev gemt i Midlertidige installationsfiler som %@. Den kan slettes i Indstillinger.";
+"%@\nState: %@\n%@\n\n" = "%@\nStatus: %@\n%@\n\n";
+"A previous macOS installation did not finish. You can review its details, keep it for debugging, or delete it." = "En tidligere macOS-installation blev ikke færdig. Du kan gennemse oplysningerne, beholde den til fejlfinding eller slette den.";
+"About" = "Om appen";
+"Accommodate Finger Double-Taps" = "Gør dobbelttryk med en finger nemmere";
+"Add Shared Folder" = "Tilføj delt mappe";
+"Advanced" = "Avanceret";
+"Allowed: %llu–%llu%@" = "Tilladt: %llu–%llu%@";
+"Always Hidden" = "Altid skjult";
+"Always Visible" = "Altid synlig";
+"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";
+"Audio and Acceleration" = "Lyd og acceleration";
+"Audio Output" = "Lydudgang";
+"Automatic" = "Automatisk";
+"Automatic hides the controls when an external keyboard and pointing device are connected." = "Automatisk skjuler betjeningsmulighederne, når et eksternt tastatur og et pegeredskab er tilsluttet.";
+"Available macOS Releases" = "Tilgængelige macOS-udgivelser";
+"Available macOS Versions" = "Tilgængelige macOS-versioner";
+"Boot and Network" = "Start og netværk";
+"Bottom Left" = "Nederst til venstre";
+"Bottom Right" = "Nederst til højre";
+"Bridge" = "Bro";
+"Bridge via %@" = "Bro via %@";
+"Bridge: %@" = "Bro: %@";
+"Build %@" = "Kompilering %@";
+"Calculating speed…" = "Beregner hastighed…";
+"Cancel" = "Annuller";
+"Cancel Download" = "Annuller overførsel";
+"Cancel Download?" = "Annuller overførsel?";
+"Cancel Installation" = "Annuller installation";
+"Cancel Installation?" = "Annuller installation?";
+"Cellular" = "Mobilnetværk";
+"Choose a Different Version" = "Vælg en anden version";
+"Choose a macOS IPSW restore image." = "Vælg et macOS IPSW-gendannelsesarkiv.";
+"Choose a name for this Virtual Mac." = "Vælg et navn til denne Virtual Mac.";
+"Choose Custom IPSW" = "Vælg brugerdefineret IPSW";
+"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. Renaming and deletion are unavailable while it is running." = "Konfigurationsændringer træder i kraft, når Virtual Mac er lukket ned og startet igen. Den kan ikke omdøbes eller slettes, mens den kører.";
+"Configuration failed: %@" = "Konfiguration mislykkedes: %@";
+"Configure %@" = "Konfigurer %@";
+"Continue" = "Fortsæt";
+"Controls Hidden" = "Betjeningsmuligheder skjult";
+"Controls Opacity" = "Betjeningens opacitet";
+"Copy Library Path" = "Kopier bibliotekssti";
+"Copying Restore Image" = "Kopierer gendannelsesbillede";
+"Could Not Copy IPSW" = "IPSW kunne ikke kopieres";
+"Could Not Prepare Restore Image" = "Gendannelsesarkivet kunne ikke klargøres";
+"Could Not Rename Virtual Mac" = "Virtuel Mac kunne ikke omdøbes";
+"Could Not Save" = "Kunne ikke gemme";
+"Could Not Start Installer" = "Installationsprogrammet kunne ikke startes";
+"Couldn’t Export Diagnostics" = "Kunne ikke eksportere diagnosticering";
+"Create Virtual Mac" = "Opret en Virtuel Mac";
+"Custom" = "Tilpasset";
+"Debug Logging" = "Fejllogning";
+"Delete" = "Slet";
+"Delete All" = "Slet alle";
+"Delete Cached Install Images" = "Slet cachelagrede installationsafbilder";
+"Delete Cached Install Images?" = "Slet cachelagrede installationsafbilder?";
+"Delete Incomplete Installation" = "Slet ufuldstændig installation";
+"Delete IPSW After Successful Installation" = "Slet IPSW efter vellykket installation";
+"Delete or rename the existing Virtual Mac first." = "Slet eller omdøb først den eksisterende Virtual Mac.";
+"Delete Temporary Installation Files" = "Slet midlertidige installationsfiler";
+"Delete Temporary Installation Files?" = "Slet midlertidige installationsfiler?";
+"Delete Virtual Mac" = "Slet Virtual Mac";
+"Delete Virtual Mac?" = "Slet Virtual Mac?";
+"Developer Beta" = "Udviklerbeta";
+"Developers" = "Udviklere";
+"Disabled" = "Deaktiveret";
+"Discard Changes" = "Kassér ændringer";
+"Discard Changes?" = "Kassér ændringer?";
+"Disk Exceeds Available Storage" = "Disken overstiger ledig lagringsplads";
+"Display" = "Skærm";
+"Display Height" = "Skærmhøjde";
+"Display Resolution" = "Skærmopløsning";
+"Display Width" = "Skærmbredde";
+"Done" = "Færdig";
+"Double-tap to hold or release this modifier" = "Tryk to gange for at låse eller frigive denne kombinationstast";
+"Download Failed" = "Overførsel mislykkedes";
+"Downloading macOS" = "Henter macOS";
+"Enter six hexadecimal octets separated by colons." = "Indtast seks hexadecimale oktetter adskilt af kolon.";
+"Ethernet (%@)" = "Ethernet (%@)";
+"Experimental" = "Eksperimentel";
+"Export Diagnostics" = "Eksporter diagnostik";
+"Failed to load extracted frameworks" = "Kunne ikke indlæse udpakkede frameworks";
+"Failed to load the extracted Apple virtualization frameworks." = "De udpakkede Apple-frameworks til virtualisering kunne ikke indlæses.";
+"Fill Window" = "Fyld vinduet";
+"Fit in Window" = "Tilpas til vindue";
+"Fit in Window shows the entire display. Fill Window crops its edges when the window has a different shape." = "Tilpas til vindue viser hele skærmen. Udfyld vindue beskærer kanterne, når vinduet har en anden form.";
+"Force Shut Down" = "Gennemtving nedlukning";
+"Force Shut Down Virtual Mac?" = "Gennemtving nedlukning af Virtual Mac?";
+"Full Screen" = "Fuld skærm";
+"General" = "Generelt";
+"Get Help" = "Få hjælp";
+"Height" = "Højde";
+"Hide for This Boot" = "Skjul under denne start";
+"Incomplete Installation" = "Ufuldstændig installation";
+"Incomplete Installations" = "Ufuldstændige installationer";
+"Input" = "Input";
+"Input While a Virtual Mac Is Running" = "Input, mens en virtuel Mac kører";
+"Install %@" = "Installer %@";
+"Install macOS" = "Installer macOS";
+"Installation Details" = "Installationsoplysninger";
+"Installation Failed" = "Installation mislykkedes";
+"Installation progress may pause for several minutes while the Virtual Mac starts the installation environment. Your iPad will remain awake." = "Installationsstatus kan holde pause i flere minutter, mens Virtuel Mac starter installationsmiljøet. Din iPad forbliver vågen.";
+"Installation progress may remain unchanged while macOS prepares the next installation stage. Your iPad will remain awake." = "Installationsstatus kan forblive uændret, mens macOS forbereder næste installationstrin. Din iPad forbliver vågen.";
+"Installed, but settings save failed: %@" = "Installeret, men indstillingerne kunne ikke gemmes: %@";
+"Installing macOS" = "Installerer macOS";
+"iPad Internet Connection" = "iPads internetforbindelse";
+"Keep Downloading" = "Fortsæt overførsel";
+"Keep Editing" = "Fortsæt redigering";
+"Keep Installing" = "Fortsæt installation";
+"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";
+"Keyboard Crash Workaround" = "Løsning på tastaturnedbrud";
+"Keyboard Crash Workaround takes effect the next time Virtual Mac opens. Debug Logging takes effect the next time a Virtual Mac starts." = "Løsningen til tastaturnedbrud træder i kraft, næste gang Virtuel Mac åbnes. Fejllogning træder i kraft, næste gang en virtuel Mac startes.";
+"Library Appearance" = "Bibliotekets udseende";
+"Loading extracted Apple virtualization frameworks…" = "Indlæser udpakkede Apple-frameworks til virtualisering…";
+"MAC Address" = "MAC-adresse";
+"Mac Keyboard" = "Mac-tastatur";
+"Mac Keyboard Shortcuts" = "Mac-tastaturgenveje";
+"Mac Trackpad" = "Mac-pegefelt";
+"macOS Installed" = "macOS installeret";
+"Memory" = "Hukommelse";
+"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";
+"Name" = "Navn";
+"Name Already Used" = "Navnet er allerede i brug";
+"NAT: Share %@" = "NAT: Del %@";
+"Network" = "Netværk";
+"Network Attachment" = "Netværksforbindelse";
+"Network Bridge (%@)" = "Netværksbro (%@)";
+"New Virtual Mac" = "Ny Virtuel Mac";
+"No Results" = "Ingen resultater";
+"No Virtual Macs match your search." = "Ingen virtuelle Mac-computere matcher din søgning.";
+"OK" = "OK";
+"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.";
+"Options" = "Indstillinger";
+"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";
+"Portrait Full Screen" = "Fuld skærm i stående format";
+"Preparing installation…" = "Forbereder installation…";
+"Preparing the IPSW for installation. Your iPad will remain awake." = "Forbereder IPSW til installation. Din iPad forbliver aktiv.";
+"Preparing virtual hardware…" = "Forbereder virtuel hardware…";
+"Preparing…" = "Forbereder…";
+"Processors" = "Processorer";
+"Read & Write" = "Læs og skriv";
+"Read Only" = "Skrivebeskyttet";
+"Reading restore image…" = "Læser gendannelsesbillede…";
+"Recommended macOS Release" = "Anbefalet macOS-udgivelse";
+"Recover Networking After Sleep" = "Gendan netværk efter dvale";
+"Release" = "Udgivelse";
+"Remove" = "Fjern";
+"Report Issue" = "Rapportér et problem";
+"Reset" = "Nulstil";
+"Reset Settings" = "Nulstil indstillinger";
+"Reset Settings?" = "Nulstil indstillinger?";
+"Resolution" = "Opløsning";
+"Resources" = "Ressourcer";
+"Resume" = "Fortsæt";
+"Save" = "Gem";
+"Search Virtual Mac" = "Søg efter Virtuel Mac";
+"Settings" = "Indstillinger";
+"Shared Folder" = "Delt mappe";
+"Shared via %@" = "Delt via %@";
+"Show Developer Betas" = "Vis udviklerbetaer";
+"Show Library" = "Vis bibliotek";
+"Show Minor Releases" = "Vis mindre versioner";
+"Show Version Details" = "Vis versionsoplysninger";
+"Show Virtual Mac Controls" = "Vis betjeningsmuligheder til Virtual Mac";
+"Start" = "Start";
+"Start %@" = "Start %@";
+"Start in Recovery" = "Start i gendannelse";
+"Start on Launch" = "Start ved åbning";
+"Starting installation environment…" = "Starter installationsmiljø…";
+"Starting installation services…" = "Starter installationstjenester…";
+"Starting installation…" = "Starter installation…";
+"Starting Virtual Mac…" = "Starter Virtual Mac…";
+"Storage" = "Lagring";
+"Support" = "Support";
+"Support for %@ is experimental" = "Understøttelse af %@ er eksperimentel";
+"Suppress iPadOS Home Indicator" = "Skjul iPadOS-hjemmeindikatoren";
+"Suppress iPadOS Multitasking Gestures" = "Deaktiver multitaskingbevægelser i iPadOS";
+"Suppress iPadOS System Edge Gestures" = "Deaktiver systembevægelser fra kanterne i iPadOS";
+"Switch to Running Virtual Mac" = "Skift til kørende Virtual Mac";
+"Switch to the running Virtual Mac and shut it down before starting another one." = "Skift til den kørende Virtual Mac, og luk den ned, før du starter en anden.";
+"The diagnostics archive could not be created." = "Diagnosticeringsarkivet kunne ikke oprettes.";
+"The first progress value can take several minutes while the Virtual Mac changes from DFU to RestoreOS. Your iPad will remain awake." = "Den første statusværdi kan tage flere minutter, mens Virtual Mac skifter fra DFU til RestoreOS. Din iPad forbliver aktiv.";
+"The incomplete Virtual Mac and its installation files will be deleted." = "Den ufuldstændige Virtual Mac og dens installationsfiler slettes.";
+"The install image and temporary installation files were kept so the failure can be diagnosed. You can export diagnostics from Settings." = "Installationsafbildningen og de midlertidige installationsfiler blev gemt, så fejlen kan diagnosticeres. Du kan eksportere diagnosticering fra Indstillinger.";
+"The installer could not be started: %s" = "Installationsprogrammet kunne ikke startes: %s";
+"The new Virtual Mac is ready to use." = "Den nye Virtual Mac er klar til brug.";
+"The partial restore image will be deleted." = "Det delvist hentede gendannelsesbillede slettes.";
+"The Virtual Mac configuration could not be created." = "Konfigurationen til Virtual Mac kunne ikke oprettes.";
+"The Virtual Mac did not publish a display framebuffer." = "Virtual Mac udgav ingen skærm-framebuffer.";
+"The Virtual Mac display view is unavailable" = "Skærmvisningen til Virtual Mac er ikke tilgængelig";
+"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 show the controls again during this boot, touch and hold the Virtual Mac icon on the Home Screen, then choose Show Virtual Mac Controls." = "Du kan vise betjeningsmulighederne igen under denne start ved at holde Virtual Mac-symbolet på hjemmeskærmen nede og derefter vælge “Vis betjeningsmuligheder til Virtual Mac”.";
+"Top Left" = "Øverst til venstre";
+"Top Right" = "Øverst til højre";
+"Touch and Hold for Secondary Click" = "Tryk og hold for sekundært klik";
+"Two-Finger Tap for Secondary Click" = "Tryk med to fingre for sekundært klik";
+"Two-Finger Touch Scrolling" = "To-fingers berøringsrulning";
+"Unknown" = "Ukendt";
+"Unsaved changes in macOS may be lost." = "Ikke-gemte ændringer i macOS kan gå tabt.";
+"Unsupported Restore Image" = "Gendannelsesarkivet understøttes ikke";
+"USB Keyboard" = "USB-tastatur";
+"USB Mouse" = "USB-mus";
+"Use an IPSW on your iPad" = "Brug en IPSW på din iPad";
+"Use USB Keyboard for macOS Monterey. Newer guests support the Mac keyboard device." = "Brug et USB-tastatur i macOS Monterey. Nyere macOS-versioner understøtter Mac-tastaturet.";
+"Use USB Mouse for macOS Monterey. Newer guests support the Mac trackpad device." = "Brug en USB-mus i macOS Monterey. Nyere macOS-versioner understøtter Mac-pegefeltet.";
+"Validation failed: %@" = "Validering mislykkedes: %@";
+"Verify your iPad has sufficient free storage and try again." = "Kontroller, at din iPad har tilstrækkelig ledig plads, og prøv igen.";
+"Version" = "Version";
+"Video Encoding and Decoding Acceleration" = "Acceleration af videokodning og -afkodning";
+"View Details" = "Vis oplysninger";
+"Virtual Mac" = "Virtuel Mac";
+"Virtual Mac %@ does not support %@. Check for updates in Sileo." = "Virtual Mac %@ understøtter ikke %@. Se efter opdateringer i Sileo.";
+"Virtual Mac Controls" = "Betjening til Virtuel Mac";
+"Virtual Mac devices are stored in %@." = "Virtuelle Mac-enheder opbevares i %@.";
+"Virtual Mac Display" = "Virtuel Mac-skærm";
+"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";
+"Virtual Mac start failed: %@" = "Virtual Mac kunne ikke startes: %@";
+"Virtual Mac Stopped" = "Virtuel Mac stoppede";
+"Virtual Mac stopped: %@" = "Virtual Mac stoppede: %@";
+"VPN" = "VPN";
+"Waiting for installation output…" = "Venter på installationsoutput…";
+"Welcome to Virtual Mac" = "Velkommen til Virtuel Mac";
+"Wi-Fi" = "Wi-Fi";
+"Width" = "Bredde";
+"You can also copy an existing Virtual Mac bundle to /var/mobile/Media/VirtualMac using an app such as iMazing or Filza." = "Du kan også kopiere en eksisterende Virtual Mac-pakke til /var/mobile/Media/VirtualMac med en app som iMazing eller Filza.";
+"Your changes to this Virtual Mac will not be saved." = "Dine ændringer til denne Virtual Mac bliver ikke gemt.";
+"“%@” and all files stored in it will be permanently deleted." = "“%@” og alle filer i den slettes permanent.";
diff --git a/VirtualMac/resources/Localizations/de.lproj/InfoPlist.strings b/VirtualMac/resources/Localizations/de.lproj/InfoPlist.strings
new file mode 100644
index 0000000..98a59c6
--- /dev/null
+++ b/VirtualMac/resources/Localizations/de.lproj/InfoPlist.strings
@@ -0,0 +1,2 @@
+"CFBundleDisplayName" = "Virtueller Mac";
+"CFBundleName" = "Virtueller Mac";
diff --git a/VirtualMac/resources/Localizations/de.lproj/Localizable.strings b/VirtualMac/resources/Localizations/de.lproj/Localizable.strings
new file mode 100644
index 0000000..46f8d27
--- /dev/null
+++ b/VirtualMac/resources/Localizations/de.lproj/Localizable.strings
@@ -0,0 +1,247 @@
+/* Virtual Mac 1.1 localization. */
+" · Legacy" = " · Veraltet";
+"%.0f%% complete" = "%.0f%% abgeschlossen";
+"%@ CPU · %@ GB RAM · %llu GB · %@%@" = "%@ CPU · %@ GB RAM · %llu GB · %@%@";
+"%@ is not supported" = "%@ wird nicht unterstützt";
+"%@ 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 %@";
+"%@\n\n%@\n\nThe incomplete Virtual Mac was retained in Temporary Installation Files as %@. It can be deleted from Settings." = "%@\n\n%@\n\nDer unvollständige virtuelle Mac wurde unter „Temporäre Installationsdateien“ als %@ aufbewahrt. Er kann in den Einstellungen gelöscht werden.";
+"%@\nState: %@\n%@\n\n" = "%@\nStatus: %@\n%@\n\n";
+"A previous macOS installation did not finish. You can review its details, keep it for debugging, or delete it." = "Eine vorherige macOS-Installation wurde nicht abgeschlossen. Sie können die Details prüfen, sie zur Fehlerdiagnose behalten oder sie löschen.";
+"About" = "Info";
+"Accommodate Finger Double-Taps" = "Doppeltippen mit dem Finger erleichtern";
+"Add Shared Folder" = "Geteilten Ordner hinzufügen";
+"Advanced" = "Erweitert";
+"Allowed: %llu–%llu%@" = "Zulässig: %llu–%llu%@";
+"Always Hidden" = "Immer versteckt";
+"Always Visible" = "Immer sichtbar";
+"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";
+"Audio and Acceleration" = "Audio und Beschleunigung";
+"Audio Output" = "Audioausgabe";
+"Automatic" = "Automatisch";
+"Automatic hides the controls when an external keyboard and pointing device are connected." = "„Automatisch“ blendet die Bedienelemente aus, wenn eine externe Tastatur und ein Zeigegerät verbunden sind.";
+"Available macOS Releases" = "Verfügbare macOS-Versionen";
+"Available macOS Versions" = "Verfügbare macOS-Versionen";
+"Boot and Network" = "Start und Netzwerk";
+"Bottom Left" = "Unten links";
+"Bottom Right" = "Unten rechts";
+"Bridge" = "Brücke";
+"Bridge via %@" = "Über %@ überbrücken";
+"Bridge: %@" = "Brücke: %@";
+"Build %@" = "Build-Version %@";
+"Calculating speed…" = "Geschwindigkeit wird berechnet …";
+"Cancel" = "Abbrechen";
+"Cancel Download" = "Download abbrechen";
+"Cancel Download?" = "Download abbrechen?";
+"Cancel Installation" = "Installation abbrechen";
+"Cancel Installation?" = "Installation abbrechen?";
+"Cellular" = "Mobilfunk";
+"Choose a Different Version" = "Andere Version auswählen";
+"Choose a macOS IPSW restore image." = "Wähle ein macOS-IPSW-Wiederherstellungsimage aus.";
+"Choose a name for this Virtual Mac." = "Wählen Sie einen Namen für diesen Virtual Mac.";
+"Choose Custom IPSW" = "Eigenes IPSW auswählen";
+"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. Renaming and deletion are unavailable while it is running." = "Konfigurationsänderungen werden wirksam, nachdem der Virtual Mac heruntergefahren und neu gestartet wurde. Während der Ausführung kann er weder umbenannt noch gelöscht werden.";
+"Configuration failed: %@" = "Konfiguration fehlgeschlagen: %@";
+"Configure %@" = "%@ konfigurieren";
+"Continue" = "Fortfahren";
+"Controls Hidden" = "Bedienelemente ausgeblendet";
+"Controls Opacity" = "Deckkraft der Steuerelemente";
+"Copy Library Path" = "Bibliothekspfad kopieren";
+"Copying Restore Image" = "Wiederherstellungsimage wird kopiert";
+"Could Not Copy IPSW" = "IPSW konnte nicht kopiert werden";
+"Could Not Prepare Restore Image" = "Wiederherstellungsimage konnte nicht vorbereitet werden";
+"Could Not Rename Virtual Mac" = "Virtueller Mac konnte nicht umbenannt werden";
+"Could Not Save" = "Sichern nicht möglich";
+"Could Not Start Installer" = "Installationsprogramm konnte nicht gestartet werden";
+"Couldn’t Export Diagnostics" = "Diagnose konnte nicht exportiert werden";
+"Create Virtual Mac" = "Virtuellen Mac erstellen";
+"Custom" = "Eigene";
+"Debug Logging" = "Debug-Protokollierung";
+"Delete" = "Löschen";
+"Delete All" = "Alle löschen";
+"Delete Cached Install Images" = "Zwischengespeicherte Installationsimages löschen";
+"Delete Cached Install Images?" = "Zwischengespeicherte Installationsimages löschen?";
+"Delete Incomplete Installation" = "Unvollständige Installation löschen";
+"Delete IPSW After Successful Installation" = "Löschen Sie IPSW nach erfolgreicher Installation";
+"Delete or rename the existing Virtual Mac first." = "Löschen oder benennen Sie zuerst den vorhandenen Virtual Mac um.";
+"Delete Temporary Installation Files" = "Temporäre Installationsdateien löschen";
+"Delete Temporary Installation Files?" = "Temporäre Installationsdateien löschen?";
+"Delete Virtual Mac" = "Virtual Mac löschen";
+"Delete Virtual Mac?" = "Virtual Mac löschen?";
+"Developer Beta" = "Entwicklerbeta";
+"Developers" = "Entwickler";
+"Disabled" = "Deaktiviert";
+"Discard Changes" = "Änderungen verwerfen";
+"Discard Changes?" = "Änderungen verwerfen?";
+"Disk Exceeds Available Storage" = "Festplatte überschreitet verfügbaren Speicher";
+"Display" = "Anzeige";
+"Display Height" = "Anzeigehöhe";
+"Display Resolution" = "Anzeigeauflösung";
+"Display Width" = "Anzeigebreite";
+"Done" = "Fertig";
+"Double-tap to hold or release this modifier" = "Doppeltippen, um diese Sondertaste festzustellen oder zu lösen";
+"Download Failed" = "Download fehlgeschlagen";
+"Downloading macOS" = "macOS wird geladen";
+"Enter six hexadecimal octets separated by colons." = "Geben Sie sechs durch Doppelpunkte getrennte hexadezimale Oktette ein.";
+"Ethernet (%@)" = "Ethernet (%@)";
+"Experimental" = "Experimentell";
+"Export Diagnostics" = "Diagnose exportieren";
+"Failed to load extracted frameworks" = "Extrahierte Frameworks konnten nicht geladen werden";
+"Failed to load the extracted Apple virtualization frameworks." = "Die extrahierten Apple-Frameworks für Virtualisierung konnten nicht geladen werden.";
+"Fill Window" = "Fenster füllen";
+"Fit in Window" = "An Fenster anpassen";
+"Fit in Window shows the entire display. Fill Window crops its edges when the window has a different shape." = "„An Fenster anpassen“ zeigt die gesamte Anzeige. „Fenster ausfüllen“ beschneidet die Ränder, wenn das Fenster ein anderes Seitenverhältnis hat.";
+"Force Shut Down" = "Ausschalten erzwingen";
+"Force Shut Down Virtual Mac?" = "Ausschalten von Virtual Mac erzwingen?";
+"Full Screen" = "Vollbild";
+"General" = "Allgemein";
+"Get Help" = "Hilfe";
+"Height" = "Höhe";
+"Hide for This Boot" = "Für diesen Start ausblenden";
+"Incomplete Installation" = "Unvollständige Installation";
+"Incomplete Installations" = "Unvollständige Installationen";
+"Input" = "Eingabe";
+"Input While a Virtual Mac Is Running" = "Eingabe bei laufendem virtuellen Mac";
+"Install %@" = "%@ installieren";
+"Install macOS" = "Installieren Sie macOS";
+"Installation Details" = "Installationsdetails";
+"Installation Failed" = "Installation fehlgeschlagen";
+"Installation progress may pause for several minutes while the Virtual Mac starts the installation environment. Your iPad will remain awake." = "Der Installationsfortschritt kann einige Minuten pausieren, während Virtueller Mac die Installationsumgebung startet. Ihr iPad bleibt aktiv.";
+"Installation progress may remain unchanged while macOS prepares the next installation stage. Your iPad will remain awake." = "Der Installationsfortschritt kann unverändert bleiben, während macOS den nächsten Installationsschritt vorbereitet. Ihr iPad bleibt aktiv.";
+"Installed, but settings save failed: %@" = "Installiert, aber Einstellungen konnten nicht gesichert werden: %@";
+"Installing macOS" = "macOS wird installiert";
+"iPad Internet Connection" = "Internetverbindung des iPad";
+"Keep Downloading" = "Weiter laden";
+"Keep Editing" = "Weiter bearbeiten";
+"Keep Installing" = "Weiter installieren";
+"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";
+"Keyboard Crash Workaround" = "Problemumgehung für Tastaturabstürze";
+"Keyboard Crash Workaround takes effect the next time Virtual Mac opens. Debug Logging takes effect the next time a Virtual Mac starts." = "Die Problemumgehung für Tastaturabstürze wird beim nächsten Öffnen von Virtueller Mac wirksam. Die Debug-Protokollierung wird beim nächsten Start eines virtuellen Mac wirksam.";
+"Library Appearance" = "Darstellung der Mediathek";
+"Loading extracted Apple virtualization frameworks…" = "Extrahierte Apple-Frameworks für Virtualisierung werden geladen …";
+"MAC Address" = "MAC-Adresse";
+"Mac Keyboard" = "Mac-Tastatur";
+"Mac Keyboard Shortcuts" = "Mac-Tastaturkürzel";
+"Mac Trackpad" = "Mac-Trackpad";
+"macOS Installed" = "macOS installiert";
+"Memory" = "Speicher";
+"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";
+"Name" = "Name";
+"Name Already Used" = "Name bereits vergeben";
+"NAT: Share %@" = "NAT: %@ teilen";
+"Network" = "Netzwerk";
+"Network Attachment" = "Netzwerkverbindung";
+"Network Bridge (%@)" = "Netzwerk-Bridge (%@)";
+"New Virtual Mac" = "Neuer virtueller Mac";
+"No Results" = "Keine Ergebnisse";
+"No Virtual Macs match your search." = "Keine virtuellen Macs entsprechen Ihrer Suche.";
+"OK" = "Ok";
+"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.";
+"Options" = "Optionen";
+"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";
+"Portrait Full Screen" = "Vollbild im Hochformat";
+"Preparing installation…" = "Installation wird vorbereitet …";
+"Preparing the IPSW for installation. Your iPad will remain awake." = "Das IPSW wird für die Installation vorbereitet. Ihr iPad bleibt aktiv.";
+"Preparing virtual hardware…" = "Virtuelle Hardware wird vorbereitet …";
+"Preparing…" = "Vorbereiten…";
+"Processors" = "Prozessoren";
+"Read & Write" = "Lesen & Schreiben";
+"Read Only" = "Nur Lesen";
+"Reading restore image…" = "Wiederherstellungsimage wird gelesen …";
+"Recommended macOS Release" = "Empfohlene macOS-Version";
+"Recover Networking After Sleep" = "Stellen Sie das Netzwerk nach dem Ruhezustand wieder her";
+"Release" = "Veröffentlichung";
+"Remove" = "Entfernen";
+"Report Issue" = "Problem melden";
+"Reset" = "Zurücksetzen";
+"Reset Settings" = "Einstellungen zurücksetzen";
+"Reset Settings?" = "Einstellungen zurücksetzen?";
+"Resolution" = "Auflösung";
+"Resources" = "Ressourcen";
+"Resume" = "Fortsetzen";
+"Save" = "Sichern";
+"Search Virtual Mac" = "Virtuellen Mac suchen";
+"Settings" = "Einstellungen";
+"Shared Folder" = "Geteilter Ordner";
+"Shared via %@" = "Über %@ geteilt";
+"Show Developer Betas" = "Entwicklerbetas anzeigen";
+"Show Library" = "Mediathek anzeigen";
+"Show Minor Releases" = "Nebenversionen anzeigen";
+"Show Version Details" = "Versionsdetails anzeigen";
+"Show Virtual Mac Controls" = "Bedienelemente von Virtual Mac anzeigen";
+"Start" = "Einschalten";
+"Start %@" = "%@ starten";
+"Start in Recovery" = "In der Wiederherstellung starten";
+"Start on Launch" = "Beim Öffnen starten";
+"Starting installation environment…" = "Installationsumgebung wird gestartet …";
+"Starting installation services…" = "Installationsdienste werden gestartet …";
+"Starting installation…" = "Installation wird gestartet …";
+"Starting Virtual Mac…" = "Virtual Mac wird gestartet …";
+"Storage" = "Speicher";
+"Support" = "Support";
+"Support for %@ is experimental" = "Die Unterstützung für %@ ist experimentell";
+"Suppress iPadOS Home Indicator" = "iPadOS-Home-Anzeige ausblenden";
+"Suppress iPadOS Multitasking Gestures" = "iPadOS-Multitasking-Gesten unterdrücken";
+"Suppress iPadOS System Edge Gestures" = "iPadOS-Systemgesten vom Bildschirmrand unterdrücken";
+"Switch to Running Virtual Mac" = "Zum laufenden Virtual Mac wechseln";
+"Switch to the running Virtual Mac and shut it down before starting another one." = "Wechseln Sie zum laufenden Virtual Mac und fahren Sie ihn herunter, bevor Sie einen anderen starten.";
+"The diagnostics archive could not be created." = "Das Diagnosearchiv konnte nicht erstellt werden.";
+"The first progress value can take several minutes while the Virtual Mac changes from DFU to RestoreOS. Your iPad will remain awake." = "Der erste Fortschrittswert kann mehrere Minuten dauern, während der Virtual Mac von DFU zu RestoreOS wechselt. Ihr iPad bleibt aktiv.";
+"The incomplete Virtual Mac and its installation files will be deleted." = "Der unvollständige Virtual Mac und seine Installationsdateien werden gelöscht.";
+"The install image and temporary installation files were kept so the failure can be diagnosed. You can export diagnostics from Settings." = "Das Installationsimage und die temporären Installationsdateien wurden zur Fehlerdiagnose aufbewahrt. Du kannst die Diagnose in den Einstellungen exportieren.";
+"The installer could not be started: %s" = "Das Installationsprogramm konnte nicht gestartet werden: %s";
+"The new Virtual Mac is ready to use." = "Der neue Virtual Mac ist einsatzbereit.";
+"The partial restore image will be deleted." = "Das teilweise geladene Wiederherstellungsimage wird gelöscht.";
+"The Virtual Mac configuration could not be created." = "Die Konfiguration des Virtual Mac konnte nicht erstellt werden.";
+"The Virtual Mac did not publish a display framebuffer." = "Der Virtual Mac hat keinen Anzeige-Framebuffer bereitgestellt.";
+"The Virtual Mac display view is unavailable" = "Die Anzeigeansicht von Virtual Mac ist nicht verfügbar";
+"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 show the controls again during this boot, touch and hold the Virtual Mac icon on the Home Screen, then choose Show Virtual Mac Controls." = "Um die Bedienelemente während dieses Starts wieder einzublenden, halten Sie das Symbol von Virtual Mac auf dem Home-Bildschirm gedrückt und wählen Sie dann „Bedienelemente von Virtual Mac anzeigen“.";
+"Top Left" = "Oben links";
+"Top Right" = "Oben rechts";
+"Touch and Hold for Secondary Click" = "Berühren und halten Sie für einen sekundären Klick";
+"Two-Finger Tap for Secondary Click" = "Zwei-Finger-Tippen für sekundären Klick";
+"Two-Finger Touch Scrolling" = "Zwei-Finger-Touch-Scrollen";
+"Unknown" = "Unbekannt";
+"Unsaved changes in macOS may be lost." = "Nicht gesicherte Änderungen in macOS können verloren gehen.";
+"Unsupported Restore Image" = "Nicht unterstütztes Wiederherstellungsimage";
+"USB Keyboard" = "USB-Tastatur";
+"USB Mouse" = "USB-Maus";
+"Use an IPSW on your iPad" = "Ein IPSW auf Ihrem iPad verwenden";
+"Use USB Keyboard for macOS Monterey. Newer guests support the Mac keyboard device." = "Verwenden Sie unter macOS Monterey eine USB-Tastatur. Neuere macOS-Versionen unterstützen die Mac-Tastatur.";
+"Use USB Mouse for macOS Monterey. Newer guests support the Mac trackpad device." = "Verwenden Sie unter macOS Monterey eine USB-Maus. Neuere macOS-Versionen unterstützen das Mac-Trackpad.";
+"Validation failed: %@" = "Validierung fehlgeschlagen: %@";
+"Verify your iPad has sufficient free storage and try again." = "Stellen Sie sicher, dass auf Ihrem iPad genügend Speicher frei ist, und versuchen Sie es erneut.";
+"Version" = "Version";
+"Video Encoding and Decoding Acceleration" = "Beschleunigung der Videocodierung und -decodierung";
+"View Details" = "Details anzeigen";
+"Virtual Mac" = "Virtueller Mac";
+"Virtual Mac %@ does not support %@. Check for updates in Sileo." = "Virtual Mac %@ unterstützt %@ nicht. Suche in Sileo nach Updates.";
+"Virtual Mac Controls" = "Steuerelemente des Virtuellen Mac";
+"Virtual Mac devices are stored in %@." = "Virtuelle Macs werden in %@ gespeichert.";
+"Virtual Mac Display" = "Anzeige des Virtuellen 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";
+"Virtual Mac start failed: %@" = "Virtual Mac konnte nicht gestartet werden: %@";
+"Virtual Mac Stopped" = "Virtueller Mac wurde gestoppt";
+"Virtual Mac stopped: %@" = "Virtual Mac wurde gestoppt: %@";
+"VPN" = "VPN";
+"Waiting for installation output…" = "Warten auf Installationsausgabe …";
+"Welcome to Virtual Mac" = "Willkommen bei Virtueller Mac";
+"Wi-Fi" = "Wi-Fi";
+"Width" = "Breite";
+"You can also copy an existing Virtual Mac bundle to /var/mobile/Media/VirtualMac using an app such as iMazing or Filza." = "Sie können ein vorhandenes Virtual-Mac-Paket auch mit einer App wie iMazing oder Filza nach /var/mobile/Media/VirtualMac kopieren.";
+"Your changes to this Virtual Mac will not be saved." = "Ihre Änderungen an diesem Virtual Mac werden nicht gesichert.";
+"“%@” and all files stored in it will be permanently deleted." = "„%@“ und alle darin gespeicherten Dateien werden dauerhaft gelöscht.";
diff --git a/VirtualMac/resources/Localizations/el.lproj/InfoPlist.strings b/VirtualMac/resources/Localizations/el.lproj/InfoPlist.strings
new file mode 100644
index 0000000..36e85f2
--- /dev/null
+++ b/VirtualMac/resources/Localizations/el.lproj/InfoPlist.strings
@@ -0,0 +1,2 @@
+"CFBundleDisplayName" = "Εικονικό Mac";
+"CFBundleName" = "Εικονικό Mac";
diff --git a/VirtualMac/resources/Localizations/el.lproj/Localizable.strings b/VirtualMac/resources/Localizations/el.lproj/Localizable.strings
new file mode 100644
index 0000000..c05a3a7
--- /dev/null
+++ b/VirtualMac/resources/Localizations/el.lproj/Localizable.strings
@@ -0,0 +1,247 @@
+/* Virtual Mac 1.1 localization. */
+" · Legacy" = " · Παλαιό";
+"%.0f%% complete" = "Ολοκληρώθηκε το %.0f%%";
+"%@ CPU · %@ GB RAM · %llu GB · %@%@" = "%@ CPU · %@ GB RAM · %llu GB · %@%@";
+"%@ is not supported" = "Το %@ δεν υποστηρίζεται";
+"%@ 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" = "Απομένουν %@";
+"%@\n\n%@\n\nThe incomplete Virtual Mac was retained in Temporary Installation Files as %@. It can be deleted from Settings." = "%@\n\n%@\n\nΤο ημιτελές εικονικό Mac διατηρήθηκε στα Προσωρινά αρχεία εγκατάστασης ως %@. Μπορεί να διαγραφεί από τις Ρυθμίσεις.";
+"%@\nState: %@\n%@\n\n" = "%@\nΚατάσταση: %@\n%@\n\n";
+"A previous macOS installation did not finish. You can review its details, keep it for debugging, or delete it." = "Μια προηγούμενη εγκατάσταση του macOS δεν ολοκληρώθηκε. Μπορείτε να δείτε τις λεπτομέρειές της, να τη διατηρήσετε για αποσφαλμάτωση ή να τη διαγράψετε.";
+"About" = "Πληροφορίες";
+"Accommodate Finger Double-Taps" = "Διευκόλυνση διπλού αγγίγματος με το δάχτυλο";
+"Add Shared Folder" = "Προσθήκη κοινόχρηστου φακέλου";
+"Advanced" = "Για προχωρημένους";
+"Allowed: %llu–%llu%@" = "Επιτρέπεται: %llu–%llu%@";
+"Always Hidden" = "Πάντα κρυμμένο";
+"Always Visible" = "Πάντα ορατό";
+"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";
+"Audio and Acceleration" = "Ήχος και επιτάχυνση";
+"Audio Output" = "Έξοδος ήχου";
+"Automatic" = "Αυτόματο";
+"Automatic hides the controls when an external keyboard and pointing device are connected." = "Η Αυτόματη ρύθμιση κρύβει τα χειριστήρια όταν είναι συνδεδεμένα εξωτερικό πληκτρολόγιο και συσκευή κατάδειξης.";
+"Available macOS Releases" = "Διαθέσιμες εκδόσεις macOS";
+"Available macOS Versions" = "Διαθέσιμες εκδόσεις macOS";
+"Boot and Network" = "Εκκίνηση και δίκτυο";
+"Bottom Left" = "Κάτω αριστερά";
+"Bottom Right" = "Κάτω δεξιά";
+"Bridge" = "Γέφυρα";
+"Bridge via %@" = "Γέφυρα μέσω %@";
+"Bridge: %@" = "Γέφυρα: %@";
+"Build %@" = "Δομή %@";
+"Calculating speed…" = "Υπολογισμός ταχύτητας…";
+"Cancel" = "Ακύρωση";
+"Cancel Download" = "Ακύρωση λήψης";
+"Cancel Download?" = "Ακύρωση λήψης;";
+"Cancel Installation" = "Ακύρωση εγκατάστασης";
+"Cancel Installation?" = "Ακύρωση εγκατάστασης;";
+"Cellular" = "Κινητό δίκτυο";
+"Choose a Different Version" = "Επιλογή άλλης έκδοσης";
+"Choose a macOS IPSW restore image." = "Επιλέξτε ένα είδωλο επαναφοράς macOS IPSW.";
+"Choose a name for this Virtual Mac." = "Επιλέξτε όνομα για αυτό το Εικονικό Mac.";
+"Choose Custom IPSW" = "Επιλογή προσαρμοσμένου IPSW";
+"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. Renaming and deletion are unavailable while it is running." = "Οι αλλαγές διαμόρφωσης εφαρμόζονται μετά τον τερματισμό και την επανεκκίνηση του Εικονικού Mac. Δεν είναι διαθέσιμη η μετονομασία ή η διαγραφή του όσο εκτελείται.";
+"Configuration failed: %@" = "Η διαμόρφωση απέτυχε: %@";
+"Configure %@" = "Διαμόρφωση %@";
+"Continue" = "Συνέχεια";
+"Controls Hidden" = "Τα χειριστήρια είναι κρυφά";
+"Controls Opacity" = "Αδιαφάνεια χειριστηρίων";
+"Copy Library Path" = "Αντιγραφή διαδρομής βιβλιοθήκης";
+"Copying Restore Image" = "Αντιγραφή ειδώλου επαναφοράς";
+"Could Not Copy IPSW" = "Δεν ήταν δυνατή η αντιγραφή του IPSW";
+"Could Not Prepare Restore Image" = "Δεν ήταν δυνατή η προετοιμασία του ειδώλου επαναφοράς";
+"Could Not Rename Virtual Mac" = "Δεν ήταν δυνατή η μετονομασία του Εικονικού Mac";
+"Could Not Save" = "Δεν ήταν δυνατή η αποθήκευση";
+"Could Not Start Installer" = "Δεν ήταν δυνατή η εκκίνηση του προγράμματος εγκατάστασης";
+"Couldn’t Export Diagnostics" = "Δεν ήταν δυνατή η εξαγωγή διαγνωστικών";
+"Create Virtual Mac" = "Δημιουργία Εικονικού Mac";
+"Custom" = "Προσαρμοσμένο";
+"Debug Logging" = "Καταγραφή εντοπισμού σφαλμάτων";
+"Delete" = "Διαγραφή";
+"Delete All" = "Διαγραφή όλων";
+"Delete Cached Install Images" = "Διαγραφή αποθηκευμένων ειδώλων εγκατάστασης";
+"Delete Cached Install Images?" = "Διαγραφή αποθηκευμένων ειδώλων εγκατάστασης;";
+"Delete Incomplete Installation" = "Διαγραφή ημιτελούς εγκατάστασης";
+"Delete IPSW After Successful Installation" = "Διαγραφή IPSW μετά από επιτυχή εγκατάσταση";
+"Delete or rename the existing Virtual Mac first." = "Διαγράψτε ή μετονομάστε πρώτα το υπάρχον Εικονικό Mac.";
+"Delete Temporary Installation Files" = "Διαγραφή προσωρινών αρχείων εγκατάστασης";
+"Delete Temporary Installation Files?" = "Διαγραφή προσωρινών αρχείων εγκατάστασης;";
+"Delete Virtual Mac" = "Διαγραφή Εικονικού Mac";
+"Delete Virtual Mac?" = "Διαγραφή Εικονικού Mac;";
+"Developer Beta" = "Beta προγραμματιστή";
+"Developers" = "Προγραμματιστές";
+"Disabled" = "Απενεργοποιημένο";
+"Discard Changes" = "Απόρριψη αλλαγών";
+"Discard Changes?" = "Απόρριψη αλλαγών;";
+"Disk Exceeds Available Storage" = "Ο δίσκος υπερβαίνει τον διαθέσιμο χώρο";
+"Display" = "Οθόνη";
+"Display Height" = "Ύψος οθόνης";
+"Display Resolution" = "Ανάλυση οθόνης";
+"Display Width" = "Πλάτος οθόνης";
+"Done" = "Τέλος";
+"Double-tap to hold or release this modifier" = "Πατήστε δύο φορές για διατήρηση ή αποδέσμευση αυτού του πλήκτρου τροποποίησης";
+"Download Failed" = "Η λήψη απέτυχε";
+"Downloading macOS" = "Λήψη του macOS";
+"Enter six hexadecimal octets separated by colons." = "Εισαγάγετε έξι δεκαεξαδικές οκτάδες χωρισμένες με άνω και κάτω τελεία.";
+"Ethernet (%@)" = "Ethernet (%@)";
+"Experimental" = "Πειραματικό";
+"Export Diagnostics" = "Εξαγωγή διαγνωστικών";
+"Failed to load extracted frameworks" = "Αποτυχία φόρτωσης των εξαχθέντων framework";
+"Failed to load the extracted Apple virtualization frameworks." = "Δεν ήταν δυνατή η φόρτωση των εξαχθέντων framework εικονικοποίησης της Apple.";
+"Fill Window" = "Γέμισμα παραθύρου";
+"Fit in Window" = "Προσαρμογή στο παράθυρο";
+"Fit in Window shows the entire display. Fill Window crops its edges when the window has a different shape." = "Η Προσαρμογή στο παράθυρο εμφανίζει ολόκληρη την οθόνη. Η Κάλυψη παραθύρου περικόπτει τις άκρες όταν το παράθυρο έχει διαφορετικό σχήμα.";
+"Force Shut Down" = "Εξαναγκασμένος τερματισμός";
+"Force Shut Down Virtual Mac?" = "Εξαναγκασμένος τερματισμός Εικονικού Mac;";
+"Full Screen" = "Πλήρης οθόνη";
+"General" = "Γενικά";
+"Get Help" = "Βοήθεια";
+"Height" = "Ύψος";
+"Hide for This Boot" = "Απόκρυψη για αυτή την εκκίνηση";
+"Incomplete Installation" = "Ημιτελής εγκατάσταση";
+"Incomplete Installations" = "Ημιτελείς εγκαταστάσεις";
+"Input" = "Είσοδος";
+"Input While a Virtual Mac Is Running" = "Εισαγωγή κατά την εκτέλεση εικονικού Mac";
+"Install %@" = "Εγκατάσταση %@";
+"Install macOS" = "Εγκατάσταση macOS";
+"Installation Details" = "Λεπτομέρειες εγκατάστασης";
+"Installation Failed" = "Η εγκατάσταση απέτυχε";
+"Installation progress may pause for several minutes while the Virtual Mac starts the installation environment. Your iPad will remain awake." = "Η πρόοδος εγκατάστασης μπορεί να διακοπεί για αρκετά λεπτά όσο το Εικονικό Mac εκκινεί το περιβάλλον εγκατάστασης. Το iPad σας θα παραμείνει ενεργό.";
+"Installation progress may remain unchanged while macOS prepares the next installation stage. Your iPad will remain awake." = "Η πρόοδος εγκατάστασης ενδέχεται να παραμείνει αμετάβλητη όσο το macOS προετοιμάζει το επόμενο στάδιο εγκατάστασης. Το iPad σας θα παραμείνει ενεργό.";
+"Installed, but settings save failed: %@" = "Εγκαταστάθηκε, αλλά δεν ήταν δυνατή η αποθήκευση των ρυθμίσεων: %@";
+"Installing macOS" = "Εγκατάσταση macOS";
+"iPad Internet Connection" = "Σύνδεση του iPad στο διαδίκτυο";
+"Keep Downloading" = "Συνέχιση λήψης";
+"Keep Editing" = "Συνέχιση επεξεργασίας";
+"Keep Installing" = "Συνέχιση εγκατάστασης";
+"Keep Virtual Mac open. Your iPad will remain awake until the download finishes." = "Διατηρήστε ανοιχτό το Εικονικό Mac. Το iPad σας θα παραμείνει ενεργό μέχρι να ολοκληρωθεί η λήψη.";
+"Keyboard" = "Πληκτρολόγιο";
+"Keyboard Crash Workaround" = "Λύση για την κατάρρευση πληκτρολογίου";
+"Keyboard Crash Workaround takes effect the next time Virtual Mac opens. Debug Logging takes effect the next time a Virtual Mac starts." = "Η λύση για την κατάρρευση του πληκτρολογίου εφαρμόζεται την επόμενη φορά που θα ανοίξει το Εικονικό Mac. Η καταγραφή εντοπισμού σφαλμάτων εφαρμόζεται την επόμενη φορά που θα εκκινηθεί ένα εικονικό Mac.";
+"Library Appearance" = "Εμφάνιση βιβλιοθήκης";
+"Loading extracted Apple virtualization frameworks…" = "Φόρτωση εξαχθέντων framework εικονικοποίησης της Apple…";
+"MAC Address" = "Διεύθυνση MAC";
+"Mac Keyboard" = "Πληκτρολόγιο Mac";
+"Mac Keyboard Shortcuts" = "Συντομεύσεις πληκτρολογίου Mac";
+"Mac Trackpad" = "Επιφάνεια αφής Mac";
+"macOS Installed" = "Το macOS εγκαταστάθηκε";
+"Memory" = "Μνήμη";
+"Microphone Input" = "Είσοδος μικροφώνου";
+"Minimum: %llu GB. The upper limit is determined by the filesystem." = "Ελάχιστο: %llu GB. Το ανώτατο όριο καθορίζεται από το σύστημα αρχείων.";
+"Move Controls" = "Μετακίνηση χειριστηρίων";
+"Name" = "Όνομα";
+"Name Already Used" = "Το όνομα χρησιμοποιείται ήδη";
+"NAT: Share %@" = "NAT: Κοινή χρήση %@";
+"Network" = "Δίκτυο";
+"Network Attachment" = "Σύνδεση δικτύου";
+"Network Bridge (%@)" = "Γέφυρα δικτύου (%@)";
+"New Virtual Mac" = "Νέο Εικονικό Mac";
+"No Results" = "Δεν βρέθηκαν αποτελέσματα";
+"No Virtual Macs match your search." = "Κανένα Εικονικό Mac δεν αντιστοιχεί στην αναζήτησή σας.";
+"OK" = "ΟΚ";
+"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. Το είδωλο δίσκου είναι δυναμικό, αλλά η εγκατάσταση ή η μετέπειτα χρήση μπορεί να αποτύχει αν γεμίσει ο χώρος αποθήκευσης.";
+"Options" = "Επιλογές";
+"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" = "Συσκευή κατάδειξης";
+"Portrait Full Screen" = "Πλήρης οθόνη σε κατακόρυφο προσανατολισμό";
+"Preparing installation…" = "Προετοιμασία εγκατάστασης…";
+"Preparing the IPSW for installation. Your iPad will remain awake." = "Προετοιμασία IPSW για εγκατάσταση. Το iPad σας θα παραμείνει ενεργό.";
+"Preparing virtual hardware…" = "Προετοιμασία εικονικού υλικού…";
+"Preparing…" = "Προετοιμασία…";
+"Processors" = "Επεξεργαστές";
+"Read & Write" = "Ανάγνωση και εγγραφή";
+"Read Only" = "Μόνο ανάγνωση";
+"Reading restore image…" = "Ανάγνωση ειδώλου επαναφοράς…";
+"Recommended macOS Release" = "Προτεινόμενη έκδοση macOS";
+"Recover Networking After Sleep" = "Ανάκτηση δικτύωσης μετά τον ύπνο";
+"Release" = "Έκδοση";
+"Remove" = "Αφαίρεση";
+"Report Issue" = "Αναφορά προβλήματος";
+"Reset" = "Επαναφορά";
+"Reset Settings" = "Επαναφορά ρυθμίσεων";
+"Reset Settings?" = "Επαναφορά ρυθμίσεων;";
+"Resolution" = "Ανάλυση";
+"Resources" = "Πόροι";
+"Resume" = "Συνέχιση";
+"Save" = "Αποθήκευση";
+"Search Virtual Mac" = "Αναζήτηση Εικονικού Mac";
+"Settings" = "Ρυθμίσεις";
+"Shared Folder" = "Κοινόχρηστος φάκελος";
+"Shared via %@" = "Κοινή χρήση μέσω %@";
+"Show Developer Betas" = "Εμφάνιση beta προγραμματιστών";
+"Show Library" = "Εμφάνιση βιβλιοθήκης";
+"Show Minor Releases" = "Εμφάνιση δευτερευουσών εκδόσεων";
+"Show Version Details" = "Εμφάνιση λεπτομερειών έκδοσης";
+"Show Virtual Mac Controls" = "Εμφάνιση χειριστηρίων Εικονικού Mac";
+"Start" = "Έναρξη";
+"Start %@" = "Έναρξη %@";
+"Start in Recovery" = "Έναρξη σε Ανάκτηση";
+"Start on Launch" = "Έναρξη κατά το άνοιγμα";
+"Starting installation environment…" = "Εκκίνηση περιβάλλοντος εγκατάστασης…";
+"Starting installation services…" = "Εκκίνηση υπηρεσιών εγκατάστασης…";
+"Starting installation…" = "Έναρξη εγκατάστασης…";
+"Starting Virtual Mac…" = "Εκκίνηση Εικονικού Mac…";
+"Storage" = "Χώρος αποθήκευσης";
+"Support" = "Υποστήριξη";
+"Support for %@ is experimental" = "Η υποστήριξη του %@ είναι πειραματική";
+"Suppress iPadOS Home Indicator" = "Απόκρυψη ένδειξης Αφετηρίας του iPadOS";
+"Suppress iPadOS Multitasking Gestures" = "Απενεργοποίηση χειρονομιών πολυδιεργασίας του iPadOS";
+"Suppress iPadOS System Edge Gestures" = "Απενεργοποίηση χειρονομιών συστήματος από τις άκρες του iPadOS";
+"Switch to Running Virtual Mac" = "Μετάβαση στο Εικονικό Mac που εκτελείται";
+"Switch to the running Virtual Mac and shut it down before starting another one." = "Μεταβείτε στο Εικονικό Mac που εκτελείται και τερματίστε το πριν εκκινήσετε κάποιο άλλο.";
+"The diagnostics archive could not be created." = "Δεν ήταν δυνατή η δημιουργία του αρχείου διαγνωστικών.";
+"The first progress value can take several minutes while the Virtual Mac changes from DFU to RestoreOS. Your iPad will remain awake." = "Η πρώτη τιμή προόδου μπορεί να χρειαστεί αρκετά λεπτά όσο το Εικονικό Mac μεταβαίνει από το DFU στο RestoreOS. Το iPad σας θα παραμείνει ενεργό.";
+"The incomplete Virtual Mac and its installation files will be deleted." = "Το ημιτελές Εικονικό Mac και τα αρχεία εγκατάστασής του θα διαγραφούν.";
+"The install image and temporary installation files were kept so the failure can be diagnosed. You can export diagnostics from Settings." = "Το είδωλο εγκατάστασης και τα προσωρινά αρχεία εγκατάστασης διατηρήθηκαν ώστε να μπορεί να διαγνωστεί η αποτυχία. Μπορείτε να εξαγάγετε διαγνωστικά από τις Ρυθμίσεις.";
+"The installer could not be started: %s" = "Δεν ήταν δυνατή η έναρξη του προγράμματος εγκατάστασης: %s";
+"The new Virtual Mac is ready to use." = "Το νέο Εικονικό Mac είναι έτοιμο για χρήση.";
+"The partial restore image will be deleted." = "Το μερικώς ληφθέν είδωλο επαναφοράς θα διαγραφεί.";
+"The Virtual Mac configuration could not be created." = "Δεν ήταν δυνατή η δημιουργία της διαμόρφωσης του Εικονικού Mac.";
+"The Virtual Mac did not publish a display framebuffer." = "Το Εικονικό Mac δεν δημοσίευσε framebuffer οθόνης.";
+"The Virtual Mac display view is unavailable" = "Η προβολή οθόνης του Εικονικού Mac δεν είναι διαθέσιμη";
+"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 show the controls again during this boot, touch and hold the Virtual Mac icon on the Home Screen, then choose Show Virtual Mac Controls." = "Για να εμφανίσετε ξανά τα χειριστήρια σε αυτή την εκκίνηση, αγγίξτε παρατεταμένα το εικονίδιο του Εικονικού Mac στην οθόνη Αφετηρίας και επιλέξτε «Εμφάνιση χειριστηρίων Εικονικού Mac».";
+"Top Left" = "Πάνω αριστερά";
+"Top Right" = "Πάνω δεξιά";
+"Touch and Hold for Secondary Click" = "Αγγίξτε παρατεταμένα για δευτερεύον κλικ";
+"Two-Finger Tap for Secondary Click" = "Πατήστε με δύο δάχτυλα για δευτερεύον κλικ";
+"Two-Finger Touch Scrolling" = "Κύλιση με δύο δάχτυλα";
+"Unknown" = "Άγνωστο";
+"Unsaved changes in macOS may be lost." = "Οι μη αποθηκευμένες αλλαγές στο macOS μπορεί να χαθούν.";
+"Unsupported Restore Image" = "Μη υποστηριζόμενο είδωλο επαναφοράς";
+"USB Keyboard" = "Πληκτρολόγιο USB";
+"USB Mouse" = "Ποντίκι USB";
+"Use an IPSW on your iPad" = "Χρήση IPSW στο iPad";
+"Use USB Keyboard for macOS Monterey. Newer guests support the Mac keyboard device." = "Για το macOS Monterey χρησιμοποιήστε πληκτρολόγιο USB. Οι νεότερες εκδόσεις macOS υποστηρίζουν τη συσκευή πληκτρολογίου Mac.";
+"Use USB Mouse for macOS Monterey. Newer guests support the Mac trackpad device." = "Για το macOS Monterey χρησιμοποιήστε ποντίκι USB. Οι νεότερες εκδόσεις macOS υποστηρίζουν τη συσκευή επιφάνειας αφής Mac.";
+"Validation failed: %@" = "Η επικύρωση απέτυχε: %@";
+"Verify your iPad has sufficient free storage and try again." = "Βεβαιωθείτε ότι το iPad σας έχει αρκετό ελεύθερο χώρο και δοκιμάστε ξανά.";
+"Version" = "Έκδοση";
+"Video Encoding and Decoding Acceleration" = "Επιτάχυνση κωδικοποίησης και αποκωδικοποίησης βίντεο";
+"View Details" = "Προβολή λεπτομερειών";
+"Virtual Mac" = "Εικονικό Mac";
+"Virtual Mac %@ does not support %@. Check for updates in Sileo." = "Το Virtual Mac %@ δεν υποστηρίζει το %@. Ελέγξτε για ενημερώσεις στο Sileo.";
+"Virtual Mac Controls" = "Χειριστήρια Εικονικού Mac";
+"Virtual Mac devices are stored in %@." = "Τα Εικονικά Mac αποθηκεύονται στο %@.";
+"Virtual Mac Display" = "Οθόνη Εικονικού 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";
+"Virtual Mac start failed: %@" = "Η εκκίνηση του Εικονικού Mac απέτυχε: %@";
+"Virtual Mac Stopped" = "Το Εικονικό Mac σταμάτησε";
+"Virtual Mac stopped: %@" = "Το Εικονικό Mac σταμάτησε: %@";
+"VPN" = "VPN";
+"Waiting for installation output…" = "Αναμονή εξόδου εγκατάστασης…";
+"Welcome to Virtual Mac" = "Καλώς ορίσατε στο Εικονικό Mac";
+"Wi-Fi" = "Wi-Fi";
+"Width" = "Πλάτος";
+"You can also copy an existing Virtual Mac bundle to /var/mobile/Media/VirtualMac using an app such as iMazing or Filza." = "Μπορείτε επίσης να αντιγράψετε ένα υπάρχον πακέτο Εικονικού Mac στο /var/mobile/Media/VirtualMac με μια εφαρμογή όπως το iMazing ή το Filza.";
+"Your changes to this Virtual Mac will not be saved." = "Οι αλλαγές σας σε αυτό το Εικονικό Mac δεν θα αποθηκευτούν.";
+"“%@” and all files stored in it will be permanently deleted." = "Το «%@» και όλα τα αρχεία που είναι αποθηκευμένα σε αυτό θα διαγραφούν οριστικά.";
diff --git a/VirtualMac/resources/Localizations/en.lproj/InfoPlist.strings b/VirtualMac/resources/Localizations/en.lproj/InfoPlist.strings
new file mode 100644
index 0000000..09234b7
--- /dev/null
+++ b/VirtualMac/resources/Localizations/en.lproj/InfoPlist.strings
@@ -0,0 +1,2 @@
+"CFBundleDisplayName" = "Virtual Mac";
+"CFBundleName" = "Virtual Mac";
diff --git a/VirtualMac/resources/Localizations/en.lproj/Localizable.strings b/VirtualMac/resources/Localizations/en.lproj/Localizable.strings
new file mode 100644
index 0000000..5645d61
--- /dev/null
+++ b/VirtualMac/resources/Localizations/en.lproj/Localizable.strings
@@ -0,0 +1,247 @@
+/* Virtual Mac 1.1 localization. */
+" · Legacy" = " · Legacy";
+"%.0f%% complete" = "%.0f%% complete";
+"%@ CPU · %@ GB RAM · %llu GB · %@%@" = "%@ CPU · %@ GB RAM · %llu GB · %@%@";
+"%@ is not supported" = "%@ is not supported";
+"%@ 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";
+"%@\n\n%@\n\nThe incomplete Virtual Mac was retained in Temporary Installation Files as %@. It can be deleted from Settings." = "%@\n\n%@\n\nThe incomplete Virtual Mac was retained in Temporary Installation Files as %@. It can be deleted from Settings.";
+"%@\nState: %@\n%@\n\n" = "%@\nState: %@\n%@\n\n";
+"A previous macOS installation did not finish. You can review its details, keep it for debugging, or delete it." = "A previous macOS installation did not finish. You can review its details, keep it for debugging, or delete it.";
+"About" = "About";
+"Accommodate Finger Double-Taps" = "Accommodate Finger Double-Taps";
+"Add Shared Folder" = "Add Shared Folder";
+"Advanced" = "Advanced";
+"Allowed: %llu–%llu%@" = "Allowed: %llu–%llu%@";
+"Always Hidden" = "Always Hidden";
+"Always Visible" = "Always Visible";
+"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";
+"Audio and Acceleration" = "Audio and Acceleration";
+"Audio Output" = "Audio Output";
+"Automatic" = "Automatic";
+"Automatic hides the controls when an external keyboard and pointing device are connected." = "Automatic hides the controls when an external keyboard and pointing device are connected.";
+"Available macOS Releases" = "Available macOS Releases";
+"Available macOS Versions" = "Available macOS Versions";
+"Boot and Network" = "Boot and Network";
+"Bottom Left" = "Bottom Left";
+"Bottom Right" = "Bottom Right";
+"Bridge" = "Bridge";
+"Bridge via %@" = "Bridge via %@";
+"Bridge: %@" = "Bridge: %@";
+"Build %@" = "Build %@";
+"Calculating speed…" = "Calculating speed…";
+"Cancel" = "Cancel";
+"Cancel Download" = "Cancel Download";
+"Cancel Download?" = "Cancel Download?";
+"Cancel Installation" = "Cancel Installation";
+"Cancel Installation?" = "Cancel Installation?";
+"Cellular" = "Cellular";
+"Choose a Different Version" = "Choose a Different Version";
+"Choose a macOS IPSW restore image." = "Choose a macOS IPSW restore image.";
+"Choose a name for this Virtual Mac." = "Choose a name for this Virtual Mac.";
+"Choose Custom IPSW" = "Choose Custom IPSW";
+"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. Renaming and deletion are unavailable while it is running." = "Configuration changes take effect after the Virtual Mac is shut down and started again. Renaming and deletion are unavailable while it is running.";
+"Configuration failed: %@" = "Configuration failed: %@";
+"Configure %@" = "Configure %@";
+"Continue" = "Continue";
+"Controls Hidden" = "Controls Hidden";
+"Controls Opacity" = "Controls Opacity";
+"Copy Library Path" = "Copy Library Path";
+"Copying Restore Image" = "Copying Restore Image";
+"Could Not Copy IPSW" = "Could Not Copy IPSW";
+"Could Not Prepare Restore Image" = "Could Not Prepare Restore Image";
+"Could Not Rename Virtual Mac" = "Could Not Rename Virtual Mac";
+"Could Not Save" = "Could Not Save";
+"Could Not Start Installer" = "Could Not Start Installer";
+"Couldn’t Export Diagnostics" = "Couldn’t Export Diagnostics";
+"Create Virtual Mac" = "Create Virtual Mac";
+"Custom" = "Custom";
+"Debug Logging" = "Debug Logging";
+"Delete" = "Delete";
+"Delete All" = "Delete All";
+"Delete Cached Install Images" = "Delete Cached Install Images";
+"Delete Cached Install Images?" = "Delete Cached Install Images?";
+"Delete Incomplete Installation" = "Delete Incomplete Installation";
+"Delete IPSW After Successful Installation" = "Delete IPSW After Successful Installation";
+"Delete or rename the existing Virtual Mac first." = "Delete or rename the existing Virtual Mac first.";
+"Delete Temporary Installation Files" = "Delete Temporary Installation Files";
+"Delete Temporary Installation Files?" = "Delete Temporary Installation Files?";
+"Delete Virtual Mac" = "Delete Virtual Mac";
+"Delete Virtual Mac?" = "Delete Virtual Mac?";
+"Developer Beta" = "Developer Beta";
+"Developers" = "Developers";
+"Disabled" = "Disabled";
+"Discard Changes" = "Discard Changes";
+"Discard Changes?" = "Discard Changes?";
+"Disk Exceeds Available Storage" = "Disk Exceeds Available Storage";
+"Display" = "Display";
+"Display Height" = "Display Height";
+"Display Resolution" = "Display Resolution";
+"Display Width" = "Display Width";
+"Done" = "Done";
+"Double-tap to hold or release this modifier" = "Double-tap to hold or release this modifier";
+"Download Failed" = "Download Failed";
+"Downloading macOS" = "Downloading macOS";
+"Enter six hexadecimal octets separated by colons." = "Enter six hexadecimal octets separated by colons.";
+"Ethernet (%@)" = "Ethernet (%@)";
+"Experimental" = "Experimental";
+"Export Diagnostics" = "Export Diagnostics";
+"Failed to load extracted frameworks" = "Failed to load extracted frameworks";
+"Failed to load the extracted Apple virtualization frameworks." = "Failed to load the extracted Apple virtualization frameworks.";
+"Fill Window" = "Fill Window";
+"Fit in Window" = "Fit in Window";
+"Fit in Window shows the entire display. Fill Window crops its edges when the window has a different shape." = "Fit in Window shows the entire display. Fill Window crops its edges when the window has a different shape.";
+"Force Shut Down" = "Force Shut Down";
+"Force Shut Down Virtual Mac?" = "Force Shut Down Virtual Mac?";
+"Full Screen" = "Full Screen";
+"General" = "General";
+"Get Help" = "Get Help";
+"Height" = "Height";
+"Hide for This Boot" = "Hide for This Boot";
+"Incomplete Installation" = "Incomplete Installation";
+"Incomplete Installations" = "Incomplete Installations";
+"Input" = "Input";
+"Input While a Virtual Mac Is Running" = "Input While a Virtual Mac Is Running";
+"Install %@" = "Install %@";
+"Install macOS" = "Install macOS";
+"Installation Details" = "Installation Details";
+"Installation Failed" = "Installation Failed";
+"Installation progress may pause for several minutes while the Virtual Mac starts the installation environment. Your iPad will remain awake." = "Installation progress may pause for several minutes while the Virtual Mac starts the installation environment. Your iPad will remain awake.";
+"Installation progress may remain unchanged while macOS prepares the next installation stage. Your iPad will remain awake." = "Installation progress may remain unchanged while macOS prepares the next installation stage. Your iPad will remain awake.";
+"Installed, but settings save failed: %@" = "Installed, but settings save failed: %@";
+"Installing macOS" = "Installing macOS";
+"iPad Internet Connection" = "iPad Internet Connection";
+"Keep Downloading" = "Keep Downloading";
+"Keep Editing" = "Keep Editing";
+"Keep Installing" = "Keep Installing";
+"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";
+"Keyboard Crash Workaround" = "Keyboard Crash Workaround";
+"Keyboard Crash Workaround takes effect the next time Virtual Mac opens. Debug Logging takes effect the next time a Virtual Mac starts." = "Keyboard Crash Workaround takes effect the next time Virtual Mac opens. Debug Logging takes effect the next time a Virtual Mac starts.";
+"Library Appearance" = "Library Appearance";
+"Loading extracted Apple virtualization frameworks…" = "Loading extracted Apple virtualization frameworks…";
+"MAC Address" = "MAC Address";
+"Mac Keyboard" = "Mac Keyboard";
+"Mac Keyboard Shortcuts" = "Mac Keyboard Shortcuts";
+"Mac Trackpad" = "Mac Trackpad";
+"macOS Installed" = "macOS Installed";
+"Memory" = "Memory";
+"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";
+"Name" = "Name";
+"Name Already Used" = "Name Already Used";
+"NAT: Share %@" = "NAT: Share %@";
+"Network" = "Network";
+"Network Attachment" = "Network Attachment";
+"Network Bridge (%@)" = "Network Bridge (%@)";
+"New Virtual Mac" = "New Virtual Mac";
+"No Results" = "No Results";
+"No Virtual Macs match your search." = "No Virtual Macs match your search.";
+"OK" = "OK";
+"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.";
+"Options" = "Options";
+"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";
+"Portrait Full Screen" = "Portrait Full Screen";
+"Preparing installation…" = "Preparing installation…";
+"Preparing the IPSW for installation. Your iPad will remain awake." = "Preparing the IPSW for installation. Your iPad will remain awake.";
+"Preparing virtual hardware…" = "Preparing virtual hardware…";
+"Preparing…" = "Preparing…";
+"Processors" = "Processors";
+"Read & Write" = "Read & Write";
+"Read Only" = "Read Only";
+"Reading restore image…" = "Reading restore image…";
+"Recommended macOS Release" = "Recommended macOS Release";
+"Recover Networking After Sleep" = "Recover Networking After Sleep";
+"Release" = "Release";
+"Remove" = "Remove";
+"Report Issue" = "Report Issue";
+"Reset" = "Reset";
+"Reset Settings" = "Reset Settings";
+"Reset Settings?" = "Reset Settings?";
+"Resolution" = "Resolution";
+"Resources" = "Resources";
+"Resume" = "Resume";
+"Save" = "Save";
+"Search Virtual Mac" = "Search Virtual Mac";
+"Settings" = "Settings";
+"Shared Folder" = "Shared Folder";
+"Shared via %@" = "Shared via %@";
+"Show Developer Betas" = "Show Developer Betas";
+"Show Library" = "Show Library";
+"Show Minor Releases" = "Show Minor Releases";
+"Show Version Details" = "Show Version Details";
+"Show Virtual Mac Controls" = "Show Virtual Mac Controls";
+"Start" = "Start";
+"Start %@" = "Start %@";
+"Start in Recovery" = "Start in Recovery";
+"Start on Launch" = "Start on Launch";
+"Starting installation environment…" = "Starting installation environment…";
+"Starting installation services…" = "Starting installation services…";
+"Starting installation…" = "Starting installation…";
+"Starting Virtual Mac…" = "Starting Virtual Mac…";
+"Storage" = "Storage";
+"Support" = "Support";
+"Support for %@ is experimental" = "Support for %@ is experimental";
+"Suppress iPadOS Home Indicator" = "Suppress iPadOS Home Indicator";
+"Suppress iPadOS Multitasking Gestures" = "Suppress iPadOS Multitasking Gestures";
+"Suppress iPadOS System Edge Gestures" = "Suppress iPadOS System Edge Gestures";
+"Switch to Running Virtual Mac" = "Switch to Running Virtual Mac";
+"Switch to the running Virtual Mac and shut it down before starting another one." = "Switch to the running Virtual Mac and shut it down before starting another one.";
+"The diagnostics archive could not be created." = "The diagnostics archive could not be created.";
+"The first progress value can take several minutes while the Virtual Mac changes from DFU to RestoreOS. Your iPad will remain awake." = "The first progress value can take several minutes while the Virtual Mac changes from DFU to RestoreOS. Your iPad will remain awake.";
+"The incomplete Virtual Mac and its installation files will be deleted." = "The incomplete Virtual Mac and its installation files will be deleted.";
+"The install image and temporary installation files were kept so the failure can be diagnosed. You can export diagnostics from Settings." = "The install image and temporary installation files were kept so the failure can be diagnosed. You can export diagnostics from Settings.";
+"The installer could not be started: %s" = "The installer could not be started: %s";
+"The new Virtual Mac is ready to use." = "The new Virtual Mac is ready to use.";
+"The partial restore image will be deleted." = "The partial restore image will be deleted.";
+"The Virtual Mac configuration could not be created." = "The Virtual Mac configuration could not be created.";
+"The Virtual Mac did not publish a display framebuffer." = "The Virtual Mac did not publish a display framebuffer.";
+"The Virtual Mac display view is unavailable" = "The Virtual Mac display view is unavailable";
+"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 show the controls again during this boot, touch and hold the Virtual Mac icon on the Home Screen, then choose Show Virtual Mac Controls." = "To show the controls again during this boot, touch and hold the Virtual Mac icon on the Home Screen, then choose Show Virtual Mac Controls.";
+"Top Left" = "Top Left";
+"Top Right" = "Top Right";
+"Touch and Hold for Secondary Click" = "Touch and Hold for Secondary Click";
+"Two-Finger Tap for Secondary Click" = "Two-Finger Tap for Secondary Click";
+"Two-Finger Touch Scrolling" = "Two-Finger Touch Scrolling";
+"Unknown" = "Unknown";
+"Unsaved changes in macOS may be lost." = "Unsaved changes in macOS may be lost.";
+"Unsupported Restore Image" = "Unsupported Restore Image";
+"USB Keyboard" = "USB Keyboard";
+"USB Mouse" = "USB Mouse";
+"Use an IPSW on your iPad" = "Use an IPSW on your iPad";
+"Use USB Keyboard for macOS Monterey. Newer guests support the Mac keyboard device." = "Use USB Keyboard for macOS Monterey. Newer guests support the Mac keyboard device.";
+"Use USB Mouse for macOS Monterey. Newer guests support the Mac trackpad device." = "Use USB Mouse for macOS Monterey. Newer guests support the Mac trackpad device.";
+"Validation failed: %@" = "Validation failed: %@";
+"Verify your iPad has sufficient free storage and try again." = "Verify your iPad has sufficient free storage and try again.";
+"Version" = "Version";
+"Video Encoding and Decoding Acceleration" = "Video Encoding and Decoding Acceleration";
+"View Details" = "View Details";
+"Virtual Mac" = "Virtual Mac";
+"Virtual Mac %@ does not support %@. Check for updates in Sileo." = "Virtual Mac %@ does not support %@. Check for updates in Sileo.";
+"Virtual Mac Controls" = "Virtual Mac Controls";
+"Virtual Mac devices are stored in %@." = "Virtual Mac devices are stored in %@.";
+"Virtual Mac Display" = "Virtual Mac Display";
+"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";
+"Virtual Mac start failed: %@" = "Virtual Mac start failed: %@";
+"Virtual Mac Stopped" = "Virtual Mac Stopped";
+"Virtual Mac stopped: %@" = "Virtual Mac stopped: %@";
+"VPN" = "VPN";
+"Waiting for installation output…" = "Waiting for installation output…";
+"Welcome to Virtual Mac" = "Welcome to Virtual Mac";
+"Wi-Fi" = "Wi-Fi";
+"Width" = "Width";
+"You can also copy an existing Virtual Mac bundle to /var/mobile/Media/VirtualMac using an app such as iMazing or Filza." = "You can also copy an existing Virtual Mac bundle to /var/mobile/Media/VirtualMac using an app such as iMazing or Filza.";
+"Your changes to this Virtual Mac will not be saved." = "Your changes to this Virtual Mac will not be saved.";
+"“%@” and all files stored in it will be permanently deleted." = "“%@” and all files stored in it will be permanently deleted.";
diff --git a/VirtualMac/resources/Localizations/es.lproj/InfoPlist.strings b/VirtualMac/resources/Localizations/es.lproj/InfoPlist.strings
new file mode 100644
index 0000000..840c9fc
--- /dev/null
+++ b/VirtualMac/resources/Localizations/es.lproj/InfoPlist.strings
@@ -0,0 +1,2 @@
+"CFBundleDisplayName" = "Mac Virtual";
+"CFBundleName" = "Mac Virtual";
diff --git a/VirtualMac/resources/Localizations/es.lproj/Localizable.strings b/VirtualMac/resources/Localizations/es.lproj/Localizable.strings
new file mode 100644
index 0000000..759c62b
--- /dev/null
+++ b/VirtualMac/resources/Localizations/es.lproj/Localizable.strings
@@ -0,0 +1,247 @@
+/* Virtual Mac 1.1 localization. */
+" · Legacy" = " · Antigua";
+"%.0f%% complete" = "%.0f %% completado";
+"%@ CPU · %@ GB RAM · %llu GB · %@%@" = "%@ CPU · %@ GB de RAM · %llu GB · %@%@";
+"%@ is not supported" = "%@ no es compatible";
+"%@ 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 %@";
+"%@\n\n%@\n\nThe incomplete Virtual Mac was retained in Temporary Installation Files as %@. It can be deleted from Settings." = "%@\n\n%@\n\nEl Mac virtual incompleto se conservó en Archivos temporales de instalación como %@. Puedes eliminarlo desde Ajustes.";
+"%@\nState: %@\n%@\n\n" = "%@\nEstado: %@\n%@\n\n";
+"A previous macOS installation did not finish. You can review its details, keep it for debugging, or delete it." = "Una instalación anterior de macOS no terminó. Puedes revisar los detalles, conservarla para depurarla o eliminarla.";
+"About" = "Acerca de";
+"Accommodate Finger Double-Taps" = "Facilitar los toques dobles con el dedo";
+"Add Shared Folder" = "Añadir carpeta compartida";
+"Advanced" = "Avanzado";
+"Allowed: %llu–%llu%@" = "Permitido: %llu–%llu%@";
+"Always Hidden" = "Siempre escondido";
+"Always Visible" = "Siempre visible";
+"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";
+"Audio and Acceleration" = "Audio y aceleración";
+"Audio Output" = "Salida de audio";
+"Automatic" = "Automático";
+"Automatic hides the controls when an external keyboard and pointing device are connected." = "El modo Automático oculta los controles cuando hay conectados un teclado externo y un dispositivo señalador.";
+"Available macOS Releases" = "Versiones disponibles de macOS";
+"Available macOS Versions" = "Versiones disponibles de macOS";
+"Boot and Network" = "Arranque y red";
+"Bottom Left" = "Abajo a la izquierda";
+"Bottom Right" = "Abajo a la derecha";
+"Bridge" = "Puente";
+"Bridge via %@" = "Puente mediante %@";
+"Bridge: %@" = "Puente: %@";
+"Build %@" = "Compilación %@";
+"Calculating speed…" = "Calculando velocidad…";
+"Cancel" = "Cancelar";
+"Cancel Download" = "Cancelar descarga";
+"Cancel Download?" = "¿Cancelar la descarga?";
+"Cancel Installation" = "Cancelar instalación";
+"Cancel Installation?" = "¿Cancelar la instalación?";
+"Cellular" = "Datos móviles";
+"Choose a Different Version" = "Elegir otra versión";
+"Choose a macOS IPSW restore image." = "Selecciona una imagen de restauración IPSW de macOS.";
+"Choose a name for this Virtual Mac." = "Elige un nombre para este Virtual Mac.";
+"Choose Custom IPSW" = "Elegir IPSW personalizado";
+"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. Renaming and deletion are unavailable while it is running." = "Los cambios de configuración se aplican después de apagar y volver a iniciar el Virtual Mac. No se puede cambiar su nombre ni eliminarlo mientras está en ejecución.";
+"Configuration failed: %@" = "Error de configuración: %@";
+"Configure %@" = "Configurar %@";
+"Continue" = "Continuar";
+"Controls Hidden" = "Controles ocultos";
+"Controls Opacity" = "Opacidad de los controles";
+"Copy Library Path" = "Copiar ruta de biblioteca";
+"Copying Restore Image" = "Copiando imagen de restauración";
+"Could Not Copy IPSW" = "No se pudo copiar el IPSW";
+"Could Not Prepare Restore Image" = "No se pudo preparar la imagen de restauración";
+"Could Not Rename Virtual Mac" = "No se pudo cambiar el nombre de Mac virtual";
+"Could Not Save" = "No se pudo guardar";
+"Could Not Start Installer" = "No se pudo iniciar el instalador";
+"Couldn’t Export Diagnostics" = "No se pudieron exportar los diagnósticos";
+"Create Virtual Mac" = "Crear un Mac virtual";
+"Custom" = "Personalizado";
+"Debug Logging" = "Registro de depuración";
+"Delete" = "Eliminar";
+"Delete All" = "Eliminar todo";
+"Delete Cached Install Images" = "Eliminar imágenes de instalación en caché";
+"Delete Cached Install Images?" = "¿Eliminar las imágenes de instalación en caché?";
+"Delete Incomplete Installation" = "Eliminar instalación incompleta";
+"Delete IPSW After Successful Installation" = "Eliminar IPSW después de una instalación exitosa";
+"Delete or rename the existing Virtual Mac first." = "Primero elimina o cambia el nombre del Virtual Mac existente.";
+"Delete Temporary Installation Files" = "Eliminar archivos temporales de instalación";
+"Delete Temporary Installation Files?" = "¿Eliminar los archivos temporales de instalación?";
+"Delete Virtual Mac" = "Eliminar Virtual Mac";
+"Delete Virtual Mac?" = "¿Eliminar Virtual Mac?";
+"Developer Beta" = "Beta para desarrolladores";
+"Developers" = "Desarrolladores";
+"Disabled" = "Desactivado";
+"Discard Changes" = "Descartar cambios";
+"Discard Changes?" = "¿Descartar los cambios?";
+"Disk Exceeds Available Storage" = "El disco supera el almacenamiento disponible";
+"Display" = "Pantalla";
+"Display Height" = "Altura de pantalla";
+"Display Resolution" = "Resolución de pantalla";
+"Display Width" = "Anchura de pantalla";
+"Done" = "Listo";
+"Double-tap to hold or release this modifier" = "Toca dos veces para bloquear o soltar esta tecla modificadora";
+"Download Failed" = "Error de descarga";
+"Downloading macOS" = "Descargando macOS";
+"Enter six hexadecimal octets separated by colons." = "Introduce seis octetos hexadecimales separados por dos puntos.";
+"Ethernet (%@)" = "Ethernet (%@)";
+"Experimental" = "Experimental";
+"Export Diagnostics" = "Exportar diagnóstico";
+"Failed to load extracted frameworks" = "No se pudieron cargar los frameworks extraídos";
+"Failed to load the extracted Apple virtualization frameworks." = "No se pudieron cargar los frameworks de virtualización de Apple extraídos.";
+"Fill Window" = "Llenar ventana";
+"Fit in Window" = "Ajustar a la ventana";
+"Fit in Window shows the entire display. Fill Window crops its edges when the window has a different shape." = "Ajustar a la ventana muestra toda la pantalla. Llenar ventana recorta los bordes cuando la ventana tiene una forma diferente.";
+"Force Shut Down" = "Forzar apagado";
+"Force Shut Down Virtual Mac?" = "¿Forzar el apagado de Virtual Mac?";
+"Full Screen" = "Pantalla completa";
+"General" = "General";
+"Get Help" = "Obtener ayuda";
+"Height" = "Altura";
+"Hide for This Boot" = "Ocultar durante este arranque";
+"Incomplete Installation" = "Instalación incompleta";
+"Incomplete Installations" = "Instalaciones incompletas";
+"Input" = "Entrada";
+"Input While a Virtual Mac Is Running" = "Entrada mientras se ejecuta un Mac virtual";
+"Install %@" = "Instalar %@";
+"Install macOS" = "Instalar macOS";
+"Installation Details" = "Detalles de la instalación";
+"Installation Failed" = "Error de instalación";
+"Installation progress may pause for several minutes while the Virtual Mac starts the installation environment. Your iPad will remain awake." = "El progreso de la instalación puede detenerse varios minutos mientras Mac Virtual inicia el entorno de instalación. Tu iPad permanecerá activo.";
+"Installation progress may remain unchanged while macOS prepares the next installation stage. Your iPad will remain awake." = "Es posible que el progreso de la instalación no cambie mientras macOS prepara la siguiente fase. Tu iPad permanecerá activo.";
+"Installed, but settings save failed: %@" = "Instalado, pero no se pudieron guardar los ajustes: %@";
+"Installing macOS" = "Instalando macOS";
+"iPad Internet Connection" = "Conexión a internet del iPad";
+"Keep Downloading" = "Seguir descargando";
+"Keep Editing" = "Seguir editando";
+"Keep Installing" = "Seguir instalando";
+"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";
+"Keyboard Crash Workaround" = "Solución para cierres del teclado";
+"Keyboard Crash Workaround takes effect the next time Virtual Mac opens. Debug Logging takes effect the next time a Virtual Mac starts." = "La solución para fallos del teclado se aplicará la próxima vez que se abra Mac Virtual. El registro de depuración se aplicará la próxima vez que se inicie un Mac virtual.";
+"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";
+"Mac Keyboard" = "Teclado Mac";
+"Mac Keyboard Shortcuts" = "Atajos de teclado de Mac";
+"Mac Trackpad" = "Trackpad Mac";
+"macOS Installed" = "macOS instalado";
+"Memory" = "Memoria";
+"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";
+"Name" = "Nombre";
+"Name Already Used" = "El nombre ya está en uso";
+"NAT: Share %@" = "NAT: compartir %@";
+"Network" = "Red";
+"Network Attachment" = "Conexión de red";
+"Network Bridge (%@)" = "Puente de red (%@)";
+"New Virtual Mac" = "Nuevo Mac virtual";
+"No Results" = "Sin resultados";
+"No Virtual Macs match your search." = "Ningún Mac virtual coincide con tu búsqueda.";
+"OK" = "Aceptar";
+"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.";
+"Options" = "Opciones";
+"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";
+"Portrait Full Screen" = "Pantalla completa en vertical";
+"Preparing installation…" = "Preparando la instalación…";
+"Preparing the IPSW for installation. Your iPad will remain awake." = "Preparando el IPSW para la instalación. Tu iPad permanecerá activo.";
+"Preparing virtual hardware…" = "Preparando el hardware virtual…";
+"Preparing…" = "Preparando…";
+"Processors" = "Procesadores";
+"Read & Write" = "Lectura y escritura";
+"Read Only" = "Solo lectura";
+"Reading restore image…" = "Leyendo la imagen de restauración…";
+"Recommended macOS Release" = "Versión recomendada de macOS";
+"Recover Networking After Sleep" = "Recuperar la red después del sueño";
+"Release" = "Versión pública";
+"Remove" = "Eliminar";
+"Report Issue" = "Informar de un problema";
+"Reset" = "Restablecer";
+"Reset Settings" = "Restablecer configuración";
+"Reset Settings?" = "¿Restablecer los ajustes?";
+"Resolution" = "Resolución";
+"Resources" = "Recursos";
+"Resume" = "Reanudar";
+"Save" = "Guardar";
+"Search Virtual Mac" = "Buscar Mac virtual";
+"Settings" = "Ajustes";
+"Shared Folder" = "Carpeta compartida";
+"Shared via %@" = "Compartido mediante %@";
+"Show Developer Betas" = "Mostrar betas para desarrolladores";
+"Show Library" = "Mostrar biblioteca";
+"Show Minor Releases" = "Mostrar versiones menores";
+"Show Version Details" = "Mostrar detalles de la versión";
+"Show Virtual Mac Controls" = "Mostrar controles de Virtual Mac";
+"Start" = "Iniciar";
+"Start %@" = "Iniciar %@";
+"Start in Recovery" = "Iniciar en Recuperación";
+"Start on Launch" = "Iniciar al abrir";
+"Starting installation environment…" = "Iniciando el entorno de instalación…";
+"Starting installation services…" = "Iniciando los servicios de instalación…";
+"Starting installation…" = "Iniciando la instalación…";
+"Starting Virtual Mac…" = "Iniciando Virtual Mac…";
+"Storage" = "Almacenamiento";
+"Support" = "Soporte";
+"Support for %@ is experimental" = "La compatibilidad con %@ es experimental";
+"Suppress iPadOS Home Indicator" = "Ocultar el indicador de inicio de iPadOS";
+"Suppress iPadOS Multitasking Gestures" = "Desactivar los gestos de multitarea de iPadOS";
+"Suppress iPadOS System Edge Gestures" = "Desactivar los gestos del sistema desde los bordes de iPadOS";
+"Switch to Running Virtual Mac" = "Cambiar al Virtual Mac en ejecución";
+"Switch to the running Virtual Mac and shut it down before starting another one." = "Cambia al Virtual Mac en ejecución y apágalo antes de iniciar otro.";
+"The diagnostics archive could not be created." = "No se pudo crear el archivo de diagnósticos.";
+"The first progress value can take several minutes while the Virtual Mac changes from DFU to RestoreOS. Your iPad will remain awake." = "El primer valor de progreso puede tardar varios minutos mientras el Virtual Mac pasa de DFU a RestoreOS. Tu iPad permanecerá activo.";
+"The incomplete Virtual Mac and its installation files will be deleted." = "Se eliminarán el Virtual Mac incompleto y sus archivos de instalación.";
+"The install image and temporary installation files were kept so the failure can be diagnosed. You can export diagnostics from Settings." = "La imagen de instalación y los archivos temporales de instalación se conservaron para poder diagnosticar el error. Puedes exportar los diagnósticos desde Ajustes.";
+"The installer could not be started: %s" = "No se pudo iniciar el instalador: %s";
+"The new Virtual Mac is ready to use." = "El nuevo Virtual Mac está listo para usarse.";
+"The partial restore image will be deleted." = "Se eliminará la imagen de restauración descargada parcialmente.";
+"The Virtual Mac configuration could not be created." = "No se pudo crear la configuración del Virtual Mac.";
+"The Virtual Mac did not publish a display framebuffer." = "El Virtual Mac no publicó un framebuffer de pantalla.";
+"The Virtual Mac display view is unavailable" = "La vista de pantalla de Virtual Mac no está disponible";
+"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 show the controls again during this boot, touch and hold the Virtual Mac icon on the Home Screen, then choose Show Virtual Mac Controls." = "Para volver a mostrar los controles durante este arranque, mantén pulsado el icono de Virtual Mac en la pantalla de inicio y elige «Mostrar controles de Virtual Mac».";
+"Top Left" = "Arriba a la izquierda";
+"Top Right" = "Arriba a la derecha";
+"Touch and Hold for Secondary Click" = "Toque y mantenga presionado para hacer un clic secundario";
+"Two-Finger Tap for Secondary Click" = "Toque con dos dedos para hacer clic secundario";
+"Two-Finger Touch Scrolling" = "Desplazamiento táctil con dos dedos";
+"Unknown" = "Desconocido";
+"Unsaved changes in macOS may be lost." = "Podrían perderse los cambios de macOS que no se hayan guardado.";
+"Unsupported Restore Image" = "Imagen de restauración no compatible";
+"USB Keyboard" = "Teclado USB";
+"USB Mouse" = "Ratón USB";
+"Use an IPSW on your iPad" = "Usar un IPSW de tu iPad";
+"Use USB Keyboard for macOS Monterey. Newer guests support the Mac keyboard device." = "En macOS Monterey, usa un teclado USB. Las versiones posteriores de macOS admiten el teclado Mac.";
+"Use USB Mouse for macOS Monterey. Newer guests support the Mac trackpad device." = "En macOS Monterey, usa un ratón USB. Las versiones posteriores de macOS admiten el trackpad Mac.";
+"Validation failed: %@" = "Error de validación: %@";
+"Verify your iPad has sufficient free storage and try again." = "Comprueba que tu iPad tenga suficiente espacio libre e inténtalo de nuevo.";
+"Version" = "Versión";
+"Video Encoding and Decoding Acceleration" = "Aceleración de codificación y decodificación de vídeo";
+"View Details" = "Ver detalles";
+"Virtual Mac" = "Mac Virtual";
+"Virtual Mac %@ does not support %@. Check for updates in Sileo." = "Virtual Mac %@ no es compatible con %@. Busca actualizaciones en Sileo.";
+"Virtual Mac Controls" = "Controles del Mac virtual";
+"Virtual Mac devices are stored in %@." = "Los Mac virtuales se guardan en %@.";
+"Virtual Mac Display" = "Pantalla del 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";
+"Virtual Mac start failed: %@" = "Error al iniciar Virtual Mac: %@";
+"Virtual Mac Stopped" = "Mac virtual se detuvo";
+"Virtual Mac stopped: %@" = "Virtual Mac se detuvo: %@";
+"VPN" = "VPN";
+"Waiting for installation output…" = "Esperando la salida de la instalación…";
+"Welcome to Virtual Mac" = "Te damos la bienvenida a Mac Virtual";
+"Wi-Fi" = "Wi-Fi";
+"Width" = "Anchura";
+"You can also copy an existing Virtual Mac bundle to /var/mobile/Media/VirtualMac using an app such as iMazing or Filza." = "También puedes copiar un paquete de Virtual Mac existente en /var/mobile/Media/VirtualMac con una app como iMazing o Filza.";
+"Your changes to this Virtual Mac will not be saved." = "No se guardarán los cambios realizados en este Virtual Mac.";
+"“%@” and all files stored in it will be permanently deleted." = "«%@» y todos los archivos que contiene se eliminarán permanentemente.";
diff --git a/VirtualMac/resources/Localizations/es_419.lproj/InfoPlist.strings b/VirtualMac/resources/Localizations/es_419.lproj/InfoPlist.strings
new file mode 100644
index 0000000..840c9fc
--- /dev/null
+++ b/VirtualMac/resources/Localizations/es_419.lproj/InfoPlist.strings
@@ -0,0 +1,2 @@
+"CFBundleDisplayName" = "Mac Virtual";
+"CFBundleName" = "Mac Virtual";
diff --git a/VirtualMac/resources/Localizations/es_419.lproj/Localizable.strings b/VirtualMac/resources/Localizations/es_419.lproj/Localizable.strings
new file mode 100644
index 0000000..1368d00
--- /dev/null
+++ b/VirtualMac/resources/Localizations/es_419.lproj/Localizable.strings
@@ -0,0 +1,247 @@
+/* Virtual Mac 1.1 localization. */
+" · Legacy" = " · Antigua";
+"%.0f%% complete" = "%.0f %% completado";
+"%@ CPU · %@ GB RAM · %llu GB · %@%@" = "%@ CPU · %@ GB de RAM · %llu GB · %@%@";
+"%@ is not supported" = "%@ no es compatible";
+"%@ 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 %@";
+"%@\n\n%@\n\nThe incomplete Virtual Mac was retained in Temporary Installation Files as %@. It can be deleted from Settings." = "%@\n\n%@\n\nLa Mac virtual incompleta se conservó en Archivos temporales de instalación como %@. Puedes eliminarla desde Configuración.";
+"%@\nState: %@\n%@\n\n" = "%@\nEstado: %@\n%@\n\n";
+"A previous macOS installation did not finish. You can review its details, keep it for debugging, or delete it." = "Una instalación anterior de macOS no terminó. Puedes revisar los detalles, conservarla para depurarla o eliminarla.";
+"About" = "Acerca de";
+"Accommodate Finger Double-Taps" = "Facilitar los toques dobles con el dedo";
+"Add Shared Folder" = "Añadir carpeta compartida";
+"Advanced" = "Avanzado";
+"Allowed: %llu–%llu%@" = "Permitido: %llu–%llu%@";
+"Always Hidden" = "Siempre escondido";
+"Always Visible" = "Siempre visible";
+"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";
+"Audio and Acceleration" = "Audio y aceleración";
+"Audio Output" = "Salida de audio";
+"Automatic" = "Automático";
+"Automatic hides the controls when an external keyboard and pointing device are connected." = "El modo Automático oculta los controles cuando hay conectados un teclado externo y un dispositivo señalador.";
+"Available macOS Releases" = "Versiones disponibles de macOS";
+"Available macOS Versions" = "Versiones disponibles de macOS";
+"Boot and Network" = "Arranque y red";
+"Bottom Left" = "Abajo a la izquierda";
+"Bottom Right" = "Abajo a la derecha";
+"Bridge" = "Puente";
+"Bridge via %@" = "Puente mediante %@";
+"Bridge: %@" = "Puente: %@";
+"Build %@" = "Compilación %@";
+"Calculating speed…" = "Calculando velocidad…";
+"Cancel" = "Cancelar";
+"Cancel Download" = "Cancelar descarga";
+"Cancel Download?" = "¿Cancelar la descarga?";
+"Cancel Installation" = "Cancelar instalación";
+"Cancel Installation?" = "¿Cancelar la instalación?";
+"Cellular" = "Datos móviles";
+"Choose a Different Version" = "Elegir otra versión";
+"Choose a macOS IPSW restore image." = "Selecciona una imagen de restauración IPSW de macOS.";
+"Choose a name for this Virtual Mac." = "Elige un nombre para este Virtual Mac.";
+"Choose Custom IPSW" = "Elegir IPSW personalizado";
+"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. Renaming and deletion are unavailable while it is running." = "Los cambios de configuración se aplican después de apagar y volver a iniciar el Virtual Mac. No se puede cambiar su nombre ni eliminarlo mientras está en ejecución.";
+"Configuration failed: %@" = "Error de configuración: %@";
+"Configure %@" = "Configurar %@";
+"Continue" = "Continuar";
+"Controls Hidden" = "Controles ocultos";
+"Controls Opacity" = "Opacidad de los controles";
+"Copy Library Path" = "Copiar ruta de biblioteca";
+"Copying Restore Image" = "Copiando imagen de restauración";
+"Could Not Copy IPSW" = "No se pudo copiar el IPSW";
+"Could Not Prepare Restore Image" = "No se pudo preparar la imagen de restauración";
+"Could Not Rename Virtual Mac" = "No se pudo cambiar el nombre de Mac virtual";
+"Could Not Save" = "No se pudo guardar";
+"Could Not Start Installer" = "No se pudo iniciar el instalador";
+"Couldn’t Export Diagnostics" = "No se pudieron exportar los diagnósticos";
+"Create Virtual Mac" = "Crear un Mac virtual";
+"Custom" = "Personalizado";
+"Debug Logging" = "Registro de depuración";
+"Delete" = "Eliminar";
+"Delete All" = "Eliminar todo";
+"Delete Cached Install Images" = "Eliminar imágenes de instalación en caché";
+"Delete Cached Install Images?" = "¿Eliminar las imágenes de instalación en caché?";
+"Delete Incomplete Installation" = "Eliminar instalación incompleta";
+"Delete IPSW After Successful Installation" = "Eliminar IPSW después de una instalación exitosa";
+"Delete or rename the existing Virtual Mac first." = "Primero elimina o cambia el nombre del Virtual Mac existente.";
+"Delete Temporary Installation Files" = "Eliminar archivos temporales de instalación";
+"Delete Temporary Installation Files?" = "¿Eliminar los archivos temporales de instalación?";
+"Delete Virtual Mac" = "Eliminar Virtual Mac";
+"Delete Virtual Mac?" = "¿Eliminar Virtual Mac?";
+"Developer Beta" = "Beta para desarrolladores";
+"Developers" = "Desarrolladores";
+"Disabled" = "Desactivado";
+"Discard Changes" = "Descartar cambios";
+"Discard Changes?" = "¿Descartar los cambios?";
+"Disk Exceeds Available Storage" = "El disco supera el almacenamiento disponible";
+"Display" = "Monitor";
+"Display Height" = "Altura de pantalla";
+"Display Resolution" = "Resolución de pantalla";
+"Display Width" = "Anchura de pantalla";
+"Done" = "Listo";
+"Double-tap to hold or release this modifier" = "Toca dos veces para bloquear o soltar esta tecla modificadora";
+"Download Failed" = "Falló la descarga";
+"Downloading macOS" = "Descargando macOS";
+"Enter six hexadecimal octets separated by colons." = "Introduce seis octetos hexadecimales separados por dos puntos.";
+"Ethernet (%@)" = "Ethernet (%@)";
+"Experimental" = "Experimental";
+"Export Diagnostics" = "Exportar diagnóstico";
+"Failed to load extracted frameworks" = "No se pudieron cargar los frameworks extraídos";
+"Failed to load the extracted Apple virtualization frameworks." = "No se pudieron cargar los frameworks de virtualización de Apple extraídos.";
+"Fill Window" = "Llenar ventana";
+"Fit in Window" = "Ajustar a la ventana";
+"Fit in Window shows the entire display. Fill Window crops its edges when the window has a different shape." = "Ajustar a la ventana muestra toda la pantalla. Llenar ventana recorta los bordes cuando la ventana tiene una forma diferente.";
+"Force Shut Down" = "Forzar apagado";
+"Force Shut Down Virtual Mac?" = "¿Forzar el apagado de Virtual Mac?";
+"Full Screen" = "Pantalla completa";
+"General" = "General";
+"Get Help" = "Obtener ayuda";
+"Height" = "Altura";
+"Hide for This Boot" = "Ocultar durante este arranque";
+"Incomplete Installation" = "Instalación incompleta";
+"Incomplete Installations" = "Instalaciones incompletas";
+"Input" = "Entrada";
+"Input While a Virtual Mac Is Running" = "Entrada mientras se ejecuta una Mac virtual";
+"Install %@" = "Instalar %@";
+"Install macOS" = "Instalar macOS";
+"Installation Details" = "Detalles de la instalación";
+"Installation Failed" = "Falló la instalación";
+"Installation progress may pause for several minutes while the Virtual Mac starts the installation environment. Your iPad will remain awake." = "El progreso de la instalación puede detenerse varios minutos mientras Mac Virtual inicia el entorno de instalación. Tu iPad permanecerá activo.";
+"Installation progress may remain unchanged while macOS prepares the next installation stage. Your iPad will remain awake." = "Es posible que el progreso de la instalación no cambie mientras macOS prepara la siguiente etapa. Tu iPad permanecerá activo.";
+"Installed, but settings save failed: %@" = "Instalado, pero no se pudieron guardar los ajustes: %@";
+"Installing macOS" = "Instalando macOS";
+"iPad Internet Connection" = "Conexión a internet del iPad";
+"Keep Downloading" = "Seguir descargando";
+"Keep Editing" = "Seguir editando";
+"Keep Installing" = "Seguir instalando";
+"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";
+"Keyboard Crash Workaround" = "Solución para cierres del teclado";
+"Keyboard Crash Workaround takes effect the next time Virtual Mac opens. Debug Logging takes effect the next time a Virtual Mac starts." = "La solución para fallas del teclado se aplicará la próxima vez que se abra Mac Virtual. El registro de depuración se aplicará la próxima vez que se inicie una Mac virtual.";
+"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";
+"Mac Keyboard" = "Teclado Mac";
+"Mac Keyboard Shortcuts" = "Atajos de teclado de Mac";
+"Mac Trackpad" = "Trackpad Mac";
+"macOS Installed" = "macOS instalado";
+"Memory" = "Memoria";
+"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";
+"Name" = "Nombre";
+"Name Already Used" = "El nombre ya está en uso";
+"NAT: Share %@" = "NAT: compartir %@";
+"Network" = "Red";
+"Network Attachment" = "Conexión de red";
+"Network Bridge (%@)" = "Puente de red (%@)";
+"New Virtual Mac" = "Nuevo Mac virtual";
+"No Results" = "Sin resultados";
+"No Virtual Macs match your search." = "Ninguna Mac virtual coincide con tu búsqueda.";
+"OK" = "OK";
+"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.";
+"Options" = "Opciones";
+"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";
+"Portrait Full Screen" = "Pantalla completa en vertical";
+"Preparing installation…" = "Preparando la instalación…";
+"Preparing the IPSW for installation. Your iPad will remain awake." = "Preparando el IPSW para la instalación. Tu iPad permanecerá activo.";
+"Preparing virtual hardware…" = "Preparando el hardware virtual…";
+"Preparing…" = "Preparando…";
+"Processors" = "Procesadores";
+"Read & Write" = "Lectura y escritura";
+"Read Only" = "Sólo lectura";
+"Reading restore image…" = "Leyendo la imagen de restauración…";
+"Recommended macOS Release" = "Versión recomendada de macOS";
+"Recover Networking After Sleep" = "Recuperar la red después del sueño";
+"Release" = "Versión pública";
+"Remove" = "Eliminar";
+"Report Issue" = "Reportar un problema";
+"Reset" = "Reiniciar";
+"Reset Settings" = "Restablecer configuración";
+"Reset Settings?" = "¿Restablecer los ajustes?";
+"Resolution" = "Resolución";
+"Resources" = "Recursos";
+"Resume" = "Reanudar";
+"Save" = "Guardar";
+"Search Virtual Mac" = "Buscar Mac virtual";
+"Settings" = "Ajustes";
+"Shared Folder" = "Carpeta compartida";
+"Shared via %@" = "Compartido mediante %@";
+"Show Developer Betas" = "Mostrar betas para desarrolladores";
+"Show Library" = "Mostrar biblioteca";
+"Show Minor Releases" = "Mostrar versiones menores";
+"Show Version Details" = "Mostrar detalles de la versión";
+"Show Virtual Mac Controls" = "Mostrar controles de Virtual Mac";
+"Start" = "Inicio";
+"Start %@" = "Iniciar %@";
+"Start in Recovery" = "Iniciar en Recuperación";
+"Start on Launch" = "Iniciar al abrir";
+"Starting installation environment…" = "Iniciando el entorno de instalación…";
+"Starting installation services…" = "Iniciando los servicios de instalación…";
+"Starting installation…" = "Iniciando la instalación…";
+"Starting Virtual Mac…" = "Iniciando Virtual Mac…";
+"Storage" = "Almacenamiento";
+"Support" = "Soporte";
+"Support for %@ is experimental" = "La compatibilidad con %@ es experimental";
+"Suppress iPadOS Home Indicator" = "Ocultar el indicador de inicio de iPadOS";
+"Suppress iPadOS Multitasking Gestures" = "Desactivar los gestos multitarea de iPadOS";
+"Suppress iPadOS System Edge Gestures" = "Desactivar los gestos del sistema desde los bordes de iPadOS";
+"Switch to Running Virtual Mac" = "Cambiar al Virtual Mac en ejecución";
+"Switch to the running Virtual Mac and shut it down before starting another one." = "Cambia al Virtual Mac en ejecución y apágalo antes de iniciar otro.";
+"The diagnostics archive could not be created." = "No se pudo crear el archivo de diagnósticos.";
+"The first progress value can take several minutes while the Virtual Mac changes from DFU to RestoreOS. Your iPad will remain awake." = "El primer valor de progreso puede tardar varios minutos mientras el Virtual Mac pasa de DFU a RestoreOS. Tu iPad permanecerá activo.";
+"The incomplete Virtual Mac and its installation files will be deleted." = "Se eliminarán el Virtual Mac incompleto y sus archivos de instalación.";
+"The install image and temporary installation files were kept so the failure can be diagnosed. You can export diagnostics from Settings." = "La imagen de instalación y los archivos temporales de instalación se conservaron para poder diagnosticar el error. Puedes exportar los diagnósticos desde Configuración.";
+"The installer could not be started: %s" = "No se pudo iniciar el instalador: %s";
+"The new Virtual Mac is ready to use." = "El nuevo Virtual Mac está listo para usarse.";
+"The partial restore image will be deleted." = "Se eliminará la imagen de restauración descargada parcialmente.";
+"The Virtual Mac configuration could not be created." = "No se pudo crear la configuración del Virtual Mac.";
+"The Virtual Mac did not publish a display framebuffer." = "El Virtual Mac no publicó un framebuffer de pantalla.";
+"The Virtual Mac display view is unavailable" = "La vista de pantalla de Virtual Mac no está disponible";
+"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 show the controls again during this boot, touch and hold the Virtual Mac icon on the Home Screen, then choose Show Virtual Mac Controls." = "Para volver a mostrar los controles durante este arranque, mantén pulsado el icono de Virtual Mac en la pantalla de inicio y elige «Mostrar controles de Virtual Mac».";
+"Top Left" = "Arriba a la izquierda";
+"Top Right" = "Arriba a la derecha";
+"Touch and Hold for Secondary Click" = "Toque y mantenga presionado para hacer un clic secundario";
+"Two-Finger Tap for Secondary Click" = "Toque con dos dedos para hacer clic secundario";
+"Two-Finger Touch Scrolling" = "Desplazamiento táctil con dos dedos";
+"Unknown" = "Desconocido";
+"Unsaved changes in macOS may be lost." = "Podrían perderse los cambios de macOS que no se hayan guardado.";
+"Unsupported Restore Image" = "Imagen de restauración no compatible";
+"USB Keyboard" = "Teclado USB";
+"USB Mouse" = "Ratón USB";
+"Use an IPSW on your iPad" = "Usar un IPSW de tu iPad";
+"Use USB Keyboard for macOS Monterey. Newer guests support the Mac keyboard device." = "En macOS Monterey, usa un teclado USB. Las versiones posteriores de macOS admiten el teclado Mac.";
+"Use USB Mouse for macOS Monterey. Newer guests support the Mac trackpad device." = "En macOS Monterey, usa un ratón USB. Las versiones posteriores de macOS admiten el trackpad Mac.";
+"Validation failed: %@" = "Error de validación: %@";
+"Verify your iPad has sufficient free storage and try again." = "Comprueba que tu iPad tenga suficiente espacio libre e inténtalo de nuevo.";
+"Version" = "Versión";
+"Video Encoding and Decoding Acceleration" = "Aceleración de codificación y decodificación de video";
+"View Details" = "Ver detalles";
+"Virtual Mac" = "Mac Virtual";
+"Virtual Mac %@ does not support %@. Check for updates in Sileo." = "Virtual Mac %@ no es compatible con %@. Busca actualizaciones en Sileo.";
+"Virtual Mac Controls" = "Controles del Mac virtual";
+"Virtual Mac devices are stored in %@." = "Las Mac virtuales se guardan en %@.";
+"Virtual Mac Display" = "Pantalla del 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";
+"Virtual Mac start failed: %@" = "Error al iniciar Virtual Mac: %@";
+"Virtual Mac Stopped" = "Mac virtual se detuvo";
+"Virtual Mac stopped: %@" = "Virtual Mac se detuvo: %@";
+"VPN" = "VPN";
+"Waiting for installation output…" = "Esperando la salida de la instalación…";
+"Welcome to Virtual Mac" = "Te damos la bienvenida a Mac Virtual";
+"Wi-Fi" = "Wi-Fi";
+"Width" = "Anchura";
+"You can also copy an existing Virtual Mac bundle to /var/mobile/Media/VirtualMac using an app such as iMazing or Filza." = "También puedes copiar un paquete de Virtual Mac existente en /var/mobile/Media/VirtualMac con una app como iMazing o Filza.";
+"Your changes to this Virtual Mac will not be saved." = "No se guardarán los cambios realizados en este Virtual Mac.";
+"“%@” and all files stored in it will be permanently deleted." = "«%@» y todos los archivos que contiene se eliminarán permanentemente.";
diff --git a/VirtualMac/resources/Localizations/es_US.lproj/InfoPlist.strings b/VirtualMac/resources/Localizations/es_US.lproj/InfoPlist.strings
new file mode 100644
index 0000000..840c9fc
--- /dev/null
+++ b/VirtualMac/resources/Localizations/es_US.lproj/InfoPlist.strings
@@ -0,0 +1,2 @@
+"CFBundleDisplayName" = "Mac Virtual";
+"CFBundleName" = "Mac Virtual";
diff --git a/VirtualMac/resources/Localizations/es_US.lproj/Localizable.strings b/VirtualMac/resources/Localizations/es_US.lproj/Localizable.strings
new file mode 100644
index 0000000..79b7efa
--- /dev/null
+++ b/VirtualMac/resources/Localizations/es_US.lproj/Localizable.strings
@@ -0,0 +1,247 @@
+/* Virtual Mac 1.1 localization. */
+" · Legacy" = " · Antigua";
+"%.0f%% complete" = "%.0f %% completado";
+"%@ CPU · %@ GB RAM · %llu GB · %@%@" = "%@ CPU · %@ GB de RAM · %llu GB · %@%@";
+"%@ is not supported" = "%@ no es compatible";
+"%@ 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 %@";
+"%@\n\n%@\n\nThe incomplete Virtual Mac was retained in Temporary Installation Files as %@. It can be deleted from Settings." = "%@\n\n%@\n\nLa Mac virtual incompleta se conservó en Archivos temporales de instalación como %@. Puedes eliminarla desde Configuración.";
+"%@\nState: %@\n%@\n\n" = "%@\nEstado: %@\n%@\n\n";
+"A previous macOS installation did not finish. You can review its details, keep it for debugging, or delete it." = "Una instalación anterior de macOS no terminó. Puedes revisar los detalles, conservarla para depurarla o eliminarla.";
+"About" = "Acerca de";
+"Accommodate Finger Double-Taps" = "Facilitar los toques dobles con el dedo";
+"Add Shared Folder" = "Añadir carpeta compartida";
+"Advanced" = "Avanzado";
+"Allowed: %llu–%llu%@" = "Permitido: %llu–%llu%@";
+"Always Hidden" = "Siempre escondido";
+"Always Visible" = "Siempre visible";
+"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";
+"Audio and Acceleration" = "Audio y aceleración";
+"Audio Output" = "Salida de audio";
+"Automatic" = "Automático";
+"Automatic hides the controls when an external keyboard and pointing device are connected." = "El modo Automático oculta los controles cuando hay conectados un teclado externo y un dispositivo señalador.";
+"Available macOS Releases" = "Versiones disponibles de macOS";
+"Available macOS Versions" = "Versiones disponibles de macOS";
+"Boot and Network" = "Arranque y red";
+"Bottom Left" = "Abajo a la izquierda";
+"Bottom Right" = "Abajo a la derecha";
+"Bridge" = "Puente";
+"Bridge via %@" = "Puente mediante %@";
+"Bridge: %@" = "Puente: %@";
+"Build %@" = "Compilación %@";
+"Calculating speed…" = "Calculando velocidad…";
+"Cancel" = "Cancelar";
+"Cancel Download" = "Cancelar descarga";
+"Cancel Download?" = "¿Cancelar la descarga?";
+"Cancel Installation" = "Cancelar instalación";
+"Cancel Installation?" = "¿Cancelar la instalación?";
+"Cellular" = "Datos móviles";
+"Choose a Different Version" = "Elegir otra versión";
+"Choose a macOS IPSW restore image." = "Selecciona una imagen de restauración IPSW de macOS.";
+"Choose a name for this Virtual Mac." = "Elige un nombre para este Virtual Mac.";
+"Choose Custom IPSW" = "Elegir IPSW personalizado";
+"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. Renaming and deletion are unavailable while it is running." = "Los cambios de configuración se aplican después de apagar y volver a iniciar el Virtual Mac. No se puede cambiar su nombre ni eliminarlo mientras está en ejecución.";
+"Configuration failed: %@" = "Error de configuración: %@";
+"Configure %@" = "Configurar %@";
+"Continue" = "Continuar";
+"Controls Hidden" = "Controles ocultos";
+"Controls Opacity" = "Opacidad de los controles";
+"Copy Library Path" = "Copiar ruta de biblioteca";
+"Copying Restore Image" = "Copiando imagen de restauración";
+"Could Not Copy IPSW" = "No se pudo copiar el IPSW";
+"Could Not Prepare Restore Image" = "No se pudo preparar la imagen de restauración";
+"Could Not Rename Virtual Mac" = "No se pudo cambiar el nombre de Mac virtual";
+"Could Not Save" = "No se pudo guardar";
+"Could Not Start Installer" = "No se pudo iniciar el instalador";
+"Couldn’t Export Diagnostics" = "No se pudieron exportar los diagnósticos";
+"Create Virtual Mac" = "Crear un Mac virtual";
+"Custom" = "Personalizado";
+"Debug Logging" = "Registro de depuración";
+"Delete" = "Eliminar";
+"Delete All" = "Eliminar todo";
+"Delete Cached Install Images" = "Eliminar imágenes de instalación en caché";
+"Delete Cached Install Images?" = "¿Eliminar las imágenes de instalación en caché?";
+"Delete Incomplete Installation" = "Eliminar instalación incompleta";
+"Delete IPSW After Successful Installation" = "Eliminar IPSW después de una instalación exitosa";
+"Delete or rename the existing Virtual Mac first." = "Primero elimina o cambia el nombre del Virtual Mac existente.";
+"Delete Temporary Installation Files" = "Eliminar archivos temporales de instalación";
+"Delete Temporary Installation Files?" = "¿Eliminar los archivos temporales de instalación?";
+"Delete Virtual Mac" = "Eliminar Virtual Mac";
+"Delete Virtual Mac?" = "¿Eliminar Virtual Mac?";
+"Developer Beta" = "Beta para desarrolladores";
+"Developers" = "Desarrolladores";
+"Disabled" = "Desactivado";
+"Discard Changes" = "Descartar cambios";
+"Discard Changes?" = "¿Descartar los cambios?";
+"Disk Exceeds Available Storage" = "El disco supera el almacenamiento disponible";
+"Display" = "Pantalla";
+"Display Height" = "Altura de pantalla";
+"Display Resolution" = "Resolución de pantalla";
+"Display Width" = "Anchura de pantalla";
+"Done" = "Listo";
+"Double-tap to hold or release this modifier" = "Toca dos veces para bloquear o soltar esta tecla modificadora";
+"Download Failed" = "Falló la descarga";
+"Downloading macOS" = "Descargando macOS";
+"Enter six hexadecimal octets separated by colons." = "Introduce seis octetos hexadecimales separados por dos puntos.";
+"Ethernet (%@)" = "Ethernet (%@)";
+"Experimental" = "Experimental";
+"Export Diagnostics" = "Exportar diagnóstico";
+"Failed to load extracted frameworks" = "No se pudieron cargar los frameworks extraídos";
+"Failed to load the extracted Apple virtualization frameworks." = "No se pudieron cargar los frameworks de virtualización de Apple extraídos.";
+"Fill Window" = "Llenar ventana";
+"Fit in Window" = "Ajustar a la ventana";
+"Fit in Window shows the entire display. Fill Window crops its edges when the window has a different shape." = "Ajustar a la ventana muestra toda la pantalla. Llenar ventana recorta los bordes cuando la ventana tiene una forma diferente.";
+"Force Shut Down" = "Forzar apagado";
+"Force Shut Down Virtual Mac?" = "¿Forzar el apagado de Virtual Mac?";
+"Full Screen" = "Pantalla completa";
+"General" = "General";
+"Get Help" = "Obtener ayuda";
+"Height" = "Altura";
+"Hide for This Boot" = "Ocultar durante este arranque";
+"Incomplete Installation" = "Instalación incompleta";
+"Incomplete Installations" = "Instalaciones incompletas";
+"Input" = "Entrada";
+"Input While a Virtual Mac Is Running" = "Entrada mientras se ejecuta una Mac virtual";
+"Install %@" = "Instalar %@";
+"Install macOS" = "Instalar macOS";
+"Installation Details" = "Detalles de la instalación";
+"Installation Failed" = "Falló la instalación";
+"Installation progress may pause for several minutes while the Virtual Mac starts the installation environment. Your iPad will remain awake." = "El progreso de la instalación puede detenerse varios minutos mientras Mac Virtual inicia el entorno de instalación. Tu iPad permanecerá activo.";
+"Installation progress may remain unchanged while macOS prepares the next installation stage. Your iPad will remain awake." = "Es posible que el progreso de la instalación no cambie mientras macOS prepara la siguiente etapa. Tu iPad permanecerá activo.";
+"Installed, but settings save failed: %@" = "Instalado, pero no se pudieron guardar los ajustes: %@";
+"Installing macOS" = "Instalando macOS";
+"iPad Internet Connection" = "Conexión a internet del iPad";
+"Keep Downloading" = "Seguir descargando";
+"Keep Editing" = "Seguir editando";
+"Keep Installing" = "Seguir instalando";
+"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";
+"Keyboard Crash Workaround" = "Solución para cierres del teclado";
+"Keyboard Crash Workaround takes effect the next time Virtual Mac opens. Debug Logging takes effect the next time a Virtual Mac starts." = "La solución para fallas del teclado se aplicará la próxima vez que se abra Mac Virtual. El registro de depuración se aplicará la próxima vez que se inicie una Mac virtual.";
+"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";
+"Mac Keyboard" = "Teclado Mac";
+"Mac Keyboard Shortcuts" = "Atajos de teclado de Mac";
+"Mac Trackpad" = "Trackpad Mac";
+"macOS Installed" = "macOS instalado";
+"Memory" = "Memoria";
+"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";
+"Name" = "Nombre";
+"Name Already Used" = "El nombre ya está en uso";
+"NAT: Share %@" = "NAT: compartir %@";
+"Network" = "Red";
+"Network Attachment" = "Conexión de red";
+"Network Bridge (%@)" = "Puente de red (%@)";
+"New Virtual Mac" = "Nuevo Mac virtual";
+"No Results" = "Sin resultados";
+"No Virtual Macs match your search." = "Ninguna Mac virtual coincide con tu búsqueda.";
+"OK" = "OK";
+"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.";
+"Options" = "Opciones";
+"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";
+"Portrait Full Screen" = "Pantalla completa en vertical";
+"Preparing installation…" = "Preparando la instalación…";
+"Preparing the IPSW for installation. Your iPad will remain awake." = "Preparando el IPSW para la instalación. Tu iPad permanecerá activo.";
+"Preparing virtual hardware…" = "Preparando el hardware virtual…";
+"Preparing…" = "Preparando…";
+"Processors" = "Procesadores";
+"Read & Write" = "Lectura y escritura";
+"Read Only" = "Solo lectura";
+"Reading restore image…" = "Leyendo la imagen de restauración…";
+"Recommended macOS Release" = "Versión recomendada de macOS";
+"Recover Networking After Sleep" = "Recuperar la red después del sueño";
+"Release" = "Versión pública";
+"Remove" = "Eliminar";
+"Report Issue" = "Reportar un problema";
+"Reset" = "Restablecer";
+"Reset Settings" = "Restablecer configuración";
+"Reset Settings?" = "¿Restablecer los ajustes?";
+"Resolution" = "Resolución";
+"Resources" = "Recursos";
+"Resume" = "Reanudar";
+"Save" = "Guardar";
+"Search Virtual Mac" = "Buscar Mac virtual";
+"Settings" = "Ajustes";
+"Shared Folder" = "Carpeta compartida";
+"Shared via %@" = "Compartido mediante %@";
+"Show Developer Betas" = "Mostrar betas para desarrolladores";
+"Show Library" = "Mostrar biblioteca";
+"Show Minor Releases" = "Mostrar versiones menores";
+"Show Version Details" = "Mostrar detalles de la versión";
+"Show Virtual Mac Controls" = "Mostrar controles de Virtual Mac";
+"Start" = "Iniciar";
+"Start %@" = "Iniciar %@";
+"Start in Recovery" = "Iniciar en Recuperación";
+"Start on Launch" = "Iniciar al abrir";
+"Starting installation environment…" = "Iniciando el entorno de instalación…";
+"Starting installation services…" = "Iniciando los servicios de instalación…";
+"Starting installation…" = "Iniciando la instalación…";
+"Starting Virtual Mac…" = "Iniciando Virtual Mac…";
+"Storage" = "Almacenamiento";
+"Support" = "Soporte";
+"Support for %@ is experimental" = "La compatibilidad con %@ es experimental";
+"Suppress iPadOS Home Indicator" = "Ocultar el indicador de inicio de iPadOS";
+"Suppress iPadOS Multitasking Gestures" = "Desactivar los gestos multitarea de iPadOS";
+"Suppress iPadOS System Edge Gestures" = "Desactivar los gestos del sistema desde los bordes de iPadOS";
+"Switch to Running Virtual Mac" = "Cambiar al Virtual Mac en ejecución";
+"Switch to the running Virtual Mac and shut it down before starting another one." = "Cambia al Virtual Mac en ejecución y apágalo antes de iniciar otro.";
+"The diagnostics archive could not be created." = "No se pudo crear el archivo de diagnósticos.";
+"The first progress value can take several minutes while the Virtual Mac changes from DFU to RestoreOS. Your iPad will remain awake." = "El primer valor de progreso puede tardar varios minutos mientras el Virtual Mac pasa de DFU a RestoreOS. Tu iPad permanecerá activo.";
+"The incomplete Virtual Mac and its installation files will be deleted." = "Se eliminarán el Virtual Mac incompleto y sus archivos de instalación.";
+"The install image and temporary installation files were kept so the failure can be diagnosed. You can export diagnostics from Settings." = "La imagen de instalación y los archivos temporales de instalación se conservaron para poder diagnosticar el error. Puedes exportar los diagnósticos desde Configuración.";
+"The installer could not be started: %s" = "No se pudo iniciar el instalador: %s";
+"The new Virtual Mac is ready to use." = "El nuevo Virtual Mac está listo para usarse.";
+"The partial restore image will be deleted." = "Se eliminará la imagen de restauración descargada parcialmente.";
+"The Virtual Mac configuration could not be created." = "No se pudo crear la configuración del Virtual Mac.";
+"The Virtual Mac did not publish a display framebuffer." = "El Virtual Mac no publicó un framebuffer de pantalla.";
+"The Virtual Mac display view is unavailable" = "La vista de pantalla de Virtual Mac no está disponible";
+"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 show the controls again during this boot, touch and hold the Virtual Mac icon on the Home Screen, then choose Show Virtual Mac Controls." = "Para volver a mostrar los controles durante este arranque, mantén pulsado el icono de Virtual Mac en la pantalla de inicio y elige «Mostrar controles de Virtual Mac».";
+"Top Left" = "Arriba a la izquierda";
+"Top Right" = "Arriba a la derecha";
+"Touch and Hold for Secondary Click" = "Toque y mantenga presionado para hacer un clic secundario";
+"Two-Finger Tap for Secondary Click" = "Toque con dos dedos para hacer clic secundario";
+"Two-Finger Touch Scrolling" = "Desplazamiento táctil con dos dedos";
+"Unknown" = "Desconocido";
+"Unsaved changes in macOS may be lost." = "Podrían perderse los cambios de macOS que no se hayan guardado.";
+"Unsupported Restore Image" = "Imagen de restauración no compatible";
+"USB Keyboard" = "Teclado USB";
+"USB Mouse" = "Ratón USB";
+"Use an IPSW on your iPad" = "Usar un IPSW de tu iPad";
+"Use USB Keyboard for macOS Monterey. Newer guests support the Mac keyboard device." = "En macOS Monterey, usa un teclado USB. Las versiones posteriores de macOS admiten el teclado Mac.";
+"Use USB Mouse for macOS Monterey. Newer guests support the Mac trackpad device." = "En macOS Monterey, usa un ratón USB. Las versiones posteriores de macOS admiten el trackpad Mac.";
+"Validation failed: %@" = "Error de validación: %@";
+"Verify your iPad has sufficient free storage and try again." = "Comprueba que tu iPad tenga suficiente espacio libre e inténtalo de nuevo.";
+"Version" = "Versión";
+"Video Encoding and Decoding Acceleration" = "Aceleración de codificación y decodificación de video";
+"View Details" = "Ver detalles";
+"Virtual Mac" = "Mac Virtual";
+"Virtual Mac %@ does not support %@. Check for updates in Sileo." = "Virtual Mac %@ no es compatible con %@. Busca actualizaciones en Sileo.";
+"Virtual Mac Controls" = "Controles del Mac virtual";
+"Virtual Mac devices are stored in %@." = "Las Mac virtuales se guardan en %@.";
+"Virtual Mac Display" = "Pantalla del 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";
+"Virtual Mac start failed: %@" = "Error al iniciar Virtual Mac: %@";
+"Virtual Mac Stopped" = "Mac virtual se detuvo";
+"Virtual Mac stopped: %@" = "Virtual Mac se detuvo: %@";
+"VPN" = "VPN";
+"Waiting for installation output…" = "Esperando la salida de la instalación…";
+"Welcome to Virtual Mac" = "Te damos la bienvenida a Mac Virtual";
+"Wi-Fi" = "Wi-Fi";
+"Width" = "Anchura";
+"You can also copy an existing Virtual Mac bundle to /var/mobile/Media/VirtualMac using an app such as iMazing or Filza." = "También puedes copiar un paquete de Virtual Mac existente en /var/mobile/Media/VirtualMac con una app como iMazing o Filza.";
+"Your changes to this Virtual Mac will not be saved." = "No se guardarán los cambios realizados en este Virtual Mac.";
+"“%@” and all files stored in it will be permanently deleted." = "«%@» y todos los archivos que contiene se eliminarán permanentemente.";
diff --git a/VirtualMac/resources/Localizations/fi.lproj/InfoPlist.strings b/VirtualMac/resources/Localizations/fi.lproj/InfoPlist.strings
new file mode 100644
index 0000000..f26a76c
--- /dev/null
+++ b/VirtualMac/resources/Localizations/fi.lproj/InfoPlist.strings
@@ -0,0 +1,2 @@
+"CFBundleDisplayName" = "Virtuaalinen Mac";
+"CFBundleName" = "Virtuaalinen Mac";
diff --git a/VirtualMac/resources/Localizations/fi.lproj/Localizable.strings b/VirtualMac/resources/Localizations/fi.lproj/Localizable.strings
new file mode 100644
index 0000000..27fecfd
--- /dev/null
+++ b/VirtualMac/resources/Localizations/fi.lproj/Localizable.strings
@@ -0,0 +1,247 @@
+/* Virtual Mac 1.1 localization. */
+" · Legacy" = " · Vanha";
+"%.0f%% complete" = "%.0f %% valmis";
+"%@ CPU · %@ GB RAM · %llu GB · %@%@" = "%@ CPU · %@ Gt RAM · %llu Gt · %@%@";
+"%@ is not supported" = "%@:ää ei tueta";
+"%@ 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ä";
+"%@\n\n%@\n\nThe incomplete Virtual Mac was retained in Temporary Installation Files as %@. It can be deleted from Settings." = "%@\n\n%@\n\nKeskeneräinen virtuaalinen Mac säilytettiin väliaikaisissa asennustiedostoissa nimellä %@. Sen voi poistaa Asetuksissa.";
+"%@\nState: %@\n%@\n\n" = "%@\nTila: %@\n%@\n\n";
+"A previous macOS installation did not finish. You can review its details, keep it for debugging, or delete it." = "Edellinen macOS-asennus ei valmistunut. Voit tarkistaa tiedot, säilyttää sen vianmääritystä varten tai poistaa sen.";
+"About" = "Tietoja";
+"Accommodate Finger Double-Taps" = "Helpota kaksoisnapautusta sormella";
+"Add Shared Folder" = "Lisää jaettu kansio";
+"Advanced" = "Lisäasetukset";
+"Allowed: %llu–%llu%@" = "Sallittu: %llu–%llu%@";
+"Always Hidden" = "Aina Piilotettu";
+"Always Visible" = "Aina näkyvissä";
+"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ä";
+"Audio and Acceleration" = "Ääni ja kiihdytys";
+"Audio Output" = "Äänilähtö";
+"Automatic" = "Automaattinen";
+"Automatic hides the controls when an external keyboard and pointing device are connected." = "Automaattinen piilottaa säätimet, kun ulkoinen näppäimistö ja osoitinlaite ovat yhdistettyinä.";
+"Available macOS Releases" = "Saatavilla olevat macOS-julkaisut";
+"Available macOS Versions" = "Saatavilla olevat macOS-versiot";
+"Boot and Network" = "Käynnistys ja verkko";
+"Bottom Left" = "Alavasen";
+"Bottom Right" = "Alaoikea";
+"Bridge" = "Silta";
+"Bridge via %@" = "Silta yhteyden %@ kautta";
+"Bridge: %@" = "Silta: %@";
+"Build %@" = "Koontiversio %@";
+"Calculating speed…" = "Nopeutta lasketaan…";
+"Cancel" = "Peruuta";
+"Cancel Download" = "Peru lataus";
+"Cancel Download?" = "Perutaanko lataus?";
+"Cancel Installation" = "Peru asennus";
+"Cancel Installation?" = "Perutaanko asennus?";
+"Cellular" = "Mobiiliverkko";
+"Choose a Different Version" = "Valitse toinen versio";
+"Choose a macOS IPSW restore image." = "Valitse macOS:n IPSW-palautuslevykuva.";
+"Choose a name for this Virtual Mac." = "Valitse nimi tälle virtuaaliselle Macille.";
+"Choose Custom IPSW" = "Valitse oma IPSW";
+"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. Renaming and deletion are unavailable while it is running." = "Määritysmuutokset tulevat voimaan, kun virtuaalinen Mac on sammutettu ja käynnistetty uudelleen. Sitä ei voi nimetä uudelleen tai poistaa käytön aikana.";
+"Configuration failed: %@" = "Määritys epäonnistui: %@";
+"Configure %@" = "Määritä %@";
+"Continue" = "Jatka";
+"Controls Hidden" = "Säätimet piilotettu";
+"Controls Opacity" = "Säätimien peittävyys";
+"Copy Library Path" = "Kopioi kirjastopolku";
+"Copying Restore Image" = "Palautuskuvaa kopioidaan";
+"Could Not Copy IPSW" = "IPSW:tä ei voitu kopioida";
+"Could Not Prepare Restore Image" = "Palautuslevykuvaa ei voitu valmistella";
+"Could Not Rename Virtual Mac" = "Virtuaalisen Macin nimeä ei voitu muuttaa";
+"Could Not Save" = "Tallennus ei onnistunut";
+"Could Not Start Installer" = "Asennusohjelmaa ei voitu käynnistää";
+"Couldn’t Export Diagnostics" = "Diagnostiikkaa ei voitu viedä";
+"Create Virtual Mac" = "Luo virtuaalinen Mac";
+"Custom" = "Mukautettu";
+"Debug Logging" = "Virheenkorjausloki";
+"Delete" = "Poista";
+"Delete All" = "Poista kaikki";
+"Delete Cached Install Images" = "Poista välimuistissa olevat asennuslevykuvat";
+"Delete Cached Install Images?" = "Poistetaanko välimuistissa olevat asennuslevykuvat?";
+"Delete Incomplete Installation" = "Poista keskeneräinen asennus";
+"Delete IPSW After Successful Installation" = "Poista IPSW onnistuneen asennuksen jälkeen";
+"Delete or rename the existing Virtual Mac first." = "Poista nykyinen virtuaalinen Mac tai nimeä se ensin uudelleen.";
+"Delete Temporary Installation Files" = "Poista väliaikaiset asennustiedostot";
+"Delete Temporary Installation Files?" = "Poistetaanko väliaikaiset asennustiedostot?";
+"Delete Virtual Mac" = "Poista virtuaalinen Mac";
+"Delete Virtual Mac?" = "Poistetaanko virtuaalinen Mac?";
+"Developer Beta" = "Kehittäjäbeta";
+"Developers" = "Kehittäjät";
+"Disabled" = "Pois käytöstä";
+"Discard Changes" = "Hylkää muutokset";
+"Discard Changes?" = "Hylätäänkö muutokset?";
+"Disk Exceeds Available Storage" = "Levy ylittää käytettävissä olevan tallennustilan";
+"Display" = "Näyttö";
+"Display Height" = "Näytön korkeus";
+"Display Resolution" = "Näytön tarkkuus";
+"Display Width" = "Näytön leveys";
+"Done" = "Valmis";
+"Double-tap to hold or release this modifier" = "Lukitse tai vapauta tämä muuntonäppäin kaksoisnapauttamalla";
+"Download Failed" = "Lataus epäonnistui";
+"Downloading macOS" = "Ladataan macOS:ää";
+"Enter six hexadecimal octets separated by colons." = "Syötä kuusi kaksoispistein erotettua heksadesimaalioktettia.";
+"Ethernet (%@)" = "Ethernet (%@)";
+"Experimental" = "Kokeellinen";
+"Export Diagnostics" = "Vie diagnostiikka";
+"Failed to load extracted frameworks" = "Purettuja kehyksiä ei voitu ladata";
+"Failed to load the extracted Apple virtualization frameworks." = "Purettuja Applen virtualisointikehyksiä ei voitu ladata.";
+"Fill Window" = "Täytä ikkuna";
+"Fit in Window" = "Sovita ikkunaan";
+"Fit in Window shows the entire display. Fill Window crops its edges when the window has a different shape." = "Sovita ikkunaan näyttää koko näytön. Täytä ikkuna rajaa reunat, jos ikkuna on eri muotoinen.";
+"Force Shut Down" = "Pakota sammutus";
+"Force Shut Down Virtual Mac?" = "Pakotetaanko virtuaalisen Macin sammutus?";
+"Full Screen" = "Koko näyttö";
+"General" = "Yleiset";
+"Get Help" = "Ohje";
+"Height" = "Korkeus";
+"Hide for This Boot" = "Piilota tämän käynnistyksen ajaksi";
+"Incomplete Installation" = "Keskeneräinen asennus";
+"Incomplete Installations" = "Keskeneräiset asennukset";
+"Input" = "Syöte";
+"Input While a Virtual Mac Is Running" = "Syöttö virtuaalisen Macin ollessa käynnissä";
+"Install %@" = "Asenna %@";
+"Install macOS" = "Asenna macOS";
+"Installation Details" = "Asennuksen tiedot";
+"Installation Failed" = "Asennus epäonnistui";
+"Installation progress may pause for several minutes while the Virtual Mac starts the installation environment. Your iPad will remain awake." = "Asennuksen eteneminen voi pysähtyä useiksi minuuteiksi, kun Virtuaalinen Mac käynnistää asennusympäristöä. iPad pysyy hereillä.";
+"Installation progress may remain unchanged while macOS prepares the next installation stage. Your iPad will remain awake." = "Asennuksen eteneminen voi pysyä muuttumattomana, kun macOS valmistelee seuraavaa asennusvaihetta. iPad pysyy hereillä.";
+"Installed, but settings save failed: %@" = "Asennettu, mutta asetuksia ei voitu tallentaa: %@";
+"Installing macOS" = "macOS:ää asennetaan";
+"iPad Internet Connection" = "iPadin internet-yhteys";
+"Keep Downloading" = "Jatka lataamista";
+"Keep Editing" = "Jatka muokkaamista";
+"Keep Installing" = "Jatka asentamista";
+"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ö";
+"Keyboard Crash Workaround" = "Näppäimistön kaatumisen kiertotapa";
+"Keyboard Crash Workaround takes effect the next time Virtual Mac opens. Debug Logging takes effect the next time a Virtual Mac starts." = "Näppäimistön kaatumisen korjaus tulee voimaan, kun Virtuaalinen Mac avataan seuraavan kerran. Virheenkorjausloki tulee käyttöön, kun virtuaalinen Mac käynnistetään seuraavan kerran.";
+"Library Appearance" = "Kirjaston ulkoasu";
+"Loading extracted Apple virtualization frameworks…" = "Purettuja Applen virtualisointikehyksiä ladataan…";
+"MAC Address" = "Mac osoite";
+"Mac Keyboard" = "Mac-näppäimistö";
+"Mac Keyboard Shortcuts" = "Macin pikanäppäimet";
+"Mac Trackpad" = "Mac-ohjauslevy";
+"macOS Installed" = "macOS asennettu";
+"Memory" = "Muisti";
+"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ä";
+"Name" = "Nimi";
+"Name Already Used" = "Nimi on jo käytössä";
+"NAT: Share %@" = "NAT: Jaa %@";
+"Network" = "Verkko";
+"Network Attachment" = "Verkkoliitäntä";
+"Network Bridge (%@)" = "Verkkosilta (%@)";
+"New Virtual Mac" = "Uusi virtuaalinen Mac";
+"No Results" = "Ei tuloksia";
+"No Virtual Macs match your search." = "Yksikään virtuaalinen Mac ei vastaa hakuasi.";
+"OK" = "OK";
+"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ä.";
+"Options" = "Valinnat";
+"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";
+"Portrait Full Screen" = "Koko näyttö pystyssä";
+"Preparing installation…" = "Valmistellaan asennusta…";
+"Preparing the IPSW for installation. Your iPad will remain awake." = "IPSW:tä valmistellaan asennusta varten. iPad pysyy hereillä.";
+"Preparing virtual hardware…" = "Virtuaalilaitteistoa valmistellaan…";
+"Preparing…" = "Valmistellaan…";
+"Processors" = "Suorittimet";
+"Read & Write" = "Luku ja kirjoitus";
+"Read Only" = "Lue ainoastaan";
+"Reading restore image…" = "Palautuskuvaa luetaan…";
+"Recommended macOS Release" = "Suositeltu macOS-julkaisu";
+"Recover Networking After Sleep" = "Palauta verkkoyhteys nukkumisen jälkeen";
+"Release" = "Julkaisu";
+"Remove" = "Poista";
+"Report Issue" = "Ilmoita ongelmasta";
+"Reset" = "Nollaa";
+"Reset Settings" = "Palauta asetukset";
+"Reset Settings?" = "Nollataanko asetukset?";
+"Resolution" = "Resoluutio";
+"Resources" = "Resurssit";
+"Resume" = "Jatka";
+"Save" = "Tallenna";
+"Search Virtual Mac" = "Etsi virtuaalista Macia";
+"Settings" = "Asetukset";
+"Shared Folder" = "Jaettu kansio";
+"Shared via %@" = "Jaettu yhteyden %@ kautta";
+"Show Developer Betas" = "Näytä kehittäjäbetat";
+"Show Library" = "Näytä kirjasto";
+"Show Minor Releases" = "Näytä osajulkaisut";
+"Show Version Details" = "Näytä version tiedot";
+"Show Virtual Mac Controls" = "Näytä virtuaalisen Macin säätimet";
+"Start" = "Aloita";
+"Start %@" = "Käynnistä %@";
+"Start in Recovery" = "Käynnistä palautustilassa";
+"Start on Launch" = "Käynnistä avattaessa";
+"Starting installation environment…" = "Käynnistetään asennusympäristöä…";
+"Starting installation services…" = "Käynnistetään asennuspalveluja…";
+"Starting installation…" = "Käynnistetään asennusta…";
+"Starting Virtual Mac…" = "Virtuaalista Macia käynnistetään…";
+"Storage" = "Tallennustila";
+"Support" = "Tuki";
+"Support for %@ is experimental" = "%@ -tuki on kokeellinen";
+"Suppress iPadOS Home Indicator" = "Piilota iPadOS:n Koti-ilmaisin";
+"Suppress iPadOS Multitasking Gestures" = "Estä iPadOS:n moniajoeleet";
+"Suppress iPadOS System Edge Gestures" = "Estä iPadOS:n järjestelmäeleet näytön reunoilta";
+"Switch to Running Virtual Mac" = "Vaihda käynnissä olevaan virtuaaliseen Maciin";
+"Switch to the running Virtual Mac and shut it down before starting another one." = "Vaihda käynnissä olevaan virtuaaliseen Maciin ja sammuta se ennen toisen käynnistämistä.";
+"The diagnostics archive could not be created." = "Diagnostiikka-arkistoa ei voitu luoda.";
+"The first progress value can take several minutes while the Virtual Mac changes from DFU to RestoreOS. Your iPad will remain awake." = "Ensimmäinen edistymisarvo voi kestää useita minuutteja virtuaalisen Macin siirtyessä DFU:sta RestoreOS:ään. iPad pysyy hereillä.";
+"The incomplete Virtual Mac and its installation files will be deleted." = "Keskeneräinen virtuaalinen Mac ja sen asennustiedostot poistetaan.";
+"The install image and temporary installation files were kept so the failure can be diagnosed. You can export diagnostics from Settings." = "Asennuskuva ja väliaikaiset asennustiedostot säilytettiin vian diagnosointia varten. Voit viedä diagnostiikan Asetuksista.";
+"The installer could not be started: %s" = "Asennusohjelmaa ei voitu käynnistää: %s";
+"The new Virtual Mac is ready to use." = "Uusi virtuaalinen Mac on käyttövalmis.";
+"The partial restore image will be deleted." = "Osittain ladattu palautuskuva poistetaan.";
+"The Virtual Mac configuration could not be created." = "Virtuaalisen Macin määritystä ei voitu luoda.";
+"The Virtual Mac did not publish a display framebuffer." = "Virtuaalinen Mac ei julkaissut näytön framebufferia.";
+"The Virtual Mac display view is unavailable" = "Virtuaalisen Macin näyttönäkymä ei ole käytettävissä";
+"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 show the controls again during this boot, touch and hold the Virtual Mac icon on the Home Screen, then choose Show Virtual Mac Controls." = "Saat säätimet uudelleen näkyviin tämän käynnistyksen aikana pitämällä Virtual Mac -kuvaketta painettuna Koti-valikossa ja valitsemalla Näytä virtuaalisen Macin säätimet.";
+"Top Left" = "Ylävasen";
+"Top Right" = "Yläoikea";
+"Touch and Hold for Secondary Click" = "Kosketa pitkään toissijaista napsautusta varten";
+"Two-Finger Tap for Secondary Click" = "Kahden sormen napautus toissijaista napsautusta varten";
+"Two-Finger Touch Scrolling" = "Kahden sormen vieritys";
+"Unknown" = "Tuntematon";
+"Unsaved changes in macOS may be lost." = "macOS:n tallentamattomat muutokset voivat kadota.";
+"Unsupported Restore Image" = "Palautuslevykuvaa ei tueta";
+"USB Keyboard" = "USB-näppäimistö";
+"USB Mouse" = "USB-hiiri";
+"Use an IPSW on your iPad" = "Käytä iPadilla olevaa IPSW:tä";
+"Use USB Keyboard for macOS Monterey. Newer guests support the Mac keyboard device." = "Käytä macOS Montereyssä USB-näppäimistöä. Uudemmat macOS-versiot tukevat Mac-näppäimistöä.";
+"Use USB Mouse for macOS Monterey. Newer guests support the Mac trackpad device." = "Käytä macOS Montereyssä USB-hiirtä. Uudemmat macOS-versiot tukevat Mac-ohjauslevyä.";
+"Validation failed: %@" = "Vahvistus epäonnistui: %@";
+"Verify your iPad has sufficient free storage and try again." = "Varmista, että iPadilla on riittävästi vapaata tilaa, ja yritä uudelleen.";
+"Version" = "Versio";
+"Video Encoding and Decoding Acceleration" = "Videon koodauksen ja dekoodauksen kiihdytys";
+"View Details" = "Näytä tiedot";
+"Virtual Mac" = "Virtuaalinen Mac";
+"Virtual Mac %@ does not support %@. Check for updates in Sileo." = "Virtual Mac %@ ei tue %@:ää. Tarkista päivitykset Sileosta.";
+"Virtual Mac Controls" = "Virtuaalisen Macin säätimet";
+"Virtual Mac devices are stored in %@." = "Virtuaaliset Macit tallennetaan sijaintiin %@.";
+"Virtual Mac Display" = "Virtuaalisen Macin näyttö";
+"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";
+"Virtual Mac start failed: %@" = "Virtuaalisen Macin käynnistys epäonnistui: %@";
+"Virtual Mac Stopped" = "Virtuaalinen Mac pysähtyi";
+"Virtual Mac stopped: %@" = "Virtuaalinen Mac pysähtyi: %@";
+"VPN" = "VPN";
+"Waiting for installation output…" = "Odotetaan asennuksen tulostetta…";
+"Welcome to Virtual Mac" = "Tervetuloa käyttämään Virtuaalista Macia";
+"Wi-Fi" = "Wi-Fi";
+"Width" = "Leveys";
+"You can also copy an existing Virtual Mac bundle to /var/mobile/Media/VirtualMac using an app such as iMazing or Filza." = "Voit myös kopioida olemassa olevan virtuaalisen Macin paketin kansioon /var/mobile/Media/VirtualMac esimerkiksi iMazingilla tai Filzalla.";
+"Your changes to this Virtual Mac will not be saved." = "Tähän virtuaaliseen Maciin tekemiäsi muutoksia ei tallenneta.";
+"“%@” and all files stored in it will be permanently deleted." = "”%@” ja kaikki siihen tallennetut tiedostot poistetaan pysyvästi.";
diff --git a/VirtualMac/resources/Localizations/fr.lproj/InfoPlist.strings b/VirtualMac/resources/Localizations/fr.lproj/InfoPlist.strings
new file mode 100644
index 0000000..6ad7d8f
--- /dev/null
+++ b/VirtualMac/resources/Localizations/fr.lproj/InfoPlist.strings
@@ -0,0 +1,2 @@
+"CFBundleDisplayName" = "Mac virtuel";
+"CFBundleName" = "Mac virtuel";
diff --git a/VirtualMac/resources/Localizations/fr.lproj/Localizable.strings b/VirtualMac/resources/Localizations/fr.lproj/Localizable.strings
new file mode 100644
index 0000000..0001e27
--- /dev/null
+++ b/VirtualMac/resources/Localizations/fr.lproj/Localizable.strings
@@ -0,0 +1,247 @@
+/* Virtual Mac 1.1 localization. */
+" · Legacy" = " · Ancien";
+"%.0f%% complete" = "%.0f %% terminé";
+"%@ CPU · %@ GB RAM · %llu GB · %@%@" = "%@ CPU · %@ Go de RAM · %llu Go · %@%@";
+"%@ is not supported" = "%@ n’est pas pris en charge";
+"%@ 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 : %@";
+"%@\n\n%@\n\nThe incomplete Virtual Mac was retained in Temporary Installation Files as %@. It can be deleted from Settings." = "%@\n\n%@\n\nLe Mac virtuel incomplet a été conservé dans Fichiers d’installation temporaires sous le nom %@. Vous pouvez le supprimer dans Réglages.";
+"%@\nState: %@\n%@\n\n" = "%@\nÉtat : %@\n%@\n\n";
+"A previous macOS installation did not finish. You can review its details, keep it for debugging, or delete it." = "Une installation précédente de macOS ne s’est pas terminée. Vous pouvez consulter ses détails, la conserver pour le diagnostic ou la supprimer.";
+"About" = "À propos";
+"Accommodate Finger Double-Taps" = "Faciliter le double toucher avec le doigt";
+"Add Shared Folder" = "Ajouter un dossier partagé";
+"Advanced" = "Avancé";
+"Allowed: %llu–%llu%@" = "Plage autorisée : %llu–%llu%@";
+"Always Hidden" = "Toujours caché";
+"Always Visible" = "Toujours visible";
+"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";
+"Audio and Acceleration" = "Audio et accélération";
+"Audio Output" = "Sortie audio";
+"Automatic" = "Automatique";
+"Automatic hides the controls when an external keyboard and pointing device are connected." = "Le mode Automatique masque les commandes lorsqu’un clavier externe et un dispositif de pointage sont connectés.";
+"Available macOS Releases" = "Versions disponibles de macOS";
+"Available macOS Versions" = "Versions de macOS disponibles";
+"Boot and Network" = "Démarrage et réseau";
+"Bottom Left" = "En bas à gauche";
+"Bottom Right" = "En bas à droite";
+"Bridge" = "Pont";
+"Bridge via %@" = "Pont via %@";
+"Bridge: %@" = "Pont : %@";
+"Build %@" = "Version %@";
+"Calculating speed…" = "Calcul de la vitesse…";
+"Cancel" = "Annuler";
+"Cancel Download" = "Annuler le téléchargement";
+"Cancel Download?" = "Annuler le téléchargement ?";
+"Cancel Installation" = "Annuler l’installation";
+"Cancel Installation?" = "Annuler l’installation ?";
+"Cellular" = "Données cellulaires";
+"Choose a Different Version" = "Choisir une autre version";
+"Choose a macOS IPSW restore image." = "Sélectionnez une image de restauration IPSW de macOS.";
+"Choose a name for this Virtual Mac." = "Choisissez un nom pour ce Mac virtuel.";
+"Choose Custom IPSW" = "Choisir un IPSW personnalisé";
+"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. Renaming and deletion are unavailable while it is running." = "Les modifications de configuration prennent effet après l’arrêt et le redémarrage du Mac virtuel. Vous ne pouvez pas le renommer ni le supprimer pendant son fonctionnement.";
+"Configuration failed: %@" = "Échec de la configuration : %@";
+"Configure %@" = "Configurer %@";
+"Continue" = "Continuer";
+"Controls Hidden" = "Commandes masquées";
+"Controls Opacity" = "Opacité des commandes";
+"Copy Library Path" = "Copier le chemin de la bibliothèque";
+"Copying Restore Image" = "Copie de l’image de restauration";
+"Could Not Copy IPSW" = "Impossible de copier l’IPSW";
+"Could Not Prepare Restore Image" = "Impossible de préparer l’image de restauration";
+"Could Not Rename Virtual Mac" = "Impossible de renommer Mac virtuel";
+"Could Not Save" = "Impossible d’enregistrer";
+"Could Not Start Installer" = "Impossible de démarrer le programme d’installation";
+"Couldn’t Export Diagnostics" = "Impossible d’exporter les diagnostics";
+"Create Virtual Mac" = "Créer un Mac virtuel";
+"Custom" = "Personnalisé";
+"Debug Logging" = "Journalisation de débogage";
+"Delete" = "Supprimer";
+"Delete All" = "Tout supprimer";
+"Delete Cached Install Images" = "Supprimer les images d’installation en cache";
+"Delete Cached Install Images?" = "Supprimer les images d’installation en cache ?";
+"Delete Incomplete Installation" = "Supprimer l’installation incomplète";
+"Delete IPSW After Successful Installation" = "Supprimer IPSW après une installation réussie";
+"Delete or rename the existing Virtual Mac first." = "Supprimez ou renommez d’abord le Mac virtuel existant.";
+"Delete Temporary Installation Files" = "Supprimer les fichiers d’installation temporaires";
+"Delete Temporary Installation Files?" = "Supprimer les fichiers d’installation temporaires ?";
+"Delete Virtual Mac" = "Supprimer le Mac virtuel";
+"Delete Virtual Mac?" = "Supprimer le Mac virtuel ?";
+"Developer Beta" = "Bêta développeur";
+"Developers" = "Développeurs";
+"Disabled" = "Désactivé";
+"Discard Changes" = "Ignorer les modifications";
+"Discard Changes?" = "Ignorer les modifications ?";
+"Disk Exceeds Available Storage" = "Le disque dépasse l’espace disponible";
+"Display" = "Affichage";
+"Display Height" = "Hauteur de l’écran";
+"Display Resolution" = "Résolution de l’écran";
+"Display Width" = "Largeur de l’écran";
+"Done" = "Terminé";
+"Double-tap to hold or release this modifier" = "Touchez deux fois pour verrouiller ou relâcher cette touche de modification";
+"Download Failed" = "Échec du téléchargement";
+"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 (%@)";
+"Experimental" = "Expérimental";
+"Export Diagnostics" = "Exporter les diagnostics";
+"Failed to load extracted frameworks" = "Impossible de charger les frameworks extraits";
+"Failed to load the extracted Apple virtualization frameworks." = "Impossible de charger les frameworks de virtualisation Apple extraits.";
+"Fill Window" = "Remplir la fenêtre";
+"Fit in Window" = "Adapter à la fenêtre";
+"Fit in Window shows the entire display. Fill Window crops its edges when the window has a different shape." = "Adapter à la fenêtre affiche tout l’écran. Remplir la fenêtre en rogne les bords lorsque la fenêtre a une forme différente.";
+"Force Shut Down" = "Forcer l’arrêt";
+"Force Shut Down Virtual Mac?" = "Forcer l’arrêt du Mac virtuel ?";
+"Full Screen" = "Plein écran";
+"General" = "Général";
+"Get Help" = "Obtenir de l’aide";
+"Height" = "Hauteur";
+"Hide for This Boot" = "Masquer pour ce démarrage";
+"Incomplete Installation" = "Installation incomplète";
+"Incomplete Installations" = "Installations incomplètes";
+"Input" = "Entrée";
+"Input While a Virtual Mac Is Running" = "Saisie pendant l’exécution d’un Mac virtuel";
+"Install %@" = "Installer %@";
+"Install macOS" = "Installer macOS";
+"Installation Details" = "Détails de l’installation";
+"Installation Failed" = "Échec de l’installation";
+"Installation progress may pause for several minutes while the Virtual Mac starts the installation environment. Your iPad will remain awake." = "La progression de l’installation peut s’interrompre plusieurs minutes pendant que Mac virtuel démarre l’environnement d’installation. Votre iPad restera actif.";
+"Installation progress may remain unchanged while macOS prepares the next installation stage. Your iPad will remain awake." = "La progression de l’installation peut rester inchangée pendant que macOS prépare l’étape suivante. Votre iPad restera actif.";
+"Installed, but settings save failed: %@" = "Installation terminée, mais échec de l’enregistrement des réglages : %@";
+"Installing macOS" = "Installation de macOS";
+"iPad Internet Connection" = "Connexion Internet de l’iPad";
+"Keep Downloading" = "Continuer le téléchargement";
+"Keep Editing" = "Continuer la modification";
+"Keep Installing" = "Continuer l’installation";
+"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";
+"Keyboard Crash Workaround" = "Contournement du plantage du clavier";
+"Keyboard Crash Workaround takes effect the next time Virtual Mac opens. Debug Logging takes effect the next time a Virtual Mac starts." = "La solution au plantage du clavier prendra effet à la prochaine ouverture de Mac virtuel. La journalisation de débogage prendra effet au prochain démarrage d’un Mac virtuel.";
+"Library Appearance" = "Présentation de la bibliothèque";
+"Loading extracted Apple virtualization frameworks…" = "Chargement des frameworks de virtualisation Apple extraits…";
+"MAC Address" = "Adresse MAC";
+"Mac Keyboard" = "Clavier Mac";
+"Mac Keyboard Shortcuts" = "Raccourcis clavier Mac";
+"Mac Trackpad" = "Trackpad Mac";
+"macOS Installed" = "macOS est installé";
+"Memory" = "Mémoire";
+"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";
+"Name" = "Nom";
+"Name Already Used" = "Nom déjà utilisé";
+"NAT: Share %@" = "NAT : partager %@";
+"Network" = "Réseau";
+"Network Attachment" = "Connexion réseau";
+"Network Bridge (%@)" = "Pont réseau (%@)";
+"New Virtual Mac" = "Nouveau Mac virtuel";
+"No Results" = "Aucun résultat";
+"No Virtual Macs match your search." = "Aucun Mac virtuel ne correspond à votre recherche.";
+"OK" = "OK";
+"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é.";
+"Options" = "Options";
+"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";
+"Portrait Full Screen" = "Plein écran en portrait";
+"Preparing installation…" = "Préparation de l’installation…";
+"Preparing the IPSW for installation. Your iPad will remain awake." = "Préparation de l’IPSW pour l’installation. Votre iPad restera actif.";
+"Preparing virtual hardware…" = "Préparation du matériel virtuel…";
+"Preparing…" = "Préparation…";
+"Processors" = "Processeurs";
+"Read & Write" = "Lecture et écriture";
+"Read Only" = "Lecture seule";
+"Reading restore image…" = "Lecture de l’image de restauration…";
+"Recommended macOS Release" = "Version recommandée de macOS";
+"Recover Networking After Sleep" = "Récupérer le réseau après le sommeil";
+"Release" = "Version publique";
+"Remove" = "Retirer";
+"Report Issue" = "Signaler un problème";
+"Reset" = "Réinitialiser";
+"Reset Settings" = "Réinitialiser les paramètres";
+"Reset Settings?" = "Réinitialiser les réglages ?";
+"Resolution" = "Résolution";
+"Resources" = "Ressources";
+"Resume" = "Reprendre";
+"Save" = "Enregistrer";
+"Search Virtual Mac" = "Rechercher un Mac virtuel";
+"Settings" = "Paramètres";
+"Shared Folder" = "Dossier partagé";
+"Shared via %@" = "Partagé via %@";
+"Show Developer Betas" = "Afficher les bêtas développeur";
+"Show Library" = "Afficher la bibliothèque";
+"Show Minor Releases" = "Afficher les versions intermédiaires";
+"Show Version Details" = "Afficher les détails de la version";
+"Show Virtual Mac Controls" = "Afficher les commandes de Virtual Mac";
+"Start" = "C'est parti";
+"Start %@" = "Démarrer %@";
+"Start in Recovery" = "Démarrer dans Récupération";
+"Start on Launch" = "Démarrer à l’ouverture";
+"Starting installation environment…" = "Démarrage de l’environnement d’installation…";
+"Starting installation services…" = "Démarrage des services d’installation…";
+"Starting installation…" = "Démarrage de l’installation…";
+"Starting Virtual Mac…" = "Démarrage du Mac virtuel…";
+"Storage" = "Stockage";
+"Support" = "Assistance";
+"Support for %@ is experimental" = "La prise en charge de %@ est expérimentale";
+"Suppress iPadOS Home Indicator" = "Masquer l’indicateur d’accueil d’iPadOS";
+"Suppress iPadOS Multitasking Gestures" = "Désactiver les gestes multitâches d’iPadOS";
+"Suppress iPadOS System Edge Gestures" = "Désactiver les gestes système depuis les bords d’iPadOS";
+"Switch to Running Virtual Mac" = "Passer au Mac virtuel en cours d’exécution";
+"Switch to the running Virtual Mac and shut it down before starting another one." = "Passez au Mac virtuel en cours d’exécution et éteignez-le avant d’en démarrer un autre.";
+"The diagnostics archive could not be created." = "L’archive de diagnostics n’a pas pu être créée.";
+"The first progress value can take several minutes while the Virtual Mac changes from DFU to RestoreOS. Your iPad will remain awake." = "La première valeur de progression peut prendre plusieurs minutes pendant le passage du Mac virtuel de DFU à RestoreOS. Votre iPad restera actif.";
+"The incomplete Virtual Mac and its installation files will be deleted." = "Le Mac virtuel incomplet et ses fichiers d’installation seront supprimés.";
+"The install image and temporary installation files were kept so the failure can be diagnosed. You can export diagnostics from Settings." = "L’image d’installation et les fichiers d’installation temporaires ont été conservés pour permettre le diagnostic. Vous pouvez exporter les diagnostics depuis Réglages.";
+"The installer could not be started: %s" = "Impossible de démarrer le programme d’installation : %s";
+"The new Virtual Mac is ready to use." = "Le nouveau Mac virtuel est prêt à l’emploi.";
+"The partial restore image will be deleted." = "L’image de restauration partiellement téléchargée sera supprimée.";
+"The Virtual Mac configuration could not be created." = "Impossible de créer la configuration du Mac virtuel.";
+"The Virtual Mac did not publish a display framebuffer." = "Le Mac virtuel n’a publié aucun framebuffer d’affichage.";
+"The Virtual Mac display view is unavailable" = "La vue de l’écran du Mac virtuel n’est pas disponible";
+"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 show the controls again during this boot, touch and hold the Virtual Mac icon on the Home Screen, then choose Show Virtual Mac Controls." = "Pour réafficher les commandes pendant ce démarrage, touchez longuement l’icône de Virtual Mac sur l’écran d’accueil, puis choisissez « Afficher les commandes de Virtual Mac ».";
+"Top Left" = "En haut à gauche";
+"Top Right" = "En haut à droite";
+"Touch and Hold for Secondary Click" = "Touchez et maintenez pour un clic secondaire";
+"Two-Finger Tap for Secondary Click" = "Appuyez à deux doigts pour un clic secondaire";
+"Two-Finger Touch Scrolling" = "Défilement tactile à deux doigts";
+"Unknown" = "Inconnu";
+"Unsaved changes in macOS may be lost." = "Les modifications non enregistrées dans macOS risquent d’être perdues.";
+"Unsupported Restore Image" = "Image de restauration non prise en charge";
+"USB Keyboard" = "Clavier USB";
+"USB Mouse" = "Souris USB";
+"Use an IPSW on your iPad" = "Utiliser un IPSW présent sur votre iPad";
+"Use USB Keyboard for macOS Monterey. Newer guests support the Mac keyboard device." = "Sous macOS Monterey, utilisez un clavier USB. Les versions plus récentes de macOS prennent en charge le clavier Mac.";
+"Use USB Mouse for macOS Monterey. Newer guests support the Mac trackpad device." = "Sous macOS Monterey, utilisez une souris USB. Les versions plus récentes de macOS prennent en charge le trackpad Mac.";
+"Validation failed: %@" = "Échec de la validation : %@";
+"Verify your iPad has sufficient free storage and try again." = "Vérifiez que votre iPad dispose de suffisamment d’espace libre, puis réessayez.";
+"Version" = "Version";
+"Video Encoding and Decoding Acceleration" = "Accélération de l’encodage et du décodage vidéo";
+"View Details" = "Afficher les détails";
+"Virtual Mac" = "Mac virtuel";
+"Virtual Mac %@ does not support %@. Check for updates in Sileo." = "Virtual Mac %@ ne prend pas en charge %@. Recherchez des mises à jour dans Sileo.";
+"Virtual Mac Controls" = "Commandes du Mac virtuel";
+"Virtual Mac devices are stored in %@." = "Les Mac virtuels sont stockés dans %@.";
+"Virtual Mac Display" = "Écran 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";
+"Virtual Mac start failed: %@" = "Échec du démarrage du Mac virtuel : %@";
+"Virtual Mac Stopped" = "Mac virtuel s’est arrêté";
+"Virtual Mac stopped: %@" = "Arrêt du Mac virtuel : %@";
+"VPN" = "VPN";
+"Waiting for installation output…" = "En attente de la sortie d’installation…";
+"Welcome to Virtual Mac" = "Bienvenue dans Mac virtuel";
+"Wi-Fi" = "Wi-Fi";
+"Width" = "Largeur";
+"You can also copy an existing Virtual Mac bundle to /var/mobile/Media/VirtualMac using an app such as iMazing or Filza." = "Vous pouvez également copier un paquet Virtual Mac existant dans /var/mobile/Media/VirtualMac à l’aide d’une app telle qu’iMazing ou Filza.";
+"Your changes to this Virtual Mac will not be saved." = "Vos modifications apportées à ce Mac virtuel ne seront pas enregistrées.";
+"“%@” and all files stored in it will be permanently deleted." = "« %@ » et tous les fichiers qu’il contient seront définitivement supprimés.";
diff --git a/VirtualMac/resources/Localizations/fr_CA.lproj/InfoPlist.strings b/VirtualMac/resources/Localizations/fr_CA.lproj/InfoPlist.strings
new file mode 100644
index 0000000..6ad7d8f
--- /dev/null
+++ b/VirtualMac/resources/Localizations/fr_CA.lproj/InfoPlist.strings
@@ -0,0 +1,2 @@
+"CFBundleDisplayName" = "Mac virtuel";
+"CFBundleName" = "Mac virtuel";
diff --git a/VirtualMac/resources/Localizations/fr_CA.lproj/Localizable.strings b/VirtualMac/resources/Localizations/fr_CA.lproj/Localizable.strings
new file mode 100644
index 0000000..5567a15
--- /dev/null
+++ b/VirtualMac/resources/Localizations/fr_CA.lproj/Localizable.strings
@@ -0,0 +1,247 @@
+/* Virtual Mac 1.1 localization. */
+" · Legacy" = " · Ancien";
+"%.0f%% complete" = "%.0f %% terminé";
+"%@ CPU · %@ GB RAM · %llu GB · %@%@" = "%@ CPU · %@ Go de RAM · %llu Go · %@%@";
+"%@ is not supported" = "%@ n’est pas pris en charge";
+"%@ 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 : %@";
+"%@\n\n%@\n\nThe incomplete Virtual Mac was retained in Temporary Installation Files as %@. It can be deleted from Settings." = "%@\n\n%@\n\nLe Mac virtuel incomplet a été conservé dans Fichiers d’installation temporaires sous le nom %@. Vous pouvez le supprimer dans Réglages.";
+"%@\nState: %@\n%@\n\n" = "%@\nÉtat : %@\n%@\n\n";
+"A previous macOS installation did not finish. You can review its details, keep it for debugging, or delete it." = "Une installation précédente de macOS ne s’est pas terminée. Vous pouvez consulter ses détails, la conserver pour le diagnostic ou la supprimer.";
+"About" = "À propos";
+"Accommodate Finger Double-Taps" = "Faciliter le double toucher avec le doigt";
+"Add Shared Folder" = "Ajouter un dossier partagé";
+"Advanced" = "Avancé";
+"Allowed: %llu–%llu%@" = "Plage autorisée : %llu–%llu%@";
+"Always Hidden" = "Toujours caché";
+"Always Visible" = "Toujours visible";
+"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";
+"Audio and Acceleration" = "Audio et accélération";
+"Audio Output" = "Sortie audio";
+"Automatic" = "Automatique";
+"Automatic hides the controls when an external keyboard and pointing device are connected." = "Le mode Automatique masque les commandes lorsqu’un clavier externe et un dispositif de pointage sont connectés.";
+"Available macOS Releases" = "Versions disponibles de macOS";
+"Available macOS Versions" = "Versions de macOS disponibles";
+"Boot and Network" = "Démarrage et réseau";
+"Bottom Left" = "En bas à gauche";
+"Bottom Right" = "En bas à droite";
+"Bridge" = "Pont";
+"Bridge via %@" = "Pont via %@";
+"Bridge: %@" = "Pont : %@";
+"Build %@" = "Version %@";
+"Calculating speed…" = "Calcul de la vitesse…";
+"Cancel" = "Annuler";
+"Cancel Download" = "Annuler le téléchargement";
+"Cancel Download?" = "Annuler le téléchargement ?";
+"Cancel Installation" = "Annuler l’installation";
+"Cancel Installation?" = "Annuler l’installation ?";
+"Cellular" = "Données cellulaires";
+"Choose a Different Version" = "Choisir une autre version";
+"Choose a macOS IPSW restore image." = "Sélectionnez une image de restauration IPSW de macOS.";
+"Choose a name for this Virtual Mac." = "Choisissez un nom pour ce Mac virtuel.";
+"Choose Custom IPSW" = "Choisir un IPSW personnalisé";
+"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. Renaming and deletion are unavailable while it is running." = "Les modifications de configuration prennent effet après l’arrêt et le redémarrage du Mac virtuel. Vous ne pouvez pas le renommer ni le supprimer pendant son fonctionnement.";
+"Configuration failed: %@" = "Échec de la configuration : %@";
+"Configure %@" = "Configurer %@";
+"Continue" = "Continuer";
+"Controls Hidden" = "Commandes masquées";
+"Controls Opacity" = "Opacité des commandes";
+"Copy Library Path" = "Copier le chemin de la bibliothèque";
+"Copying Restore Image" = "Copie de l’image de restauration";
+"Could Not Copy IPSW" = "Impossible de copier l’IPSW";
+"Could Not Prepare Restore Image" = "Impossible de préparer l’image de restauration";
+"Could Not Rename Virtual Mac" = "Impossible de renommer Mac virtuel";
+"Could Not Save" = "Impossible d’enregistrer";
+"Could Not Start Installer" = "Impossible de démarrer le programme d’installation";
+"Couldn’t Export Diagnostics" = "Impossible d’exporter les diagnostics";
+"Create Virtual Mac" = "Créer un Mac virtuel";
+"Custom" = "Personnalisé";
+"Debug Logging" = "Journalisation de débogage";
+"Delete" = "Supprimer";
+"Delete All" = "Tout supprimer";
+"Delete Cached Install Images" = "Supprimer les images d’installation en cache";
+"Delete Cached Install Images?" = "Supprimer les images d’installation en cache ?";
+"Delete Incomplete Installation" = "Supprimer l’installation incomplète";
+"Delete IPSW After Successful Installation" = "Supprimer IPSW après une installation réussie";
+"Delete or rename the existing Virtual Mac first." = "Supprimez ou renommez d’abord le Mac virtuel existant.";
+"Delete Temporary Installation Files" = "Supprimer les fichiers d’installation temporaires";
+"Delete Temporary Installation Files?" = "Supprimer les fichiers d’installation temporaires ?";
+"Delete Virtual Mac" = "Supprimer le Mac virtuel";
+"Delete Virtual Mac?" = "Supprimer le Mac virtuel ?";
+"Developer Beta" = "Bêta développeur";
+"Developers" = "Développeurs";
+"Disabled" = "Désactivé";
+"Discard Changes" = "Ignorer les modifications";
+"Discard Changes?" = "Ignorer les modifications ?";
+"Disk Exceeds Available Storage" = "Le disque dépasse l’espace disponible";
+"Display" = "Affichage";
+"Display Height" = "Hauteur de l’écran";
+"Display Resolution" = "Résolution de l’écran";
+"Display Width" = "Largeur de l’écran";
+"Done" = "Terminé";
+"Double-tap to hold or release this modifier" = "Touchez deux fois pour verrouiller ou relâcher cette touche de modification";
+"Download Failed" = "Échec du téléchargement";
+"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 (%@)";
+"Experimental" = "Expérimental";
+"Export Diagnostics" = "Exporter les diagnostics";
+"Failed to load extracted frameworks" = "Impossible de charger les frameworks extraits";
+"Failed to load the extracted Apple virtualization frameworks." = "Impossible de charger les frameworks de virtualisation Apple extraits.";
+"Fill Window" = "Remplir la fenêtre";
+"Fit in Window" = "Adapter à la fenêtre";
+"Fit in Window shows the entire display. Fill Window crops its edges when the window has a different shape." = "Adapter à la fenêtre affiche tout l’écran. Remplir la fenêtre en rogne les bords lorsque la fenêtre a une forme différente.";
+"Force Shut Down" = "Forcer l’arrêt";
+"Force Shut Down Virtual Mac?" = "Forcer l’arrêt du Mac virtuel ?";
+"Full Screen" = "Plein écran";
+"General" = "Général";
+"Get Help" = "Obtenir de l’aide";
+"Height" = "Hauteur";
+"Hide for This Boot" = "Masquer pour ce démarrage";
+"Incomplete Installation" = "Installation incomplète";
+"Incomplete Installations" = "Installations incomplètes";
+"Input" = "Entrée";
+"Input While a Virtual Mac Is Running" = "Saisie pendant l’exécution d’un Mac virtuel";
+"Install %@" = "Installer %@";
+"Install macOS" = "Installer macOS";
+"Installation Details" = "Détails de l’installation";
+"Installation Failed" = "Échec de l’installation";
+"Installation progress may pause for several minutes while the Virtual Mac starts the installation environment. Your iPad will remain awake." = "La progression de l’installation peut s’interrompre plusieurs minutes pendant que Mac virtuel démarre l’environnement d’installation. Votre iPad restera actif.";
+"Installation progress may remain unchanged while macOS prepares the next installation stage. Your iPad will remain awake." = "La progression de l’installation peut rester inchangée pendant que macOS prépare la prochaine étape. Votre iPad restera actif.";
+"Installed, but settings save failed: %@" = "Installation terminée, mais échec de l’enregistrement des réglages : %@";
+"Installing macOS" = "Installation de macOS";
+"iPad Internet Connection" = "Connexion Internet de l’iPad";
+"Keep Downloading" = "Continuer le téléchargement";
+"Keep Editing" = "Continuer la modification";
+"Keep Installing" = "Continuer l’installation";
+"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";
+"Keyboard Crash Workaround" = "Contournement du plantage du clavier";
+"Keyboard Crash Workaround takes effect the next time Virtual Mac opens. Debug Logging takes effect the next time a Virtual Mac starts." = "La solution au plantage du clavier prendra effet à la prochaine ouverture de Mac virtuel. La journalisation de débogage prendra effet au prochain démarrage d’un Mac virtuel.";
+"Library Appearance" = "Présentation de la bibliothèque";
+"Loading extracted Apple virtualization frameworks…" = "Chargement des frameworks de virtualisation Apple extraits…";
+"MAC Address" = "Adresse MAC";
+"Mac Keyboard" = "Clavier Mac";
+"Mac Keyboard Shortcuts" = "Raccourcis clavier Mac";
+"Mac Trackpad" = "Trackpad Mac";
+"macOS Installed" = "macOS est installé";
+"Memory" = "Mémoire";
+"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";
+"Name" = "Nom";
+"Name Already Used" = "Nom déjà utilisé";
+"NAT: Share %@" = "NAT : partager %@";
+"Network" = "Réseau";
+"Network Attachment" = "Connexion réseau";
+"Network Bridge (%@)" = "Pont réseau (%@)";
+"New Virtual Mac" = "Nouveau Mac virtuel";
+"No Results" = "Aucun résultat";
+"No Virtual Macs match your search." = "Aucun Mac virtuel ne correspond à votre recherche.";
+"OK" = "OK";
+"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é.";
+"Options" = "Options";
+"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";
+"Portrait Full Screen" = "Plein écran en portrait";
+"Preparing installation…" = "Préparation de l’installation…";
+"Preparing the IPSW for installation. Your iPad will remain awake." = "Préparation de l’IPSW pour l’installation. Votre iPad restera actif.";
+"Preparing virtual hardware…" = "Préparation du matériel virtuel…";
+"Preparing…" = "Préparation…";
+"Processors" = "Processeurs";
+"Read & Write" = "Lecture et écriture";
+"Read Only" = "Lecture seule";
+"Reading restore image…" = "Lecture de l’image de restauration…";
+"Recommended macOS Release" = "Version recommandée de macOS";
+"Recover Networking After Sleep" = "Récupérer le réseau après le sommeil";
+"Release" = "Version publique";
+"Remove" = "Supprimer";
+"Report Issue" = "Signaler un problème";
+"Reset" = "Réinitialiser";
+"Reset Settings" = "Réinitialiser les paramètres";
+"Reset Settings?" = "Réinitialiser les réglages ?";
+"Resolution" = "Résolution";
+"Resources" = "Ressources";
+"Resume" = "Reprendre";
+"Save" = "Enregistrer";
+"Search Virtual Mac" = "Rechercher un Mac virtuel";
+"Settings" = "Paramètres";
+"Shared Folder" = "Dossier partagé";
+"Shared via %@" = "Partagé via %@";
+"Show Developer Betas" = "Afficher les bêtas développeur";
+"Show Library" = "Afficher la bibliothèque";
+"Show Minor Releases" = "Afficher les versions intermédiaires";
+"Show Version Details" = "Afficher les détails de la version";
+"Show Virtual Mac Controls" = "Afficher les commandes de Virtual Mac";
+"Start" = "C'est parti";
+"Start %@" = "Démarrer %@";
+"Start in Recovery" = "Démarrer dans Récupération";
+"Start on Launch" = "Démarrer à l’ouverture";
+"Starting installation environment…" = "Démarrage de l’environnement d’installation…";
+"Starting installation services…" = "Démarrage des services d’installation…";
+"Starting installation…" = "Démarrage de l’installation…";
+"Starting Virtual Mac…" = "Démarrage du Mac virtuel…";
+"Storage" = "Stockage";
+"Support" = "Assistance";
+"Support for %@ is experimental" = "La prise en charge de %@ est expérimentale";
+"Suppress iPadOS Home Indicator" = "Masquer l’indicateur d’accueil d’iPadOS";
+"Suppress iPadOS Multitasking Gestures" = "Désactiver les gestes multitâches d’iPadOS";
+"Suppress iPadOS System Edge Gestures" = "Désactiver les gestes système depuis les bords d’iPadOS";
+"Switch to Running Virtual Mac" = "Passer au Mac virtuel en cours d’exécution";
+"Switch to the running Virtual Mac and shut it down before starting another one." = "Passez au Mac virtuel en cours d’exécution et éteignez-le avant d’en démarrer un autre.";
+"The diagnostics archive could not be created." = "L’archive de diagnostics n’a pas pu être créée.";
+"The first progress value can take several minutes while the Virtual Mac changes from DFU to RestoreOS. Your iPad will remain awake." = "La première valeur de progression peut prendre plusieurs minutes pendant le passage du Mac virtuel de DFU à RestoreOS. Votre iPad restera actif.";
+"The incomplete Virtual Mac and its installation files will be deleted." = "Le Mac virtuel incomplet et ses fichiers d’installation seront supprimés.";
+"The install image and temporary installation files were kept so the failure can be diagnosed. You can export diagnostics from Settings." = "L’image d’installation et les fichiers d’installation temporaires ont été conservés pour permettre le diagnostic. Vous pouvez exporter les diagnostics depuis Réglages.";
+"The installer could not be started: %s" = "Impossible de démarrer le programme d’installation : %s";
+"The new Virtual Mac is ready to use." = "Le nouveau Mac virtuel est prêt à l’emploi.";
+"The partial restore image will be deleted." = "L’image de restauration partiellement téléchargée sera supprimée.";
+"The Virtual Mac configuration could not be created." = "Impossible de créer la configuration du Mac virtuel.";
+"The Virtual Mac did not publish a display framebuffer." = "Le Mac virtuel n’a publié aucun framebuffer d’affichage.";
+"The Virtual Mac display view is unavailable" = "La vue de l’écran du Mac virtuel n’est pas disponible";
+"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 show the controls again during this boot, touch and hold the Virtual Mac icon on the Home Screen, then choose Show Virtual Mac Controls." = "Pour réafficher les commandes pendant ce démarrage, touchez longuement l’icône de Virtual Mac sur l’écran d’accueil, puis choisissez « Afficher les commandes de Virtual Mac ».";
+"Top Left" = "En haut à gauche";
+"Top Right" = "En haut à droite";
+"Touch and Hold for Secondary Click" = "Touchez et maintenez enfoncé pour un clic secondaire";
+"Two-Finger Tap for Secondary Click" = "Appuyez sur les deux doigts pour un clic secondaire";
+"Two-Finger Touch Scrolling" = "Défilement tactile à deux doigts";
+"Unknown" = "Inconnu";
+"Unsaved changes in macOS may be lost." = "Les modifications non enregistrées dans macOS risquent d’être perdues.";
+"Unsupported Restore Image" = "Image de restauration non prise en charge";
+"USB Keyboard" = "Clavier USB";
+"USB Mouse" = "Souris USB";
+"Use an IPSW on your iPad" = "Utiliser un IPSW présent sur votre iPad";
+"Use USB Keyboard for macOS Monterey. Newer guests support the Mac keyboard device." = "Sous macOS Monterey, utilisez un clavier USB. Les versions plus récentes de macOS prennent en charge le clavier Mac.";
+"Use USB Mouse for macOS Monterey. Newer guests support the Mac trackpad device." = "Sous macOS Monterey, utilisez une souris USB. Les versions plus récentes de macOS prennent en charge le trackpad Mac.";
+"Validation failed: %@" = "Échec de la validation : %@";
+"Verify your iPad has sufficient free storage and try again." = "Vérifiez que votre iPad dispose de suffisamment d’espace libre, puis réessayez.";
+"Version" = "Version";
+"Video Encoding and Decoding Acceleration" = "Accélération de l’encodage et du décodage vidéo";
+"View Details" = "Afficher les détails";
+"Virtual Mac" = "Mac virtuel";
+"Virtual Mac %@ does not support %@. Check for updates in Sileo." = "Virtual Mac %@ ne prend pas en charge %@. Vérifiez les mises à jour dans Sileo.";
+"Virtual Mac Controls" = "Commandes du Mac virtuel";
+"Virtual Mac devices are stored in %@." = "Les Mac virtuels sont stockés dans %@.";
+"Virtual Mac Display" = "Écran 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";
+"Virtual Mac start failed: %@" = "Échec du démarrage du Mac virtuel : %@";
+"Virtual Mac Stopped" = "Mac virtuel s’est arrêté";
+"Virtual Mac stopped: %@" = "Arrêt du Mac virtuel : %@";
+"VPN" = "VPN";
+"Waiting for installation output…" = "En attente de la sortie d’installation…";
+"Welcome to Virtual Mac" = "Bienvenue dans Mac virtuel";
+"Wi-Fi" = "Wi-Fi";
+"Width" = "Largeur";
+"You can also copy an existing Virtual Mac bundle to /var/mobile/Media/VirtualMac using an app such as iMazing or Filza." = "Vous pouvez également copier un paquet Virtual Mac existant dans /var/mobile/Media/VirtualMac à l’aide d’une app telle qu’iMazing ou Filza.";
+"Your changes to this Virtual Mac will not be saved." = "Vos modifications apportées à ce Mac virtuel ne seront pas enregistrées.";
+"“%@” and all files stored in it will be permanently deleted." = "« %@ » et tous les fichiers qu’il contient seront définitivement supprimés.";
diff --git a/VirtualMac/resources/Localizations/he.lproj/InfoPlist.strings b/VirtualMac/resources/Localizations/he.lproj/InfoPlist.strings
new file mode 100644
index 0000000..ebd1c85
--- /dev/null
+++ b/VirtualMac/resources/Localizations/he.lproj/InfoPlist.strings
@@ -0,0 +1,2 @@
+"CFBundleDisplayName" = "Mac וירטואלי";
+"CFBundleName" = "Mac וירטואלי";
diff --git a/VirtualMac/resources/Localizations/he.lproj/Localizable.strings b/VirtualMac/resources/Localizations/he.lproj/Localizable.strings
new file mode 100644
index 0000000..682d41c
--- /dev/null
+++ b/VirtualMac/resources/Localizations/he.lproj/Localizable.strings
@@ -0,0 +1,247 @@
+/* Virtual Mac 1.1 localization. */
+" · Legacy" = " · ישן";
+"%.0f%% complete" = "%.0f%% הושלמו";
+"%@ CPU · %@ GB RAM · %llu GB · %@%@" = "%@ CPU · %@ GB RAM · %llu GB · %@%@";
+"%@ is not supported" = "אין תמיכה ב-%@";
+"%@ 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" = "נותרו %@";
+"%@\n\n%@\n\nThe incomplete Virtual Mac was retained in Temporary Installation Files as %@. It can be deleted from Settings." = "%@\n\n%@\n\nה-Mac הווירטואלי שלא הושלם נשמר בקובצי ההתקנה הזמניים בשם %@. ניתן למחוק אותו בהגדרות.";
+"%@\nState: %@\n%@\n\n" = "%@\nמצב: %@\n%@\n\n";
+"A previous macOS installation did not finish. You can review its details, keep it for debugging, or delete it." = "התקנת macOS קודמת לא הושלמה. ניתן לעיין בפרטים, לשמור אותה לצורך איתור באגים או למחוק אותה.";
+"About" = "פרטים";
+"Accommodate Finger Double-Taps" = "הקלה על הקשה כפולה באצבע";
+"Add Shared Folder" = "הוספת תיקייה משותפת";
+"Advanced" = "מתקדם";
+"Allowed: %llu–%llu%@" = "מותר: %llu–%llu%@";
+"Always Hidden" = "מוסתר תמיד";
+"Always Visible" = "גלוי תמיד";
+"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 וירטואלי אחר פועל";
+"Audio and Acceleration" = "שמע והאצה";
+"Audio Output" = "פלט שמע";
+"Automatic" = "אוטומטי";
+"Automatic hides the controls when an external keyboard and pointing device are connected." = "המצב האוטומטי מסתיר את הפקדים כאשר מחוברים מקלדת חיצונית והתקן הצבעה.";
+"Available macOS Releases" = "גרסאות macOS זמינות";
+"Available macOS Versions" = "גרסאות macOS זמינות";
+"Boot and Network" = "אתחול ורשת";
+"Bottom Left" = "למטה משמאל";
+"Bottom Right" = "למטה מימין";
+"Bridge" = "גשר";
+"Bridge via %@" = "גישור באמצעות %@";
+"Bridge: %@" = "גשר: %@";
+"Build %@" = "גרסת בנייה %@";
+"Calculating speed…" = "המהירות מחושבת…";
+"Cancel" = "ביטול";
+"Cancel Download" = "ביטול ההורדה";
+"Cancel Download?" = "לבטל את ההורדה?";
+"Cancel Installation" = "ביטול ההתקנה";
+"Cancel Installation?" = "לבטל את ההתקנה?";
+"Cellular" = "סלולרי";
+"Choose a Different Version" = "בחירת גרסה אחרת";
+"Choose a macOS IPSW restore image." = "בחרו תמונת שחזור IPSW של macOS.";
+"Choose a name for this Virtual Mac." = "בחירת שם עבור Mac וירטואלי זה.";
+"Choose Custom IPSW" = "בחירת IPSW מותאם אישית";
+"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. Renaming and deletion are unavailable while it is running." = "שינויי תצורה ייכנסו לתוקף לאחר כיבוי והפעלה מחדש של ה-Mac הווירטואלי. לא ניתן לשנות את שמו או למחוק אותו בזמן שהוא פועל.";
+"Configuration failed: %@" = "התצורה נכשלה: %@";
+"Configure %@" = "הגדרת %@";
+"Continue" = "המשך";
+"Controls Hidden" = "הפקדים מוסתרים";
+"Controls Opacity" = "אטימות הפקדים";
+"Copy Library Path" = "העתקת נתיב הספרייה";
+"Copying Restore Image" = "תמונת השחזור מועתקת";
+"Could Not Copy IPSW" = "לא ניתן היה להעתיק את ה‑IPSW";
+"Could Not Prepare Restore Image" = "לא ניתן היה להכין את תמונת השחזור";
+"Could Not Rename Virtual Mac" = "לא ניתן היה לשנות את השם של Mac וירטואלי";
+"Could Not Save" = "לא ניתן היה לשמור";
+"Could Not Start Installer" = "לא ניתן היה להפעיל את תוכנית ההתקנה";
+"Couldn’t Export Diagnostics" = "לא ניתן לייצא את נתוני האבחון";
+"Create Virtual Mac" = "יצירת Mac וירטואלי";
+"Custom" = "מותאם אישית";
+"Debug Logging" = "רישום ניפוי באגים";
+"Delete" = "מחיקה";
+"Delete All" = "מחיקת הכול";
+"Delete Cached Install Images" = "מחיקת תמונות התקנה מהמטמון";
+"Delete Cached Install Images?" = "למחוק תמונות התקנה שמורות במטמון?";
+"Delete Incomplete Installation" = "מחיקת התקנה שלא הושלמה";
+"Delete IPSW After Successful Installation" = "מחיקת IPSW לאחר התקנה מוצלחת";
+"Delete or rename the existing Virtual Mac first." = "תחילה יש למחוק או לשנות את שם ה-Mac הווירטואלי הקיים.";
+"Delete Temporary Installation Files" = "מחיקת קובצי התקנה זמניים";
+"Delete Temporary Installation Files?" = "למחוק קובצי התקנה זמניים?";
+"Delete Virtual Mac" = "מחיקת Mac וירטואלי";
+"Delete Virtual Mac?" = "למחוק את ה-Mac הווירטואלי?";
+"Developer Beta" = "גרסת בטא למפתחים";
+"Developers" = "מפתחים";
+"Disabled" = "מושבת";
+"Discard Changes" = "ביטול השינויים";
+"Discard Changes?" = "לבטל את השינויים?";
+"Disk Exceeds Available Storage" = "הכונן חורג מנפח האחסון הזמין";
+"Display" = "צג";
+"Display Height" = "גובה הצג";
+"Display Resolution" = "רזולוציית הצג";
+"Display Width" = "רוחב הצג";
+"Done" = "סיום";
+"Double-tap to hold or release this modifier" = "יש להקיש פעמיים כדי לנעול או לשחרר מקש צירוף זה";
+"Download Failed" = "ההורדה נכשלה";
+"Downloading macOS" = "מתבצעת הורדה של macOS";
+"Enter six hexadecimal octets separated by colons." = "יש להזין שש קבוצות הקסדצימליות המופרדות בנקודתיים.";
+"Ethernet (%@)" = "Ethernet‏ (%@)";
+"Experimental" = "ניסיוני";
+"Export Diagnostics" = "ייצוא נתוני אבחון";
+"Failed to load extracted frameworks" = "טעינת ה-frameworks שחולצו נכשלה";
+"Failed to load the extracted Apple virtualization frameworks." = "לא ניתן לטעון את ה-frameworks של Apple לווירטואליזציה שחולצו.";
+"Fill Window" = "מילוי חלון";
+"Fit in Window" = "התאמה לחלון";
+"Fit in Window shows the entire display. Fill Window crops its edges when the window has a different shape." = "״התאמה לחלון״ מציגה את כל הצג. ״מילוי החלון״ חותך את הקצוות כאשר צורת החלון שונה.";
+"Force Shut Down" = "אילוץ כיבוי";
+"Force Shut Down Virtual Mac?" = "לאלץ כיבוי של ה-Mac הווירטואלי?";
+"Full Screen" = "מסך מלא";
+"General" = "כללי";
+"Get Help" = "קבלת עזרה";
+"Height" = "גובה";
+"Hide for This Boot" = "הסתרה באתחול זה";
+"Incomplete Installation" = "התקנה שלא הושלמה";
+"Incomplete Installations" = "התקנות שלא הושלמו";
+"Input" = "קלט";
+"Input While a Virtual Mac Is Running" = "קלט בזמן שמופעל Mac וירטואלי";
+"Install %@" = "התקנת %@";
+"Install macOS" = "התקנת macOS";
+"Installation Details" = "פרטי ההתקנה";
+"Installation Failed" = "ההתקנה נכשלה";
+"Installation progress may pause for several minutes while the Virtual Mac starts the installation environment. Your iPad will remain awake." = "ייתכן שהתקדמות ההתקנה תיעצר למשך כמה דקות בזמן ש-Mac וירטואלי מפעיל את סביבת ההתקנה. ה-iPad יישאר פעיל.";
+"Installation progress may remain unchanged while macOS prepares the next installation stage. Your iPad will remain awake." = "ייתכן שהתקדמות ההתקנה לא תשתנה בזמן ש-macOS מכין את שלב ההתקנה הבא. ה-iPad יישאר פעיל.";
+"Installed, but settings save failed: %@" = "ההתקנה הושלמה, אך שמירת ההגדרות נכשלה: %@";
+"Installing macOS" = "macOS מותקן";
+"iPad Internet Connection" = "חיבור האינטרנט של ה-iPad";
+"Keep Downloading" = "המשך ההורדה";
+"Keep Editing" = "המשך העריכה";
+"Keep Installing" = "המשך ההתקנה";
+"Keep Virtual Mac open. Your iPad will remain awake until the download finishes." = "יש להשאיר את Mac וירטואלי פתוח. ה-iPad יישאר פעיל עד לסיום ההורדה.";
+"Keyboard" = "מקלדת";
+"Keyboard Crash Workaround" = "מעקף לקריסת המקלדת";
+"Keyboard Crash Workaround takes effect the next time Virtual Mac opens. Debug Logging takes effect the next time a Virtual Mac starts." = "הפתרון לקריסת המקלדת ייכנס לתוקף בפעם הבאה ש-Mac וירטואלי ייפתח. רישום ניפוי באגים ייכנס לתוקף בפעם הבאה שיופעל Mac וירטואלי.";
+"Library Appearance" = "מראה הספרייה";
+"Loading extracted Apple virtualization frameworks…" = "ה-frameworks של Apple לווירטואליזציה שחולצו נטענים…";
+"MAC Address" = "כתובת MAC";
+"Mac Keyboard" = "מקלדת Mac";
+"Mac Keyboard Shortcuts" = "קיצורי מקשים של Mac";
+"Mac Trackpad" = "משטח עקיבה של Mac";
+"macOS Installed" = "macOS הותקן";
+"Memory" = "זיכרון";
+"Microphone Input" = "קלט מיקרופון";
+"Minimum: %llu GB. The upper limit is determined by the filesystem." = "מינימום: %llu GB. הגבול העליון נקבע על ידי מערכת הקבצים.";
+"Move Controls" = "הזזת הפקדים";
+"Name" = "שם";
+"Name Already Used" = "השם כבר בשימוש";
+"NAT: Share %@" = "NAT: שיתוף %@";
+"Network" = "רשת";
+"Network Attachment" = "חיבור רשת";
+"Network Bridge (%@)" = "גשר רשת (%@)";
+"New Virtual Mac" = "Mac וירטואלי חדש";
+"No Results" = "לא נמצאו תוצאות";
+"No Virtual Macs match your search." = "אין מחשבי Mac וירטואליים התואמים לחיפוש.";
+"OK" = "אישור";
+"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. תמונת הכונן דינמית, אך ההתקנה או השימוש בהמשך עלולים להיכשל אם האחסון יתמלא.";
+"Options" = "אפשרויות";
+"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" = "התקן הצבעה";
+"Portrait Full Screen" = "מסך מלא לאורך";
+"Preparing installation…" = "ההתקנה בהכנה…";
+"Preparing the IPSW for installation. Your iPad will remain awake." = "ה-IPSW מוכן להתקנה. ה-iPad יישאר פעיל.";
+"Preparing virtual hardware…" = "החומרה הווירטואלית בהכנה…";
+"Preparing…" = "בהכנה…";
+"Processors" = "מעבדים";
+"Read & Write" = "קריאה וכתיבה";
+"Read Only" = "קריאה בלבד";
+"Reading restore image…" = "תמונת השחזור נקראת…";
+"Recommended macOS Release" = "גרסת macOS המומלצת";
+"Recover Networking After Sleep" = "שחזור הרשת לאחר שינה";
+"Release" = "גרסה";
+"Remove" = "הסרה";
+"Report Issue" = "דיווח על בעיה";
+"Reset" = "איפוס";
+"Reset Settings" = "איפוס ההגדרות";
+"Reset Settings?" = "לאפס הגדרות?";
+"Resolution" = "רזולוציה";
+"Resources" = "משאבים";
+"Resume" = "המשך";
+"Save" = "שמירה";
+"Search Virtual Mac" = "חיפוש Mac וירטואלי";
+"Settings" = "הגדרות";
+"Shared Folder" = "תיקייה משותפת";
+"Shared via %@" = "משותף באמצעות %@";
+"Show Developer Betas" = "הצגת גרסאות בטא למפתחים";
+"Show Library" = "הצגת הספרייה";
+"Show Minor Releases" = "הצגת גרסאות משנה";
+"Show Version Details" = "הצגת פרטי הגרסה";
+"Show Virtual Mac Controls" = "הצגת פקדי Mac וירטואלי";
+"Start" = "הפעלה";
+"Start %@" = "הפעלת %@";
+"Start in Recovery" = "הפעלה במצב שחזור";
+"Start on Launch" = "הפעלה בעת הפתיחה";
+"Starting installation environment…" = "סביבת ההתקנה מופעלת…";
+"Starting installation services…" = "שירותי ההתקנה מופעלים…";
+"Starting installation…" = "ההתקנה מתחילה…";
+"Starting Virtual Mac…" = "Mac וירטואלי מופעל…";
+"Storage" = "אחסון";
+"Support" = "תמיכה";
+"Support for %@ is experimental" = "התמיכה ב-%@ ניסיונית";
+"Suppress iPadOS Home Indicator" = "הסתרת מחוון הבית של iPadOS";
+"Suppress iPadOS Multitasking Gestures" = "השבתת מחוות ריבוי המשימות של iPadOS";
+"Suppress iPadOS System Edge Gestures" = "השבתת מחוות המערכת מקצוות המסך ב-iPadOS";
+"Switch to Running Virtual Mac" = "מעבר ל-Mac הווירטואלי שפועל";
+"Switch to the running Virtual Mac and shut it down before starting another one." = "יש לעבור ל-Mac הווירטואלי שפועל ולכבות אותו לפני הפעלת אחד אחר.";
+"The diagnostics archive could not be created." = "לא ניתן ליצור את ארכיון האבחון.";
+"The first progress value can take several minutes while the Virtual Mac changes from DFU to RestoreOS. Your iPad will remain awake." = "ערך ההתקדמות הראשון עשוי להופיע לאחר מספר דקות בזמן שה-Mac הווירטואלי עובר מ-DFU ל-RestoreOS. ה-iPad יישאר פעיל.";
+"The incomplete Virtual Mac and its installation files will be deleted." = "ה-Mac הווירטואלי שלא הושלם וקובצי ההתקנה שלו יימחקו.";
+"The install image and temporary installation files were kept so the failure can be diagnosed. You can export diagnostics from Settings." = "תמונת ההתקנה וקובצי ההתקנה הזמניים נשמרו כדי לאפשר אבחון של התקלה. ניתן לייצא נתוני אבחון מההגדרות.";
+"The installer could not be started: %s" = "לא ניתן להפעיל את תוכנית ההתקנה: %s";
+"The new Virtual Mac is ready to use." = "ה-Mac הווירטואלי החדש מוכן לשימוש.";
+"The partial restore image will be deleted." = "תמונת השחזור שהורדה חלקית תימחק.";
+"The Virtual Mac configuration could not be created." = "לא ניתן ליצור את תצורת ה-Mac הווירטואלי.";
+"The Virtual Mac did not publish a display framebuffer." = "ה-Mac הווירטואלי לא פרסם framebuffer של הצג.";
+"The Virtual Mac display view is unavailable" = "תצוגת ה-Mac הווירטואלי אינה זמינה";
+"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 show the controls again during this boot, touch and hold the Virtual Mac icon on the Home Screen, then choose Show Virtual Mac Controls." = "כדי להציג שוב את הפקדים באתחול זה, יש לגעת ולהחזיק בסמל Mac וירטואלי במסך הבית ואז לבחור ״הצגת פקדי Mac וירטואלי״.";
+"Top Left" = "למעלה משמאל";
+"Top Right" = "למעלה מימין";
+"Touch and Hold for Secondary Click" = "גע והחזק ללחיצה משנית";
+"Two-Finger Tap for Secondary Click" = "הקשה בשתי אצבעות ללחיצה משנית";
+"Two-Finger Touch Scrolling" = "גלילה בשתי אצבעות";
+"Unknown" = "לא ידוע";
+"Unsaved changes in macOS may be lost." = "שינויים שלא נשמרו ב-macOS עלולים ללכת לאיבוד.";
+"Unsupported Restore Image" = "תמונת שחזור שאינה נתמכת";
+"USB Keyboard" = "מקלדת USB";
+"USB Mouse" = "עכבר USB";
+"Use an IPSW on your iPad" = "שימוש ב-IPSW ב-iPad";
+"Use USB Keyboard for macOS Monterey. Newer guests support the Mac keyboard device." = "ב-macOS Monterey יש להשתמש במקלדת USB. גרסאות חדשות יותר של macOS תומכות במקלדת Mac.";
+"Use USB Mouse for macOS Monterey. Newer guests support the Mac trackpad device." = "ב-macOS Monterey יש להשתמש בעכבר USB. גרסאות חדשות יותר של macOS תומכות במשטח עקיבה של Mac.";
+"Validation failed: %@" = "האימות נכשל: %@";
+"Verify your iPad has sufficient free storage and try again." = "יש לוודא שיש ב-iPad מספיק מקום פנוי ולנסות שוב.";
+"Version" = "גרסה";
+"Video Encoding and Decoding Acceleration" = "האצת קידוד ופענוח וידאו";
+"View Details" = "הצגת פרטים";
+"Virtual Mac" = "Mac וירטואלי";
+"Virtual Mac %@ does not support %@. Check for updates in Sileo." = "Virtual Mac %@ אינו תומך ב-%@. יש לבדוק אם קיימים עדכונים ב-Sileo.";
+"Virtual Mac Controls" = "פקדי ה-Mac הווירטואלי";
+"Virtual Mac devices are stored in %@." = "מחשבי Mac וירטואליים נשמרים ב-%@.";
+"Virtual Mac Display" = "צג ה-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 בהכנה";
+"Virtual Mac start failed: %@" = "הפעלת ה-Mac הווירטואלי נכשלה: %@";
+"Virtual Mac Stopped" = "Mac וירטואלי נעצר";
+"Virtual Mac stopped: %@" = "ה-Mac הווירטואלי נעצר: %@";
+"VPN" = "VPN";
+"Waiting for installation output…" = "ממתין לפלט ההתקנה…";
+"Welcome to Virtual Mac" = "ברוכים הבאים ל-Mac וירטואלי";
+"Wi-Fi" = "Wi-Fi";
+"Width" = "רוחב";
+"You can also copy an existing Virtual Mac bundle to /var/mobile/Media/VirtualMac using an app such as iMazing or Filza." = "ניתן גם להעתיק חבילת Mac וירטואלי קיימת אל /var/mobile/Media/VirtualMac באמצעות יישום כגון iMazing או Filza.";
+"Your changes to this Virtual Mac will not be saved." = "השינויים ב-Mac וירטואלי זה לא יישמרו.";
+"“%@” and all files stored in it will be permanently deleted." = "״%@״ וכל הקבצים המאוחסנים בו יימחקו לצמיתות.";
diff --git a/VirtualMac/resources/Localizations/hi.lproj/InfoPlist.strings b/VirtualMac/resources/Localizations/hi.lproj/InfoPlist.strings
new file mode 100644
index 0000000..be3181a
--- /dev/null
+++ b/VirtualMac/resources/Localizations/hi.lproj/InfoPlist.strings
@@ -0,0 +1,2 @@
+"CFBundleDisplayName" = "वर्चुअल Mac";
+"CFBundleName" = "वर्चुअल Mac";
diff --git a/VirtualMac/resources/Localizations/hi.lproj/Localizable.strings b/VirtualMac/resources/Localizations/hi.lproj/Localizable.strings
new file mode 100644
index 0000000..573b0a3
--- /dev/null
+++ b/VirtualMac/resources/Localizations/hi.lproj/Localizable.strings
@@ -0,0 +1,247 @@
+/* Virtual Mac 1.1 localization. */
+" · Legacy" = " · पुराना";
+"%.0f%% complete" = "%.0f%% पूर्ण";
+"%@ CPU · %@ GB RAM · %llu GB · %@%@" = "%@ CPU · %@ GB RAM · %llu GB · %@%@";
+"%@ is not supported" = "%@ समर्थित नहीं है";
+"%@ 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" = "%@ शेष";
+"%@\n\n%@\n\nThe incomplete Virtual Mac was retained in Temporary Installation Files as %@. It can be deleted from Settings." = "%@\n\n%@\n\nअधूरा वर्चुअल Mac अस्थायी इंस्टॉलेशन फ़ाइलों में %@ के रूप में रखा गया है। इसे सेटिंग्स से हटाया जा सकता है।";
+"%@\nState: %@\n%@\n\n" = "%@\nस्थिति: %@\n%@\n\n";
+"A previous macOS installation did not finish. You can review its details, keep it for debugging, or delete it." = "पिछला macOS इंस्टॉलेशन पूरा नहीं हुआ। आप उसका विवरण देख सकते हैं, डीबगिंग के लिए रख सकते हैं या हटा सकते हैं।";
+"About" = "जानकारी";
+"Accommodate Finger Double-Taps" = "उंगली से दो बार टैप करना आसान बनाएँ";
+"Add Shared Folder" = "शेयर किया गया फ़ोल्डर जोड़ें";
+"Advanced" = "उन्नत";
+"Allowed: %llu–%llu%@" = "अनुमत: %llu–%llu%@";
+"Always Hidden" = "हमेशा छिपा हुआ";
+"Always Visible" = "सदैव दृश्य";
+"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 चल रहा है";
+"Audio and Acceleration" = "ऑडियो और एक्सेलरेशन";
+"Audio Output" = "ऑडियो आउटपुट";
+"Automatic" = "स्वचालित";
+"Automatic hides the controls when an external keyboard and pointing device are connected." = "बाहरी कीबोर्ड और पॉइंटिंग डिवाइस कनेक्ट होने पर ऑटोमैटिक मोड कंट्रोल छिपा देता है।";
+"Available macOS Releases" = "उपलब्ध macOS रिलीज़";
+"Available macOS Versions" = "उपलब्ध macOS संस्करण";
+"Boot and Network" = "बूट और नेटवर्क";
+"Bottom Left" = "नीचे बाईं ओर";
+"Bottom Right" = "नीचे दाईं ओर";
+"Bridge" = "ब्रिज";
+"Bridge via %@" = "%@ के ज़रिए ब्रिज";
+"Bridge: %@" = "ब्रिज: %@";
+"Build %@" = "बिल्ड %@";
+"Calculating speed…" = "गति की गणना हो रही है…";
+"Cancel" = "रद्द करें";
+"Cancel Download" = "डाउनलोड रद्द करें";
+"Cancel Download?" = "डाउनलोड रद्द करें?";
+"Cancel Installation" = "इंस्टॉलेशन रद्द करें";
+"Cancel Installation?" = "इंस्टॉलेशन रद्द करें?";
+"Cellular" = "सेल्युलर";
+"Choose a Different Version" = "कोई दूसरा संस्करण चुनें";
+"Choose a macOS IPSW restore image." = "macOS IPSW रीस्टोर इमेज चुनें।";
+"Choose a name for this Virtual Mac." = "इस वर्चुअल Mac के लिए नाम चुनें।";
+"Choose Custom IPSW" = "कस्टम IPSW चुनें";
+"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. Renaming and deletion are unavailable while it is running." = "कॉन्फ़िगरेशन में बदलाव वर्चुअल Mac को बंद करके फिर शुरू करने पर लागू होते हैं। चलते समय उसका नाम बदलना या उसे हटाना उपलब्ध नहीं है।";
+"Configuration failed: %@" = "कॉन्फ़िगरेशन विफल: %@";
+"Configure %@" = "%@ कॉन्फ़िगर करें";
+"Continue" = "जारी रखें";
+"Controls Hidden" = "कंट्रोल छिपे हुए हैं";
+"Controls Opacity" = "नियंत्रणों की अपारदर्शिता";
+"Copy Library Path" = "लाइब्रेरी पथ कॉपी करें";
+"Copying Restore Image" = "रीस्टोर इमेज कॉपी हो रही है";
+"Could Not Copy IPSW" = "IPSW कॉपी नहीं हो सका";
+"Could Not Prepare Restore Image" = "रीस्टोर इमेज तैयार नहीं हो सकी";
+"Could Not Rename Virtual Mac" = "वर्चुअल Mac का नाम नहीं बदला जा सका";
+"Could Not Save" = "सेव नहीं हो सका";
+"Could Not Start Installer" = "इंस्टॉलर शुरू नहीं हो सका";
+"Couldn’t Export Diagnostics" = "डायग्नोस्टिक्स एक्सपोर्ट नहीं हो सके";
+"Create Virtual Mac" = "वर्चुअल Mac बनाएँ";
+"Custom" = "कस्टम";
+"Debug Logging" = "डीबग लॉगिंग";
+"Delete" = "हटाएँ";
+"Delete All" = "सभी हटाएँ";
+"Delete Cached Install Images" = "कैश की गई इंस्टॉलेशन इमेज मिटाएँ";
+"Delete Cached Install Images?" = "कैश की गई इंस्टॉलेशन इमेज मिटाएँ?";
+"Delete Incomplete Installation" = "अधूरा इंस्टॉलेशन हटाएँ";
+"Delete IPSW After Successful Installation" = "सफल इंस्टालेशन के बाद IPSW हटा दें";
+"Delete or rename the existing Virtual Mac first." = "पहले मौजूदा वर्चुअल Mac को हटाएँ या उसका नाम बदलें।";
+"Delete Temporary Installation Files" = "अस्थायी इंस्टॉलेशन फ़ाइलें मिटाएँ";
+"Delete Temporary Installation Files?" = "अस्थायी इंस्टॉलेशन फ़ाइलें हटाएँ?";
+"Delete Virtual Mac" = "वर्चुअल Mac हटाएँ";
+"Delete Virtual Mac?" = "वर्चुअल Mac हटाएँ?";
+"Developer Beta" = "डेवलपर बीटा";
+"Developers" = "डेवलपर";
+"Disabled" = "बंद";
+"Discard Changes" = "बदलाव छोड़ें";
+"Discard Changes?" = "बदलाव छोड़ें?";
+"Disk Exceeds Available Storage" = "डिस्क उपलब्ध स्टोरेज से बड़ी है";
+"Display" = "डिस्प्ले";
+"Display Height" = "डिस्प्ले की ऊँचाई";
+"Display Resolution" = "डिस्प्ले रिज़ॉल्यूशन";
+"Display Width" = "डिस्प्ले की चौड़ाई";
+"Done" = "हो गया";
+"Double-tap to hold or release this modifier" = "इस मॉडिफ़ायर को दबाए रखने या छोड़ने के लिए दो बार टैप करें";
+"Download Failed" = "डाउनलोड विफल";
+"Downloading macOS" = "macOS डाउनलोड हो रहा है";
+"Enter six hexadecimal octets separated by colons." = "कोलन से अलग किए गए छह हेक्साडेसिमल ऑक्टेट दर्ज करें।";
+"Ethernet (%@)" = "Ethernet (%@)";
+"Experimental" = "प्रायोगिक";
+"Export Diagnostics" = "निदान निर्यात करें";
+"Failed to load extracted frameworks" = "निकाले गए फ़्रेमवर्क लोड नहीं हो सके";
+"Failed to load the extracted Apple virtualization frameworks." = "निकाले गए Apple वर्चुअलाइज़ेशन फ़्रेमवर्क लोड नहीं हो सके।";
+"Fill Window" = "विंडो भरें";
+"Fit in Window" = "विंडो में फ़िट करें";
+"Fit in Window shows the entire display. Fill Window crops its edges when the window has a different shape." = "विंडो में फ़िट पूरी डिस्प्ले दिखाता है। विंडो भरें, विंडो का आकार अलग होने पर किनारों को काटता है।";
+"Force Shut Down" = "ज़बरदस्ती बंद करें";
+"Force Shut Down Virtual Mac?" = "वर्चुअल Mac को ज़बरदस्ती बंद करें?";
+"Full Screen" = "पूर्ण स्क्रीन";
+"General" = "सामान्य";
+"Get Help" = "सहायता पाएँ";
+"Height" = "ऊँचाई";
+"Hide for This Boot" = "इस बूट के लिए छिपाएँ";
+"Incomplete Installation" = "अधूरा इंस्टॉलेशन";
+"Incomplete Installations" = "अधूरे इंस्टॉलेशन";
+"Input" = "इनपुट";
+"Input While a Virtual Mac Is Running" = "वर्चुअल Mac चलने के दौरान इनपुट";
+"Install %@" = "%@ इंस्टॉल करें";
+"Install macOS" = "macOS इंस्टॉल करें";
+"Installation Details" = "इंस्टॉलेशन का विवरण";
+"Installation Failed" = "इंस्टॉलेशन विफल";
+"Installation progress may pause for several minutes while the Virtual Mac starts the installation environment. Your iPad will remain awake." = "वर्चुअल Mac द्वारा इंस्टॉलेशन परिवेश शुरू किए जाने के दौरान प्रगति कई मिनट तक रुक सकती है। आपका iPad सक्रिय रहेगा।";
+"Installation progress may remain unchanged while macOS prepares the next installation stage. Your iPad will remain awake." = "जब macOS अगला इंस्टॉलेशन चरण तैयार करता है, तब इंस्टॉलेशन की प्रगति कुछ समय तक नहीं बदल सकती। आपका iPad सक्रिय रहेगा।";
+"Installed, but settings save failed: %@" = "इंस्टॉल हो गया, लेकिन सेटिंग्स सेव नहीं हुईं: %@";
+"Installing macOS" = "macOS इंस्टॉल हो रहा है";
+"iPad Internet Connection" = "iPad का इंटरनेट कनेक्शन";
+"Keep Downloading" = "डाउनलोड जारी रखें";
+"Keep Editing" = "संपादन जारी रखें";
+"Keep Installing" = "इंस्टॉलेशन जारी रखें";
+"Keep Virtual Mac open. Your iPad will remain awake until the download finishes." = "वर्चुअल Mac को खुला रखें। डाउनलोड पूरा होने तक आपका iPad सक्रिय रहेगा।";
+"Keyboard" = "कीबोर्ड";
+"Keyboard Crash Workaround" = "कीबोर्ड क्रैश उपाय";
+"Keyboard Crash Workaround takes effect the next time Virtual Mac opens. Debug Logging takes effect the next time a Virtual Mac starts." = "कीबोर्ड क्रैश समाधान अगली बार वर्चुअल Mac खुलने पर लागू होगा। डीबग लॉगिंग अगली बार किसी वर्चुअल Mac के शुरू होने पर लागू होगी।";
+"Library Appearance" = "लाइब्रेरी का स्वरूप";
+"Loading extracted Apple virtualization frameworks…" = "निकाले गए Apple वर्चुअलाइज़ेशन फ़्रेमवर्क लोड हो रहे हैं…";
+"MAC Address" = "MAC पता";
+"Mac Keyboard" = "Mac कीबोर्ड";
+"Mac Keyboard Shortcuts" = "मैक कीबोर्ड शॉर्टकट";
+"Mac Trackpad" = "Mac ट्रैकपैड";
+"macOS Installed" = "macOS इंस्टॉल हो गया";
+"Memory" = "मेमोरी";
+"Microphone Input" = "माइक्रोफ़ोन इनपुट";
+"Minimum: %llu GB. The upper limit is determined by the filesystem." = "न्यूनतम: %llu GB। ऊपरी सीमा फ़ाइल सिस्टम तय करता है।";
+"Move Controls" = "कंट्रोल ले जाएँ";
+"Name" = "नाम";
+"Name Already Used" = "नाम पहले से उपयोग में है";
+"NAT: Share %@" = "NAT: %@ शेयर करें";
+"Network" = "नेटवर्क";
+"Network Attachment" = "नेटवर्क अटैचमेंट";
+"Network Bridge (%@)" = "नेटवर्क ब्रिज (%@)";
+"New Virtual Mac" = "नया वर्चुअल Mac";
+"No Results" = "कोई परिणाम नहीं";
+"No Virtual Macs match your search." = "आपकी खोज से कोई वर्चुअल Mac मेल नहीं खाता।";
+"OK" = "ठीक";
+"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 उपलब्ध है। डिस्क इमेज डायनेमिक है, लेकिन स्टोरेज भरने पर इंस्टॉलेशन या बाद का उपयोग विफल हो सकता है।";
+"Options" = "विकल्प";
+"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" = "पॉइंटिंग डिवाइस";
+"Portrait Full Screen" = "पोर्ट्रेट पूर्ण स्क्रीन";
+"Preparing installation…" = "इंस्टॉलेशन तैयार हो रहा है…";
+"Preparing the IPSW for installation. Your iPad will remain awake." = "IPSW को इंस्टॉलेशन के लिए तैयार किया जा रहा है। आपका iPad सक्रिय रहेगा।";
+"Preparing virtual hardware…" = "वर्चुअल हार्डवेयर तैयार हो रहा है…";
+"Preparing…" = "तैयार हो रहा है…";
+"Processors" = "प्रोसेसर";
+"Read & Write" = "पढ़ें और लिखें";
+"Read Only" = "केवल पढ़ने योग्य";
+"Reading restore image…" = "रीस्टोर इमेज पढ़ी जा रही है…";
+"Recommended macOS Release" = "सुझाया गया macOS रिलीज़";
+"Recover Networking After Sleep" = "सोने के बाद नेटवर्किंग पुनः प्राप्त करें";
+"Release" = "रिलीज़";
+"Remove" = "हटाएँ";
+"Report Issue" = "समस्या की रिपोर्ट करें";
+"Reset" = "रीसेट करें";
+"Reset Settings" = "सेटिंग्स फिर से करिए";
+"Reset Settings?" = "सेटिंग्स रीसेट करें?";
+"Resolution" = "रिज़ॉल्यूशन";
+"Resources" = "संसाधन";
+"Resume" = "फिर शुरू करें";
+"Save" = "सहेजें";
+"Search Virtual Mac" = "वर्चुअल Mac खोजें";
+"Settings" = "सेटिंग्स";
+"Shared Folder" = "शेयर किया गया फ़ोल्डर";
+"Shared via %@" = "%@ के ज़रिए शेयर किया गया";
+"Show Developer Betas" = "डेवलपर बीटा दिखाएँ";
+"Show Library" = "लाइब्रेरी दिखाएँ";
+"Show Minor Releases" = "माइनर रिलीज़ दिखाएँ";
+"Show Version Details" = "संस्करण विवरण दिखाएँ";
+"Show Virtual Mac Controls" = "वर्चुअल Mac कंट्रोल दिखाएँ";
+"Start" = "शुरू करें";
+"Start %@" = "%@ शुरू करें";
+"Start in Recovery" = "रिकवरी में शुरू करें";
+"Start on Launch" = "खोलने पर शुरू करें";
+"Starting installation environment…" = "इंस्टॉलेशन परिवेश शुरू हो रहा है…";
+"Starting installation services…" = "इंस्टॉलेशन सेवाएँ शुरू हो रही हैं…";
+"Starting installation…" = "इंस्टॉलेशन शुरू हो रहा है…";
+"Starting Virtual Mac…" = "वर्चुअल Mac शुरू हो रहा है…";
+"Storage" = "स्टोरेज";
+"Support" = "सहायता";
+"Support for %@ is experimental" = "%@ का समर्थन प्रायोगिक है";
+"Suppress iPadOS Home Indicator" = "iPadOS होम इंडिकेटर छिपाएँ";
+"Suppress iPadOS Multitasking Gestures" = "iPadOS मल्टीटास्किंग जेस्चर बंद करें";
+"Suppress iPadOS System Edge Gestures" = "iPadOS सिस्टम के किनारे वाले जेस्चर बंद करें";
+"Switch to Running Virtual Mac" = "चल रहे वर्चुअल Mac पर जाएँ";
+"Switch to the running Virtual Mac and shut it down before starting another one." = "किसी अन्य को शुरू करने से पहले चल रहे वर्चुअल Mac पर जाएँ और उसे बंद करें।";
+"The diagnostics archive could not be created." = "डायग्नोस्टिक्स आर्काइव नहीं बनाया जा सका।";
+"The first progress value can take several minutes while the Virtual Mac changes from DFU to RestoreOS. Your iPad will remain awake." = "वर्चुअल Mac के DFU से RestoreOS में बदलने के दौरान पहला प्रगति मान आने में कई मिनट लग सकते हैं। आपका iPad सक्रिय रहेगा।";
+"The incomplete Virtual Mac and its installation files will be deleted." = "अधूरा वर्चुअल Mac और उसकी इंस्टॉलेशन फ़ाइलें हटा दी जाएँगी।";
+"The install image and temporary installation files were kept so the failure can be diagnosed. You can export diagnostics from Settings." = "विफलता की जाँच के लिए इंस्टॉल इमेज और अस्थायी इंस्टॉलेशन फ़ाइलें रखी गई हैं। आप सेटिंग्स से डायग्नोस्टिक्स एक्सपोर्ट कर सकते हैं।";
+"The installer could not be started: %s" = "इंस्टॉलर शुरू नहीं किया जा सका: %s";
+"The new Virtual Mac is ready to use." = "नया वर्चुअल Mac उपयोग के लिए तैयार है।";
+"The partial restore image will be deleted." = "आंशिक रीस्टोर इमेज हटा दी जाएगी।";
+"The Virtual Mac configuration could not be created." = "वर्चुअल Mac कॉन्फ़िगरेशन नहीं बनाया जा सका।";
+"The Virtual Mac did not publish a display framebuffer." = "वर्चुअल Mac ने डिस्प्ले फ़्रेमबफ़र प्रकाशित नहीं किया।";
+"The Virtual Mac display view is unavailable" = "वर्चुअल Mac डिस्प्ले व्यू उपलब्ध नहीं है";
+"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 show the controls again during this boot, touch and hold the Virtual Mac icon on the Home Screen, then choose Show Virtual Mac Controls." = "इस बूट के दौरान कंट्रोल फिर दिखाने के लिए होम स्क्रीन पर वर्चुअल Mac आइकन को दबाकर रखें, फिर वर्चुअल Mac कंट्रोल दिखाएँ चुनें।";
+"Top Left" = "ऊपर बाईं ओर";
+"Top Right" = "ऊपर दाईं ओर";
+"Touch and Hold for Secondary Click" = "सेकेंडरी क्लिक के लिए स्पर्श करके रखें";
+"Two-Finger Tap for Secondary Click" = "सेकेंडरी क्लिक के लिए टू-फिंगर टैप";
+"Two-Finger Touch Scrolling" = "टू-फिंगर टच स्क्रॉलिंग";
+"Unknown" = "अज्ञात";
+"Unsaved changes in macOS may be lost." = "macOS में सेव न किए गए बदलाव खो सकते हैं।";
+"Unsupported Restore Image" = "असमर्थित रीस्टोर इमेज";
+"USB Keyboard" = "USB कीबोर्ड";
+"USB Mouse" = "USB माउस";
+"Use an IPSW on your iPad" = "iPad पर मौजूद IPSW का उपयोग करें";
+"Use USB Keyboard for macOS Monterey. Newer guests support the Mac keyboard device." = "macOS Monterey के लिए USB कीबोर्ड का उपयोग करें। macOS के नए संस्करण Mac कीबोर्ड डिवाइस का समर्थन करते हैं।";
+"Use USB Mouse for macOS Monterey. Newer guests support the Mac trackpad device." = "macOS Monterey के लिए USB माउस का उपयोग करें। macOS के नए संस्करण Mac ट्रैकपैड डिवाइस का समर्थन करते हैं।";
+"Validation failed: %@" = "वैलिडेशन विफल: %@";
+"Verify your iPad has sufficient free storage and try again." = "पक्का करें कि iPad में पर्याप्त खाली स्टोरेज है और फिर प्रयास करें।";
+"Version" = "संस्करण";
+"Video Encoding and Decoding Acceleration" = "वीडियो एन्कोडिंग और डिकोडिंग त्वरण";
+"View Details" = "विवरण देखें";
+"Virtual Mac" = "वर्चुअल Mac";
+"Virtual Mac %@ does not support %@. Check for updates in Sileo." = "Virtual Mac %@, %@ का समर्थन नहीं करता। Sileo में अपडेट देखें।";
+"Virtual Mac Controls" = "वर्चुअल Mac नियंत्रण";
+"Virtual Mac devices are stored in %@." = "वर्चुअल Mac %@ में संग्रहीत किए जाते हैं।";
+"Virtual Mac Display" = "वर्चुअल 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 डिस्प्ले तैयार हो रही है";
+"Virtual Mac start failed: %@" = "वर्चुअल Mac शुरू नहीं हो सका: %@";
+"Virtual Mac Stopped" = "वर्चुअल Mac रुक गया";
+"Virtual Mac stopped: %@" = "वर्चुअल Mac रुक गया: %@";
+"VPN" = "VPN";
+"Waiting for installation output…" = "इंस्टॉलेशन आउटपुट की प्रतीक्षा हो रही है…";
+"Welcome to Virtual Mac" = "वर्चुअल Mac में आपका स्वागत है";
+"Wi-Fi" = "Wi-Fi";
+"Width" = "चौड़ाई";
+"You can also copy an existing Virtual Mac bundle to /var/mobile/Media/VirtualMac using an app such as iMazing or Filza." = "आप iMazing या Filza जैसे ऐप से किसी मौजूदा वर्चुअल Mac बंडल को /var/mobile/Media/VirtualMac में कॉपी भी कर सकते हैं।";
+"Your changes to this Virtual Mac will not be saved." = "इस वर्चुअल Mac में आपके बदलाव सेव नहीं होंगे।";
+"“%@” and all files stored in it will be permanently deleted." = "“%@” और उसमें रखी सभी फ़ाइलें स्थायी रूप से हटा दी जाएँगी।";
diff --git a/VirtualMac/resources/Localizations/hr.lproj/InfoPlist.strings b/VirtualMac/resources/Localizations/hr.lproj/InfoPlist.strings
new file mode 100644
index 0000000..88a3ada
--- /dev/null
+++ b/VirtualMac/resources/Localizations/hr.lproj/InfoPlist.strings
@@ -0,0 +1,2 @@
+"CFBundleDisplayName" = "Virtualni Mac";
+"CFBundleName" = "Virtualni Mac";
diff --git a/VirtualMac/resources/Localizations/hr.lproj/Localizable.strings b/VirtualMac/resources/Localizations/hr.lproj/Localizable.strings
new file mode 100644
index 0000000..846d08d
--- /dev/null
+++ b/VirtualMac/resources/Localizations/hr.lproj/Localizable.strings
@@ -0,0 +1,247 @@
+/* Virtual Mac 1.1 localization. */
+" · Legacy" = " · Starije";
+"%.0f%% complete" = "Dovršeno %.0f%%";
+"%@ CPU · %@ GB RAM · %llu GB · %@%@" = "%@ CPU · %@ GB RAM-a · %llu GB · %@%@";
+"%@ is not supported" = "%@ nije podržan";
+"%@ 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: %@";
+"%@\n\n%@\n\nThe incomplete Virtual Mac was retained in Temporary Installation Files as %@. It can be deleted from Settings." = "%@\n\n%@\n\nNedovršeni virtualni Mac zadržan je u Privremenim instalacijskim datotekama kao %@. Možete ga izbrisati u Postavkama.";
+"%@\nState: %@\n%@\n\n" = "%@\nStanje: %@\n%@\n\n";
+"A previous macOS installation did not finish. You can review its details, keep it for debugging, or delete it." = "Prethodna instalacija sustava macOS nije dovršena. Možete pregledati pojedinosti, zadržati je radi otklanjanja pogrešaka ili je izbrisati.";
+"About" = "Informacije";
+"Accommodate Finger Double-Taps" = "Olakšaj dvostruki dodir prstom";
+"Add Shared Folder" = "Dodaj dijeljenu mapu";
+"Advanced" = "Napredno";
+"Allowed: %llu–%llu%@" = "Dopušteno: %llu–%llu%@";
+"Always Hidden" = "Uvijek skriveno";
+"Always Visible" = "Uvijek vidljiv";
+"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";
+"Audio and Acceleration" = "Zvuk i ubrzanje";
+"Audio Output" = "Izlaz zvuka";
+"Automatic" = "Automatski";
+"Automatic hides the controls when an external keyboard and pointing device are connected." = "Automatski način skriva kontrole kada su povezani vanjska tipkovnica i pokazivački uređaj.";
+"Available macOS Releases" = "Dostupna izdanja macOS-a";
+"Available macOS Versions" = "Dostupne verzije sustava macOS";
+"Boot and Network" = "Pokretanje i mreža";
+"Bottom Left" = "Dolje lijevo";
+"Bottom Right" = "Dolje desno";
+"Bridge" = "Most";
+"Bridge via %@" = "Premosti putem %@";
+"Bridge: %@" = "Most: %@";
+"Build %@" = "Međuverzija %@";
+"Calculating speed…" = "Izračun brzine…";
+"Cancel" = "Odustani";
+"Cancel Download" = "Otkaži preuzimanje";
+"Cancel Download?" = "Otkazati preuzimanje?";
+"Cancel Installation" = "Otkaži instalaciju";
+"Cancel Installation?" = "Otkazati instalaciju?";
+"Cellular" = "Mobilna mreža";
+"Choose a Different Version" = "Odaberi drugu verziju";
+"Choose a macOS IPSW restore image." = "Odaberite macOS IPSW sliku za obnovu.";
+"Choose a name for this Virtual Mac." = "Odaberite naziv za ovaj Virtualni Mac.";
+"Choose Custom IPSW" = "Odaberi prilagođeni IPSW";
+"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. Renaming and deletion are unavailable while it is running." = "Promjene konfiguracije primjenjuju se nakon isključivanja i ponovnog pokretanja Virtualnog Maca. Preimenovanje i brisanje nisu dostupni dok je pokrenut.";
+"Configuration failed: %@" = "Konfiguracija nije uspjela: %@";
+"Configure %@" = "Konfiguriraj %@";
+"Continue" = "Nastavi";
+"Controls Hidden" = "Kontrole su skrivene";
+"Controls Opacity" = "Neprozirnost kontrola";
+"Copy Library Path" = "Kopiraj put biblioteke";
+"Copying Restore Image" = "Kopiranje slike za obnovu";
+"Could Not Copy IPSW" = "IPSW nije moguće kopirati";
+"Could Not Prepare Restore Image" = "Sliku za obnovu nije moguće pripremiti";
+"Could Not Rename Virtual Mac" = "Virtualni Mac nije moguće preimenovati";
+"Could Not Save" = "Nije moguće spremiti";
+"Could Not Start Installer" = "Instalacijski program nije moguće pokrenuti";
+"Couldn’t Export Diagnostics" = "Nije moguće izvesti dijagnostiku";
+"Create Virtual Mac" = "Izradi Virtualni Mac";
+"Custom" = "Prilagođeno";
+"Debug Logging" = "Bilježenje za otklanjanje pogrešaka";
+"Delete" = "Izbriši";
+"Delete All" = "Izbriši sve";
+"Delete Cached Install Images" = "Izbriši predmemorirane instalacijske slike";
+"Delete Cached Install Images?" = "Izbrisati predmemorirane instalacijske slike?";
+"Delete Incomplete Installation" = "Izbriši nedovršenu instalaciju";
+"Delete IPSW After Successful Installation" = "Izbrišite IPSW nakon uspješne instalacije";
+"Delete or rename the existing Virtual Mac first." = "Najprije izbrišite ili preimenujte postojeći Virtualni Mac.";
+"Delete Temporary Installation Files" = "Izbriši privremene instalacijske datoteke";
+"Delete Temporary Installation Files?" = "Izbrisati privremene instalacijske datoteke?";
+"Delete Virtual Mac" = "Izbriši Virtualni Mac";
+"Delete Virtual Mac?" = "Izbrisati Virtualni Mac?";
+"Developer Beta" = "Razvojna beta-verzija";
+"Developers" = "Programeri";
+"Disabled" = "Onemogućeno";
+"Discard Changes" = "Odbaci promjene";
+"Discard Changes?" = "Odbaciti promjene?";
+"Disk Exceeds Available Storage" = "Disk premašuje dostupnu pohranu";
+"Display" = "Zaslon";
+"Display Height" = "Visina zaslona";
+"Display Resolution" = "Razlučivost zaslona";
+"Display Width" = "Širina zaslona";
+"Done" = "Gotovo";
+"Double-tap to hold or release this modifier" = "Dvaput dodirnite kako biste zadržali ili otpustili ovu modifikacijsku tipku";
+"Download Failed" = "Preuzimanje nije uspjelo";
+"Downloading macOS" = "Preuzimanje macOS-a";
+"Enter six hexadecimal octets separated by colons." = "Unesite šest heksadecimalnih okteta odvojenih dvotočkama.";
+"Ethernet (%@)" = "Ethernet (%@)";
+"Experimental" = "Eksperimentalno";
+"Export Diagnostics" = "Izvoz dijagnostike";
+"Failed to load extracted frameworks" = "Učitavanje izdvojenih frameworka nije uspjelo";
+"Failed to load the extracted Apple virtualization frameworks." = "Nije moguće učitati izdvojene Appleove frameworke za virtualizaciju.";
+"Fill Window" = "Ispuni prozor";
+"Fit in Window" = "Prilagodi prozoru";
+"Fit in Window shows the entire display. Fill Window crops its edges when the window has a different shape." = "Prilagodi prozoru prikazuje cijeli zaslon. Ispuni prozor obrezuje rubove kada prozor ima drukčiji oblik.";
+"Force Shut Down" = "Prisilno isključi";
+"Force Shut Down Virtual Mac?" = "Prisilno isključiti Virtualni Mac?";
+"Full Screen" = "Cijeli zaslon";
+"General" = "Općenito";
+"Get Help" = "Pomoć";
+"Height" = "Visina";
+"Hide for This Boot" = "Sakrij za ovo pokretanje";
+"Incomplete Installation" = "Nedovršena instalacija";
+"Incomplete Installations" = "Nedovršene instalacije";
+"Input" = "Ulaz";
+"Input While a Virtual Mac Is Running" = "Unos dok je virtualni Mac pokrenut";
+"Install %@" = "Instaliraj %@";
+"Install macOS" = "Instalirajte macOS";
+"Installation Details" = "Pojedinosti instalacije";
+"Installation Failed" = "Instalacija nije uspjela";
+"Installation progress may pause for several minutes while the Virtual Mac starts the installation environment. Your iPad will remain awake." = "Napredak instalacije može zastati nekoliko minuta dok Virtualni Mac pokreće instalacijsko okruženje. Vaš iPad ostat će aktivan.";
+"Installation progress may remain unchanged while macOS prepares the next installation stage. Your iPad will remain awake." = "Napredak instalacije može ostati nepromijenjen dok macOS priprema sljedeću fazu instalacije. Vaš iPad ostat će aktivan.";
+"Installed, but settings save failed: %@" = "Instalirano, ali spremanje postavki nije uspjelo: %@";
+"Installing macOS" = "Instaliranje macOS-a";
+"iPad Internet Connection" = "Internetska veza iPada";
+"Keep Downloading" = "Nastavi preuzimati";
+"Keep Editing" = "Nastavi uređivati";
+"Keep Installing" = "Nastavi instalirati";
+"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";
+"Keyboard Crash Workaround" = "Zaobilazno rješenje za rušenje tipkovnice";
+"Keyboard Crash Workaround takes effect the next time Virtual Mac opens. Debug Logging takes effect the next time a Virtual Mac starts." = "Rješenje za rušenje tipkovnice primijenit će se pri sljedećem otvaranju aplikacije Virtualni Mac. Bilježenje za otklanjanje pogrešaka primijenit će se pri sljedećem pokretanju virtualnog Maca.";
+"Library Appearance" = "Izgled medijateke";
+"Loading extracted Apple virtualization frameworks…" = "Učitavanje izdvojenih Appleovih frameworka za virtualizaciju…";
+"MAC Address" = "MAC adresa";
+"Mac Keyboard" = "Mac tipkovnica";
+"Mac Keyboard Shortcuts" = "Tipkovnički prečaci za Mac";
+"Mac Trackpad" = "Mac dodirna ploha";
+"macOS Installed" = "macOS je instaliran";
+"Memory" = "Memorija";
+"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";
+"Name" = "Naziv";
+"Name Already Used" = "Naziv se već koristi";
+"NAT: Share %@" = "NAT: Dijeli %@";
+"Network" = "Mreža";
+"Network Attachment" = "Mrežna veza";
+"Network Bridge (%@)" = "Mrežni most (%@)";
+"New Virtual Mac" = "Novi Virtualni Mac";
+"No Results" = "Nema rezultata";
+"No Virtual Macs match your search." = "Nijedan Virtualni Mac ne odgovara vašem pretraživanju.";
+"OK" = "U redu";
+"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.";
+"Options" = "Opcije";
+"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";
+"Portrait Full Screen" = "Cijeli zaslon uspravno";
+"Preparing installation…" = "Priprema instalacije…";
+"Preparing the IPSW for installation. Your iPad will remain awake." = "Priprema IPSW-a za instalaciju. Vaš iPad ostat će aktivan.";
+"Preparing virtual hardware…" = "Priprema virtualnog hardvera…";
+"Preparing…" = "Priprema…";
+"Processors" = "Procesori";
+"Read & Write" = "Čitanje i pisanje";
+"Read Only" = "Samo za čitanje";
+"Reading restore image…" = "Čitanje slike za obnovu…";
+"Recommended macOS Release" = "Preporučeno izdanje macOS-a";
+"Recover Networking After Sleep" = "Oporavak mreže nakon mirovanja";
+"Release" = "Izdanje";
+"Remove" = "Ukloni";
+"Report Issue" = "Prijavi problem";
+"Reset" = "Resetiraj";
+"Reset Settings" = "Resetiraj postavke";
+"Reset Settings?" = "Resetirati postavke?";
+"Resolution" = "Razlučivost";
+"Resources" = "Resursi";
+"Resume" = "Nastavi";
+"Save" = "Spremi";
+"Search Virtual Mac" = "Pretraži Virtualni Mac";
+"Settings" = "postavke";
+"Shared Folder" = "Dijeljena mapa";
+"Shared via %@" = "Dijeljeno putem %@";
+"Show Developer Betas" = "Prikaži razvojne beta-verzije";
+"Show Library" = "Prikaži biblioteku";
+"Show Minor Releases" = "Prikaži manja izdanja";
+"Show Version Details" = "Prikaži pojedinosti verzije";
+"Show Virtual Mac Controls" = "Prikaži kontrole Virtualnog Maca";
+"Start" = "Pokreni";
+"Start %@" = "Pokreni %@";
+"Start in Recovery" = "Pokreni u Oporavku";
+"Start on Launch" = "Pokreni pri otvaranju";
+"Starting installation environment…" = "Pokretanje instalacijskog okruženja…";
+"Starting installation services…" = "Pokretanje instalacijskih servisa…";
+"Starting installation…" = "Pokretanje instalacije…";
+"Starting Virtual Mac…" = "Pokretanje Virtualnog Maca…";
+"Storage" = "Pohrana";
+"Support" = "Podrška";
+"Support for %@ is experimental" = "Podrška za %@ je eksperimentalna";
+"Suppress iPadOS Home Indicator" = "Sakrij indikator početnog zaslona sustava iPadOS";
+"Suppress iPadOS Multitasking Gestures" = "Onemogući geste za višezadaćnost sustava iPadOS";
+"Suppress iPadOS System Edge Gestures" = "Onemogući sistemske geste s rubova zaslona sustava iPadOS";
+"Switch to Running Virtual Mac" = "Prijeđi na pokrenuti Virtualni Mac";
+"Switch to the running Virtual Mac and shut it down before starting another one." = "Prijeđite na pokrenuti Virtualni Mac i isključite ga prije pokretanja drugoga.";
+"The diagnostics archive could not be created." = "Nije moguće izraditi dijagnostičku arhivu.";
+"The first progress value can take several minutes while the Virtual Mac changes from DFU to RestoreOS. Your iPad will remain awake." = "Prva vrijednost napretka može potrajati nekoliko minuta dok Virtualni Mac prelazi iz DFU-a u RestoreOS. Vaš iPad ostat će aktivan.";
+"The incomplete Virtual Mac and its installation files will be deleted." = "Nedovršeni Virtualni Mac i njegove instalacijske datoteke bit će izbrisani.";
+"The install image and temporary installation files were kept so the failure can be diagnosed. You can export diagnostics from Settings." = "Instalacijska slika i privremene instalacijske datoteke zadržane su radi dijagnosticiranja pogreške. Dijagnostiku možete izvesti u Postavkama.";
+"The installer could not be started: %s" = "Instalacijski program nije moguće pokrenuti: %s";
+"The new Virtual Mac is ready to use." = "Novi Virtualni Mac spreman je za uporabu.";
+"The partial restore image will be deleted." = "Djelomično preuzeta slika za obnovu bit će izbrisana.";
+"The Virtual Mac configuration could not be created." = "Nije moguće izraditi konfiguraciju Virtualnog Maca.";
+"The Virtual Mac did not publish a display framebuffer." = "Virtualni Mac nije objavio framebuffer zaslona.";
+"The Virtual Mac display view is unavailable" = "Prikaz zaslona Virtualnog Maca nije dostupan";
+"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 show the controls again during this boot, touch and hold the Virtual Mac icon on the Home Screen, then choose Show Virtual Mac Controls." = "Za ponovni prikaz kontrola tijekom ovog pokretanja dodirnite i držite ikonu Virtualnog Maca na početnom zaslonu, a zatim odaberite Prikaži kontrole Virtualnog Maca.";
+"Top Left" = "Gore lijevo";
+"Top Right" = "Gore desno";
+"Touch and Hold for Secondary Click" = "Dodirnite i držite za sekundarni klik";
+"Two-Finger Tap for Secondary Click" = "Dodir s dva prsta za sekundarni klik";
+"Two-Finger Touch Scrolling" = "Pomicanje dodirom s dva prsta";
+"Unknown" = "Nepoznato";
+"Unsaved changes in macOS may be lost." = "Nespremljene promjene u macOS-u mogu se izgubiti.";
+"Unsupported Restore Image" = "Nepodržana slika za obnovu";
+"USB Keyboard" = "USB tipkovnica";
+"USB Mouse" = "USB miš";
+"Use an IPSW on your iPad" = "Upotrijebi IPSW na iPadu";
+"Use USB Keyboard for macOS Monterey. Newer guests support the Mac keyboard device." = "Za macOS Monterey upotrijebite USB tipkovnicu. Novije verzije macOS-a podržavaju Mac tipkovnicu.";
+"Use USB Mouse for macOS Monterey. Newer guests support the Mac trackpad device." = "Za macOS Monterey upotrijebite USB miš. Novije verzije macOS-a podržavaju Mac dodirnu plohu.";
+"Validation failed: %@" = "Provjera valjanosti nije uspjela: %@";
+"Verify your iPad has sufficient free storage and try again." = "Provjerite ima li iPad dovoljno slobodnog prostora i pokušajte ponovno.";
+"Version" = "Verzija";
+"Video Encoding and Decoding Acceleration" = "Ubrzanje kodiranja i dekodiranja videozapisa";
+"View Details" = "Prikaži pojedinosti";
+"Virtual Mac" = "Virtualni Mac";
+"Virtual Mac %@ does not support %@. Check for updates in Sileo." = "Virtual Mac %@ ne podržava %@. Potražite ažuriranja u Sileu.";
+"Virtual Mac Controls" = "Kontrole Virtualnog Maca";
+"Virtual Mac devices are stored in %@." = "Virtualni Macovi pohranjuju se u %@.";
+"Virtual Mac Display" = "Zaslon 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";
+"Virtual Mac start failed: %@" = "Pokretanje Virtualnog Maca nije uspjelo: %@";
+"Virtual Mac Stopped" = "Virtualni Mac se zaustavio";
+"Virtual Mac stopped: %@" = "Virtualni Mac je zaustavljen: %@";
+"VPN" = "VPN";
+"Waiting for installation output…" = "Čekanje izlaza instalacije…";
+"Welcome to Virtual Mac" = "Dobro došli u Virtualni Mac";
+"Wi-Fi" = "Wi-Fi";
+"Width" = "Širina";
+"You can also copy an existing Virtual Mac bundle to /var/mobile/Media/VirtualMac using an app such as iMazing or Filza." = "Postojeći paket Virtualnog Maca možete kopirati i u /var/mobile/Media/VirtualMac s pomoću aplikacije poput iMazinga ili Filze.";
+"Your changes to this Virtual Mac will not be saved." = "Vaše promjene na ovom Virtualnom Macu neće se spremiti.";
+"“%@” and all files stored in it will be permanently deleted." = "„%@” i sve datoteke pohranjene u njemu trajno će se izbrisati.";
diff --git a/VirtualMac/resources/Localizations/hu.lproj/InfoPlist.strings b/VirtualMac/resources/Localizations/hu.lproj/InfoPlist.strings
new file mode 100644
index 0000000..85fda65
--- /dev/null
+++ b/VirtualMac/resources/Localizations/hu.lproj/InfoPlist.strings
@@ -0,0 +1,2 @@
+"CFBundleDisplayName" = "Virtuális Mac";
+"CFBundleName" = "Virtuális Mac";
diff --git a/VirtualMac/resources/Localizations/hu.lproj/Localizable.strings b/VirtualMac/resources/Localizations/hu.lproj/Localizable.strings
new file mode 100644
index 0000000..d23772b
--- /dev/null
+++ b/VirtualMac/resources/Localizations/hu.lproj/Localizable.strings
@@ -0,0 +1,247 @@
+/* Virtual Mac 1.1 localization. */
+" · Legacy" = " · Régi";
+"%.0f%% complete" = "%.0f%% kész";
+"%@ CPU · %@ GB RAM · %llu GB · %@%@" = "%@ CPU · %@ GB RAM · %llu GB · %@%@";
+"%@ is not supported" = "A(z) %@ nem támogatott";
+"%@ 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";
+"%@\n\n%@\n\nThe incomplete Virtual Mac was retained in Temporary Installation Files as %@. It can be deleted from Settings." = "%@\n\n%@\n\nA hiányos virtuális Mac megmaradt az Ideiglenes telepítési fájlok között %@ néven. A Beállításokban törölhető.";
+"%@\nState: %@\n%@\n\n" = "%@\nÁllapot: %@\n%@\n\n";
+"A previous macOS installation did not finish. You can review its details, keep it for debugging, or delete it." = "Egy korábbi macOS-telepítés nem fejeződött be. Áttekintheti a részleteit, megtarthatja hibakereséshez, vagy törölheti.";
+"About" = "Névjegy";
+"Accommodate Finger Double-Taps" = "Az ujjal végzett dupla koppintás megkönnyítése";
+"Add Shared Folder" = "Megosztott mappa hozzáadása";
+"Advanced" = "Speciális";
+"Allowed: %llu–%llu%@" = "Engedélyezett: %llu–%llu%@";
+"Always Hidden" = "Mindig rejtett";
+"Always Visible" = "Mindig látható";
+"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";
+"Audio and Acceleration" = "Hang és gyorsítás";
+"Audio Output" = "Hangkimenet";
+"Automatic" = "Automatikus";
+"Automatic hides the controls when an external keyboard and pointing device are connected." = "Az Automatikus mód elrejti a vezérlőket, ha külső billentyűzet és mutatóeszköz csatlakozik.";
+"Available macOS Releases" = "Elérhető macOS-kiadások";
+"Available macOS Versions" = "Elérhető macOS-verziók";
+"Boot and Network" = "Indítás és hálózat";
+"Bottom Left" = "Bal alsó";
+"Bottom Right" = "Jobb alsó";
+"Bridge" = "Híd";
+"Bridge via %@" = "Áthidalás ezen keresztül: %@";
+"Bridge: %@" = "Híd: %@";
+"Build %@" = "Buildszám %@";
+"Calculating speed…" = "Sebesség kiszámítása…";
+"Cancel" = "Mégsem";
+"Cancel Download" = "Letöltés megszakítása";
+"Cancel Download?" = "Megszakítja a letöltést?";
+"Cancel Installation" = "Telepítés megszakítása";
+"Cancel Installation?" = "Megszakítja a telepítést?";
+"Cellular" = "Mobilhálózat";
+"Choose a Different Version" = "Másik verzió kiválasztása";
+"Choose a macOS IPSW restore image." = "Válasszon egy macOS IPSW-visszaállítási lemezképet.";
+"Choose a name for this Virtual Mac." = "Adjon nevet ennek a virtuális Macnek.";
+"Choose Custom IPSW" = "Egyéni IPSW kiválasztása";
+"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. Renaming and deletion are unavailable while it is running." = "A konfiguráció módosításai a virtuális Mac leállítása és újbóli indítása után lépnek életbe. Futás közben nem nevezhető át és nem törölhető.";
+"Configuration failed: %@" = "Sikertelen konfiguráció: %@";
+"Configure %@" = "%@ konfigurálása";
+"Continue" = "Folytatás";
+"Controls Hidden" = "Vezérlők elrejtve";
+"Controls Opacity" = "Vezérlők átlátszatlansága";
+"Copy Library Path" = "Könyvtár elérési út másolása";
+"Copying Restore Image" = "Helyreállítási lemezkép másolása";
+"Could Not Copy IPSW" = "Az IPSW nem másolható";
+"Could Not Prepare Restore Image" = "A visszaállítási lemezkép nem készíthető elő";
+"Could Not Rename Virtual Mac" = "A Virtuális Mac nem nevezhető át";
+"Could Not Save" = "Nem sikerült menteni";
+"Could Not Start Installer" = "A telepítő nem indítható el";
+"Couldn’t Export Diagnostics" = "A diagnosztika nem exportálható";
+"Create Virtual Mac" = "Virtuális Mac létrehozása";
+"Custom" = "Egyéni";
+"Debug Logging" = "Hibakeresési naplózás";
+"Delete" = "Törlés";
+"Delete All" = "Összes törlése";
+"Delete Cached Install Images" = "Gyorsítótárazott telepítési lemezképek törlése";
+"Delete Cached Install Images?" = "Törli a gyorsítótárazott telepítési lemezképeket?";
+"Delete Incomplete Installation" = "Hiányos telepítés törlése";
+"Delete IPSW After Successful Installation" = "IPSW törlése sikeres telepítés után";
+"Delete or rename the existing Virtual Mac first." = "Előbb törölje vagy nevezze át a meglévő virtuális Macet.";
+"Delete Temporary Installation Files" = "Ideiglenes telepítési fájlok törlése";
+"Delete Temporary Installation Files?" = "Törli az ideiglenes telepítési fájlokat?";
+"Delete Virtual Mac" = "Virtuális Mac törlése";
+"Delete Virtual Mac?" = "Törli a virtuális Macet?";
+"Developer Beta" = "Fejlesztői béta";
+"Developers" = "Fejlesztők";
+"Disabled" = "Kikapcsolva";
+"Discard Changes" = "Módosítások elvetése";
+"Discard Changes?" = "Elveti a módosításokat?";
+"Disk Exceeds Available Storage" = "A lemez meghaladja a rendelkezésre álló tárhelyet";
+"Display" = "Kijelző";
+"Display Height" = "Kijelző magassága";
+"Display Resolution" = "Kijelző felbontása";
+"Display Width" = "Kijelző szélessége";
+"Done" = "Kész";
+"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 Failed" = "A letöltés sikertelen";
+"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 (%@)";
+"Experimental" = "Kísérleti";
+"Export Diagnostics" = "Diagnosztika exportálása";
+"Failed to load extracted frameworks" = "A kibontott keretrendszerek nem tölthetők be";
+"Failed to load the extracted Apple virtualization frameworks." = "A kibontott Apple virtualizációs keretrendszerek nem tölthetők be.";
+"Fill Window" = "Az ablak kitöltése";
+"Fit in Window" = "Ablakhoz igazítás";
+"Fit in Window shows the entire display. Fill Window crops its edges when the window has a different shape." = "Az Ablakhoz igazítás a teljes kijelzőt mutatja. Az Ablak kitöltése levágja a széleket, ha az ablak alakja eltér.";
+"Force Shut Down" = "Kényszerített leállítás";
+"Force Shut Down Virtual Mac?" = "Kényszeríti a virtuális Mac leállítását?";
+"Full Screen" = "Teljes képernyő";
+"General" = "Általános";
+"Get Help" = "Súgó";
+"Height" = "Magasság";
+"Hide for This Boot" = "Elrejtés erre az indításra";
+"Incomplete Installation" = "Hiányos telepítés";
+"Incomplete Installations" = "Hiányos telepítések";
+"Input" = "Bemenet";
+"Input While a Virtual Mac Is Running" = "Bevitel virtuális Mac futtatása közben";
+"Install %@" = "%@ telepítése";
+"Install macOS" = "macOS telepítése";
+"Installation Details" = "Telepítés részletei";
+"Installation Failed" = "A telepítés sikertelen";
+"Installation progress may pause for several minutes while the Virtual Mac starts the installation environment. Your iPad will remain awake." = "A telepítés előrehaladása néhány percig szünetelhet, amíg a Virtuális Mac elindítja a telepítési környezetet. Az iPad ébren marad.";
+"Installation progress may remain unchanged while macOS prepares the next installation stage. Your iPad will remain awake." = "A telepítés előrehaladása változatlan maradhat, amíg a macOS előkészíti a következő telepítési szakaszt. Az iPad ébren marad.";
+"Installed, but settings save failed: %@" = "Telepítve, de a beállítások mentése sikertelen: %@";
+"Installing macOS" = "macOS telepítése";
+"iPad Internet Connection" = "Az iPad internetkapcsolata";
+"Keep Downloading" = "Letöltés folytatása";
+"Keep Editing" = "Szerkesztés folytatása";
+"Keep Installing" = "Telepítés folytatása";
+"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";
+"Keyboard Crash Workaround" = "Billentyűzet-összeomlási kerülőmegoldás";
+"Keyboard Crash Workaround takes effect the next time Virtual Mac opens. Debug Logging takes effect the next time a Virtual Mac starts." = "A billentyűzet-összeomlási megoldás a Virtuális Mac következő megnyitásakor lép életbe. A hibakeresési naplózás egy virtuális Mac következő indításakor lép életbe.";
+"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";
+"Mac Keyboard" = "Mac-billentyűzet";
+"Mac Keyboard Shortcuts" = "Mac Billentyűparancsok";
+"Mac Trackpad" = "Mac-trackpad";
+"macOS Installed" = "macOS telepítve";
+"Memory" = "Memória";
+"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";
+"Name" = "Név";
+"Name Already Used" = "A név már használatban van";
+"NAT: Share %@" = "NAT: %@ megosztása";
+"Network" = "Hálózat";
+"Network Attachment" = "Hálózati csatolmány";
+"Network Bridge (%@)" = "Hálózati híd (%@)";
+"New Virtual Mac" = "Új Virtuális Mac";
+"No Results" = "Nincs találat";
+"No Virtual Macs match your search." = "Egyetlen virtuális Mac sem felel meg a keresésnek.";
+"OK" = "OK";
+"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.";
+"Options" = "Beállítások";
+"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";
+"Portrait Full Screen" = "Álló teljes képernyő";
+"Preparing installation…" = "Telepítés előkészítése…";
+"Preparing the IPSW for installation. Your iPad will remain awake." = "Az IPSW előkészítése telepítésre. Az iPad ébren marad.";
+"Preparing virtual hardware…" = "Virtuális hardver előkészítése…";
+"Preparing…" = "Előkészítés…";
+"Processors" = "Processzorok";
+"Read & Write" = "Olvasás és írás";
+"Read Only" = "Csak olvasható";
+"Reading restore image…" = "Helyreállítási lemezkép olvasása…";
+"Recommended macOS Release" = "Ajánlott macOS-kiadás";
+"Recover Networking After Sleep" = "Hálózati kapcsolat helyreállítása elalvás után";
+"Release" = "Kiadás";
+"Remove" = "Eltávolítás";
+"Report Issue" = "Probléma jelentése";
+"Reset" = "Alaphelyzet";
+"Reset Settings" = "Beállítások visszaállítása";
+"Reset Settings?" = "Visszaállítja a beállításokat?";
+"Resolution" = "Felbontás";
+"Resources" = "Erőforrások";
+"Resume" = "Folytatás";
+"Save" = "Mentés";
+"Search Virtual Mac" = "Virtuális Mac keresése";
+"Settings" = "Beállítások";
+"Shared Folder" = "Megosztott mappa";
+"Shared via %@" = "Megosztva ezen keresztül: %@";
+"Show Developer Betas" = "Fejlesztői béták megjelenítése";
+"Show Library" = "Könyvtár megjelenítése";
+"Show Minor Releases" = "Alverziók megjelenítése";
+"Show Version Details" = "Verzió részleteinek megjelenítése";
+"Show Virtual Mac Controls" = "Virtuális Mac vezérlőinek megjelenítése";
+"Start" = "Indítás";
+"Start %@" = "%@ indítása";
+"Start in Recovery" = "Indítás helyreállítási módban";
+"Start on Launch" = "Indítás megnyitáskor";
+"Starting installation environment…" = "Telepítési környezet indítása…";
+"Starting installation services…" = "Telepítési szolgáltatások indítása…";
+"Starting installation…" = "Telepítés indítása…";
+"Starting Virtual Mac…" = "Virtuális Mac indítása…";
+"Storage" = "Tárhely";
+"Support" = "Támogatás";
+"Support for %@ is experimental" = "%@ támogatása kísérleti";
+"Suppress iPadOS Home Indicator" = "Az iPadOS Főképernyő-jelzőjének elrejtése";
+"Suppress iPadOS Multitasking Gestures" = "Az iPadOS multitasking-kézmozdulatainak letiltása";
+"Suppress iPadOS System Edge Gestures" = "Az iPadOS rendszer-kézmozdulatainak letiltása a képernyő széleinél";
+"Switch to Running Virtual Mac" = "Váltás a futó virtuális Macre";
+"Switch to the running Virtual Mac and shut it down before starting another one." = "Váltson a futó virtuális Macre, és állítsa le, mielőtt másikat indít.";
+"The diagnostics archive could not be created." = "A diagnosztikai archívum nem hozható létre.";
+"The first progress value can take several minutes while the Virtual Mac changes from DFU to RestoreOS. Your iPad will remain awake." = "Az első folyamatérték több percet is igénybe vehet, amíg a virtuális Mac DFU módból RestoreOS módba vált. Az iPad ébren marad.";
+"The incomplete Virtual Mac and its installation files will be deleted." = "A hiányos virtuális Mac és a telepítési fájljai törlődnek.";
+"The install image and temporary installation files were kept so the failure can be diagnosed. You can export diagnostics from Settings." = "A telepítési lemezkép és az ideiglenes telepítési fájlok megmaradtak a hiba diagnosztizálásához. A diagnosztika a Beállításokból exportálható.";
+"The installer could not be started: %s" = "A telepítő nem indítható el: %s";
+"The new Virtual Mac is ready to use." = "Az új virtuális Mac használatra kész.";
+"The partial restore image will be deleted." = "A részlegesen letöltött helyreállítási lemezkép törlődik.";
+"The Virtual Mac configuration could not be created." = "A virtuális Mac konfigurációja nem hozható létre.";
+"The Virtual Mac did not publish a display framebuffer." = "A virtuális Mac nem tett közzé kijelző-framebuffert.";
+"The Virtual Mac display view is unavailable" = "A virtuális Mac kijelzőnézete nem érhető el";
+"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 show the controls again during this boot, touch and hold the Virtual Mac icon on the Home Screen, then choose Show Virtual Mac Controls." = "A vezérlők újbóli megjelenítéséhez ennél az indításnál tartsa megérintve a Virtual Mac ikonját a Főképernyőn, majd válassza a Virtuális Mac vezérlőinek megjelenítése lehetőséget.";
+"Top Left" = "Bal felső";
+"Top Right" = "Jobb felső";
+"Touch and Hold for Secondary Click" = "Érintse meg és tartsa lenyomva a másodlagos kattintáshoz";
+"Two-Finger Tap for Secondary Click" = "Kétujjas érintés a másodlagos kattintáshoz";
+"Two-Finger Touch Scrolling" = "Görgetés kétujjas érintéssel";
+"Unknown" = "Ismeretlen";
+"Unsaved changes in macOS may be lost." = "A macOS nem mentett módosításai elveszhetnek.";
+"Unsupported Restore Image" = "Nem támogatott visszaállítási lemezkép";
+"USB Keyboard" = "USB-billentyűzet";
+"USB Mouse" = "USB-egér";
+"Use an IPSW on your iPad" = "Az iPaden lévő IPSW használata";
+"Use USB Keyboard for macOS Monterey. Newer guests support the Mac keyboard device." = "macOS Monterey esetén használjon USB-billentyűzetet. Az újabb macOS-verziók támogatják a Mac-billentyűzetet.";
+"Use USB Mouse for macOS Monterey. Newer guests support the Mac trackpad device." = "macOS Monterey esetén használjon USB-egeret. Az újabb macOS-verziók támogatják a Mac-trackpadet.";
+"Validation failed: %@" = "Sikertelen ellenőrzés: %@";
+"Verify your iPad has sufficient free storage and try again." = "Ellenőrizze, hogy van-e elég szabad hely az iPaden, majd próbálja újra.";
+"Version" = "Verzió";
+"Video Encoding and Decoding Acceleration" = "Videokódolás és -dekódolás gyorsítása";
+"View Details" = "Részletek megjelenítése";
+"Virtual Mac" = "Virtuális Mac";
+"Virtual Mac %@ does not support %@. Check for updates in Sileo." = "A Virtual Mac %@ nem támogatja ezt: %@. Keressen frissítéseket a Sileóban.";
+"Virtual Mac Controls" = "A Virtuális Mac vezérlői";
+"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 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";
+"Virtual Mac start failed: %@" = "A virtuális Mac indítása sikertelen: %@";
+"Virtual Mac Stopped" = "A Virtuális Mac leállt";
+"Virtual Mac stopped: %@" = "A virtuális Mac leállt: %@";
+"VPN" = "VPN";
+"Waiting for installation output…" = "Várakozás a telepítés kimenetére…";
+"Welcome to Virtual Mac" = "Üdvözli a Virtuális Mac";
+"Wi-Fi" = "Wi-Fi";
+"Width" = "Szélesség";
+"You can also copy an existing Virtual Mac bundle to /var/mobile/Media/VirtualMac using an app such as iMazing or Filza." = "Meglévő virtuális Mac-csomagot is másolhat a /var/mobile/Media/VirtualMac mappába egy olyan alkalmazással, mint az iMazing vagy a Filza.";
+"Your changes to this Virtual Mac will not be saved." = "A virtuális Mac módosításai nem lesznek mentve.";
+"“%@” and all files stored in it will be permanently deleted." = "A(z) „%@” és a benne tárolt összes fájl véglegesen törlődik.";
diff --git a/VirtualMac/resources/Localizations/id.lproj/InfoPlist.strings b/VirtualMac/resources/Localizations/id.lproj/InfoPlist.strings
new file mode 100644
index 0000000..840c9fc
--- /dev/null
+++ b/VirtualMac/resources/Localizations/id.lproj/InfoPlist.strings
@@ -0,0 +1,2 @@
+"CFBundleDisplayName" = "Mac Virtual";
+"CFBundleName" = "Mac Virtual";
diff --git a/VirtualMac/resources/Localizations/id.lproj/Localizable.strings b/VirtualMac/resources/Localizations/id.lproj/Localizable.strings
new file mode 100644
index 0000000..8883dc2
--- /dev/null
+++ b/VirtualMac/resources/Localizations/id.lproj/Localizable.strings
@@ -0,0 +1,247 @@
+/* Virtual Mac 1.1 localization. */
+" · Legacy" = " · Lama";
+"%.0f%% complete" = "%.0f%% selesai";
+"%@ CPU · %@ GB RAM · %llu GB · %@%@" = "%@ CPU · RAM %@ GB · %llu GB · %@%@";
+"%@ is not supported" = "%@ tidak didukung";
+"%@ 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";
+"%@\n\n%@\n\nThe incomplete Virtual Mac was retained in Temporary Installation Files as %@. It can be deleted from Settings." = "%@\n\n%@\n\nMac Virtual yang belum selesai disimpan di File Instalasi Sementara sebagai %@. Mac ini dapat dihapus dari Pengaturan.";
+"%@\nState: %@\n%@\n\n" = "%@\nStatus: %@\n%@\n\n";
+"A previous macOS installation did not finish. You can review its details, keep it for debugging, or delete it." = "Instalasi macOS sebelumnya tidak selesai. Anda dapat meninjau detailnya, menyimpannya untuk debug, atau menghapusnya.";
+"About" = "Tentang";
+"Accommodate Finger Double-Taps" = "Permudah ketuk dua kali dengan jari";
+"Add Shared Folder" = "Tambah Folder Bersama";
+"Advanced" = "Lanjutan";
+"Allowed: %llu–%llu%@" = "Diizinkan: %llu–%llu%@";
+"Always Hidden" = "Selalu Tersembunyi";
+"Always Visible" = "Selalu Terlihat";
+"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";
+"Audio and Acceleration" = "Audio dan Akselerasi";
+"Audio Output" = "Keluaran Audio";
+"Automatic" = "Otomatis";
+"Automatic hides the controls when an external keyboard and pointing device are connected." = "Otomatis menyembunyikan kontrol saat papan ketik eksternal dan perangkat penunjuk tersambung.";
+"Available macOS Releases" = "Rilis macOS yang Tersedia";
+"Available macOS Versions" = "Versi macOS yang Tersedia";
+"Boot and Network" = "Boot dan Jaringan";
+"Bottom Left" = "Kiri Bawah";
+"Bottom Right" = "Kanan Bawah";
+"Bridge" = "Jembatan";
+"Bridge via %@" = "Jembatani melalui %@";
+"Bridge: %@" = "Jembatan: %@";
+"Build %@" = "Versi build %@";
+"Calculating speed…" = "Menghitung kecepatan…";
+"Cancel" = "Batalkan";
+"Cancel Download" = "Batalkan Pengunduhan";
+"Cancel Download?" = "Batalkan Pengunduhan?";
+"Cancel Installation" = "Batalkan Instalasi";
+"Cancel Installation?" = "Batalkan Instalasi?";
+"Cellular" = "Seluler";
+"Choose a Different Version" = "Pilih Versi Lain";
+"Choose a macOS IPSW restore image." = "Pilih citra pemulihan IPSW macOS.";
+"Choose a name for this Virtual Mac." = "Pilih nama untuk Virtual Mac ini.";
+"Choose Custom IPSW" = "Pilih IPSW Khusus";
+"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. Renaming and deletion are unavailable while it is running." = "Perubahan konfigurasi berlaku setelah Virtual Mac dimatikan dan dimulai kembali. Penggantian nama dan penghapusan tidak tersedia saat sedang berjalan.";
+"Configuration failed: %@" = "Konfigurasi gagal: %@";
+"Configure %@" = "Konfigurasikan %@";
+"Continue" = "Lanjutkan";
+"Controls Hidden" = "Kontrol Disembunyikan";
+"Controls Opacity" = "Opasitas Kontrol";
+"Copy Library Path" = "Salin Jalur Perpustakaan";
+"Copying Restore Image" = "Menyalin Citra Pemulihan";
+"Could Not Copy IPSW" = "IPSW Tidak Dapat Disalin";
+"Could Not Prepare Restore Image" = "Citra Pemulihan Tidak Dapat Disiapkan";
+"Could Not Rename Virtual Mac" = "Mac Virtual Tidak Dapat Diubah Namanya";
+"Could Not Save" = "Tidak Dapat Menyimpan";
+"Could Not Start Installer" = "Penginstal Tidak Dapat Dimulai";
+"Couldn’t Export Diagnostics" = "Tidak Dapat Mengekspor Diagnostik";
+"Create Virtual Mac" = "Buat Mac Virtual";
+"Custom" = "Khusus";
+"Debug Logging" = "Pencatatan debug";
+"Delete" = "Hapus";
+"Delete All" = "Hapus Semua";
+"Delete Cached Install Images" = "Hapus Citra Instalasi yang Di-cache";
+"Delete Cached Install Images?" = "Hapus citra instalasi yang di-cache?";
+"Delete Incomplete Installation" = "Hapus Instalasi yang Belum Selesai";
+"Delete IPSW After Successful Installation" = "Hapus IPSW Setelah Instalasi Berhasil";
+"Delete or rename the existing Virtual Mac first." = "Hapus atau ganti nama Virtual Mac yang ada terlebih dahulu.";
+"Delete Temporary Installation Files" = "Hapus File Instalasi Sementara";
+"Delete Temporary Installation Files?" = "Hapus File Instalasi Sementara?";
+"Delete Virtual Mac" = "Hapus Virtual Mac";
+"Delete Virtual Mac?" = "Hapus Virtual Mac?";
+"Developer Beta" = "Beta Pengembang";
+"Developers" = "Pengembang";
+"Disabled" = "Dinonaktifkan";
+"Discard Changes" = "Buang Perubahan";
+"Discard Changes?" = "Buang Perubahan?";
+"Disk Exceeds Available Storage" = "Disk Melebihi Penyimpanan yang Tersedia";
+"Display" = "Layar";
+"Display Height" = "Tinggi Layar";
+"Display Resolution" = "Resolusi Layar";
+"Display Width" = "Lebar Layar";
+"Done" = "Selesai";
+"Double-tap to hold or release this modifier" = "Ketuk dua kali untuk menahan atau melepas tombol pengubah ini";
+"Download Failed" = "Pengunduhan Gagal";
+"Downloading macOS" = "Mengunduh macOS";
+"Enter six hexadecimal octets separated by colons." = "Masukkan enam oktet heksadesimal yang dipisahkan dengan titik dua.";
+"Ethernet (%@)" = "Ethernet (%@)";
+"Experimental" = "Eksperimental";
+"Export Diagnostics" = "Ekspor Diagnostik";
+"Failed to load extracted frameworks" = "Gagal memuat framework yang diekstrak";
+"Failed to load the extracted Apple virtualization frameworks." = "Gagal memuat framework virtualisasi Apple yang diekstrak.";
+"Fill Window" = "Isi Jendela";
+"Fit in Window" = "Sesuaikan dengan Jendela";
+"Fit in Window shows the entire display. Fill Window crops its edges when the window has a different shape." = "Pas di Jendela menampilkan seluruh layar. Penuhi Jendela memangkas tepi saat bentuk jendela berbeda.";
+"Force Shut Down" = "Paksa Matikan";
+"Force Shut Down Virtual Mac?" = "Paksa Matikan Virtual Mac?";
+"Full Screen" = "Layar Penuh";
+"General" = "Umum";
+"Get Help" = "Dapatkan Bantuan";
+"Height" = "Tinggi";
+"Hide for This Boot" = "Sembunyikan untuk Boot Ini";
+"Incomplete Installation" = "Instalasi Belum Selesai";
+"Incomplete Installations" = "Instalasi yang Belum Selesai";
+"Input" = "Input";
+"Input While a Virtual Mac Is Running" = "Input saat Mac virtual berjalan";
+"Install %@" = "Instal %@";
+"Install macOS" = "Instal macOS";
+"Installation Details" = "Detail Instalasi";
+"Installation Failed" = "Penginstalan Gagal";
+"Installation progress may pause for several minutes while the Virtual Mac starts the installation environment. Your iPad will remain awake." = "Kemajuan instalasi mungkin berhenti selama beberapa menit saat Mac Virtual memulai lingkungan instalasi. iPad Anda akan tetap aktif.";
+"Installation progress may remain unchanged while macOS prepares the next installation stage. Your iPad will remain awake." = "Kemajuan instalasi mungkin tidak berubah saat macOS menyiapkan tahap instalasi berikutnya. iPad Anda akan tetap aktif.";
+"Installed, but settings save failed: %@" = "Sudah diinstal, tetapi penyimpanan pengaturan gagal: %@";
+"Installing macOS" = "Menginstal macOS";
+"iPad Internet Connection" = "Koneksi Internet iPad";
+"Keep Downloading" = "Lanjutkan Mengunduh";
+"Keep Editing" = "Lanjutkan Mengedit";
+"Keep Installing" = "Lanjutkan Menginstal";
+"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";
+"Keyboard Crash Workaround" = "Solusi Kerusakan Papan Ketik";
+"Keyboard Crash Workaround takes effect the next time Virtual Mac opens. Debug Logging takes effect the next time a Virtual Mac starts." = "Solusi kerusakan papan ketik berlaku saat Mac Virtual dibuka berikutnya. Pencatatan debug berlaku saat Mac virtual dimulai berikutnya.";
+"Library Appearance" = "Tampilan Perpustakaan";
+"Loading extracted Apple virtualization frameworks…" = "Memuat framework virtualisasi Apple yang diekstrak…";
+"MAC Address" = "Alamat MAC";
+"Mac Keyboard" = "Papan Ketik Mac";
+"Mac Keyboard Shortcuts" = "Pintasan Keyboard Mac";
+"Mac Trackpad" = "Trackpad Mac";
+"macOS Installed" = "macOS Terinstal";
+"Memory" = "Memori";
+"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";
+"Name" = "Nama";
+"Name Already Used" = "Nama Sudah Digunakan";
+"NAT: Share %@" = "NAT: Bagikan %@";
+"Network" = "Jaringan";
+"Network Attachment" = "Lampiran Jaringan";
+"Network Bridge (%@)" = "Jembatan Jaringan (%@)";
+"New Virtual Mac" = "Mac Virtual Baru";
+"No Results" = "Tidak Ada Hasil";
+"No Virtual Macs match your search." = "Tidak ada Mac Virtual yang cocok dengan pencarian Anda.";
+"OK" = "OKE";
+"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.";
+"Options" = "Pilihan";
+"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";
+"Portrait Full Screen" = "Layar Penuh Potret";
+"Preparing installation…" = "Menyiapkan instalasi…";
+"Preparing the IPSW for installation. Your iPad will remain awake." = "Menyiapkan IPSW untuk instalasi. iPad Anda akan tetap aktif.";
+"Preparing virtual hardware…" = "Menyiapkan perangkat keras virtual…";
+"Preparing…" = "Menyiapkan…";
+"Processors" = "Prosesor";
+"Read & Write" = "Baca & Tulis";
+"Read Only" = "Hanya Baca";
+"Reading restore image…" = "Membaca citra pemulihan…";
+"Recommended macOS Release" = "Rilis macOS yang Direkomendasikan";
+"Recover Networking After Sleep" = "Pulihkan Jaringan Setelah Tidur";
+"Release" = "Rilis";
+"Remove" = "Hapus";
+"Report Issue" = "Laporkan Masalah";
+"Reset" = "Atur Ulang";
+"Reset Settings" = "Atur Ulang Pengaturan";
+"Reset Settings?" = "Atur Ulang Pengaturan?";
+"Resolution" = "Resolusi";
+"Resources" = "Sumber Daya";
+"Resume" = "Lanjutkan";
+"Save" = "Simpan";
+"Search Virtual Mac" = "Cari Mac Virtual";
+"Settings" = "Pengaturan";
+"Shared Folder" = "Folder Bersama";
+"Shared via %@" = "Dibagikan melalui %@";
+"Show Developer Betas" = "Tampilkan Beta Pengembang";
+"Show Library" = "Tampilkan Perpustakaan";
+"Show Minor Releases" = "Tampilkan Rilis Minor";
+"Show Version Details" = "Tampilkan Detail Versi";
+"Show Virtual Mac Controls" = "Tampilkan Kontrol Virtual Mac";
+"Start" = "Mulai";
+"Start %@" = "Mulai %@";
+"Start in Recovery" = "Mulai dalam Pemulihan";
+"Start on Launch" = "Mulai saat Dibuka";
+"Starting installation environment…" = "Memulai lingkungan instalasi…";
+"Starting installation services…" = "Memulai layanan instalasi…";
+"Starting installation…" = "Memulai instalasi…";
+"Starting Virtual Mac…" = "Memulai Virtual Mac…";
+"Storage" = "Penyimpanan";
+"Support" = "Dukungan";
+"Support for %@ is experimental" = "Dukungan %@ Bersifat Eksperimental";
+"Suppress iPadOS Home Indicator" = "Sembunyikan indikator Utama iPadOS";
+"Suppress iPadOS Multitasking Gestures" = "Nonaktifkan gerakan multitugas iPadOS";
+"Suppress iPadOS System Edge Gestures" = "Nonaktifkan gerakan sistem dari tepi layar iPadOS";
+"Switch to Running Virtual Mac" = "Beralih ke Virtual Mac yang Berjalan";
+"Switch to the running Virtual Mac and shut it down before starting another one." = "Beralihlah ke Virtual Mac yang berjalan dan matikan sebelum memulai yang lain.";
+"The diagnostics archive could not be created." = "Arsip diagnostik tidak dapat dibuat.";
+"The first progress value can take several minutes while the Virtual Mac changes from DFU to RestoreOS. Your iPad will remain awake." = "Nilai progres pertama dapat memerlukan beberapa menit saat Virtual Mac beralih dari DFU ke RestoreOS. iPad Anda akan tetap aktif.";
+"The incomplete Virtual Mac and its installation files will be deleted." = "Virtual Mac yang belum selesai dan file instalasinya akan dihapus.";
+"The install image and temporary installation files were kept so the failure can be diagnosed. You can export diagnostics from Settings." = "Citra instalasi dan file instalasi sementara disimpan agar kegagalan dapat didiagnosis. Anda dapat mengekspor diagnostik dari Pengaturan.";
+"The installer could not be started: %s" = "Penginstal tidak dapat dimulai: %s";
+"The new Virtual Mac is ready to use." = "Virtual Mac baru siap digunakan.";
+"The partial restore image will be deleted." = "Citra pemulihan parsial akan dihapus.";
+"The Virtual Mac configuration could not be created." = "Konfigurasi Virtual Mac tidak dapat dibuat.";
+"The Virtual Mac did not publish a display framebuffer." = "Virtual Mac tidak menerbitkan framebuffer layar.";
+"The Virtual Mac display view is unavailable" = "Tampilan layar Virtual Mac tidak tersedia";
+"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 show the controls again during this boot, touch and hold the Virtual Mac icon on the Home Screen, then choose Show Virtual Mac Controls." = "Untuk menampilkan kembali kontrol selama boot ini, sentuh dan tahan ikon Virtual Mac di Layar Utama, lalu pilih Tampilkan Kontrol Virtual Mac.";
+"Top Left" = "Kiri Atas";
+"Top Right" = "Kanan Atas";
+"Touch and Hold for Secondary Click" = "Sentuh dan Tahan untuk Klik Sekunder";
+"Two-Finger Tap for Secondary Click" = "Ketuk Dua Jari untuk Klik Sekunder";
+"Two-Finger Touch Scrolling" = "Pengguliran Sentuh Dua Jari";
+"Unknown" = "Tidak Diketahui";
+"Unsaved changes in macOS may be lost." = "Perubahan yang belum disimpan di macOS mungkin hilang.";
+"Unsupported Restore Image" = "Citra Pemulihan Tidak Didukung";
+"USB Keyboard" = "Papan Ketik USB";
+"USB Mouse" = "Mouse USB";
+"Use an IPSW on your iPad" = "Gunakan IPSW di iPad Anda";
+"Use USB Keyboard for macOS Monterey. Newer guests support the Mac keyboard device." = "Gunakan Papan Ketik USB untuk macOS Monterey. Versi macOS yang lebih baru mendukung perangkat papan ketik Mac.";
+"Use USB Mouse for macOS Monterey. Newer guests support the Mac trackpad device." = "Gunakan Mouse USB untuk macOS Monterey. Versi macOS yang lebih baru mendukung perangkat trackpad Mac.";
+"Validation failed: %@" = "Validasi gagal: %@";
+"Verify your iPad has sufficient free storage and try again." = "Pastikan iPad Anda memiliki ruang kosong yang cukup, lalu coba lagi.";
+"Version" = "Versi";
+"Video Encoding and Decoding Acceleration" = "Akselerasi Enkode dan Dekode Video";
+"View Details" = "Lihat Detail";
+"Virtual Mac" = "Mac Virtual";
+"Virtual Mac %@ does not support %@. Check for updates in Sileo." = "Virtual Mac %@ tidak mendukung %@. Periksa pembaruan di Sileo.";
+"Virtual Mac Controls" = "Kontrol Mac Virtual";
+"Virtual Mac devices are stored in %@." = "Mac Virtual disimpan di %@.";
+"Virtual Mac Display" = "Layar 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";
+"Virtual Mac start failed: %@" = "Virtual Mac gagal dimulai: %@";
+"Virtual Mac Stopped" = "Mac Virtual Berhenti";
+"Virtual Mac stopped: %@" = "Virtual Mac berhenti: %@";
+"VPN" = "VPN";
+"Waiting for installation output…" = "Menunggu keluaran instalasi…";
+"Welcome to Virtual Mac" = "Selamat datang di Mac Virtual";
+"Wi-Fi" = "Wi-Fi";
+"Width" = "Lebar";
+"You can also copy an existing Virtual Mac bundle to /var/mobile/Media/VirtualMac using an app such as iMazing or Filza." = "Anda juga dapat menyalin bundel Virtual Mac yang ada ke /var/mobile/Media/VirtualMac menggunakan app seperti iMazing atau Filza.";
+"Your changes to this Virtual Mac will not be saved." = "Perubahan Anda pada Virtual Mac ini tidak akan disimpan.";
+"“%@” and all files stored in it will be permanently deleted." = "“%@” dan semua file yang tersimpan di dalamnya akan dihapus permanen.";
diff --git a/VirtualMac/resources/Localizations/it.lproj/InfoPlist.strings b/VirtualMac/resources/Localizations/it.lproj/InfoPlist.strings
new file mode 100644
index 0000000..fbcc3ee
--- /dev/null
+++ b/VirtualMac/resources/Localizations/it.lproj/InfoPlist.strings
@@ -0,0 +1,2 @@
+"CFBundleDisplayName" = "Mac virtuale";
+"CFBundleName" = "Mac virtuale";
diff --git a/VirtualMac/resources/Localizations/it.lproj/Localizable.strings b/VirtualMac/resources/Localizations/it.lproj/Localizable.strings
new file mode 100644
index 0000000..417d069
--- /dev/null
+++ b/VirtualMac/resources/Localizations/it.lproj/Localizable.strings
@@ -0,0 +1,247 @@
+/* Virtual Mac 1.1 localization. */
+" · Legacy" = " · Versione precedente";
+"%.0f%% complete" = "%.0f%% completato";
+"%@ CPU · %@ GB RAM · %llu GB · %@%@" = "%@ CPU · %@ GB di RAM · %llu GB · %@%@";
+"%@ is not supported" = "%@ non è supportato";
+"%@ 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";
+"%@\n\n%@\n\nThe incomplete Virtual Mac was retained in Temporary Installation Files as %@. It can be deleted from Settings." = "%@\n\n%@\n\nIl Mac virtuale incompleto è stato conservato in File di installazione temporanei come %@. Può essere eliminato dalle Impostazioni.";
+"%@\nState: %@\n%@\n\n" = "%@\nStato: %@\n%@\n\n";
+"A previous macOS installation did not finish. You can review its details, keep it for debugging, or delete it." = "Un’installazione precedente di macOS non è stata completata. Puoi esaminarne i dettagli, conservarla per il debug o eliminarla.";
+"About" = "Informazioni";
+"Accommodate Finger Double-Taps" = "Agevola il doppio tocco con il dito";
+"Add Shared Folder" = "Aggiungi cartella condivisa";
+"Advanced" = "Avanzate";
+"Allowed: %llu–%llu%@" = "Consentito: %llu–%llu%@";
+"Always Hidden" = "Sempre nascosto";
+"Always Visible" = "Sempre visibile";
+"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";
+"Audio and Acceleration" = "Audio e accelerazione";
+"Audio Output" = "Uscita audio";
+"Automatic" = "Automatico";
+"Automatic hides the controls when an external keyboard and pointing device are connected." = "La modalità Automatica nasconde i controlli quando sono collegati una tastiera esterna e un dispositivo di puntamento.";
+"Available macOS Releases" = "Versioni di macOS disponibili";
+"Available macOS Versions" = "Versioni di macOS disponibili";
+"Boot and Network" = "Avvio e rete";
+"Bottom Left" = "In basso a sinistra";
+"Bottom Right" = "In basso a destra";
+"Bridge" = "Ponte";
+"Bridge via %@" = "Bridge tramite %@";
+"Bridge: %@" = "Ponte: %@";
+"Build %@" = "Versione %@";
+"Calculating speed…" = "Calcolo della velocità…";
+"Cancel" = "Annulla";
+"Cancel Download" = "Annulla download";
+"Cancel Download?" = "Annullare il download?";
+"Cancel Installation" = "Annulla installazione";
+"Cancel Installation?" = "Annullare l’installazione?";
+"Cellular" = "Cellulare";
+"Choose a Different Version" = "Scegli un’altra versione";
+"Choose a macOS IPSW restore image." = "Seleziona un’immagine di ripristino IPSW di macOS.";
+"Choose a name for this Virtual Mac." = "Scegli un nome per questo Virtual Mac.";
+"Choose Custom IPSW" = "Scegli IPSW personalizzato";
+"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. Renaming and deletion are unavailable while it is running." = "Le modifiche alla configurazione hanno effetto dopo lo spegnimento e il riavvio del Virtual Mac. Non è possibile rinominarlo o eliminarlo mentre è in esecuzione.";
+"Configuration failed: %@" = "Configurazione non riuscita: %@";
+"Configure %@" = "Configura %@";
+"Continue" = "Continua";
+"Controls Hidden" = "Controlli nascosti";
+"Controls Opacity" = "Opacità dei controlli";
+"Copy Library Path" = "Copia il percorso della libreria";
+"Copying Restore Image" = "Copia dell’immagine di ripristino";
+"Could Not Copy IPSW" = "Impossibile copiare l’IPSW";
+"Could Not Prepare Restore Image" = "Impossibile preparare l’immagine di ripristino";
+"Could Not Rename Virtual Mac" = "Impossibile rinominare Mac virtuale";
+"Could Not Save" = "Impossibile salvare";
+"Could Not Start Installer" = "Impossibile avviare il programma di installazione";
+"Couldn’t Export Diagnostics" = "Impossibile esportare la diagnostica";
+"Create Virtual Mac" = "Crea un Mac virtuale";
+"Custom" = "Personalizzata";
+"Debug Logging" = "Registrazione di debug";
+"Delete" = "Elimina";
+"Delete All" = "Elimina tutto";
+"Delete Cached Install Images" = "Elimina le immagini di installazione nella cache";
+"Delete Cached Install Images?" = "Eliminare le immagini di installazione nella cache?";
+"Delete Incomplete Installation" = "Elimina installazione incompleta";
+"Delete IPSW After Successful Installation" = "Elimina IPSW dopo l'installazione riuscita";
+"Delete or rename the existing Virtual Mac first." = "Elimina o rinomina prima il Virtual Mac esistente.";
+"Delete Temporary Installation Files" = "Elimina i file di installazione temporanei";
+"Delete Temporary Installation Files?" = "Eliminare i file di installazione temporanei?";
+"Delete Virtual Mac" = "Elimina Virtual Mac";
+"Delete Virtual Mac?" = "Eliminare Virtual Mac?";
+"Developer Beta" = "Beta per sviluppatori";
+"Developers" = "Sviluppatori";
+"Disabled" = "Disabilitato";
+"Discard Changes" = "Ignora modifiche";
+"Discard Changes?" = "Ignorare le modifiche?";
+"Disk Exceeds Available Storage" = "Il disco supera lo spazio disponibile";
+"Display" = "Schermo";
+"Display Height" = "Altezza schermo";
+"Display Resolution" = "Risoluzione schermo";
+"Display Width" = "Larghezza schermo";
+"Done" = "Fine";
+"Double-tap to hold or release this modifier" = "Tocca due volte per bloccare o rilasciare questo tasto modificatore";
+"Download Failed" = "Download non riuscito";
+"Downloading macOS" = "Download di macOS";
+"Enter six hexadecimal octets separated by colons." = "Inserisci sei ottetti esadecimali separati da due punti.";
+"Ethernet (%@)" = "Ethernet (%@)";
+"Experimental" = "Sperimentale";
+"Export Diagnostics" = "Esporta diagnostica";
+"Failed to load extracted frameworks" = "Impossibile caricare i framework estratti";
+"Failed to load the extracted Apple virtualization frameworks." = "Impossibile caricare i framework di virtualizzazione Apple estratti.";
+"Fill Window" = "Riempi la finestra";
+"Fit in Window" = "Adatta alla finestra";
+"Fit in Window shows the entire display. Fill Window crops its edges when the window has a different shape." = "Adatta alla finestra mostra l’intero schermo. Riempi finestra ne ritaglia i bordi quando la finestra ha una forma diversa.";
+"Force Shut Down" = "Forza spegnimento";
+"Force Shut Down Virtual Mac?" = "Forzare lo spegnimento di Virtual Mac?";
+"Full Screen" = "Schermo intero";
+"General" = "Generali";
+"Get Help" = "Ottieni assistenza";
+"Height" = "Altezza";
+"Hide for This Boot" = "Nascondi per questo avvio";
+"Incomplete Installation" = "Installazione incompleta";
+"Incomplete Installations" = "Installazioni incomplete";
+"Input" = "Input";
+"Input While a Virtual Mac Is Running" = "Input mentre è in esecuzione un Mac virtuale";
+"Install %@" = "Installa %@";
+"Install macOS" = "Installa macOS";
+"Installation Details" = "Dettagli installazione";
+"Installation Failed" = "Installazione non riuscita";
+"Installation progress may pause for several minutes while the Virtual Mac starts the installation environment. Your iPad will remain awake." = "L’avanzamento dell’installazione potrebbe fermarsi per alcuni minuti mentre Mac virtuale avvia l’ambiente di installazione. Il tuo iPad rimarrà attivo.";
+"Installation progress may remain unchanged while macOS prepares the next installation stage. Your iPad will remain awake." = "L’avanzamento dell’installazione potrebbe restare invariato mentre macOS prepara la fase successiva. Il tuo iPad rimarrà attivo.";
+"Installed, but settings save failed: %@" = "Installato, ma non è stato possibile salvare le impostazioni: %@";
+"Installing macOS" = "Installazione di macOS";
+"iPad Internet Connection" = "Connessione internet dell’iPad";
+"Keep Downloading" = "Continua il download";
+"Keep Editing" = "Continua la modifica";
+"Keep Installing" = "Continua l’installazione";
+"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";
+"Keyboard Crash Workaround" = "Soluzione per l’arresto anomalo della tastiera";
+"Keyboard Crash Workaround takes effect the next time Virtual Mac opens. Debug Logging takes effect the next time a Virtual Mac starts." = "La soluzione per gli arresti anomali della tastiera avrà effetto alla prossima apertura di Mac virtuale. La registrazione di debug avrà effetto al prossimo avvio di un Mac virtuale.";
+"Library Appearance" = "Aspetto libreria";
+"Loading extracted Apple virtualization frameworks…" = "Caricamento dei framework di virtualizzazione Apple estratti…";
+"MAC Address" = "Indirizzo MAC";
+"Mac Keyboard" = "Tastiera Mac";
+"Mac Keyboard Shortcuts" = "Scorciatoie da tastiera del Mac";
+"Mac Trackpad" = "Trackpad Mac";
+"macOS Installed" = "macOS installato";
+"Memory" = "Memoria";
+"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";
+"Name" = "Nome";
+"Name Already Used" = "Nome già in uso";
+"NAT: Share %@" = "NAT: condividi %@";
+"Network" = "Rete";
+"Network Attachment" = "Connessione di rete";
+"Network Bridge (%@)" = "Bridge di rete (%@)";
+"New Virtual Mac" = "Nuovo Mac virtuale";
+"No Results" = "Nessun risultato";
+"No Virtual Macs match your search." = "Nessun Mac virtuale corrisponde alla ricerca.";
+"OK" = "OK";
+"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.";
+"Options" = "Opzioni";
+"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";
+"Portrait Full Screen" = "Schermo intero verticale";
+"Preparing installation…" = "Preparazione dell’installazione…";
+"Preparing the IPSW for installation. Your iPad will remain awake." = "Preparazione dell’IPSW per l’installazione. Il tuo iPad rimarrà attivo.";
+"Preparing virtual hardware…" = "Preparazione dell’hardware virtuale…";
+"Preparing…" = "Preparazione…";
+"Processors" = "Processori";
+"Read & Write" = "Lettura e scrittura";
+"Read Only" = "Sola Lettura";
+"Reading restore image…" = "Lettura dell’immagine di ripristino…";
+"Recommended macOS Release" = "Versione di macOS consigliata";
+"Recover Networking After Sleep" = "Ripristina la rete dopo il sonno";
+"Release" = "Versione pubblica";
+"Remove" = "Elimina";
+"Report Issue" = "Segnala un problema";
+"Reset" = "Ripristina";
+"Reset Settings" = "Ripristina impostazioni";
+"Reset Settings?" = "Ripristinare le impostazioni?";
+"Resolution" = "Risoluzione";
+"Resources" = "Risorse";
+"Resume" = "Riprendi";
+"Save" = "Salva";
+"Search Virtual Mac" = "Cerca Mac virtuale";
+"Settings" = "Impostazioni";
+"Shared Folder" = "Cartella condivisa";
+"Shared via %@" = "Condiviso tramite %@";
+"Show Developer Betas" = "Mostra beta per sviluppatori";
+"Show Library" = "Mostra libreria";
+"Show Minor Releases" = "Mostra versioni minori";
+"Show Version Details" = "Mostra dettagli versione";
+"Show Virtual Mac Controls" = "Mostra controlli di Virtual Mac";
+"Start" = "Inizia";
+"Start %@" = "Avvia %@";
+"Start in Recovery" = "Avvia in Recupero";
+"Start on Launch" = "Avvia all’apertura";
+"Starting installation environment…" = "Avvio dell’ambiente di installazione…";
+"Starting installation services…" = "Avvio dei servizi di installazione…";
+"Starting installation…" = "Avvio dell’installazione…";
+"Starting Virtual Mac…" = "Avvio di Virtual Mac…";
+"Storage" = "Spazio di archiviazione";
+"Support" = "Supporto";
+"Support for %@ is experimental" = "Il supporto per %@ è sperimentale";
+"Suppress iPadOS Home Indicator" = "Nascondi l’indicatore Home di iPadOS";
+"Suppress iPadOS Multitasking Gestures" = "Disattiva i gesti multitasking di iPadOS";
+"Suppress iPadOS System Edge Gestures" = "Disattiva i gesti di sistema dai bordi in iPadOS";
+"Switch to Running Virtual Mac" = "Passa al Virtual Mac in esecuzione";
+"Switch to the running Virtual Mac and shut it down before starting another one." = "Passa al Virtual Mac in esecuzione e spegnilo prima di avviarne un altro.";
+"The diagnostics archive could not be created." = "Non è stato possibile creare l’archivio di diagnostica.";
+"The first progress value can take several minutes while the Virtual Mac changes from DFU to RestoreOS. Your iPad will remain awake." = "Il primo valore di avanzamento può richiedere alcuni minuti mentre il Virtual Mac passa da DFU a RestoreOS. Il tuo iPad rimarrà attivo.";
+"The incomplete Virtual Mac and its installation files will be deleted." = "Il Virtual Mac incompleto e i relativi file di installazione verranno eliminati.";
+"The install image and temporary installation files were kept so the failure can be diagnosed. You can export diagnostics from Settings." = "L’immagine di installazione e i file di installazione temporanei sono stati conservati per consentire la diagnosi del problema. Puoi esportare la diagnostica dalle Impostazioni.";
+"The installer could not be started: %s" = "Impossibile avviare il programma di installazione: %s";
+"The new Virtual Mac is ready to use." = "Il nuovo Virtual Mac è pronto all’uso.";
+"The partial restore image will be deleted." = "L’immagine di ripristino scaricata parzialmente verrà eliminata.";
+"The Virtual Mac configuration could not be created." = "Non è stato possibile creare la configurazione del Virtual Mac.";
+"The Virtual Mac did not publish a display framebuffer." = "Il Virtual Mac non ha pubblicato un framebuffer dello schermo.";
+"The Virtual Mac display view is unavailable" = "La vista dello schermo di Virtual Mac non è disponibile";
+"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 show the controls again during this boot, touch and hold the Virtual Mac icon on the Home Screen, then choose Show Virtual Mac Controls." = "Per mostrare di nuovo i controlli durante questo avvio, tieni premuta l’icona di Virtual Mac sulla schermata Home, quindi scegli “Mostra controlli di Virtual Mac”.";
+"Top Left" = "In alto a sinistra";
+"Top Right" = "In alto a destra";
+"Touch and Hold for Secondary Click" = "Tocca e tieni premuto per il clic secondario";
+"Two-Finger Tap for Secondary Click" = "Tocca con due dita per il clic secondario";
+"Two-Finger Touch Scrolling" = "Scorrimento tramite tocco con due dita";
+"Unknown" = "Sconosciuto";
+"Unsaved changes in macOS may be lost." = "Le modifiche non salvate in macOS potrebbero andare perse.";
+"Unsupported Restore Image" = "Immagine di ripristino non supportata";
+"USB Keyboard" = "Tastiera USB";
+"USB Mouse" = "Mouse USB";
+"Use an IPSW on your iPad" = "Usa un IPSW sul tuo iPad";
+"Use USB Keyboard for macOS Monterey. Newer guests support the Mac keyboard device." = "In macOS Monterey, usa una tastiera USB. Le versioni più recenti di macOS supportano la tastiera Mac.";
+"Use USB Mouse for macOS Monterey. Newer guests support the Mac trackpad device." = "In macOS Monterey, usa un mouse USB. Le versioni più recenti di macOS supportano il trackpad Mac.";
+"Validation failed: %@" = "Convalida non riuscita: %@";
+"Verify your iPad has sufficient free storage and try again." = "Verifica che il tuo iPad disponga di spazio libero sufficiente e riprova.";
+"Version" = "Versione";
+"Video Encoding and Decoding Acceleration" = "Accelerazione codifica e decodifica video";
+"View Details" = "Visualizza dettagli";
+"Virtual Mac" = "Mac virtuale";
+"Virtual Mac %@ does not support %@. Check for updates in Sileo." = "Virtual Mac %@ non supporta %@. Cerca aggiornamenti in Sileo.";
+"Virtual Mac Controls" = "Controlli del Mac virtuale";
+"Virtual Mac devices are stored in %@." = "I Mac virtuali vengono archiviati in %@.";
+"Virtual Mac Display" = "Schermo del 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";
+"Virtual Mac start failed: %@" = "Avvio di Virtual Mac non riuscito: %@";
+"Virtual Mac Stopped" = "Mac virtuale si è arrestato";
+"Virtual Mac stopped: %@" = "Virtual Mac arrestato: %@";
+"VPN" = "VPN";
+"Waiting for installation output…" = "In attesa dell’output di installazione…";
+"Welcome to Virtual Mac" = "Ti diamo il benvenuto in Mac virtuale";
+"Wi-Fi" = "Wi-Fi";
+"Width" = "Larghezza";
+"You can also copy an existing Virtual Mac bundle to /var/mobile/Media/VirtualMac using an app such as iMazing or Filza." = "Puoi anche copiare un pacchetto Virtual Mac esistente in /var/mobile/Media/VirtualMac usando un’app come iMazing o Filza.";
+"Your changes to this Virtual Mac will not be saved." = "Le modifiche a questo Virtual Mac non verranno salvate.";
+"“%@” and all files stored in it will be permanently deleted." = "“%@” e tutti i file contenuti verranno eliminati definitivamente.";
diff --git a/VirtualMac/resources/Localizations/ja.lproj/InfoPlist.strings b/VirtualMac/resources/Localizations/ja.lproj/InfoPlist.strings
new file mode 100644
index 0000000..e3b2f4d
--- /dev/null
+++ b/VirtualMac/resources/Localizations/ja.lproj/InfoPlist.strings
@@ -0,0 +1,2 @@
+"CFBundleDisplayName" = "仮想Mac";
+"CFBundleName" = "仮想Mac";
diff --git a/VirtualMac/resources/Localizations/ja.lproj/Localizable.strings b/VirtualMac/resources/Localizations/ja.lproj/Localizable.strings
new file mode 100644
index 0000000..1d3743e
--- /dev/null
+++ b/VirtualMac/resources/Localizations/ja.lproj/Localizable.strings
@@ -0,0 +1,247 @@
+/* Virtual Mac 1.1 localization. */
+" · Legacy" = " · レガシー";
+"%.0f%% complete" = "%.0f%%完了";
+"%@ CPU · %@ GB RAM · %llu GB · %@%@" = "%@ CPU · %@ GB RAM · %llu GB · %@%@";
+"%@ is not supported" = "%@はサポートされていません";
+"%@ 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" = "残り%@";
+"%@\n\n%@\n\nThe incomplete Virtual Mac was retained in Temporary Installation Files as %@. It can be deleted from Settings." = "%@\n\n%@\n\n未完了の仮想Macは「一時インストールファイル」に%@として保持されました。「設定」から削除できます。";
+"%@\nState: %@\n%@\n\n" = "%@\n状態:%@\n%@\n\n";
+"A previous macOS installation did not finish. You can review its details, keep it for debugging, or delete it." = "前回のmacOSインストールは完了しませんでした。詳細を確認するか、デバッグ用に保持するか、削除できます。";
+"About" = "情報";
+"Accommodate Finger Double-Taps" = "指のダブルタップを補正";
+"Add Shared Folder" = "共有フォルダを追加";
+"Advanced" = "詳細";
+"Allowed: %llu–%llu%@" = "許容範囲:%llu〜%llu%@";
+"Always Hidden" = "常に非表示";
+"Always Visible" = "常に表示";
+"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が実行中です";
+"Audio and Acceleration" = "オーディオとアクセラレーション";
+"Audio Output" = "オーディオ出力";
+"Automatic" = "自動";
+"Automatic hides the controls when an external keyboard and pointing device are connected." = "外付けキーボードとポインティングデバイスが接続されている場合、「自動」はコントロールを非表示にします。";
+"Available macOS Releases" = "利用可能なmacOSリリース";
+"Available macOS Versions" = "利用可能なmacOSバージョン";
+"Boot and Network" = "起動とネットワーク";
+"Bottom Left" = "左下";
+"Bottom Right" = "右下";
+"Bridge" = "ブリッジ";
+"Bridge via %@" = "%@経由でブリッジ";
+"Bridge: %@" = "ブリッジ:%@";
+"Build %@" = "ビルド%@";
+"Calculating speed…" = "速度を計算中…";
+"Cancel" = "キャンセル";
+"Cancel Download" = "ダウンロードをキャンセル";
+"Cancel Download?" = "ダウンロードをキャンセルしますか?";
+"Cancel Installation" = "インストールをキャンセル";
+"Cancel Installation?" = "インストールをキャンセルしますか?";
+"Cellular" = "モバイル通信";
+"Choose a Different Version" = "別のバージョンを選択";
+"Choose a macOS IPSW restore image." = "macOSのIPSW復元イメージを選択してください。";
+"Choose a name for this Virtual Mac." = "この仮想Macの名前を選択してください。";
+"Choose Custom IPSW" = "カスタムIPSWを選択";
+"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. Renaming and deletion are unavailable while it is running." = "構成の変更は、仮想Macを終了して再起動した後に反映されます。実行中は名前の変更や削除はできません。";
+"Configuration failed: %@" = "構成に失敗しました:%@";
+"Configure %@" = "%@を構成";
+"Continue" = "続ける";
+"Controls Hidden" = "コントロールを非表示にしました";
+"Controls Opacity" = "コントロールの不透明度";
+"Copy Library Path" = "ライブラリのパスをコピー";
+"Copying Restore Image" = "復元イメージをコピー中";
+"Could Not Copy IPSW" = "IPSWをコピーできませんでした";
+"Could Not Prepare Restore Image" = "復元イメージを準備できませんでした";
+"Could Not Rename Virtual Mac" = "仮想Macの名前を変更できませんでした";
+"Could Not Save" = "保存できませんでした";
+"Could Not Start Installer" = "インストーラを開始できませんでした";
+"Couldn’t Export Diagnostics" = "診断情報を書き出せませんでした";
+"Create Virtual Mac" = "仮想Macを作成";
+"Custom" = "カスタム";
+"Debug Logging" = "デバッグログ";
+"Delete" = "削除";
+"Delete All" = "すべて削除";
+"Delete Cached Install Images" = "キャッシュ済みインストールイメージを削除";
+"Delete Cached Install Images?" = "キャッシュ済みインストールイメージを削除しますか?";
+"Delete Incomplete Installation" = "未完了のインストールを削除";
+"Delete IPSW After Successful Installation" = "インストール成功後にIPSWを削除";
+"Delete or rename the existing Virtual Mac first." = "既存の仮想Macを削除するか、名前を変更してください。";
+"Delete Temporary Installation Files" = "一時インストールファイルを削除";
+"Delete Temporary Installation Files?" = "一時インストールファイルを削除しますか?";
+"Delete Virtual Mac" = "仮想Macを削除";
+"Delete Virtual Mac?" = "仮想Macを削除しますか?";
+"Developer Beta" = "デベロッパベータ";
+"Developers" = "開発者";
+"Disabled" = "無効";
+"Discard Changes" = "変更を破棄";
+"Discard Changes?" = "変更を破棄しますか?";
+"Disk Exceeds Available Storage" = "ディスク容量が空き容量を超えています";
+"Display" = "ディスプレイ";
+"Display Height" = "ディスプレイの高さ";
+"Display Resolution" = "ディスプレイ解像度";
+"Display Width" = "ディスプレイの幅";
+"Done" = "完了";
+"Double-tap to hold or release this modifier" = "ダブルタップして修飾キーを固定または解除";
+"Download Failed" = "ダウンロードに失敗しました";
+"Downloading macOS" = "macOSをダウンロード中";
+"Enter six hexadecimal octets separated by colons." = "コロンで区切った6組の16進数を入力してください。";
+"Ethernet (%@)" = "Ethernet(%@)";
+"Experimental" = "試験的";
+"Export Diagnostics" = "診断情報を書き出す";
+"Failed to load extracted frameworks" = "抽出したフレームワークを読み込めませんでした";
+"Failed to load the extracted Apple virtualization frameworks." = "抽出したApple仮想化フレームワークを読み込めませんでした。";
+"Fill Window" = "ウインドウ全体に表示";
+"Fit in Window" = "ウインドウに合わせる";
+"Fit in Window shows the entire display. Fill Window crops its edges when the window has a different shape." = "「ウインドウに合わせる」は画面全体を表示します。「ウインドウを埋める」はウインドウの縦横比が異なる場合に端を切り取ります。";
+"Force Shut Down" = "強制終了";
+"Force Shut Down Virtual Mac?" = "仮想Macを強制終了しますか?";
+"Full Screen" = "フルスクリーン";
+"General" = "一般";
+"Get Help" = "ヘルプを表示";
+"Height" = "高さ";
+"Hide for This Boot" = "今回の起動中は非表示";
+"Incomplete Installation" = "未完了のインストール";
+"Incomplete Installations" = "未完了のインストール";
+"Input" = "入力";
+"Input While a Virtual Mac Is Running" = "仮想Macの実行中の入力";
+"Install %@" = "%@をインストール";
+"Install macOS" = "macOSをインストール";
+"Installation Details" = "インストールの詳細";
+"Installation Failed" = "インストールに失敗しました";
+"Installation progress may pause for several minutes while the Virtual Mac starts the installation environment. Your iPad will remain awake." = "仮想Macがインストール環境を起動している間、進行状況が数分間止まることがあります。iPadはスリープしません。";
+"Installation progress may remain unchanged while macOS prepares the next installation stage. Your iPad will remain awake." = "macOSが次のインストール段階を準備している間、インストールの進行状況が変わらないことがあります。iPadはスリープしません。";
+"Installed, but settings save failed: %@" = "インストールされましたが、設定を保存できませんでした:%@";
+"Installing macOS" = "macOSをインストール中";
+"iPad Internet Connection" = "iPadのインターネット接続";
+"Keep Downloading" = "ダウンロードを続ける";
+"Keep Editing" = "編集を続ける";
+"Keep Installing" = "インストールを続ける";
+"Keep Virtual Mac open. Your iPad will remain awake until the download finishes." = "仮想Macを開いたままにしてください。ダウンロードが完了するまでiPadはスリープしません。";
+"Keyboard" = "キーボード";
+"Keyboard Crash Workaround" = "キーボードクラッシュの回避策";
+"Keyboard Crash Workaround takes effect the next time Virtual Mac opens. Debug Logging takes effect the next time a Virtual Mac starts." = "キーボードクラッシュ対策は、次回仮想Macを開いたときに有効になります。デバッグログは、次回仮想Macを起動したときに有効になります。";
+"Library Appearance" = "ライブラリの表示";
+"Loading extracted Apple virtualization frameworks…" = "抽出したApple仮想化フレームワークを読み込み中…";
+"MAC Address" = "MACアドレス";
+"Mac Keyboard" = "Macキーボード";
+"Mac Keyboard Shortcuts" = "Macのキーボードショートカット";
+"Mac Trackpad" = "Macトラックパッド";
+"macOS Installed" = "macOSのインストール完了";
+"Memory" = "メモリ";
+"Microphone Input" = "マイク入力";
+"Minimum: %llu GB. The upper limit is determined by the filesystem." = "最小:%llu GB。上限はファイルシステムによって決まります。";
+"Move Controls" = "コントロールを移動";
+"Name" = "名前";
+"Name Already Used" = "その名前は使用されています";
+"NAT: Share %@" = "NAT:%@を共有";
+"Network" = "ネットワーク";
+"Network Attachment" = "ネットワーク接続";
+"Network Bridge (%@)" = "ネットワークブリッジ(%@)";
+"New Virtual Mac" = "新しい仮想Mac";
+"No Results" = "検索結果なし";
+"No Virtual Macs match your search." = "検索に一致する仮想Macはありません。";
+"OK" = "OK";
+"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です。ディスクイメージはスパース形式ですが、ストレージがいっぱいになるとインストールや後の使用に失敗する可能性があります。";
+"Options" = "オプション";
+"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" = "ポインティングデバイス";
+"Portrait Full Screen" = "縦向きフルスクリーン";
+"Preparing installation…" = "インストールを準備中…";
+"Preparing the IPSW for installation. Your iPad will remain awake." = "インストール用にIPSWを準備しています。iPadはスリープしません。";
+"Preparing virtual hardware…" = "仮想ハードウェアを準備中…";
+"Preparing…" = "準備中…";
+"Processors" = "プロセッサ";
+"Read & Write" = "読み/書き";
+"Read Only" = "読み出しのみ";
+"Reading restore image…" = "復元イメージを読み込み中…";
+"Recommended macOS Release" = "推奨macOSリリース";
+"Recover Networking After Sleep" = "スリープ解除後にネットワークを復旧";
+"Release" = "正式リリース";
+"Remove" = "削除";
+"Report Issue" = "問題を報告";
+"Reset" = "リセット";
+"Reset Settings" = "設定をリセット";
+"Reset Settings?" = "設定をリセットしますか?";
+"Resolution" = "解像度";
+"Resources" = "リソース";
+"Resume" = "再開";
+"Save" = "保存";
+"Search Virtual Mac" = "仮想Macを検索";
+"Settings" = "設定";
+"Shared Folder" = "共有フォルダ";
+"Shared via %@" = "%@経由で共有";
+"Show Developer Betas" = "デベロッパベータを表示";
+"Show Library" = "ライブラリを表示";
+"Show Minor Releases" = "マイナーリリースを表示";
+"Show Version Details" = "バージョンの詳細を表示";
+"Show Virtual Mac Controls" = "仮想Macのコントロールを表示";
+"Start" = "開始";
+"Start %@" = "%@を起動";
+"Start in Recovery" = "復旧モードで起動";
+"Start on Launch" = "起動時に開始";
+"Starting installation environment…" = "インストール環境を起動中…";
+"Starting installation services…" = "インストールサービスを起動中…";
+"Starting installation…" = "インストールを開始中…";
+"Starting Virtual Mac…" = "仮想Macを起動中…";
+"Storage" = "ストレージ";
+"Support" = "サポート";
+"Support for %@ is experimental" = "%@は試験的サポートです";
+"Suppress iPadOS Home Indicator" = "iPadOSのホームインジケータを非表示";
+"Suppress iPadOS Multitasking Gestures" = "iPadOSのマルチタスクジェスチャを無効化";
+"Suppress iPadOS System Edge Gestures" = "iPadOSの画面端ジェスチャを無効化";
+"Switch to Running Virtual Mac" = "実行中の仮想Macに切り替える";
+"Switch to the running Virtual Mac and shut it down before starting another one." = "実行中の仮想Macに切り替えて終了してから、別の仮想Macを起動してください。";
+"The diagnostics archive could not be created." = "診断アーカイブを作成できませんでした。";
+"The first progress value can take several minutes while the Virtual Mac changes from DFU to RestoreOS. Your iPad will remain awake." = "仮想MacがDFUからRestoreOSに切り替わる間、最初の進行状況が表示されるまで数分かかることがあります。iPadはスリープしません。";
+"The incomplete Virtual Mac and its installation files will be deleted." = "未完了の仮想Macとインストールファイルが削除されます。";
+"The install image and temporary installation files were kept so the failure can be diagnosed. You can export diagnostics from Settings." = "問題を診断できるよう、インストールイメージと一時インストールファイルは保持されました。「設定」から診断情報を書き出せます。";
+"The installer could not be started: %s" = "インストーラを起動できませんでした:%s";
+"The new Virtual Mac is ready to use." = "新しい仮想Macを使用できます。";
+"The partial restore image will be deleted." = "ダウンロード途中の復元イメージが削除されます。";
+"The Virtual Mac configuration could not be created." = "仮想Macの構成を作成できませんでした。";
+"The Virtual Mac did not publish a display framebuffer." = "仮想Macがディスプレイのフレームバッファを公開しませんでした。";
+"The Virtual Mac display view is unavailable" = "仮想Macのディスプレイ表示を利用できません";
+"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 show the controls again during this boot, touch and hold the Virtual Mac icon on the Home Screen, then choose Show Virtual Mac Controls." = "今回の起動中にコントロールを再表示するには、ホーム画面の「仮想Mac」アイコンを長押しして、「仮想Macのコントロールを表示」を選択します。";
+"Top Left" = "左上";
+"Top Right" = "右上";
+"Touch and Hold for Secondary Click" = "タッチして押さえたままにして副ボタンのクリック";
+"Two-Finger Tap for Secondary Click" = "2本指でタップして副ボタンのクリック";
+"Two-Finger Touch Scrolling" = "2本指のタッチでスクロール";
+"Unknown" = "不明";
+"Unsaved changes in macOS may be lost." = "macOSで保存していない変更は失われる可能性があります。";
+"Unsupported Restore Image" = "対応していない復元イメージ";
+"USB Keyboard" = "USBキーボード";
+"USB Mouse" = "USBマウス";
+"Use an IPSW on your iPad" = "iPad上のIPSWを使用";
+"Use USB Keyboard for macOS Monterey. Newer guests support the Mac keyboard device." = "macOS MontereyではUSBキーボードを使用してください。新しいゲストはMacキーボードデバイスに対応しています。";
+"Use USB Mouse for macOS Monterey. Newer guests support the Mac trackpad device." = "macOS MontereyではUSBマウスを使用してください。新しいゲストはMacトラックパッドデバイスに対応しています。";
+"Validation failed: %@" = "検証に失敗しました:%@";
+"Verify your iPad has sufficient free storage and try again." = "iPadに十分な空き容量があることを確認して、もう一度お試しください。";
+"Version" = "バージョン";
+"Video Encoding and Decoding Acceleration" = "ビデオのエンコードとデコードのアクセラレーション";
+"View Details" = "詳細を表示";
+"Virtual Mac" = "仮想Mac";
+"Virtual Mac %@ does not support %@. Check for updates in Sileo." = "Virtual Mac %@は%@に対応していません。Sileoでアップデートを確認してください。";
+"Virtual Mac Controls" = "仮想Macのコントロール";
+"Virtual Mac devices are stored in %@." = "仮想Macのデバイスは%@に保存されます。";
+"Virtual Mac Display" = "仮想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ディスプレイを準備中";
+"Virtual Mac start failed: %@" = "仮想Macを起動できませんでした:%@";
+"Virtual Mac Stopped" = "仮想Macが停止しました";
+"Virtual Mac stopped: %@" = "仮想Macが停止しました:%@";
+"VPN" = "VPN";
+"Waiting for installation output…" = "インストール出力を待機中…";
+"Welcome to Virtual Mac" = "仮想Macへようこそ";
+"Wi-Fi" = "Wi-Fi";
+"Width" = "幅";
+"You can also copy an existing Virtual Mac bundle to /var/mobile/Media/VirtualMac using an app such as iMazing or Filza." = "iMazingやFilzaなどのアプリを使って、既存の仮想Macバンドルを/var/mobile/Media/VirtualMacにコピーすることもできます。";
+"Your changes to this Virtual Mac will not be saved." = "この仮想Macへの変更は保存されません。";
+"“%@” and all files stored in it will be permanently deleted." = "「%@」とその中に保存されているすべてのファイルは完全に削除されます。";
diff --git a/VirtualMac/resources/Localizations/ko.lproj/InfoPlist.strings b/VirtualMac/resources/Localizations/ko.lproj/InfoPlist.strings
new file mode 100644
index 0000000..900691b
--- /dev/null
+++ b/VirtualMac/resources/Localizations/ko.lproj/InfoPlist.strings
@@ -0,0 +1,2 @@
+"CFBundleDisplayName" = "가상Mac";
+"CFBundleName" = "가상Mac";
diff --git a/VirtualMac/resources/Localizations/ko.lproj/Localizable.strings b/VirtualMac/resources/Localizations/ko.lproj/Localizable.strings
new file mode 100644
index 0000000..310b1f4
--- /dev/null
+++ b/VirtualMac/resources/Localizations/ko.lproj/Localizable.strings
@@ -0,0 +1,247 @@
+/* Virtual Mac 1.1 localization. */
+" · Legacy" = " · 레거시";
+"%.0f%% complete" = "%.0f%% 완료";
+"%@ CPU · %@ GB RAM · %llu GB · %@%@" = "%@ CPU · %@GB RAM · %lluGB · %@%@";
+"%@ is not supported" = "%@은(는) 지원되지 않음";
+"%@ 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" = "%@ 남음";
+"%@\n\n%@\n\nThe incomplete Virtual Mac was retained in Temporary Installation Files as %@. It can be deleted from Settings." = "%@\n\n%@\n\n완료되지 않은 가상 Mac은 임시 설치 파일에 %@ 이름으로 보관되었습니다. 설정에서 삭제할 수 있습니다.";
+"%@\nState: %@\n%@\n\n" = "%@\n상태: %@\n%@\n\n";
+"A previous macOS installation did not finish. You can review its details, keep it for debugging, or delete it." = "이전 macOS 설치가 완료되지 않았습니다. 세부사항을 확인하거나, 디버깅용으로 보관하거나, 삭제할 수 있습니다.";
+"About" = "정보";
+"Accommodate Finger Double-Taps" = "손가락 이중 탭 보정";
+"Add Shared Folder" = "공유 폴더 추가";
+"Advanced" = "고급";
+"Allowed: %llu–%llu%@" = "허용 범위: %llu–%llu%@";
+"Always Hidden" = "항상 가리기";
+"Always Visible" = "항상 표시";
+"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이 실행 중입니다";
+"Audio and Acceleration" = "오디오 및 가속";
+"Audio Output" = "오디오 출력";
+"Automatic" = "자동";
+"Automatic hides the controls when an external keyboard and pointing device are connected." = "외장 키보드와 포인팅 기기가 연결되면 자동으로 제어기를 가립니다.";
+"Available macOS Releases" = "사용 가능한macOS 릴리스";
+"Available macOS Versions" = "사용 가능한 macOS 버전";
+"Boot and Network" = "부팅 및 네트워크";
+"Bottom Left" = "왼쪽 하단";
+"Bottom Right" = "오른쪽 하단";
+"Bridge" = "브리지";
+"Bridge via %@" = "%@을(를) 통해 브리지";
+"Bridge: %@" = "브리지: %@";
+"Build %@" = "빌드 %@";
+"Calculating speed…" = "속도 계산 중…";
+"Cancel" = "취소";
+"Cancel Download" = "다운로드 취소";
+"Cancel Download?" = "다운로드를 취소하시겠습니까?";
+"Cancel Installation" = "설치 취소";
+"Cancel Installation?" = "설치를 취소하시겠습니까?";
+"Cellular" = "셀룰러";
+"Choose a Different Version" = "다른 버전 선택";
+"Choose a macOS IPSW restore image." = "macOS IPSW 복원 이미지를 선택하십시오.";
+"Choose a name for this Virtual Mac." = "이 가상 Mac의 이름을 선택하십시오.";
+"Choose Custom IPSW" = "사용자 설정IPSW 선택";
+"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. Renaming and deletion are unavailable while it is running." = "구성 변경사항은 가상 Mac을 종료하고 다시 시작한 후 적용됩니다. 실행 중에는 이름을 변경하거나 삭제할 수 없습니다.";
+"Configuration failed: %@" = "구성 실패: %@";
+"Configure %@" = "%@ 구성";
+"Continue" = "계속";
+"Controls Hidden" = "제어기 가려짐";
+"Controls Opacity" = "제어기 불투명도";
+"Copy Library Path" = "보관함 경로 복사";
+"Copying Restore Image" = "복원 이미지 복사 중";
+"Could Not Copy IPSW" = "IPSW를 복사할 수 없음";
+"Could Not Prepare Restore Image" = "복원 이미지를 준비할 수 없음";
+"Could Not Rename Virtual Mac" = "가상 Mac의 이름을 변경할 수 없음";
+"Could Not Save" = "저장할 수 없음";
+"Could Not Start Installer" = "설치 프로그램을 시작할 수 없음";
+"Couldn’t Export Diagnostics" = "진단을 내보낼 수 없음";
+"Create Virtual Mac" = "가상 Mac 생성";
+"Custom" = "사용자 지정";
+"Debug Logging" = "디버그 기록";
+"Delete" = "제거";
+"Delete All" = "모두 삭제";
+"Delete Cached Install Images" = "캐시된 설치 이미지 삭제";
+"Delete Cached Install Images?" = "캐시된 설치 이미지를 삭제하시겠습니까?";
+"Delete Incomplete Installation" = "완료되지 않은 설치 삭제";
+"Delete IPSW After Successful Installation" = "설치 성공 후 IPSW 삭제";
+"Delete or rename the existing Virtual Mac first." = "기존 가상 Mac을 먼저 삭제하거나 이름을 변경하십시오.";
+"Delete Temporary Installation Files" = "임시 설치 파일 삭제";
+"Delete Temporary Installation Files?" = "임시 설치 파일을 삭제하시겠습니까?";
+"Delete Virtual Mac" = "가상 Mac 삭제";
+"Delete Virtual Mac?" = "가상 Mac을 삭제하시겠습니까?";
+"Developer Beta" = "개발자 베타";
+"Developers" = "개발자";
+"Disabled" = "비활성화";
+"Discard Changes" = "변경사항 폐기";
+"Discard Changes?" = "변경사항을 폐기하시겠습니까?";
+"Disk Exceeds Available Storage" = "디스크가 사용 가능한 저장 공간을 초과함";
+"Display" = "디스플레이";
+"Display Height" = "디스플레이 높이";
+"Display Resolution" = "디스플레이 해상도";
+"Display Width" = "디스플레이 너비";
+"Done" = "완료";
+"Double-tap to hold or release this modifier" = "이 보조 키를 고정하거나 해제하려면 이중 탭";
+"Download Failed" = "다운로드 실패";
+"Downloading macOS" = "macOS 다운로드 중";
+"Enter six hexadecimal octets separated by colons." = "콜론으로 구분된 16진수 옥텟 6개를 입력하십시오.";
+"Ethernet (%@)" = "이더넷(%@)";
+"Experimental" = "실험적";
+"Export Diagnostics" = "진단 정보 내보내기";
+"Failed to load extracted frameworks" = "추출한 프레임워크를 불러오지 못함";
+"Failed to load the extracted Apple virtualization frameworks." = "추출한 Apple 가상화 프레임워크를 불러오지 못했습니다.";
+"Fill Window" = "윈도우 채우기";
+"Fit in Window" = "윈도우에 맞추기";
+"Fit in Window shows the entire display. Fill Window crops its edges when the window has a different shape." = "윈도우에 맞추기는 전체 화면을 표시합니다. 윈도우 채우기는 윈도우 비율이 다르면 가장자리를 자릅니다.";
+"Force Shut Down" = "강제 종료";
+"Force Shut Down Virtual Mac?" = "가상 Mac을 강제로 종료하시겠습니까?";
+"Full Screen" = "전체 화면";
+"General" = "일반";
+"Get Help" = "도움말 보기";
+"Height" = "높이";
+"Hide for This Boot" = "이번 부팅 동안 가리기";
+"Incomplete Installation" = "완료되지 않은 설치";
+"Incomplete Installations" = "완료되지 않은 설치";
+"Input" = "입력";
+"Input While a Virtual Mac Is Running" = "가상 Mac 실행 중 입력";
+"Install %@" = "%@ 설치";
+"Install macOS" = "macOS 설치";
+"Installation Details" = "설치 세부사항";
+"Installation Failed" = "설치 실패";
+"Installation progress may pause for several minutes while the Virtual Mac starts the installation environment. Your iPad will remain awake." = "가상 Mac이 설치 환경을 시작하는 동안 설치 진행률이 몇 분간 멈출 수 있습니다. iPad가 잠자기 상태로 전환되지 않습니다.";
+"Installation progress may remain unchanged while macOS prepares the next installation stage. Your iPad will remain awake." = "macOS가 다음 설치 단계를 준비하는 동안 설치 진행률이 변하지 않을 수 있습니다. iPad가 잠자기 상태로 전환되지 않습니다.";
+"Installed, but settings save failed: %@" = "설치되었지만 설정 저장 실패: %@";
+"Installing macOS" = "macOS 설치 중";
+"iPad Internet Connection" = "iPad 인터넷 연결";
+"Keep Downloading" = "계속 다운로드";
+"Keep Editing" = "계속 편집";
+"Keep Installing" = "계속 설치";
+"Keep Virtual Mac open. Your iPad will remain awake until the download finishes." = "가상 Mac을 열어 두십시오. 다운로드가 완료될 때까지 iPad가 깨어 있습니다.";
+"Keyboard" = "키보드";
+"Keyboard Crash Workaround" = "키보드 충돌 해결 방법";
+"Keyboard Crash Workaround takes effect the next time Virtual Mac opens. Debug Logging takes effect the next time a Virtual Mac starts." = "키보드 충돌 해결 방법은 다음에 가상 Mac을 열 때 적용됩니다. 디버그 기록은 다음에 가상 Mac을 시작할 때 적용됩니다.";
+"Library Appearance" = "보관함 모양";
+"Loading extracted Apple virtualization frameworks…" = "추출한 Apple 가상화 프레임워크 불러오는 중…";
+"MAC Address" = "MAC 주소";
+"Mac Keyboard" = "Mac 키보드";
+"Mac Keyboard Shortcuts" = "Mac 키보드 단축키";
+"Mac Trackpad" = "Mac 트랙패드";
+"macOS Installed" = "macOS 설치 완료";
+"Memory" = "메모리";
+"Microphone Input" = "마이크 입력";
+"Minimum: %llu GB. The upper limit is determined by the filesystem." = "최소: %lluGB. 상한은 파일 시스템에 따라 결정됩니다.";
+"Move Controls" = "제어기 이동";
+"Name" = "이름";
+"Name Already Used" = "이미 사용 중인 이름";
+"NAT: Share %@" = "NAT: %@ 공유";
+"Network" = "네트워크";
+"Network Attachment" = "네트워크 연결";
+"Network Bridge (%@)" = "네트워크 브리지(%@)";
+"New Virtual Mac" = "새로운 가상 Mac";
+"No Results" = "검색 결과 없음";
+"No Virtual Macs match your search." = "검색과 일치하는 가상 Mac이 없습니다.";
+"OK" = "확인";
+"Only about %llu GB is currently available. The disk image is sparse, but installation or later use can fail when storage fills up." = "현재 약 %lluGB만 사용할 수 있습니다. 디스크 이미지는 희소 이미지이지만 저장 공간이 가득 차면 설치 또는 이후 사용이 실패할 수 있습니다.";
+"Options" = "옵션";
+"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" = "포인팅 기기";
+"Portrait Full Screen" = "세로 전체 화면";
+"Preparing installation…" = "설치 준비 중…";
+"Preparing the IPSW for installation. Your iPad will remain awake." = "설치할 IPSW를 준비하는 중입니다. iPad가 깨어 있습니다.";
+"Preparing virtual hardware…" = "가상 하드웨어 준비 중…";
+"Preparing…" = "준비 중…";
+"Processors" = "프로세서";
+"Read & Write" = "읽기 및 쓰기";
+"Read Only" = "읽기 전용";
+"Reading restore image…" = "복원 이미지 읽는 중…";
+"Recommended macOS Release" = "권장macOS 릴리스";
+"Recover Networking After Sleep" = "잠자기에서 깬 후 네트워크 복구";
+"Release" = "릴리스";
+"Remove" = "제거";
+"Report Issue" = "문제 보고";
+"Reset" = "리셋";
+"Reset Settings" = "설정 재설정";
+"Reset Settings?" = "설정을 재설정하시겠습니까?";
+"Resolution" = "해상도";
+"Resources" = "리소스";
+"Resume" = "재개";
+"Save" = "저장";
+"Search Virtual Mac" = "가상 Mac 검색";
+"Settings" = "설정";
+"Shared Folder" = "공유 폴더";
+"Shared via %@" = "%@을(를) 통해 공유";
+"Show Developer Betas" = "개발자 베타 표시";
+"Show Library" = "보관함 보기";
+"Show Minor Releases" = "마이너 릴리스 표시";
+"Show Version Details" = "버전 세부사항 표시";
+"Show Virtual Mac Controls" = "가상 Mac 제어기 표시";
+"Start" = "시작";
+"Start %@" = "%@ 시작";
+"Start in Recovery" = "복구 모드로 시작";
+"Start on Launch" = "실행 시 시작";
+"Starting installation environment…" = "설치 환경 시작 중…";
+"Starting installation services…" = "설치 서비스 시작 중…";
+"Starting installation…" = "설치 시작 중…";
+"Starting Virtual Mac…" = "가상 Mac 시작 중…";
+"Storage" = "저장 공간";
+"Support" = "지원";
+"Support for %@ is experimental" = "%@ 지원은 실험적입니다";
+"Suppress iPadOS Home Indicator" = "iPadOS 홈 표시기 가리기";
+"Suppress iPadOS Multitasking Gestures" = "iPadOS 멀티태스킹 제스처 비활성화";
+"Suppress iPadOS System Edge Gestures" = "iPadOS 시스템 가장자리 제스처 비활성화";
+"Switch to Running Virtual Mac" = "실행 중인 가상 Mac으로 전환";
+"Switch to the running Virtual Mac and shut it down before starting another one." = "실행 중인 가상 Mac으로 전환하여 종료한 후 다른 가상 Mac을 시작하십시오.";
+"The diagnostics archive could not be created." = "진단 아카이브를 생성할 수 없습니다.";
+"The first progress value can take several minutes while the Virtual Mac changes from DFU to RestoreOS. Your iPad will remain awake." = "가상 Mac이 DFU에서 RestoreOS로 전환되는 동안 첫 진행률이 표시되기까지 몇 분이 걸릴 수 있습니다. iPad가 깨어 있습니다.";
+"The incomplete Virtual Mac and its installation files will be deleted." = "완료되지 않은 가상 Mac과 설치 파일이 삭제됩니다.";
+"The install image and temporary installation files were kept so the failure can be diagnosed. You can export diagnostics from Settings." = "실패 원인을 진단할 수 있도록 설치 이미지와 임시 설치 파일을 보관했습니다. 설정에서 진단 정보를 내보낼 수 있습니다.";
+"The installer could not be started: %s" = "설치 프로그램을 시작할 수 없습니다: %s";
+"The new Virtual Mac is ready to use." = "새 가상 Mac을 사용할 준비가 되었습니다.";
+"The partial restore image will be deleted." = "일부만 받은 복원 이미지가 삭제됩니다.";
+"The Virtual Mac configuration could not be created." = "가상 Mac 구성을 생성할 수 없습니다.";
+"The Virtual Mac did not publish a display framebuffer." = "가상 Mac이 디스플레이 프레임버퍼를 게시하지 않았습니다.";
+"The Virtual Mac display view is unavailable" = "가상 Mac 디스플레이 보기를 사용할 수 없음";
+"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 show the controls again during this boot, touch and hold the Virtual Mac icon on the Home Screen, then choose Show Virtual Mac Controls." = "이번 부팅 중에 제어기를 다시 표시하려면 홈 화면에서 가상 Mac 아이콘을 길게 누른 다음 가상 Mac 제어기 표시를 선택하십시오.";
+"Top Left" = "왼쪽 상단";
+"Top Right" = "오른쪽 상단";
+"Touch and Hold for Secondary Click" = "길게 터치하여 보조 클릭";
+"Two-Finger Tap for Secondary Click" = "두 손가락 탭으로 보조 클릭";
+"Two-Finger Touch Scrolling" = "두 손가락 터치로 스크롤";
+"Unknown" = "알 수 없음";
+"Unsaved changes in macOS may be lost." = "macOS에서 저장하지 않은 변경사항이 유실될 수 있습니다.";
+"Unsupported Restore Image" = "지원되지 않는 복원 이미지";
+"USB Keyboard" = "USB 키보드";
+"USB Mouse" = "USB 마우스";
+"Use an IPSW on your iPad" = "iPad에 있는 IPSW 사용";
+"Use USB Keyboard for macOS Monterey. Newer guests support the Mac keyboard device." = "macOS Monterey에서는 USB 키보드를 사용하십시오. 최신 게스트는 Mac 키보드 기기를 지원합니다.";
+"Use USB Mouse for macOS Monterey. Newer guests support the Mac trackpad device." = "macOS Monterey에서는 USB 마우스를 사용하십시오. 최신 게스트는 Mac 트랙패드 기기를 지원합니다.";
+"Validation failed: %@" = "검증 실패: %@";
+"Verify your iPad has sufficient free storage and try again." = "iPad에 충분한 여유 공간이 있는지 확인하고 다시 시도하십시오.";
+"Version" = "버전";
+"Video Encoding and Decoding Acceleration" = "비디오 인코딩 및 디코딩 가속";
+"View Details" = "세부사항 보기";
+"Virtual Mac" = "가상 Mac";
+"Virtual Mac %@ does not support %@. Check for updates in Sileo." = "Virtual Mac %@은(는) %@을(를) 지원하지 않습니다. Sileo에서 업데이트를 확인하십시오.";
+"Virtual Mac Controls" = "가상 Mac 제어기";
+"Virtual Mac devices are stored in %@." = "가상 Mac 기기는 %@에 저장됩니다.";
+"Virtual Mac Display" = "가상 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 디스플레이 준비 중";
+"Virtual Mac start failed: %@" = "가상 Mac 시작 실패: %@";
+"Virtual Mac Stopped" = "가상 Mac이 중단됨";
+"Virtual Mac stopped: %@" = "가상 Mac 중단됨: %@";
+"VPN" = "VPN";
+"Waiting for installation output…" = "설치 출력 대기 중…";
+"Welcome to Virtual Mac" = "가상 Mac에 오신 것을 환영합니다";
+"Wi-Fi" = "Wi-Fi";
+"Width" = "너비";
+"You can also copy an existing Virtual Mac bundle to /var/mobile/Media/VirtualMac using an app such as iMazing or Filza." = "iMazing 또는 Filza와 같은 앱을 사용하여 기존 가상 Mac 번들을 /var/mobile/Media/VirtualMac에 복사할 수도 있습니다.";
+"Your changes to this Virtual Mac will not be saved." = "이 가상 Mac의 변경사항이 저장되지 않습니다.";
+"“%@” and all files stored in it will be permanently deleted." = "“%@” 및 그 안에 저장된 모든 파일이 영구적으로 삭제됩니다.";
diff --git a/VirtualMac/resources/Localizations/ms.lproj/InfoPlist.strings b/VirtualMac/resources/Localizations/ms.lproj/InfoPlist.strings
new file mode 100644
index 0000000..6a850be
--- /dev/null
+++ b/VirtualMac/resources/Localizations/ms.lproj/InfoPlist.strings
@@ -0,0 +1,2 @@
+"CFBundleDisplayName" = "Mac Maya";
+"CFBundleName" = "Mac Maya";
diff --git a/VirtualMac/resources/Localizations/ms.lproj/Localizable.strings b/VirtualMac/resources/Localizations/ms.lproj/Localizable.strings
new file mode 100644
index 0000000..e44b234
--- /dev/null
+++ b/VirtualMac/resources/Localizations/ms.lproj/Localizable.strings
@@ -0,0 +1,247 @@
+/* Virtual Mac 1.1 localization. */
+" · Legacy" = " · Lama";
+"%.0f%% complete" = "%.0f%% selesai";
+"%@ CPU · %@ GB RAM · %llu GB · %@%@" = "%@ CPU · RAM %@ GB · %llu GB · %@%@";
+"%@ is not supported" = "%@ tidak disokong";
+"%@ 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";
+"%@\n\n%@\n\nThe incomplete Virtual Mac was retained in Temporary Installation Files as %@. It can be deleted from Settings." = "%@\n\n%@\n\nMac Maya yang belum selesai disimpan dalam Fail Pemasangan Sementara sebagai %@. Mac ini boleh dipadamkan daripada Tetapan.";
+"%@\nState: %@\n%@\n\n" = "%@\nStatus: %@\n%@\n\n";
+"A previous macOS installation did not finish. You can review its details, keep it for debugging, or delete it." = "Pemasangan macOS terdahulu tidak selesai. Anda boleh menyemak butirannya, menyimpannya untuk penyahpepijatan atau memadamkannya.";
+"About" = "Perihal";
+"Accommodate Finger Double-Taps" = "Mudahkan dwiketik dengan jari";
+"Add Shared Folder" = "Tambah Folder Bersama";
+"Advanced" = "Lanjutan";
+"Allowed: %llu–%llu%@" = "Dibenarkan: %llu–%llu%@";
+"Always Hidden" = "Sentiasa Tersembunyi";
+"Always Visible" = "Sentiasa Kelihatan";
+"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";
+"Audio and Acceleration" = "Audio dan Akselerasi";
+"Audio Output" = "Output Audio";
+"Automatic" = "Automatik";
+"Automatic hides the controls when an external keyboard and pointing device are connected." = "Automatik menyembunyikan kawalan apabila papan kekunci luaran dan peranti penunjuk disambungkan.";
+"Available macOS Releases" = "Keluaran macOS yang Tersedia";
+"Available macOS Versions" = "Versi macOS yang Tersedia";
+"Boot and Network" = "Boot dan Rangkaian";
+"Bottom Left" = "Bawah Kiri";
+"Bottom Right" = "Bawah Kanan";
+"Bridge" = "Jambatan";
+"Bridge via %@" = "Jambatani mekemudiani %@";
+"Bridge: %@" = "Jambatan: %@";
+"Build %@" = "Binaan %@";
+"Calculating speed…" = "Menghitung kelajuan…";
+"Cancel" = "Batal";
+"Cancel Download" = "Batalkan Muat Turun";
+"Cancel Download?" = "Batalkan Muat Turun?";
+"Cancel Installation" = "Batal Pemasangan";
+"Cancel Installation?" = "Batal Pemasangan?";
+"Cellular" = "Selular";
+"Choose a Different Version" = "Pilih Versi Lain";
+"Choose a macOS IPSW restore image." = "Pilih imej pemulihan IPSW macOS.";
+"Choose a name for this Virtual Mac." = "Pilih nama untuk Mac maya ini.";
+"Choose Custom IPSW" = "Pilih IPSW Tersuai";
+"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. Renaming and deletion are unavailable while it is running." = "Perubahan konfigurasi berkuat kuasa selepas Mac maya dimatikan dan dimulakan semula. Penukaran nama dan pengpadaman tidak tersedia apabila sedang berjalan.";
+"Configuration failed: %@" = "Konfigurasi gagal: %@";
+"Configure %@" = "Konfigurasikan %@";
+"Continue" = "Teruskan";
+"Controls Hidden" = "Kawalan Disembunyikan";
+"Controls Opacity" = "Kelegapan Kawalan";
+"Copy Library Path" = "Salin Laluan Perpustakaan";
+"Copying Restore Image" = "Menyalin Imej Pemulihan";
+"Could Not Copy IPSW" = "IPSW Tidak Dapat Disalin";
+"Could Not Prepare Restore Image" = "Imej Pemulihan Tidak Dapat Disediakan";
+"Could Not Rename Virtual Mac" = "Mac Maya Tidak Dapat Dinamakan Semula";
+"Could Not Save" = "Tidak Dapat Menyimpan";
+"Could Not Start Installer" = "Pemasang Tidak Dapat Dimulakan";
+"Couldn’t Export Diagnostics" = "Tidak Dapat Mengeksport Diagnostik";
+"Create Virtual Mac" = "Cipta Mac Maya";
+"Custom" = "Tersuai";
+"Debug Logging" = "Pengelogan nyahpepijat";
+"Delete" = "Padam";
+"Delete All" = "Padam Semua";
+"Delete Cached Install Images" = "Padam Imej Pemasangan yang Dicache";
+"Delete Cached Install Images?" = "Padam imej pemasangan yang dicache?";
+"Delete Incomplete Installation" = "Padam Pemasangan yang Belum Selesai";
+"Delete IPSW After Successful Installation" = "Padam IPSW Selepas Berjaya Pemasangan";
+"Delete or rename the existing Virtual Mac first." = "Padam atau ganti nama Mac maya yang ada terlebih dahulu.";
+"Delete Temporary Installation Files" = "Padam Fail Pemasangan Sementara";
+"Delete Temporary Installation Files?" = "Padam Fail Pemasangan Sementara?";
+"Delete Virtual Mac" = "Padam Mac maya";
+"Delete Virtual Mac?" = "Padam Mac maya?";
+"Developer Beta" = "Beta Pembangun";
+"Developers" = "Pembangun";
+"Disabled" = "Dinyahdayakan";
+"Discard Changes" = "Buang Perubahan";
+"Discard Changes?" = "Buang Perubahan?";
+"Disk Exceeds Available Storage" = "Disk Melebihi Storan yang Tersedia";
+"Display" = "Paparan";
+"Display Height" = "Ketinggian Paparan";
+"Display Resolution" = "Resolusi Paparan";
+"Display Width" = "Lebar Paparan";
+"Done" = "Selesai";
+"Double-tap to hold or release this modifier" = "Ketuk dua kali untuk mengekalkan atau melepaskan kekunci pengubah ini";
+"Download Failed" = "Muat Turun Gagal";
+"Downloading macOS" = "Memuat turun macOS";
+"Enter six hexadecimal octets separated by colons." = "Masukkan enam oktet perenambelasan yang dipisahkan dengan titik dua.";
+"Ethernet (%@)" = "Ethernet (%@)";
+"Experimental" = "Eksperimental";
+"Export Diagnostics" = "Eksport Diagnostik";
+"Failed to load extracted frameworks" = "Gagal memuatkan kerangka kerja yang diekstrak";
+"Failed to load the extracted Apple virtualization frameworks." = "Gagal memuatkan kerangka kerja virtualisasi Apple yang diekstrak.";
+"Fill Window" = "Isi Tetingkap";
+"Fit in Window" = "Muat dalam Tetingkap";
+"Fit in Window shows the entire display. Fill Window crops its edges when the window has a different shape." = "Muat dalam Tetingkap memaparkan keseluruhan paparan. Penuhi Tetingkap memangkas bahagian tepi apabila bentuk jendela berbeza.";
+"Force Shut Down" = "Paksa Matikan";
+"Force Shut Down Virtual Mac?" = "Paksa Matikan Mac maya?";
+"Full Screen" = "Skrin Penuh";
+"General" = "Umum";
+"Get Help" = "Dapatkan Bantuan";
+"Height" = "Ketinggian";
+"Hide for This Boot" = "Sembunyikan untuk Boot Ini";
+"Incomplete Installation" = "Pemasangan Belum Selesai";
+"Incomplete Installations" = "Pemasangan yang Belum Selesai";
+"Input" = "Input";
+"Input While a Virtual Mac Is Running" = "Input semasa Mac maya sedang berjalan";
+"Install %@" = "Pasang %@";
+"Install macOS" = "Pasang macOS";
+"Installation Details" = "Detail Pemasangan";
+"Installation Failed" = "Pemasangan Gagal";
+"Installation progress may pause for several minutes while the Virtual Mac starts the installation environment. Your iPad will remain awake." = "Kemajuan pemasangan mungkin berhenti selama beberapa minit apabila Mac Maya memulakan persekitaran pemasangan. iPad akan kekal aktif.";
+"Installation progress may remain unchanged while macOS prepares the next installation stage. Your iPad will remain awake." = "Kemajuan pemasangan mungkin tidak berubah semasa macOS menyediakan peringkat pemasangan seterusnya. iPad akan kekal aktif.";
+"Installed, but settings save failed: %@" = "Dipasang, tetapi tetapan gagal disimpan: %@";
+"Installing macOS" = "Memasang macOS";
+"iPad Internet Connection" = "Sambungan Internet iPad";
+"Keep Downloading" = "Teruskan Muat Turun";
+"Keep Editing" = "Teruskan Mengedit";
+"Keep Installing" = "Teruskan Memasang";
+"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";
+"Keyboard Crash Workaround" = "Penyelesaian Ranap Papan Kekunci";
+"Keyboard Crash Workaround takes effect the next time Virtual Mac opens. Debug Logging takes effect the next time a Virtual Mac starts." = "Penyelesaian ranap papan kekunci berkuat kuasa apabila Mac Maya dibuka seterusnya. Pengelogan nyahpepijat berkuat kuasa apabila Mac maya dimulakan seterusnya.";
+"Library Appearance" = "Penampilan Pustaka";
+"Loading extracted Apple virtualization frameworks…" = "Memuat kerangka kerja mayaisasi Apple yang yang diekstrak…";
+"MAC Address" = "Alamat MAC";
+"Mac Keyboard" = "Papan Kekunci Mac";
+"Mac Keyboard Shortcuts" = "Pintasan Papan Kekunci Mac";
+"Mac Trackpad" = "Trackpad Mac";
+"macOS Installed" = "macOS Dipasang";
+"Memory" = "Memori";
+"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";
+"Name" = "Nama";
+"Name Already Used" = "Nama Telah Digunakan";
+"NAT: Share %@" = "NAT: Bagikan %@";
+"Network" = "Rangkaian";
+"Network Attachment" = "Lampiran Rangkaian";
+"Network Bridge (%@)" = "Jambatan Rangkaian (%@)";
+"New Virtual Mac" = "Mac Maya Baharu";
+"No Results" = "Tiada Hasil";
+"No Virtual Macs match your search." = "Tiada Mac Maya yang sepadan dengan carian anda.";
+"OK" = "OK";
+"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.";
+"Options" = "Pilihan";
+"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";
+"Portrait Full Screen" = "Skrin Penuh Potret";
+"Preparing installation…" = "Menyediakan pemasangan…";
+"Preparing the IPSW for installation. Your iPad will remain awake." = "Menyediakan IPSW untuk pemasangan. iPad akan kekal aktif.";
+"Preparing virtual hardware…" = "Menyediakan peranti keras maya…";
+"Preparing…" = "Menyediakan…";
+"Processors" = "Pemproses";
+"Read & Write" = "Baca & Tulis";
+"Read Only" = "Hanya Baca";
+"Reading restore image…" = "Membaca imej pemulihan…";
+"Recommended macOS Release" = "Keluaran macOS yang Disyorkan";
+"Recover Networking After Sleep" = "Pulihkan Rangkaian Selepas Tidur";
+"Release" = "Keluaran";
+"Remove" = "Keluarkan";
+"Report Issue" = "Laporkan Isu";
+"Reset" = "Tetapkan Semula";
+"Reset Settings" = "Tetapkan Semula Tetapan";
+"Reset Settings?" = "Tetapkan Semula Tetapan?";
+"Resolution" = "Resolusi";
+"Resources" = "Sumber";
+"Resume" = "Sambung";
+"Save" = "Simpan";
+"Search Virtual Mac" = "Cari Mac Maya";
+"Settings" = "tetapan";
+"Shared Folder" = "Folder Dikongsi";
+"Shared via %@" = "Dibagikan mekemudiani %@";
+"Show Developer Betas" = "Tunjukkan Beta Pembangun";
+"Show Library" = "Tunjukkan Pustaka";
+"Show Minor Releases" = "Tunjukkan Keluaran Minor";
+"Show Version Details" = "Tunjukkan Butiran Versi";
+"Show Virtual Mac Controls" = "Tunjukkan Kawalan Mac maya";
+"Start" = "Mulakan";
+"Start %@" = "Mulakan %@";
+"Start in Recovery" = "Mulakan dalam Pemulihan";
+"Start on Launch" = "Mulakan apabila Dibuka";
+"Starting installation environment…" = "Memulakan persekitaran pemasangan…";
+"Starting installation services…" = "Memulakan perkhidmatan pemasangan…";
+"Starting installation…" = "Memulakan pemasangan…";
+"Starting Virtual Mac…" = "Memulakan Mac maya…";
+"Storage" = "Storan";
+"Support" = "Sokongan";
+"Support for %@ is experimental" = "Sokongan %@ Bersifat Eksperimen";
+"Suppress iPadOS Home Indicator" = "Sembunyikan penunjuk Utama iPadOS";
+"Suppress iPadOS Multitasking Gestures" = "Nyahdayakan gerak isyarat berbilang tugas iPadOS";
+"Suppress iPadOS System Edge Gestures" = "Nyahdayakan gerak isyarat sistem dari tepi skrin iPadOS";
+"Switch to Running Virtual Mac" = "Beralih ke Mac maya yang Berjalan";
+"Switch to the running Virtual Mac and shut it down before starting another one." = "Beralihlah ke Mac maya yang berjalan dan matikan sebelum memulakan yang lain.";
+"The diagnostics archive could not be created." = "Arkib diagnostik tidak boleh dibuat.";
+"The first progress value can take several minutes while the Virtual Mac changes from DFU to RestoreOS. Your iPad will remain awake." = "Nilai kemajuan pertama mungkin mengambil masa beberapa minit apabila Virtual Mac beralih daripada DFU kepada RestoreOS. iPad akan kekal aktif.";
+"The incomplete Virtual Mac and its installation files will be deleted." = "Mac maya yang belum selesai dan fail pemasangannya akan dipadam.";
+"The install image and temporary installation files were kept so the failure can be diagnosed. You can export diagnostics from Settings." = "Imej pemasangan dan fail pemasangan sementara disimpan supaya kegagalan dapat didiagnosis. Anda boleh mengeksport diagnostik daripada Tetapan.";
+"The installer could not be started: %s" = "Pemasang tidak dapat dimulakan: %s";
+"The new Virtual Mac is ready to use." = "Mac maya baru siap digunakan.";
+"The partial restore image will be deleted." = "Imej pemulihan separa akan dipadam.";
+"The Virtual Mac configuration could not be created." = "Konfigurasi Mac maya tidak boleh dibuat.";
+"The Virtual Mac did not publish a display framebuffer." = "Mac maya tidak menerbitkan framebuffer paparan.";
+"The Virtual Mac display view is unavailable" = "Paparan skrin Mac Maya tidak tersedia";
+"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 show the controls again during this boot, touch and hold the Virtual Mac icon on the Home Screen, then choose Show Virtual Mac Controls." = "Untuk memaparkan semula kawalan semasa but ini, sentuh dan tahan ikon Mac Maya pada Skrin Utama, kemudian pilih Tunjukkan Kawalan Mac Maya.";
+"Top Left" = "Atas Kiri";
+"Top Right" = "Atas Kanan";
+"Touch and Hold for Secondary Click" = "Sentuh dan Tahan untuk Klik Sekunder";
+"Two-Finger Tap for Secondary Click" = "Ketik Dua Jari untuk Klik Sekunder";
+"Two-Finger Touch Scrolling" = "Tatal Sentuhan Dua Jari";
+"Unknown" = "Tidak Diketahui";
+"Unsaved changes in macOS may be lost." = "Perubahan yang belum disimpan di macOS mungkin hilang.";
+"Unsupported Restore Image" = "Imej Pemulihan Tidak Disokong";
+"USB Keyboard" = "Papan Kekunci USB";
+"USB Mouse" = "Tetikus USB";
+"Use an IPSW on your iPad" = "Gunakan IPSW pada iPad";
+"Use USB Keyboard for macOS Monterey. Newer guests support the Mac keyboard device." = "Gunakan Papan Kekunci USB untuk macOS Monterey. Versi macOS yang lebih baru menyokong peranti papan kekunci Mac.";
+"Use USB Mouse for macOS Monterey. Newer guests support the Mac trackpad device." = "Gunakan Tetikus USB untuk macOS Monterey. Versi macOS yang lebih baru menyokong peranti trackpad Mac.";
+"Validation failed: %@" = "Pengesahan gagal: %@";
+"Verify your iPad has sufficient free storage and try again." = "Pastikan iPad mempunyai ruang kosong yang mencukupi, kemudian cuba lagi.";
+"Version" = "Versi";
+"Video Encoding and Decoding Acceleration" = "Pecutan Pengekodan dan Penyahkodan Video";
+"View Details" = "Lihat Detail";
+"Virtual Mac" = "Mac Maya";
+"Virtual Mac %@ does not support %@. Check for updates in Sileo." = "Virtual Mac %@ tidak menyokong %@. Semak kemas kini dalam Sileo.";
+"Virtual Mac Controls" = "Kawalan Mac Maya";
+"Virtual Mac devices are stored in %@." = "Mac Maya disimpan dalam %@.";
+"Virtual Mac Display" = "Paparan 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";
+"Virtual Mac start failed: %@" = "Mac maya gagal dimulakan: %@";
+"Virtual Mac Stopped" = "Mac Maya Berhenti";
+"Virtual Mac stopped: %@" = "Mac maya berhenti: %@";
+"VPN" = "VPN";
+"Waiting for installation output…" = "Menunggu output pemasangan…";
+"Welcome to Virtual Mac" = "Selamat datang ke Mac Maya";
+"Wi-Fi" = "Wi-Fi";
+"Width" = "Lebar";
+"You can also copy an existing Virtual Mac bundle to /var/mobile/Media/VirtualMac using an app such as iMazing or Filza." = "Anda juga boleh menyalin pakej Mac maya yang ada ke /var/mobile/Media/VirtualMac menggunakan app seperti iMazing atau Filza.";
+"Your changes to this Virtual Mac will not be saved." = "Perubahan anda pada Mac maya ini tidak akan disimpan.";
+"“%@” and all files stored in it will be permanently deleted." = "“%@” dan semua fail yang disimpan di dalamnya akan dipadam secara kekal.";
diff --git a/VirtualMac/resources/Localizations/nl.lproj/InfoPlist.strings b/VirtualMac/resources/Localizations/nl.lproj/InfoPlist.strings
new file mode 100644
index 0000000..94ec033
--- /dev/null
+++ b/VirtualMac/resources/Localizations/nl.lproj/InfoPlist.strings
@@ -0,0 +1,2 @@
+"CFBundleDisplayName" = "Virtuele Mac";
+"CFBundleName" = "Virtuele Mac";
diff --git a/VirtualMac/resources/Localizations/nl.lproj/Localizable.strings b/VirtualMac/resources/Localizations/nl.lproj/Localizable.strings
new file mode 100644
index 0000000..94c2f19
--- /dev/null
+++ b/VirtualMac/resources/Localizations/nl.lproj/Localizable.strings
@@ -0,0 +1,247 @@
+/* Virtual Mac 1.1 localization. */
+" · Legacy" = " · Verouderd";
+"%.0f%% complete" = "%.0f%% voltooid";
+"%@ CPU · %@ GB RAM · %llu GB · %@%@" = "%@ CPU · %@ GB RAM · %llu GB · %@%@";
+"%@ is not supported" = "%@ wordt niet ondersteund";
+"%@ 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 %@";
+"%@\n\n%@\n\nThe incomplete Virtual Mac was retained in Temporary Installation Files as %@. It can be deleted from Settings." = "%@\n\n%@\n\nDe onvolledige virtuele Mac is als %@ bewaard in Tijdelijke installatiebestanden. U kunt deze verwijderen via Instellingen.";
+"%@\nState: %@\n%@\n\n" = "%@\nStatus: %@\n%@\n\n";
+"A previous macOS installation did not finish. You can review its details, keep it for debugging, or delete it." = "Een eerdere macOS-installatie is niet voltooid. U kunt de details bekijken, de installatie bewaren voor foutopsporing of deze verwijderen.";
+"About" = "Info";
+"Accommodate Finger Double-Taps" = "Dubbeltikken met een vinger vergemakkelijken";
+"Add Shared Folder" = "Gedeelde map toevoegen";
+"Advanced" = "Geavanceerd";
+"Allowed: %llu–%llu%@" = "Toegestaan: %llu–%llu%@";
+"Always Hidden" = "Altijd verborgen";
+"Always Visible" = "Altijd zichtbaar";
+"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";
+"Audio and Acceleration" = "Audio en versnelling";
+"Audio Output" = "Audio-uitvoer";
+"Automatic" = "Automatisch";
+"Automatic hides the controls when an external keyboard and pointing device are connected." = "Automatisch verbergt de regelaars wanneer een extern toetsenbord en aanwijsapparaat zijn verbonden.";
+"Available macOS Releases" = "Beschikbare macOS-versies";
+"Available macOS Versions" = "Beschikbare macOS-versies";
+"Boot and Network" = "Opstarten en netwerk";
+"Bottom Left" = "Linksonder";
+"Bottom Right" = "Rechtsonder";
+"Bridge" = "Brug";
+"Bridge via %@" = "Brug via %@";
+"Bridge: %@" = "Brug: %@";
+"Build %@" = "Buildversie %@";
+"Calculating speed…" = "Snelheid berekenen…";
+"Cancel" = "Annuleer";
+"Cancel Download" = "Download annuleren";
+"Cancel Download?" = "Download annuleren?";
+"Cancel Installation" = "Installatie annuleren";
+"Cancel Installation?" = "Installatie annuleren?";
+"Cellular" = "Mobiel netwerk";
+"Choose a Different Version" = "Kies een andere versie";
+"Choose a macOS IPSW restore image." = "Kies een macOS IPSW-herstelkopie.";
+"Choose a name for this Virtual Mac." = "Kies een naam voor deze Virtual Mac.";
+"Choose Custom IPSW" = "Aangepaste IPSW kiezen";
+"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. Renaming and deletion are unavailable while it is running." = "Configuratiewijzigingen worden toegepast nadat de Virtual Mac is uitgeschakeld en opnieuw gestart. Tijdens het gebruik kunt u deze niet hernoemen of verwijderen.";
+"Configuration failed: %@" = "Configuratie mislukt: %@";
+"Configure %@" = "%@ configureren";
+"Continue" = "Ga door";
+"Controls Hidden" = "Regelaars verborgen";
+"Controls Opacity" = "Ondoorzichtigheid van regelaars";
+"Copy Library Path" = "Kopieer bibliotheekpad";
+"Copying Restore Image" = "Herstelimage kopiëren";
+"Could Not Copy IPSW" = "IPSW kon niet worden gekopieerd";
+"Could Not Prepare Restore Image" = "Herstelkopie kon niet worden voorbereid";
+"Could Not Rename Virtual Mac" = "Virtuele Mac kon niet worden hernoemd";
+"Could Not Save" = "Bewaren mislukt";
+"Could Not Start Installer" = "Installatieprogramma kon niet worden gestart";
+"Couldn’t Export Diagnostics" = "Diagnostische gegevens konden niet worden geëxporteerd";
+"Create Virtual Mac" = "Maak een virtuele Mac";
+"Custom" = "Aangepast";
+"Debug Logging" = "Foutopsporingslogboek";
+"Delete" = "Verwijder";
+"Delete All" = "Alles verwijderen";
+"Delete Cached Install Images" = "Installatie-images in cache verwijderen";
+"Delete Cached Install Images?" = "Installatie-images in cache verwijderen?";
+"Delete Incomplete Installation" = "Onvoltooide installatie verwijderen";
+"Delete IPSW After Successful Installation" = "Verwijder IPSW na succesvolle installatie";
+"Delete or rename the existing Virtual Mac first." = "Verwijder of hernoem eerst de bestaande Virtual Mac.";
+"Delete Temporary Installation Files" = "Tijdelijke installatiebestanden verwijderen";
+"Delete Temporary Installation Files?" = "Tijdelijke installatiebestanden verwijderen?";
+"Delete Virtual Mac" = "Virtual Mac verwijderen";
+"Delete Virtual Mac?" = "Virtual Mac verwijderen?";
+"Developer Beta" = "Ontwikkelaarsbèta";
+"Developers" = "Ontwikkelaars";
+"Disabled" = "Uitgeschakeld";
+"Discard Changes" = "Wijzigingen negeren";
+"Discard Changes?" = "Wijzigingen negeren?";
+"Disk Exceeds Available Storage" = "Schijf overschrijdt beschikbare opslag";
+"Display" = "Beeldscherm";
+"Display Height" = "Beeldschermhoogte";
+"Display Resolution" = "Beeldschermresolutie";
+"Display Width" = "Beeldschermbreedte";
+"Done" = "Gereed";
+"Double-tap to hold or release this modifier" = "Tik dubbel om deze speciale toets vast te zetten of los te laten";
+"Download Failed" = "Download mislukt";
+"Downloading macOS" = "macOS downloaden";
+"Enter six hexadecimal octets separated by colons." = "Voer zes hexadecimale octetten in, gescheiden door dubbele punten.";
+"Ethernet (%@)" = "Ethernet (%@)";
+"Experimental" = "Experimenteel";
+"Export Diagnostics" = "Diagnostische gegevens exporteren";
+"Failed to load extracted frameworks" = "Geëxtraheerde frameworks konden niet worden geladen";
+"Failed to load the extracted Apple virtualization frameworks." = "De geëxtraheerde Apple-virtualisatieframeworks konden niet worden geladen.";
+"Fill Window" = "Venster vullen";
+"Fit in Window" = "Pas aan venster aan";
+"Fit in Window shows the entire display. Fill Window crops its edges when the window has a different shape." = "Passend in venster toont het volledige beeldscherm. Vul venster snijdt de randen bij wanneer het venster een andere vorm heeft.";
+"Force Shut Down" = "Forceer uitschakelen";
+"Force Shut Down Virtual Mac?" = "Uitschakelen van Virtual Mac forceren?";
+"Full Screen" = "Volledig scherm";
+"General" = "Algemeen";
+"Get Help" = "Hulp";
+"Height" = "Hoogte";
+"Hide for This Boot" = "Verbergen voor deze opstart";
+"Incomplete Installation" = "Onvoltooide installatie";
+"Incomplete Installations" = "Onvoltooide installaties";
+"Input" = "Invoer";
+"Input While a Virtual Mac Is Running" = "Invoer terwijl een virtuele Mac actief is";
+"Install %@" = "%@ installeren";
+"Install macOS" = "Installeer macOS";
+"Installation Details" = "Installatiedetails";
+"Installation Failed" = "Installatie mislukt";
+"Installation progress may pause for several minutes while the Virtual Mac starts the installation environment. Your iPad will remain awake." = "De installatievoortgang kan enkele minuten worden onderbroken terwijl Virtuele Mac de installatieomgeving start. Uw iPad blijft actief.";
+"Installation progress may remain unchanged while macOS prepares the next installation stage. Your iPad will remain awake." = "De installatievoortgang kan ongewijzigd blijven terwijl macOS de volgende installatiefase voorbereidt. Uw iPad blijft actief.";
+"Installed, but settings save failed: %@" = "Geïnstalleerd, maar instellingen konden niet worden bewaard: %@";
+"Installing macOS" = "macOS installeren";
+"iPad Internet Connection" = "Internetverbinding van iPad";
+"Keep Downloading" = "Doorgaan met downloaden";
+"Keep Editing" = "Doorgaan met bewerken";
+"Keep Installing" = "Doorgaan met installeren";
+"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";
+"Keyboard Crash Workaround" = "Oplossing voor toetsenbordcrashes";
+"Keyboard Crash Workaround takes effect the next time Virtual Mac opens. Debug Logging takes effect the next time a Virtual Mac starts." = "De oplossing voor toetsenbordcrashes wordt actief wanneer Virtuele Mac de volgende keer wordt geopend. Het foutopsporingslogboek wordt actief wanneer een virtuele Mac de volgende keer wordt gestart.";
+"Library Appearance" = "Weergave bibliotheek";
+"Loading extracted Apple virtualization frameworks…" = "Geëxtraheerde Apple-virtualisatieframeworks laden…";
+"MAC Address" = "MAC-adres";
+"Mac Keyboard" = "Mac-toetsenbord";
+"Mac Keyboard Shortcuts" = "Mac-sneltoetsen";
+"Mac Trackpad" = "Mac-trackpad";
+"macOS Installed" = "macOS geïnstalleerd";
+"Memory" = "Geheugen";
+"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";
+"Name" = "Naam";
+"Name Already Used" = "Naam al in gebruik";
+"NAT: Share %@" = "NAT: deel %@";
+"Network" = "Netwerk";
+"Network Attachment" = "Netwerkverbinding";
+"Network Bridge (%@)" = "Netwerkbrug (%@)";
+"New Virtual Mac" = "Nieuwe virtuele Mac";
+"No Results" = "Geen resultaten";
+"No Virtual Macs match your search." = "Geen enkele virtuele Mac komt overeen met uw zoekopdracht.";
+"OK" = "OK";
+"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.";
+"Options" = "Opties";
+"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";
+"Portrait Full Screen" = "Volledig scherm staand";
+"Preparing installation…" = "Installatie voorbereiden…";
+"Preparing the IPSW for installation. Your iPad will remain awake." = "IPSW voorbereiden voor installatie. Uw iPad blijft actief.";
+"Preparing virtual hardware…" = "Virtuele hardware voorbereiden…";
+"Preparing…" = "Voorbereiden…";
+"Processors" = "Processors";
+"Read & Write" = "Lezen en schrijven";
+"Read Only" = "Alleen-lezen";
+"Reading restore image…" = "Herstelimage lezen…";
+"Recommended macOS Release" = "Aanbevolen macOS-versie";
+"Recover Networking After Sleep" = "Herstel netwerken na de slaap";
+"Release" = "Uitgave";
+"Remove" = "Verwijder";
+"Report Issue" = "Meld een probleem";
+"Reset" = "Stel opnieuw in";
+"Reset Settings" = "Instellingen resetten";
+"Reset Settings?" = "Instellingen opnieuw instellen?";
+"Resolution" = "Resolutie";
+"Resources" = "Resources";
+"Resume" = "Hervat";
+"Save" = "Bewaar";
+"Search Virtual Mac" = "Zoek virtuele Mac";
+"Settings" = "Instellingen";
+"Shared Folder" = "Gedeelde map";
+"Shared via %@" = "Gedeeld via %@";
+"Show Developer Betas" = "Toon ontwikkelaarsbèta’s";
+"Show Library" = "Toon bibliotheek";
+"Show Minor Releases" = "Toon kleine versies";
+"Show Version Details" = "Versiedetails tonen";
+"Show Virtual Mac Controls" = "Toon Virtual Mac-regelaars";
+"Start" = "Start";
+"Start %@" = "Start %@";
+"Start in Recovery" = "Start in herstelmodus";
+"Start on Launch" = "Start bij openen";
+"Starting installation environment…" = "Installatieomgeving starten…";
+"Starting installation services…" = "Installatieservices starten…";
+"Starting installation…" = "Installatie starten…";
+"Starting Virtual Mac…" = "Virtual Mac starten…";
+"Storage" = "Opslag";
+"Support" = "Ondersteuning";
+"Support for %@ is experimental" = "Ondersteuning voor %@ is experimenteel";
+"Suppress iPadOS Home Indicator" = "iPadOS-thuisindicator verbergen";
+"Suppress iPadOS Multitasking Gestures" = "Multitaskinggebaren van iPadOS uitschakelen";
+"Suppress iPadOS System Edge Gestures" = "Systeemgebaren vanaf de schermranden in iPadOS uitschakelen";
+"Switch to Running Virtual Mac" = "Ga naar actieve Virtual Mac";
+"Switch to the running Virtual Mac and shut it down before starting another one." = "Ga naar de actieve Virtual Mac en schakel deze uit voordat u een andere start.";
+"The diagnostics archive could not be created." = "Het diagnostische archief kon niet worden aangemaakt.";
+"The first progress value can take several minutes while the Virtual Mac changes from DFU to RestoreOS. Your iPad will remain awake." = "De eerste voortgangswaarde kan enkele minuten duren terwijl de Virtual Mac van DFU naar RestoreOS overschakelt. Uw iPad blijft actief.";
+"The incomplete Virtual Mac and its installation files will be deleted." = "De onvoltooide Virtual Mac en de installatiebestanden worden verwijderd.";
+"The install image and temporary installation files were kept so the failure can be diagnosed. You can export diagnostics from Settings." = "De installatie-image en tijdelijke installatiebestanden zijn bewaard om de fout te kunnen onderzoeken. U kunt diagnostische gegevens exporteren via Instellingen.";
+"The installer could not be started: %s" = "Het installatieprogramma kon niet worden gestart: %s";
+"The new Virtual Mac is ready to use." = "De nieuwe Virtual Mac is klaar voor gebruik.";
+"The partial restore image will be deleted." = "De gedeeltelijk gedownloade herstelimage wordt verwijderd.";
+"The Virtual Mac configuration could not be created." = "De configuratie van de Virtual Mac kon niet worden aangemaakt.";
+"The Virtual Mac did not publish a display framebuffer." = "De Virtual Mac heeft geen beeldschermframebuffer gepubliceerd.";
+"The Virtual Mac display view is unavailable" = "De beeldschermweergave van Virtual Mac is niet beschikbaar";
+"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 show the controls again during this boot, touch and hold the Virtual Mac icon on the Home Screen, then choose Show Virtual Mac Controls." = "Om de regelaars tijdens deze opstart weer te tonen, houdt u het Virtual Mac-symbool op het beginscherm ingedrukt en kiest u ‘Toon Virtual Mac-regelaars’.";
+"Top Left" = "Linksboven";
+"Top Right" = "Rechtsboven";
+"Touch and Hold for Secondary Click" = "Aanraken en vasthouden voor secundaire klik";
+"Two-Finger Tap for Secondary Click" = "Tik met twee vingers voor secundaire klik";
+"Two-Finger Touch Scrolling" = "Scrollen met twee vingers";
+"Unknown" = "Onbekend";
+"Unsaved changes in macOS may be lost." = "Niet-bewaarde wijzigingen in macOS kunnen verloren gaan.";
+"Unsupported Restore Image" = "Niet-ondersteunde herstelkopie";
+"USB Keyboard" = "USB-toetsenbord";
+"USB Mouse" = "USB-muis";
+"Use an IPSW on your iPad" = "Gebruik een IPSW op uw iPad";
+"Use USB Keyboard for macOS Monterey. Newer guests support the Mac keyboard device." = "Gebruik in macOS Monterey een USB-toetsenbord. Nieuwere macOS-versies ondersteunen het Mac-toetsenbord.";
+"Use USB Mouse for macOS Monterey. Newer guests support the Mac trackpad device." = "Gebruik in macOS Monterey een USB-muis. Nieuwere macOS-versies ondersteunen het Mac-trackpad.";
+"Validation failed: %@" = "Validatie mislukt: %@";
+"Verify your iPad has sufficient free storage and try again." = "Controleer of uw iPad voldoende vrije opslagruimte heeft en probeer het opnieuw.";
+"Version" = "Versie";
+"Video Encoding and Decoding Acceleration" = "Versnelling van videocodering en -decodering";
+"View Details" = "Bekijk details";
+"Virtual Mac" = "Virtuele Mac";
+"Virtual Mac %@ does not support %@. Check for updates in Sileo." = "Virtual Mac %@ ondersteunt %@ niet. Kijk in Sileo of er updates zijn.";
+"Virtual Mac Controls" = "Regelaars voor virtuele Mac";
+"Virtual Mac devices are stored in %@." = "Virtuele Macs worden bewaard in %@.";
+"Virtual Mac Display" = "Beeldscherm van 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";
+"Virtual Mac start failed: %@" = "Virtual Mac kon niet worden gestart: %@";
+"Virtual Mac Stopped" = "Virtuele Mac is gestopt";
+"Virtual Mac stopped: %@" = "Virtual Mac gestopt: %@";
+"VPN" = "VPN";
+"Waiting for installation output…" = "Wachten op installatie-uitvoer…";
+"Welcome to Virtual Mac" = "Welkom bij Virtuele Mac";
+"Wi-Fi" = "Wi-Fi";
+"Width" = "Breedte";
+"You can also copy an existing Virtual Mac bundle to /var/mobile/Media/VirtualMac using an app such as iMazing or Filza." = "U kunt ook een bestaande Virtual Mac-bundel naar /var/mobile/Media/VirtualMac kopiëren met een app zoals iMazing of Filza.";
+"Your changes to this Virtual Mac will not be saved." = "Uw wijzigingen aan deze Virtual Mac worden niet bewaard.";
+"“%@” and all files stored in it will be permanently deleted." = "‘%@’ en alle daarin bewaarde bestanden worden permanent verwijderd.";
diff --git a/VirtualMac/resources/Localizations/no.lproj/InfoPlist.strings b/VirtualMac/resources/Localizations/no.lproj/InfoPlist.strings
new file mode 100644
index 0000000..3750a8a
--- /dev/null
+++ b/VirtualMac/resources/Localizations/no.lproj/InfoPlist.strings
@@ -0,0 +1,2 @@
+"CFBundleDisplayName" = "Virtuell Mac";
+"CFBundleName" = "Virtuell Mac";
diff --git a/VirtualMac/resources/Localizations/no.lproj/Localizable.strings b/VirtualMac/resources/Localizations/no.lproj/Localizable.strings
new file mode 100644
index 0000000..65d3380
--- /dev/null
+++ b/VirtualMac/resources/Localizations/no.lproj/Localizable.strings
@@ -0,0 +1,247 @@
+/* Virtual Mac 1.1 localization. */
+" · Legacy" = " · Eldre";
+"%.0f%% complete" = "%.0f%% fullført";
+"%@ CPU · %@ GB RAM · %llu GB · %@%@" = "%@ CPU · %@ GB RAM · %llu GB · %@%@";
+"%@ is not supported" = "%@ støttes ikke";
+"%@ 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";
+"%@\n\n%@\n\nThe incomplete Virtual Mac was retained in Temporary Installation Files as %@. It can be deleted from Settings." = "%@\n\n%@\n\nDen ufullstendige virtuelle Mac-en ble beholdt i Midlertidige installasjonsfiler som %@. Den kan slettes i Innstillinger.";
+"%@\nState: %@\n%@\n\n" = "%@\nStatus: %@\n%@\n\n";
+"A previous macOS installation did not finish. You can review its details, keep it for debugging, or delete it." = "En tidligere macOS-installasjon ble ikke fullført. Du kan se gjennom detaljene, beholde den for feilsøking eller slette den.";
+"About" = "Om";
+"Accommodate Finger Double-Taps" = "Gjør dobbelttrykk med en finger enklere";
+"Add Shared Folder" = "Legg til delt mappe";
+"Advanced" = "Avansert";
+"Allowed: %llu–%llu%@" = "Tillatt: %llu–%llu%@";
+"Always Hidden" = "Alltid skjult";
+"Always Visible" = "Alltid synlig";
+"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";
+"Audio and Acceleration" = "Lyd og akselerasjon";
+"Audio Output" = "Lydutgang";
+"Automatic" = "Automatisk";
+"Automatic hides the controls when an external keyboard and pointing device are connected." = "Automatisk skjuler kontrollene når et eksternt tastatur og en pekeenhet er tilkoblet.";
+"Available macOS Releases" = "Tilgjengelige macOS-utgivelser";
+"Available macOS Versions" = "Tilgjengelige macOS-versjoner";
+"Boot and Network" = "Oppstart og nettverk";
+"Bottom Left" = "Nederst til venstre";
+"Bottom Right" = "Nederst til høyre";
+"Bridge" = "Bro";
+"Bridge via %@" = "Bro via %@";
+"Bridge: %@" = "Bro: %@";
+"Build %@" = "Bygg %@";
+"Calculating speed…" = "Beregner hastighet…";
+"Cancel" = "Avbryt";
+"Cancel Download" = "Avbryt nedlasting";
+"Cancel Download?" = "Avbryte nedlastingen?";
+"Cancel Installation" = "Avbryt installasjon";
+"Cancel Installation?" = "Avbryte installasjonen?";
+"Cellular" = "Mobilnett";
+"Choose a Different Version" = "Velg en annen versjon";
+"Choose a macOS IPSW restore image." = "Velg en macOS IPSW-gjenopprettingsfil.";
+"Choose a name for this Virtual Mac." = "Velg et navn for denne Virtual Mac.";
+"Choose Custom IPSW" = "Velg egendefinert IPSW";
+"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. Renaming and deletion are unavailable while it is running." = "Konfigurasjonsendringer trer i kraft etter at Virtual Mac er slått av og startet på nytt. Den kan ikke gis nytt navn eller slettes mens den kjører.";
+"Configuration failed: %@" = "Konfigurasjon mislyktes: %@";
+"Configure %@" = "Konfigurer %@";
+"Continue" = "Fortsett";
+"Controls Hidden" = "Kontroller skjult";
+"Controls Opacity" = "Kontrollenes opasitet";
+"Copy Library Path" = "Kopier bibliotekstien";
+"Copying Restore Image" = "Kopierer gjenopprettingsbilde";
+"Could Not Copy IPSW" = "Kunne ikke kopiere IPSW";
+"Could Not Prepare Restore Image" = "Kunne ikke klargjøre gjenopprettingsfilen";
+"Could Not Rename Virtual Mac" = "Kunne ikke endre navnet på Virtuell Mac";
+"Could Not Save" = "Kunne ikke arkivere";
+"Could Not Start Installer" = "Kunne ikke starte installereren";
+"Couldn’t Export Diagnostics" = "Kunne ikke eksportere diagnostikk";
+"Create Virtual Mac" = "Opprett en virtuell Mac";
+"Custom" = "Tilpasset";
+"Debug Logging" = "Feilsøkingslogging";
+"Delete" = "Slett";
+"Delete All" = "Slett alle";
+"Delete Cached Install Images" = "Slett bufrede installasjonsbilder";
+"Delete Cached Install Images?" = "Slette bufrede installasjonsbilder?";
+"Delete Incomplete Installation" = "Slett ufullstendig installasjon";
+"Delete IPSW After Successful Installation" = "Slett IPSW etter vellykket installasjon";
+"Delete or rename the existing Virtual Mac first." = "Slett eller gi nytt navn til den eksisterende Virtual Mac først.";
+"Delete Temporary Installation Files" = "Slett midlertidige installasjonsfiler";
+"Delete Temporary Installation Files?" = "Slette midlertidige installasjonsfiler?";
+"Delete Virtual Mac" = "Slett Virtual Mac";
+"Delete Virtual Mac?" = "Slette Virtual Mac?";
+"Developer Beta" = "Utviklerbeta";
+"Developers" = "Utviklere";
+"Disabled" = "Deaktivert";
+"Discard Changes" = "Forkast endringer";
+"Discard Changes?" = "Forkaste endringene?";
+"Disk Exceeds Available Storage" = "Disken overstiger tilgjengelig lagring";
+"Display" = "Skjerm";
+"Display Height" = "Skjermhøyde";
+"Display Resolution" = "Skjermoppløsning";
+"Display Width" = "Skjermbredde";
+"Done" = "Ferdig";
+"Double-tap to hold or release this modifier" = "Dobbelttrykk for å låse eller slippe denne spesialtasten";
+"Download Failed" = "Nedlasting mislyktes";
+"Downloading macOS" = "Laster ned macOS";
+"Enter six hexadecimal octets separated by colons." = "Skriv inn seks heksadesimale oktetter atskilt med kolon.";
+"Ethernet (%@)" = "Ethernet (%@)";
+"Experimental" = "Eksperimentell";
+"Export Diagnostics" = "Eksporter diagnostikk";
+"Failed to load extracted frameworks" = "Kunne ikke laste inn utpakkede rammeverk";
+"Failed to load the extracted Apple virtualization frameworks." = "De utpakkede Apple-rammeverkene for virtualisering kunne ikke lastes inn.";
+"Fill Window" = "Fyll vindu";
+"Fit in Window" = "Tilpass til vinduet";
+"Fit in Window shows the entire display. Fill Window crops its edges when the window has a different shape." = "Tilpass til vindu viser hele skjermen. Fyll vindu beskjærer kantene når vinduet har en annen form.";
+"Force Shut Down" = "Tving avslutning";
+"Force Shut Down Virtual Mac?" = "Tving avslutning av Virtual Mac?";
+"Full Screen" = "Fullskjerm";
+"General" = "Generelt";
+"Get Help" = "Få hjelp";
+"Height" = "Høyde";
+"Hide for This Boot" = "Skjul for denne oppstarten";
+"Incomplete Installation" = "Ufullstendig installasjon";
+"Incomplete Installations" = "Ufullstendige installasjoner";
+"Input" = "Inndata";
+"Input While a Virtual Mac Is Running" = "Inndata mens en virtuell Mac kjører";
+"Install %@" = "Installer %@";
+"Install macOS" = "Installer macOS";
+"Installation Details" = "Installasjonsdetaljer";
+"Installation Failed" = "Installering mislyktes";
+"Installation progress may pause for several minutes while the Virtual Mac starts the installation environment. Your iPad will remain awake." = "Installasjonsfremdriften kan stoppe i flere minutter mens Virtuell Mac starter installasjonsmiljøet. iPaden din forblir aktiv.";
+"Installation progress may remain unchanged while macOS prepares the next installation stage. Your iPad will remain awake." = "Installasjonsfremdriften kan forbli uendret mens macOS forbereder neste installasjonstrinn. iPaden din forblir aktiv.";
+"Installed, but settings save failed: %@" = "Installert, men innstillingene kunne ikke lagres: %@";
+"Installing macOS" = "Installerer macOS";
+"iPad Internet Connection" = "Internettforbindelse på iPad";
+"Keep Downloading" = "Fortsett nedlasting";
+"Keep Editing" = "Fortsett redigering";
+"Keep Installing" = "Fortsett installasjon";
+"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";
+"Keyboard Crash Workaround" = "Løsning for tastaturkrasj";
+"Keyboard Crash Workaround takes effect the next time Virtual Mac opens. Debug Logging takes effect the next time a Virtual Mac starts." = "Løsningen for tastaturkrasj trer i kraft neste gang Virtuell Mac åpnes. Feilsøkingslogging trer i kraft neste gang en virtuell Mac startes.";
+"Library Appearance" = "Bibliotekutseende";
+"Loading extracted Apple virtualization frameworks…" = "Laster inn utpakkede Apple-rammeverk for virtualisering…";
+"MAC Address" = "MAC-adresse";
+"Mac Keyboard" = "Mac-tastatur";
+"Mac Keyboard Shortcuts" = "Mac-tastatursnarveier";
+"Mac Trackpad" = "Mac-styreflate";
+"macOS Installed" = "macOS installert";
+"Memory" = "Minne";
+"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";
+"Name" = "Navn";
+"Name Already Used" = "Navnet er allerede i bruk";
+"NAT: Share %@" = "NAT: Del %@";
+"Network" = "Nettverk";
+"Network Attachment" = "Nettverkstilkobling";
+"Network Bridge (%@)" = "Nettverksbro (%@)";
+"New Virtual Mac" = "Ny virtuell Mac";
+"No Results" = "Ingen resultater";
+"No Virtual Macs match your search." = "Ingen virtuelle Macer samsvarer med søket ditt.";
+"OK" = "OK";
+"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.";
+"Options" = "Valg";
+"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";
+"Portrait Full Screen" = "Fullskjerm i stående format";
+"Preparing installation…" = "Forbereder installasjon…";
+"Preparing the IPSW for installation. Your iPad will remain awake." = "Forbereder IPSW for installasjon. iPaden din forblir aktiv.";
+"Preparing virtual hardware…" = "Forbereder virtuell maskinvare…";
+"Preparing…" = "Forbereder…";
+"Processors" = "Prosessorer";
+"Read & Write" = "Les og skriv";
+"Read Only" = "Skrivebeskyttet";
+"Reading restore image…" = "Leser gjenopprettingsbilde…";
+"Recommended macOS Release" = "Anbefalt macOS-utgivelse";
+"Recover Networking After Sleep" = "Gjenopprett nettverk etter dvale";
+"Release" = "Utgivelse";
+"Remove" = "Fjern";
+"Report Issue" = "Rapporter et problem";
+"Reset" = "Nullstill";
+"Reset Settings" = "Tilbakestill innstillinger";
+"Reset Settings?" = "Nullstille innstillinger?";
+"Resolution" = "Oppløsning";
+"Resources" = "Ressurser";
+"Resume" = "Fortsett";
+"Save" = "Arkiver";
+"Search Virtual Mac" = "Søk etter virtuell Mac";
+"Settings" = "Innstillinger";
+"Shared Folder" = "Delt mappe";
+"Shared via %@" = "Delt via %@";
+"Show Developer Betas" = "Vis utviklerbetaer";
+"Show Library" = "Vis bibliotek";
+"Show Minor Releases" = "Vis mindre versjoner";
+"Show Version Details" = "Vis versjonsdetaljer";
+"Show Virtual Mac Controls" = "Vis Virtual Mac-kontroller";
+"Start" = "Start";
+"Start %@" = "Start %@";
+"Start in Recovery" = "Start i gjenoppretting";
+"Start on Launch" = "Start ved åpning";
+"Starting installation environment…" = "Starter installasjonsmiljø…";
+"Starting installation services…" = "Starter installasjonstjenester…";
+"Starting installation…" = "Starter installasjon…";
+"Starting Virtual Mac…" = "Starter Virtual Mac…";
+"Storage" = "Lagring";
+"Support" = "Kundestøtte";
+"Support for %@ is experimental" = "Støtte for %@ er eksperimentell";
+"Suppress iPadOS Home Indicator" = "Skjul Hjem-indikatoren i iPadOS";
+"Suppress iPadOS Multitasking Gestures" = "Deaktiver fleroppgavebevegelser i iPadOS";
+"Suppress iPadOS System Edge Gestures" = "Deaktiver systembevegelser fra skjermkantene i iPadOS";
+"Switch to Running Virtual Mac" = "Bytt til Virtual Mac som kjører";
+"Switch to the running Virtual Mac and shut it down before starting another one." = "Bytt til Virtual Mac som kjører, og slå den av før du starter en annen.";
+"The diagnostics archive could not be created." = "Diagnostikkarkivet kunne ikke opprettes.";
+"The first progress value can take several minutes while the Virtual Mac changes from DFU to RestoreOS. Your iPad will remain awake." = "Den første fremdriftsverdien kan ta flere minutter mens Virtual Mac går fra DFU til RestoreOS. iPaden din forblir aktiv.";
+"The incomplete Virtual Mac and its installation files will be deleted." = "Den ufullstendige Virtual Mac og installasjonsfilene slettes.";
+"The install image and temporary installation files were kept so the failure can be diagnosed. You can export diagnostics from Settings." = "Installasjonsbildet og de midlertidige installasjonsfilene ble beholdt slik at feilen kan diagnostiseres. Du kan eksportere diagnostikk fra Innstillinger.";
+"The installer could not be started: %s" = "Installeringsprogrammet kunne ikke startes: %s";
+"The new Virtual Mac is ready to use." = "Den nye Virtual Mac er klar til bruk.";
+"The partial restore image will be deleted." = "Det delvis nedlastede gjenopprettingsbildet slettes.";
+"The Virtual Mac configuration could not be created." = "Konfigurasjonen for Virtual Mac kunne ikke opprettes.";
+"The Virtual Mac did not publish a display framebuffer." = "Virtual Mac publiserte ingen skjerm-framebuffer.";
+"The Virtual Mac display view is unavailable" = "Skjermvisningen for Virtual Mac er utilgjengelig";
+"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 show the controls again during this boot, touch and hold the Virtual Mac icon on the Home Screen, then choose Show Virtual Mac Controls." = "For å vise kontrollene igjen under denne oppstarten holder du inne Virtual Mac-symbolet på Hjem-skjermen og velger «Vis Virtual Mac-kontroller».";
+"Top Left" = "Øverst til venstre";
+"Top Right" = "Øverst til høyre";
+"Touch and Hold for Secondary Click" = "Trykk og hold for sekundært klikk";
+"Two-Finger Tap for Secondary Click" = "Trykk med to fingre for sekundært klikk";
+"Two-Finger Touch Scrolling" = "To-fingers berøringsrulling";
+"Unknown" = "Ukjent";
+"Unsaved changes in macOS may be lost." = "Ulagrede endringer i macOS kan gå tapt.";
+"Unsupported Restore Image" = "Gjenopprettingsfilen støttes ikke";
+"USB Keyboard" = "USB-tastatur";
+"USB Mouse" = "USB-mus";
+"Use an IPSW on your iPad" = "Bruk en IPSW på iPaden din";
+"Use USB Keyboard for macOS Monterey. Newer guests support the Mac keyboard device." = "Bruk et USB-tastatur i macOS Monterey. Nyere macOS-versjoner støtter Mac-tastaturet.";
+"Use USB Mouse for macOS Monterey. Newer guests support the Mac trackpad device." = "Bruk en USB-mus i macOS Monterey. Nyere macOS-versjoner støtter Mac-styreflaten.";
+"Validation failed: %@" = "Validering mislyktes: %@";
+"Verify your iPad has sufficient free storage and try again." = "Kontroller at iPaden din har nok ledig lagringsplass, og prøv igjen.";
+"Version" = "Versjon";
+"Video Encoding and Decoding Acceleration" = "Akselerasjon av videokoding og -dekoding";
+"View Details" = "Vis detaljer";
+"Virtual Mac" = "Virtuell Mac";
+"Virtual Mac %@ does not support %@. Check for updates in Sileo." = "Virtual Mac %@ støtter ikke %@. Se etter oppdateringer i Sileo.";
+"Virtual Mac Controls" = "Kontroller for Virtuell Mac";
+"Virtual Mac devices are stored in %@." = "Virtuelle Macer arkiveres i %@.";
+"Virtual Mac Display" = "Virtuell Mac-skjerm";
+"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";
+"Virtual Mac start failed: %@" = "Virtual Mac kunne ikke startes: %@";
+"Virtual Mac Stopped" = "Virtuell Mac stoppet";
+"Virtual Mac stopped: %@" = "Virtual Mac stoppet: %@";
+"VPN" = "VPN";
+"Waiting for installation output…" = "Venter på installasjonsutdata…";
+"Welcome to Virtual Mac" = "Velkommen til Virtuell Mac";
+"Wi-Fi" = "Wi-Fi";
+"Width" = "Bredde";
+"You can also copy an existing Virtual Mac bundle to /var/mobile/Media/VirtualMac using an app such as iMazing or Filza." = "Du kan også kopiere en eksisterende Virtual Mac-pakke til /var/mobile/Media/VirtualMac med en app som iMazing eller Filza.";
+"Your changes to this Virtual Mac will not be saved." = "Endringene dine i denne Virtual Mac blir ikke lagret.";
+"“%@” and all files stored in it will be permanently deleted." = "«%@» og alle filer som er lagret i den, slettes permanent.";
diff --git a/VirtualMac/resources/Localizations/pl.lproj/InfoPlist.strings b/VirtualMac/resources/Localizations/pl.lproj/InfoPlist.strings
new file mode 100644
index 0000000..11a7159
--- /dev/null
+++ b/VirtualMac/resources/Localizations/pl.lproj/InfoPlist.strings
@@ -0,0 +1,2 @@
+"CFBundleDisplayName" = "Wirtualny Mac";
+"CFBundleName" = "Wirtualny Mac";
diff --git a/VirtualMac/resources/Localizations/pl.lproj/Localizable.strings b/VirtualMac/resources/Localizations/pl.lproj/Localizable.strings
new file mode 100644
index 0000000..d3dc2fb
--- /dev/null
+++ b/VirtualMac/resources/Localizations/pl.lproj/Localizable.strings
@@ -0,0 +1,247 @@
+/* Virtual Mac 1.1 localization. */
+" · Legacy" = " · Starsze";
+"%.0f%% complete" = "Ukończono %.0f%%";
+"%@ CPU · %@ GB RAM · %llu GB · %@%@" = "%@ CPU · %@ GB RAM · %llu GB · %@%@";
+"%@ is not supported" = "%@ nie jest obsługiwany";
+"%@ 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: %@";
+"%@\n\n%@\n\nThe incomplete Virtual Mac was retained in Temporary Installation Files as %@. It can be deleted from Settings." = "%@\n\n%@\n\nNieukończony wirtualny Mac został zachowany w Tymczasowych plikach instalacyjnych jako %@. Można go usunąć w Ustawieniach.";
+"%@\nState: %@\n%@\n\n" = "%@\nStan: %@\n%@\n\n";
+"A previous macOS installation did not finish. You can review its details, keep it for debugging, or delete it." = "Poprzednia instalacja macOS nie została ukończona. Możesz przejrzeć jej szczegóły, zachować ją do diagnostyki lub usunąć.";
+"About" = "Informacje";
+"Accommodate Finger Double-Taps" = "Ułatw podwójne stuknięcie palcem";
+"Add Shared Folder" = "Dodaj folder udostępniony";
+"Advanced" = "Zaawansowane";
+"Allowed: %llu–%llu%@" = "Dozwolone: %llu–%llu%@";
+"Always Hidden" = "Zawsze ukryty";
+"Always Visible" = "Zawsze widoczne";
+"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";
+"Audio and Acceleration" = "Dźwięk i akceleracja";
+"Audio Output" = "Wyjście dźwięku";
+"Automatic" = "Automatyczny";
+"Automatic hides the controls when an external keyboard and pointing device are connected." = "Tryb automatyczny ukrywa elementy sterujące po podłączeniu zewnętrznej klawiatury i urządzenia wskazującego.";
+"Available macOS Releases" = "Dostępne wydania macOS";
+"Available macOS Versions" = "Dostępne wersje macOS";
+"Boot and Network" = "Uruchamianie i sieć";
+"Bottom Left" = "Na dole po lewej";
+"Bottom Right" = "Na dole po prawej";
+"Bridge" = "Most";
+"Bridge via %@" = "Most przez %@";
+"Bridge: %@" = "Most: %@";
+"Build %@" = "Kompilacja %@";
+"Calculating speed…" = "Obliczanie szybkości…";
+"Cancel" = "Anuluj";
+"Cancel Download" = "Anuluj pobieranie";
+"Cancel Download?" = "Anulować pobieranie?";
+"Cancel Installation" = "Anuluj instalację";
+"Cancel Installation?" = "Anulować instalację?";
+"Cellular" = "Sieć komórkowa";
+"Choose a Different Version" = "Wybierz inną wersję";
+"Choose a macOS IPSW restore image." = "Wybierz obraz odtwarzania macOS IPSW.";
+"Choose a name for this Virtual Mac." = "Wybierz nazwę dla tego Virtual Maca.";
+"Choose Custom IPSW" = "Wybierz niestandardowy IPSW";
+"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. Renaming and deletion are unavailable while it is running." = "Zmiany konfiguracji zaczną obowiązywać po wyłączeniu i ponownym uruchomieniu Virtual Maca. Podczas jego działania nie można zmieniać nazwy ani go usuwać.";
+"Configuration failed: %@" = "Konfiguracja nie powiodła się: %@";
+"Configure %@" = "Skonfiguruj %@";
+"Continue" = "Kontynuuj";
+"Controls Hidden" = "Elementy sterujące ukryte";
+"Controls Opacity" = "Krycie elementów sterujących";
+"Copy Library Path" = "Skopiuj ścieżkę biblioteki";
+"Copying Restore Image" = "Kopiowanie obrazu odtwarzania";
+"Could Not Copy IPSW" = "Nie można skopiować IPSW";
+"Could Not Prepare Restore Image" = "Nie można przygotować obrazu odtwarzania";
+"Could Not Rename Virtual Mac" = "Nie można zmienić nazwy Wirtualnego Maca";
+"Could Not Save" = "Nie można zachować";
+"Could Not Start Installer" = "Nie można uruchomić instalatora";
+"Couldn’t Export Diagnostics" = "Nie udało się wyeksportować diagnostyki";
+"Create Virtual Mac" = "Utwórz Wirtualny Mac";
+"Custom" = "Własna";
+"Debug Logging" = "Rejestrowanie debugowania";
+"Delete" = "Usuń";
+"Delete All" = "Usuń wszystko";
+"Delete Cached Install Images" = "Usuń zapisane obrazy instalacyjne";
+"Delete Cached Install Images?" = "Usunąć zapisane obrazy instalacyjne?";
+"Delete Incomplete Installation" = "Usuń nieukończoną instalację";
+"Delete IPSW After Successful Installation" = "Usuń IPSW po pomyślnej instalacji";
+"Delete or rename the existing Virtual Mac first." = "Najpierw usuń istniejącego Virtual Maca lub zmień jego nazwę.";
+"Delete Temporary Installation Files" = "Usuń tymczasowe pliki instalacyjne";
+"Delete Temporary Installation Files?" = "Usunąć tymczasowe pliki instalacyjne?";
+"Delete Virtual Mac" = "Usuń Virtual Maca";
+"Delete Virtual Mac?" = "Usunąć Virtual Maca?";
+"Developer Beta" = "Beta dla deweloperów";
+"Developers" = "Deweloperzy";
+"Disabled" = "Wyłączone";
+"Discard Changes" = "Odrzuć zmiany";
+"Discard Changes?" = "Odrzucić zmiany?";
+"Disk Exceeds Available Storage" = "Dysk przekracza dostępną przestrzeń";
+"Display" = "Monitor";
+"Display Height" = "Wysokość ekranu";
+"Display Resolution" = "Rozdzielczość ekranu";
+"Display Width" = "Szerokość ekranu";
+"Done" = "Gotowe";
+"Double-tap to hold or release this modifier" = "Stuknij dwukrotnie, aby przytrzymać lub zwolnić ten klawisz modyfikujący";
+"Download Failed" = "Pobieranie nie powiodło się";
+"Downloading macOS" = "Pobieranie macOS";
+"Enter six hexadecimal octets separated by colons." = "Wprowadź sześć oktetów szesnastkowych rozdzielonych dwukropkami.";
+"Ethernet (%@)" = "Ethernet (%@)";
+"Experimental" = "Eksperymentalne";
+"Export Diagnostics" = "Diagnostyka eksportu";
+"Failed to load extracted frameworks" = "Nie udało się wczytać wyodrębnionych frameworków";
+"Failed to load the extracted Apple virtualization frameworks." = "Nie udało się wczytać wyodrębnionych frameworków wirtualizacji Apple.";
+"Fill Window" = "Wypełnij okno";
+"Fit in Window" = "Dopasuj do okna";
+"Fit in Window shows the entire display. Fill Window crops its edges when the window has a different shape." = "Dopasuj do okna pokazuje cały ekran. Wypełnij okno przycina jego krawędzie, gdy okno ma inne proporcje.";
+"Force Shut Down" = "Wymuś wyłączenie";
+"Force Shut Down Virtual Mac?" = "Wymusić wyłączenie Virtual Maca?";
+"Full Screen" = "Pełny ekran";
+"General" = "Ogólne";
+"Get Help" = "Pomoc";
+"Height" = "Wysokość";
+"Hide for This Boot" = "Ukryj podczas tego uruchomienia";
+"Incomplete Installation" = "Nieukończona instalacja";
+"Incomplete Installations" = "Nieukończone instalacje";
+"Input" = "Urządzenie peryferyjne";
+"Input While a Virtual Mac Is Running" = "Wprowadzanie podczas działania wirtualnego Maca";
+"Install %@" = "Zainstaluj %@";
+"Install macOS" = "Zainstaluj macOS";
+"Installation Details" = "Szczegóły instalacji";
+"Installation Failed" = "Instalacja nie powiodła się";
+"Installation progress may pause for several minutes while the Virtual Mac starts the installation environment. Your iPad will remain awake." = "Postęp instalacji może zatrzymać się na kilka minut, gdy Wirtualny Mac uruchamia środowisko instalacyjne. iPad pozostanie aktywny.";
+"Installation progress may remain unchanged while macOS prepares the next installation stage. Your iPad will remain awake." = "Postęp instalacji może pozostać bez zmian, gdy macOS przygotowuje kolejny etap instalacji. iPad pozostanie aktywny.";
+"Installed, but settings save failed: %@" = "Zainstalowano, ale nie udało się zapisać ustawień: %@";
+"Installing macOS" = "Instalowanie macOS";
+"iPad Internet Connection" = "Połączenie internetowe iPada";
+"Keep Downloading" = "Kontynuuj pobieranie";
+"Keep Editing" = "Kontynuuj edycję";
+"Keep Installing" = "Kontynuuj instalację";
+"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";
+"Keyboard Crash Workaround" = "Obejście awarii klawiatury";
+"Keyboard Crash Workaround takes effect the next time Virtual Mac opens. Debug Logging takes effect the next time a Virtual Mac starts." = "Rozwiązanie awarii klawiatury zacznie działać przy następnym otwarciu aplikacji Wirtualny Mac. Rejestrowanie debugowania zacznie działać przy następnym uruchomieniu wirtualnego Maca.";
+"Library Appearance" = "Wygląd biblioteki";
+"Loading extracted Apple virtualization frameworks…" = "Wczytywanie wyodrębnionych frameworków wirtualizacji Apple…";
+"MAC Address" = "Adres fizyczny (MAC)";
+"Mac Keyboard" = "Klawiatura Maca";
+"Mac Keyboard Shortcuts" = "Skróty klawiaturowe Maca";
+"Mac Trackpad" = "Gładzik Maca";
+"macOS Installed" = "macOS zainstalowany";
+"Memory" = "Pamięć";
+"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";
+"Name" = "Nazwa";
+"Name Already Used" = "Nazwa jest już używana";
+"NAT: Share %@" = "NAT: udostępnij %@";
+"Network" = "Sieć";
+"Network Attachment" = "Połączenie sieciowe";
+"Network Bridge (%@)" = "Most sieciowy (%@)";
+"New Virtual Mac" = "Nowy Wirtualny Mac";
+"No Results" = "Brak wyników";
+"No Virtual Macs match your search." = "Żaden Virtual Mac nie pasuje do wyszukiwania.";
+"OK" = "OK";
+"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.";
+"Options" = "Opcje";
+"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";
+"Portrait Full Screen" = "Pełny ekran w orientacji pionowej";
+"Preparing installation…" = "Przygotowywanie instalacji…";
+"Preparing the IPSW for installation. Your iPad will remain awake." = "Przygotowywanie pliku IPSW do instalacji. iPad pozostanie aktywny.";
+"Preparing virtual hardware…" = "Przygotowywanie sprzętu wirtualnego…";
+"Preparing…" = "Przygotowywanie...";
+"Processors" = "Procesory";
+"Read & Write" = "Odczyt i zapis";
+"Read Only" = "Tylko do odczytu";
+"Reading restore image…" = "Odczytywanie obrazu odtwarzania…";
+"Recommended macOS Release" = "Zalecane wydanie macOS";
+"Recover Networking After Sleep" = "Odzyskaj połączenie sieciowe po uśpieniu";
+"Release" = "Wydanie";
+"Remove" = "Usuń";
+"Report Issue" = "Zgłoś problem";
+"Reset" = "Resetuj";
+"Reset Settings" = "Zresetuj ustawienia";
+"Reset Settings?" = "Wyzerować ustawienia?";
+"Resolution" = "Rozdzielczość";
+"Resources" = "Zasoby";
+"Resume" = "Wznów";
+"Save" = "Zachowaj";
+"Search Virtual Mac" = "Znajdź Wirtualny Mac";
+"Settings" = "Ustawienia";
+"Shared Folder" = "Folder udostępniony";
+"Shared via %@" = "Udostępnione przez %@";
+"Show Developer Betas" = "Pokazuj bety dla deweloperów";
+"Show Library" = "Pokaż bibliotekę";
+"Show Minor Releases" = "Pokazuj wydania podrzędne";
+"Show Version Details" = "Pokaż szczegóły wersji";
+"Show Virtual Mac Controls" = "Pokaż elementy sterujące Virtual Maca";
+"Start" = "Uruchom";
+"Start %@" = "Uruchom %@";
+"Start in Recovery" = "Uruchom w trybie odzyskiwania";
+"Start on Launch" = "Uruchom przy otwieraniu";
+"Starting installation environment…" = "Uruchamianie środowiska instalacyjnego…";
+"Starting installation services…" = "Uruchamianie usług instalacji…";
+"Starting installation…" = "Rozpoczynanie instalacji…";
+"Starting Virtual Mac…" = "Uruchamianie Virtual Maca…";
+"Storage" = "Pamięć masowa";
+"Support" = "Wsparcie";
+"Support for %@ is experimental" = "Obsługa %@ jest eksperymentalna";
+"Suppress iPadOS Home Indicator" = "Ukryj wskaźnik ekranu początkowego iPadOS";
+"Suppress iPadOS Multitasking Gestures" = "Wyłącz gesty wielozadaniowości iPadOS";
+"Suppress iPadOS System Edge Gestures" = "Wyłącz gesty systemowe od krawędzi ekranu iPadOS";
+"Switch to Running Virtual Mac" = "Przełącz na uruchomionego Virtual Maca";
+"Switch to the running Virtual Mac and shut it down before starting another one." = "Przełącz na uruchomionego Virtual Maca i wyłącz go przed uruchomieniem innego.";
+"The diagnostics archive could not be created." = "Nie udało się utworzyć archiwum diagnostycznego.";
+"The first progress value can take several minutes while the Virtual Mac changes from DFU to RestoreOS. Your iPad will remain awake." = "Pierwsza wartość postępu może pojawić się po kilku minutach, gdy Virtual Mac przechodzi z DFU do RestoreOS. iPad pozostanie aktywny.";
+"The incomplete Virtual Mac and its installation files will be deleted." = "Nieukończony Virtual Mac i jego pliki instalacyjne zostaną usunięte.";
+"The install image and temporary installation files were kept so the failure can be diagnosed. You can export diagnostics from Settings." = "Obraz instalacyjny i tymczasowe pliki instalacyjne zostały zachowane, aby można było zdiagnozować błąd. Diagnostykę można wyeksportować w Ustawieniach.";
+"The installer could not be started: %s" = "Nie udało się uruchomić instalatora: %s";
+"The new Virtual Mac is ready to use." = "Nowy Virtual Mac jest gotowy do użycia.";
+"The partial restore image will be deleted." = "Częściowo pobrany obraz odtwarzania zostanie usunięty.";
+"The Virtual Mac configuration could not be created." = "Nie udało się utworzyć konfiguracji Virtual Maca.";
+"The Virtual Mac did not publish a display framebuffer." = "Virtual Mac nie udostępnił bufora ramki ekranu.";
+"The Virtual Mac display view is unavailable" = "Widok ekranu Virtual Maca jest niedostępny";
+"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 show the controls again during this boot, touch and hold the Virtual Mac icon on the Home Screen, then choose Show Virtual Mac Controls." = "Aby ponownie pokazać elementy sterujące podczas tego uruchomienia, dotknij i przytrzymaj ikonę Virtual Mac na ekranie początkowym, a następnie wybierz Pokaż elementy sterujące Virtual Maca.";
+"Top Left" = "Na górze po lewej";
+"Top Right" = "Na górze po prawej";
+"Touch and Hold for Secondary Click" = "Dotknij i przytrzymaj, aby uzyskać dodatkowe kliknięcie";
+"Two-Finger Tap for Secondary Click" = "Stuknięcie dwoma palcami w celu uzyskania dodatkowego kliknięcia";
+"Two-Finger Touch Scrolling" = "Przewijanie dotykowe dwoma palcami";
+"Unknown" = "Nieznany";
+"Unsaved changes in macOS may be lost." = "Niezapisane zmiany w macOS mogą zostać utracone.";
+"Unsupported Restore Image" = "Nieobsługiwany obraz odtwarzania";
+"USB Keyboard" = "Klawiatura USB";
+"USB Mouse" = "Mysz USB";
+"Use an IPSW on your iPad" = "Użyj pliku IPSW na iPadzie";
+"Use USB Keyboard for macOS Monterey. Newer guests support the Mac keyboard device." = "W systemie macOS Monterey użyj klawiatury USB. Nowsze systemy gościa obsługują urządzenie klawiatury Maca.";
+"Use USB Mouse for macOS Monterey. Newer guests support the Mac trackpad device." = "W systemie macOS Monterey użyj myszy USB. Nowsze systemy gościa obsługują urządzenie gładzika Maca.";
+"Validation failed: %@" = "Weryfikacja nie powiodła się: %@";
+"Verify your iPad has sufficient free storage and try again." = "Sprawdź, czy na iPadzie jest wystarczająco dużo wolnego miejsca, i spróbuj ponownie.";
+"Version" = "Wersja";
+"Video Encoding and Decoding Acceleration" = "Akceleracja kodowania i dekodowania wideo";
+"View Details" = "Pokaż szczegóły";
+"Virtual Mac" = "Wirtualny Mac";
+"Virtual Mac %@ does not support %@. Check for updates in Sileo." = "Virtual Mac %@ nie obsługuje %@. Sprawdź uaktualnienia w Sileo.";
+"Virtual Mac Controls" = "Elementy sterujące Wirtualnego Maca";
+"Virtual Mac devices are stored in %@." = "Wirtualne Maki są przechowywane w %@.";
+"Virtual Mac Display" = "Ekran 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";
+"Virtual Mac start failed: %@" = "Nie udało się uruchomić Virtual Maca: %@";
+"Virtual Mac Stopped" = "Wirtualny Mac został zatrzymany";
+"Virtual Mac stopped: %@" = "Virtual Mac zatrzymał się: %@";
+"VPN" = "VPN";
+"Waiting for installation output…" = "Oczekiwanie na dane wyjściowe instalacji…";
+"Welcome to Virtual Mac" = "Witamy w Wirtualnym Macu";
+"Wi-Fi" = "Wi-Fi";
+"Width" = "Szerokość";
+"You can also copy an existing Virtual Mac bundle to /var/mobile/Media/VirtualMac using an app such as iMazing or Filza." = "Możesz też skopiować istniejący pakiet Virtual Mac do /var/mobile/Media/VirtualMac za pomocą aplikacji takiej jak iMazing lub Filza.";
+"Your changes to this Virtual Mac will not be saved." = "Zmiany w tym Virtual Macu nie zostaną zapisane.";
+"“%@” and all files stored in it will be permanently deleted." = "„%@” oraz wszystkie zapisane w nim pliki zostaną trwale usunięte.";
diff --git a/VirtualMac/resources/Localizations/pt.lproj/InfoPlist.strings b/VirtualMac/resources/Localizations/pt.lproj/InfoPlist.strings
new file mode 100644
index 0000000..840c9fc
--- /dev/null
+++ b/VirtualMac/resources/Localizations/pt.lproj/InfoPlist.strings
@@ -0,0 +1,2 @@
+"CFBundleDisplayName" = "Mac Virtual";
+"CFBundleName" = "Mac Virtual";
diff --git a/VirtualMac/resources/Localizations/pt.lproj/Localizable.strings b/VirtualMac/resources/Localizations/pt.lproj/Localizable.strings
new file mode 100644
index 0000000..6bed0fb
--- /dev/null
+++ b/VirtualMac/resources/Localizations/pt.lproj/Localizable.strings
@@ -0,0 +1,247 @@
+/* Virtual Mac 1.1 localization. */
+" · Legacy" = " · Legado";
+"%.0f%% complete" = "%.0f%% concluído";
+"%@ CPU · %@ GB RAM · %llu GB · %@%@" = "%@ CPU · %@ GB de RAM · %llu GB · %@%@";
+"%@ is not supported" = "%@ não é compatível";
+"%@ 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: %@";
+"%@\n\n%@\n\nThe incomplete Virtual Mac was retained in Temporary Installation Files as %@. It can be deleted from Settings." = "%@\n\n%@\n\nO Mac Virtual incompleto foi mantido em Arquivos temporários de instalação como %@. Ele pode ser apagado nos Ajustes.";
+"%@\nState: %@\n%@\n\n" = "%@\nEstado: %@\n%@\n\n";
+"A previous macOS installation did not finish. You can review its details, keep it for debugging, or delete it." = "Uma instalação anterior do macOS não foi concluída. Você pode ver os detalhes, mantê-la para depuração ou apagá-la.";
+"About" = "Sobre";
+"Accommodate Finger Double-Taps" = "Facilitar o toque duplo com o dedo";
+"Add Shared Folder" = "Adicionar pasta compartilhada";
+"Advanced" = "Avançado";
+"Allowed: %llu–%llu%@" = "Permitido: %llu–%llu%@";
+"Always Hidden" = "Sempre oculto";
+"Always Visible" = "Sempre visível";
+"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";
+"Audio and Acceleration" = "Áudio e aceleração";
+"Audio Output" = "Saída de áudio";
+"Automatic" = "Automático";
+"Automatic hides the controls when an external keyboard and pointing device are connected." = "O modo Automático oculta os controles quando um teclado externo e um dispositivo apontador estão conectados.";
+"Available macOS Releases" = "Versões disponíveis do macOS";
+"Available macOS Versions" = "Versões disponíveis do macOS";
+"Boot and Network" = "Inicialização e rede";
+"Bottom Left" = "Inferior esquerdo";
+"Bottom Right" = "Inferior direito";
+"Bridge" = "Ponte";
+"Bridge via %@" = "Ponte por %@";
+"Bridge: %@" = "Ponte: %@";
+"Build %@" = "Compilação %@";
+"Calculating speed…" = "Calculando velocidade…";
+"Cancel" = "Cancelar";
+"Cancel Download" = "Cancelar download";
+"Cancel Download?" = "Cancelar o download?";
+"Cancel Installation" = "Cancelar instalação";
+"Cancel Installation?" = "Cancelar a instalação?";
+"Cellular" = "Celular";
+"Choose a Different Version" = "Escolher outra versão";
+"Choose a macOS IPSW restore image." = "Selecione uma imagem de restauração IPSW do macOS.";
+"Choose a name for this Virtual Mac." = "Escolha um nome para este Virtual Mac.";
+"Choose Custom IPSW" = "Escolher IPSW personalizado";
+"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. Renaming and deletion are unavailable while it is running." = "As alterações de configuração entram em vigor depois que o Virtual Mac é desligado e iniciado novamente. Não é possível renomeá-lo nem apagá-lo durante a execução.";
+"Configuration failed: %@" = "Falha na configuração: %@";
+"Configure %@" = "Configurar %@";
+"Continue" = "Continuar";
+"Controls Hidden" = "Controles ocultos";
+"Controls Opacity" = "Opacidade dos controles";
+"Copy Library Path" = "Copiar caminho da biblioteca";
+"Copying Restore Image" = "Copiando imagem de restauração";
+"Could Not Copy IPSW" = "Não Foi Possível Copiar o IPSW";
+"Could Not Prepare Restore Image" = "Não Foi Possível Preparar a Imagem de Restauração";
+"Could Not Rename Virtual Mac" = "Não Foi Possível Renomear o Mac Virtual";
+"Could Not Save" = "Não Foi Possível Salvar";
+"Could Not Start Installer" = "Não Foi Possível Iniciar o Instalador";
+"Couldn’t Export Diagnostics" = "Não foi possível exportar os diagnósticos";
+"Create Virtual Mac" = "Criar um Mac Virtual";
+"Custom" = "Personalizado";
+"Debug Logging" = "Registro de depuração";
+"Delete" = "Apagar";
+"Delete All" = "Apagar tudo";
+"Delete Cached Install Images" = "Excluir imagens de instalação em cache";
+"Delete Cached Install Images?" = "Excluir imagens de instalação em cache?";
+"Delete Incomplete Installation" = "Apagar instalação incompleta";
+"Delete IPSW After Successful Installation" = "Exclua IPSW após instalação bem-sucedida";
+"Delete or rename the existing Virtual Mac first." = "Apague ou renomeie primeiro o Virtual Mac existente.";
+"Delete Temporary Installation Files" = "Apagar arquivos temporários de instalação";
+"Delete Temporary Installation Files?" = "Apagar arquivos temporários de instalação?";
+"Delete Virtual Mac" = "Apagar Virtual Mac";
+"Delete Virtual Mac?" = "Apagar o Virtual Mac?";
+"Developer Beta" = "Beta para desenvolvedores";
+"Developers" = "Desenvolvedores";
+"Disabled" = "Desativado";
+"Discard Changes" = "Descartar alterações";
+"Discard Changes?" = "Descartar alterações?";
+"Disk Exceeds Available Storage" = "O disco excede o armazenamento disponível";
+"Display" = "Tela";
+"Display Height" = "Altura da tela";
+"Display Resolution" = "Resolução da tela";
+"Display Width" = "Largura da tela";
+"Done" = "Concluído";
+"Double-tap to hold or release this modifier" = "Toque duas vezes para manter ou soltar esta tecla modificadora";
+"Download Failed" = "Falha no Download";
+"Downloading macOS" = "Baixando o macOS";
+"Enter six hexadecimal octets separated by colons." = "Digite seis octetos hexadecimais separados por dois-pontos.";
+"Ethernet (%@)" = "Ethernet (%@)";
+"Experimental" = "Experimental";
+"Export Diagnostics" = "Exportar diagnóstico";
+"Failed to load extracted frameworks" = "Falha ao carregar os frameworks extraídos";
+"Failed to load the extracted Apple virtualization frameworks." = "Não foi possível carregar os frameworks de virtualização da Apple extraídos.";
+"Fill Window" = "Preencher janela";
+"Fit in Window" = "Ajustar à janela";
+"Fit in Window shows the entire display. Fill Window crops its edges when the window has a different shape." = "Ajustar à janela mostra toda a tela. Preencher janela recorta as bordas quando a janela tem outro formato.";
+"Force Shut Down" = "Forçar desligamento";
+"Force Shut Down Virtual Mac?" = "Forçar o desligamento do Virtual Mac?";
+"Full Screen" = "Tela cheia";
+"General" = "Geral";
+"Get Help" = "Obter ajuda";
+"Height" = "Altura";
+"Hide for This Boot" = "Ocultar nesta inicialização";
+"Incomplete Installation" = "Instalação incompleta";
+"Incomplete Installations" = "Instalações incompletas";
+"Input" = "Entrada";
+"Input While a Virtual Mac Is Running" = "Entrada enquanto um Mac virtual está em execução";
+"Install %@" = "Instalar %@";
+"Install macOS" = "Instale macOS";
+"Installation Details" = "Detalhes da instalação";
+"Installation Failed" = "Falha na Instalação";
+"Installation progress may pause for several minutes while the Virtual Mac starts the installation environment. Your iPad will remain awake." = "O progresso da instalação pode parar por alguns minutos enquanto o Mac Virtual inicia o ambiente de instalação. Seu iPad permanecerá ativo.";
+"Installation progress may remain unchanged while macOS prepares the next installation stage. Your iPad will remain awake." = "O progresso da instalação pode permanecer inalterado enquanto o macOS prepara a próxima etapa. Seu iPad permanecerá ativo.";
+"Installed, but settings save failed: %@" = "Instalado, mas não foi possível salvar os ajustes: %@";
+"Installing macOS" = "Instalando o macOS";
+"iPad Internet Connection" = "Conexão à internet do iPad";
+"Keep Downloading" = "Continuar baixando";
+"Keep Editing" = "Continuar editando";
+"Keep Installing" = "Continuar instalando";
+"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";
+"Keyboard Crash Workaround" = "Solução para Falhas do Teclado";
+"Keyboard Crash Workaround takes effect the next time Virtual Mac opens. Debug Logging takes effect the next time a Virtual Mac starts." = "A solução para falhas do teclado será aplicada na próxima vez que o Mac Virtual for aberto. O registro de depuração será aplicado na próxima vez que um Mac virtual for iniciado.";
+"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";
+"Mac Keyboard" = "Teclado Mac";
+"Mac Keyboard Shortcuts" = "Atalhos de teclado do Mac";
+"Mac Trackpad" = "Trackpad Mac";
+"macOS Installed" = "macOS instalado";
+"Memory" = "Memória";
+"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";
+"Name" = "Nome";
+"Name Already Used" = "Nome já usado";
+"NAT: Share %@" = "NAT: compartilhar %@";
+"Network" = "Rede";
+"Network Attachment" = "Conexão de rede";
+"Network Bridge (%@)" = "Ponte de rede (%@)";
+"New Virtual Mac" = "Novo Mac Virtual";
+"No Results" = "Nenhum resultado";
+"No Virtual Macs match your search." = "Nenhum Mac Virtual corresponde à sua busca.";
+"OK" = "OK";
+"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.";
+"Options" = "Opções";
+"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";
+"Portrait Full Screen" = "Tela cheia em modo retrato";
+"Preparing installation…" = "Preparando a instalação…";
+"Preparing the IPSW for installation. Your iPad will remain awake." = "Preparando o IPSW para instalação. Seu iPad permanecerá ativo.";
+"Preparing virtual hardware…" = "Preparando o hardware virtual…";
+"Preparing…" = "Preparando…";
+"Processors" = "Processadores";
+"Read & Write" = "Leitura e gravação";
+"Read Only" = "Somente leitura";
+"Reading restore image…" = "Lendo a imagem de restauração…";
+"Recommended macOS Release" = "Versão recomendada do macOS";
+"Recover Networking After Sleep" = "Recuperar a rede após dormir";
+"Release" = "Versão pública";
+"Remove" = "Remover";
+"Report Issue" = "Relatar problema";
+"Reset" = "Redefinir";
+"Reset Settings" = "Redefinir configurações";
+"Reset Settings?" = "Redefinir ajustes?";
+"Resolution" = "Resolução";
+"Resources" = "Recursos";
+"Resume" = "Retomar";
+"Save" = "Salvar";
+"Search Virtual Mac" = "Buscar Mac Virtual";
+"Settings" = "Configurações";
+"Shared Folder" = "Pasta compartilhada";
+"Shared via %@" = "Compartilhado por %@";
+"Show Developer Betas" = "Mostrar betas para desenvolvedores";
+"Show Library" = "Mostrar biblioteca";
+"Show Minor Releases" = "Mostrar versões secundárias";
+"Show Version Details" = "Exibir detalhes da versão";
+"Show Virtual Mac Controls" = "Mostrar controles do Virtual Mac";
+"Start" = "Iniciar";
+"Start %@" = "Iniciar %@";
+"Start in Recovery" = "Iniciar na Recuperação";
+"Start on Launch" = "Iniciar ao abrir";
+"Starting installation environment…" = "Iniciando o ambiente de instalação…";
+"Starting installation services…" = "Iniciando os serviços de instalação…";
+"Starting installation…" = "Iniciando a instalação…";
+"Starting Virtual Mac…" = "Iniciando o Virtual Mac…";
+"Storage" = "Armazenamento";
+"Support" = "Suporte";
+"Support for %@ is experimental" = "O suporte ao %@ é experimental";
+"Suppress iPadOS Home Indicator" = "Ocultar o indicador de Início do iPadOS";
+"Suppress iPadOS Multitasking Gestures" = "Desativar os gestos de multitarefa do iPadOS";
+"Suppress iPadOS System Edge Gestures" = "Desativar os gestos do sistema nas bordas do iPadOS";
+"Switch to Running Virtual Mac" = "Alternar para o Virtual Mac em execução";
+"Switch to the running Virtual Mac and shut it down before starting another one." = "Alterne para o Virtual Mac em execução e desligue-o antes de iniciar outro.";
+"The diagnostics archive could not be created." = "Não foi possível criar o arquivo de diagnósticos.";
+"The first progress value can take several minutes while the Virtual Mac changes from DFU to RestoreOS. Your iPad will remain awake." = "O primeiro valor de progresso pode demorar vários minutos enquanto o Virtual Mac passa de DFU para RestoreOS. Seu iPad permanecerá ativo.";
+"The incomplete Virtual Mac and its installation files will be deleted." = "O Virtual Mac incompleto e seus arquivos de instalação serão apagados.";
+"The install image and temporary installation files were kept so the failure can be diagnosed. You can export diagnostics from Settings." = "A imagem de instalação e os arquivos temporários de instalação foram mantidos para permitir o diagnóstico da falha. Você pode exportar os diagnósticos nos Ajustes.";
+"The installer could not be started: %s" = "Não foi possível iniciar o instalador: %s";
+"The new Virtual Mac is ready to use." = "O novo Virtual Mac está pronto para uso.";
+"The partial restore image will be deleted." = "A imagem de restauração parcialmente baixada será apagada.";
+"The Virtual Mac configuration could not be created." = "Não foi possível criar a configuração do Virtual Mac.";
+"The Virtual Mac did not publish a display framebuffer." = "O Virtual Mac não publicou um framebuffer de tela.";
+"The Virtual Mac display view is unavailable" = "A visualização da tela do Virtual Mac não está disponível";
+"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 show the controls again during this boot, touch and hold the Virtual Mac icon on the Home Screen, then choose Show Virtual Mac Controls." = "Para mostrar os controles novamente durante esta inicialização, mantenha pressionado o ícone do Virtual Mac na Tela de Início e escolha “Mostrar controles do Virtual Mac”.";
+"Top Left" = "Superior esquerdo";
+"Top Right" = "Superior direito";
+"Touch and Hold for Secondary Click" = "Toque e segure para clique secundário";
+"Two-Finger Tap for Secondary Click" = "Toque com dois dedos para clique secundário";
+"Two-Finger Touch Scrolling" = "Rolagem por toque com dois dedos";
+"Unknown" = "Desconhecido";
+"Unsaved changes in macOS may be lost." = "Alterações não salvas no macOS podem ser perdidas.";
+"Unsupported Restore Image" = "Imagem de Restauração Não Compatível";
+"USB Keyboard" = "Teclado USB";
+"USB Mouse" = "Mouse USB";
+"Use an IPSW on your iPad" = "Usar um IPSW no seu iPad";
+"Use USB Keyboard for macOS Monterey. Newer guests support the Mac keyboard device." = "No macOS Monterey, use um teclado USB. Versões mais recentes do macOS são compatíveis com o teclado Mac.";
+"Use USB Mouse for macOS Monterey. Newer guests support the Mac trackpad device." = "No macOS Monterey, use um mouse USB. Versões mais recentes do macOS são compatíveis com o trackpad Mac.";
+"Validation failed: %@" = "Falha na validação: %@";
+"Verify your iPad has sufficient free storage and try again." = "Verifique se o seu iPad tem espaço livre suficiente e tente novamente.";
+"Version" = "Versão";
+"Video Encoding and Decoding Acceleration" = "Aceleração de codificação e decodificação de vídeo";
+"View Details" = "Ver detalhes";
+"Virtual Mac" = "Mac Virtual";
+"Virtual Mac %@ does not support %@. Check for updates in Sileo." = "O Virtual Mac %@ não é compatível com %@. Procure atualizações no Sileo.";
+"Virtual Mac Controls" = "Controles do Mac Virtual";
+"Virtual Mac devices are stored in %@." = "Os Macs Virtuais são armazenados em %@.";
+"Virtual Mac Display" = "Tela 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";
+"Virtual Mac start failed: %@" = "Falha ao iniciar o Virtual Mac: %@";
+"Virtual Mac Stopped" = "O Mac Virtual Parou";
+"Virtual Mac stopped: %@" = "Virtual Mac interrompido: %@";
+"VPN" = "VPN";
+"Waiting for installation output…" = "Aguardando a saída da instalação…";
+"Welcome to Virtual Mac" = "Boas-vindas ao Mac Virtual";
+"Wi-Fi" = "Wi-Fi";
+"Width" = "Largura";
+"You can also copy an existing Virtual Mac bundle to /var/mobile/Media/VirtualMac using an app such as iMazing or Filza." = "Você também pode copiar um pacote existente do Virtual Mac para /var/mobile/Media/VirtualMac usando um app como iMazing ou Filza.";
+"Your changes to this Virtual Mac will not be saved." = "As alterações neste Virtual Mac não serão salvas.";
+"“%@” and all files stored in it will be permanently deleted." = "“%@” e todos os arquivos armazenados nele serão apagados permanentemente.";
diff --git a/VirtualMac/resources/Localizations/pt_PT.lproj/InfoPlist.strings b/VirtualMac/resources/Localizations/pt_PT.lproj/InfoPlist.strings
new file mode 100644
index 0000000..840c9fc
--- /dev/null
+++ b/VirtualMac/resources/Localizations/pt_PT.lproj/InfoPlist.strings
@@ -0,0 +1,2 @@
+"CFBundleDisplayName" = "Mac Virtual";
+"CFBundleName" = "Mac Virtual";
diff --git a/VirtualMac/resources/Localizations/pt_PT.lproj/Localizable.strings b/VirtualMac/resources/Localizations/pt_PT.lproj/Localizable.strings
new file mode 100644
index 0000000..2868c72
--- /dev/null
+++ b/VirtualMac/resources/Localizations/pt_PT.lproj/Localizable.strings
@@ -0,0 +1,247 @@
+/* Virtual Mac 1.1 localization. */
+" · Legacy" = " · Legado";
+"%.0f%% complete" = "%.0f%% concluído";
+"%@ CPU · %@ GB RAM · %llu GB · %@%@" = "%@ CPU · %@ GB de RAM · %llu GB · %@%@";
+"%@ is not supported" = "%@ não é suportado";
+"%@ 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: %@";
+"%@\n\n%@\n\nThe incomplete Virtual Mac was retained in Temporary Installation Files as %@. It can be deleted from Settings." = "%@\n\n%@\n\nO Mac Virtual incompleto foi guardado nos Ficheiros temporários de instalação como %@. Pode eliminá-lo nas Definições.";
+"%@\nState: %@\n%@\n\n" = "%@\nEstado: %@\n%@\n\n";
+"A previous macOS installation did not finish. You can review its details, keep it for debugging, or delete it." = "Uma instalação anterior do macOS não foi concluída. Pode consultar os detalhes, mantê-la para depuração ou eliminá-la.";
+"About" = "Acerca de";
+"Accommodate Finger Double-Taps" = "Facilitar o duplo toque com o dedo";
+"Add Shared Folder" = "Adicionar pasta partilhada";
+"Advanced" = "Avançado";
+"Allowed: %llu–%llu%@" = "Permitido: %llu–%llu%@";
+"Always Hidden" = "Sempre oculto";
+"Always Visible" = "Sempre visível";
+"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";
+"Audio and Acceleration" = "Áudio e aceleração";
+"Audio Output" = "Saída de áudio";
+"Automatic" = "Automático";
+"Automatic hides the controls when an external keyboard and pointing device are connected." = "O modo Automático oculta os controles quando um teclado externo e um dispositivo apontador estão conectados.";
+"Available macOS Releases" = "Versões disponíveis do macOS";
+"Available macOS Versions" = "Versões disponíveis do macOS";
+"Boot and Network" = "Arranque e rede";
+"Bottom Left" = "Inferior esquerdo";
+"Bottom Right" = "Inferior direito";
+"Bridge" = "Ponte";
+"Bridge via %@" = "Ponte por %@";
+"Bridge: %@" = "Ponte: %@";
+"Build %@" = "Compilação %@";
+"Calculating speed…" = "Calculando velocidade…";
+"Cancel" = "Cancelar";
+"Cancel Download" = "Cancelar transferência";
+"Cancel Download?" = "Cancelar a transferência?";
+"Cancel Installation" = "Cancelar instalação";
+"Cancel Installation?" = "Cancelar a instalação?";
+"Cellular" = "Dados móveis";
+"Choose a Different Version" = "Escolher outra versão";
+"Choose a macOS IPSW restore image." = "Selecione uma imagem de restauro IPSW do macOS.";
+"Choose a name for this Virtual Mac." = "Escolha um nome para este Virtual Mac.";
+"Choose Custom IPSW" = "Escolher IPSW personalizado";
+"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. Renaming and deletion are unavailable while it is running." = "As alterações de configuração entram em vigor depois que o Virtual Mac é desligado e iniciado novamente. Não é possível renomeá-lo nem apagá-lo durante a execução.";
+"Configuration failed: %@" = "A configuração falhou: %@";
+"Configure %@" = "Configurar %@";
+"Continue" = "Continuar";
+"Controls Hidden" = "Controles ocultos";
+"Controls Opacity" = "Opacidade dos controlos";
+"Copy Library Path" = "Copiar caminho da biblioteca";
+"Copying Restore Image" = "A copiar a imagem de restauro";
+"Could Not Copy IPSW" = "Não foi possível copiar o IPSW";
+"Could Not Prepare Restore Image" = "Não foi possível preparar a imagem de restauro";
+"Could Not Rename Virtual Mac" = "Não foi possível alterar o nome do Mac Virtual";
+"Could Not Save" = "Não foi possível guardar";
+"Could Not Start Installer" = "Não foi possível iniciar o instalador";
+"Couldn’t Export Diagnostics" = "Não foi possível exportar os diagnósticos";
+"Create Virtual Mac" = "Criar um Mac Virtual";
+"Custom" = "Personalizado";
+"Debug Logging" = "Registo de depuração";
+"Delete" = "Eliminar";
+"Delete All" = "Eliminar tudo";
+"Delete Cached Install Images" = "Eliminar imagens de instalação em cache";
+"Delete Cached Install Images?" = "Eliminar imagens de instalação em cache?";
+"Delete Incomplete Installation" = "Eliminar instalação incompleta";
+"Delete IPSW After Successful Installation" = "Eliminar o IPSW após uma instalação bem-sucedida";
+"Delete or rename the existing Virtual Mac first." = "Apague ou renomeie primeiro o Virtual Mac existente.";
+"Delete Temporary Installation Files" = "Eliminar ficheiros temporários de instalação";
+"Delete Temporary Installation Files?" = "Eliminar ficheiros temporários de instalação?";
+"Delete Virtual Mac" = "Eliminar Virtual Mac";
+"Delete Virtual Mac?" = "Eliminar o Virtual Mac?";
+"Developer Beta" = "Beta para desenvolvedores";
+"Developers" = "Programadores";
+"Disabled" = "Desativado";
+"Discard Changes" = "Descartar alterações";
+"Discard Changes?" = "Descartar alterações?";
+"Disk Exceeds Available Storage" = "O disco excede o armazenamento disponível";
+"Display" = "Ecrã";
+"Display Height" = "Altura do ecrã";
+"Display Resolution" = "Resolução do ecrã";
+"Display Width" = "Largura do ecrã";
+"Done" = "Concluído";
+"Double-tap to hold or release this modifier" = "Toque duas vezes para manter ou soltar esta tecla modificadora";
+"Download Failed" = "A transferência falhou";
+"Downloading macOS" = "A transferir o macOS";
+"Enter six hexadecimal octets separated by colons." = "Digite seis octetos hexadecimais separados por dois-pontos.";
+"Ethernet (%@)" = "Ethernet (%@)";
+"Experimental" = "Experimental";
+"Export Diagnostics" = "Exportar diagnóstico";
+"Failed to load extracted frameworks" = "Falha ao carregar os frameworks extraídos";
+"Failed to load the extracted Apple virtualization frameworks." = "Não foi possível carregar os frameworks de virtualização da Apple extraídos.";
+"Fill Window" = "Preencher janela";
+"Fit in Window" = "Ajustar à janela";
+"Fit in Window shows the entire display. Fill Window crops its edges when the window has a different shape." = "Ajustar à janela mostra todo o ecrã. Preencher janela recorta as margens quando a janela tem outra proporção.";
+"Force Shut Down" = "Forçar desligamento";
+"Force Shut Down Virtual Mac?" = "Forçar o desligamento do Virtual Mac?";
+"Full Screen" = "Ecrã inteiro";
+"General" = "Geral";
+"Get Help" = "Obter ajuda";
+"Height" = "Altura";
+"Hide for This Boot" = "Ocultar neste arranque";
+"Incomplete Installation" = "Instalação incompleta";
+"Incomplete Installations" = "Instalações incompletas";
+"Input" = "Entrada";
+"Input While a Virtual Mac Is Running" = "Introdução enquanto um Mac virtual está em execução";
+"Install %@" = "Instalar %@";
+"Install macOS" = "Instale macOS";
+"Installation Details" = "Detalhes da instalação";
+"Installation Failed" = "A instalação falhou";
+"Installation progress may pause for several minutes while the Virtual Mac starts the installation environment. Your iPad will remain awake." = "O progresso da instalação pode parar durante alguns minutos enquanto o Mac Virtual inicia o ambiente de instalação. O iPad permanecerá ativo.";
+"Installation progress may remain unchanged while macOS prepares the next installation stage. Your iPad will remain awake." = "O progresso da instalação pode permanecer inalterado enquanto o macOS prepara a etapa seguinte. O iPad permanecerá ativo.";
+"Installed, but settings save failed: %@" = "Instalado, mas não foi possível guardar as definições: %@";
+"Installing macOS" = "Instalando o macOS";
+"iPad Internet Connection" = "Ligação à Internet do iPad";
+"Keep Downloading" = "Continuar transferência";
+"Keep Editing" = "Continuar editando";
+"Keep Installing" = "Continuar instalando";
+"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";
+"Keyboard Crash Workaround" = "Solução para falhas do teclado";
+"Keyboard Crash Workaround takes effect the next time Virtual Mac opens. Debug Logging takes effect the next time a Virtual Mac starts." = "A solução para falhas do teclado será aplicada da próxima vez que o Mac Virtual for aberto. O registo de depuração será aplicado da próxima vez que um Mac virtual for iniciado.";
+"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";
+"Mac Keyboard" = "Teclado Mac";
+"Mac Keyboard Shortcuts" = "Atalhos de teclado do Mac";
+"Mac Trackpad" = "Trackpad Mac";
+"macOS Installed" = "macOS instalado";
+"Memory" = "Memória";
+"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";
+"Name" = "Nome";
+"Name Already Used" = "Nome já usado";
+"NAT: Share %@" = "NAT: partilhar %@";
+"Network" = "Rede";
+"Network Attachment" = "Ligação de rede";
+"Network Bridge (%@)" = "Ponte de rede (%@)";
+"New Virtual Mac" = "Novo Mac Virtual";
+"No Results" = "Sem resultados";
+"No Virtual Macs match your search." = "Nenhum Mac Virtual corresponde à pesquisa.";
+"OK" = "OK";
+"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.";
+"Options" = "Opções";
+"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";
+"Portrait Full Screen" = "Ecrã inteiro na vertical";
+"Preparing installation…" = "A preparar a instalação…";
+"Preparing the IPSW for installation. Your iPad will remain awake." = "A preparar o IPSW para instalação. O iPad permanecerá ativo.";
+"Preparing virtual hardware…" = "A preparar o hardware virtual…";
+"Preparing…" = "A preparar…";
+"Processors" = "Processadores";
+"Read & Write" = "Leitura e gravação";
+"Read Only" = "Só de leitura";
+"Reading restore image…" = "A ler a imagem de restauro…";
+"Recommended macOS Release" = "Versão recomendada do macOS";
+"Recover Networking After Sleep" = "Recuperar a rede após dormir";
+"Release" = "Versão pública";
+"Remove" = "Remover";
+"Report Issue" = "Comunicar problema";
+"Reset" = "Redefinir";
+"Reset Settings" = "Redefinir as configurações";
+"Reset Settings?" = "Repor definições?";
+"Resolution" = "Resolução";
+"Resources" = "Recursos";
+"Resume" = "Retomar";
+"Save" = "Guardar";
+"Search Virtual Mac" = "Procurar Mac Virtual";
+"Settings" = "Configurações";
+"Shared Folder" = "Pasta partilhada";
+"Shared via %@" = "Partilhado através de %@";
+"Show Developer Betas" = "Mostrar betas para desenvolvedores";
+"Show Library" = "Mostrar biblioteca";
+"Show Minor Releases" = "Mostrar versões secundárias";
+"Show Version Details" = "Mostrar detalhes da versão";
+"Show Virtual Mac Controls" = "Mostrar controles do Virtual Mac";
+"Start" = "Iniciar";
+"Start %@" = "Iniciar %@";
+"Start in Recovery" = "Iniciar na Recuperação";
+"Start on Launch" = "Iniciar ao abrir";
+"Starting installation environment…" = "A iniciar o ambiente de instalação…";
+"Starting installation services…" = "A iniciar os serviços de instalação…";
+"Starting installation…" = "A iniciar a instalação…";
+"Starting Virtual Mac…" = "Iniciando o Virtual Mac…";
+"Storage" = "Armazenamento";
+"Support" = "Suporte";
+"Support for %@ is experimental" = "O suporte ao %@ é experimental";
+"Suppress iPadOS Home Indicator" = "Ocultar o indicador principal do iPadOS";
+"Suppress iPadOS Multitasking Gestures" = "Desativar os gestos multitarefa do iPadOS";
+"Suppress iPadOS System Edge Gestures" = "Desativar os gestos de sistema a partir das extremidades no iPadOS";
+"Switch to Running Virtual Mac" = "Alternar para o Virtual Mac em execução";
+"Switch to the running Virtual Mac and shut it down before starting another one." = "Alterne para o Virtual Mac em execução e desligue-o antes de iniciar outro.";
+"The diagnostics archive could not be created." = "Não foi possível criar o arquivo de diagnóstico.";
+"The first progress value can take several minutes while the Virtual Mac changes from DFU to RestoreOS. Your iPad will remain awake." = "O primeiro valor de progresso pode demorar vários minutos enquanto o Virtual Mac passa de DFU para RestoreOS. O iPad permanecerá ativo.";
+"The incomplete Virtual Mac and its installation files will be deleted." = "O Virtual Mac incompleto e os respetivos ficheiros de instalação serão eliminados.";
+"The install image and temporary installation files were kept so the failure can be diagnosed. You can export diagnostics from Settings." = "A imagem de instalação e os ficheiros temporários de instalação foram mantidos para permitir o diagnóstico da falha. Pode exportar o diagnóstico nas Definições.";
+"The installer could not be started: %s" = "Não foi possível iniciar o instalador: %s";
+"The new Virtual Mac is ready to use." = "O novo Virtual Mac está pronto para uso.";
+"The partial restore image will be deleted." = "A imagem de restauro transferida parcialmente será eliminada.";
+"The Virtual Mac configuration could not be created." = "Não foi possível criar a configuração do Virtual Mac.";
+"The Virtual Mac did not publish a display framebuffer." = "O Virtual Mac não publicou uma memória intermédia de fotogramas do ecrã.";
+"The Virtual Mac display view is unavailable" = "A vista do ecrã do Virtual Mac não está disponível";
+"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 show the controls again during this boot, touch and hold the Virtual Mac icon on the Home Screen, then choose Show Virtual Mac Controls." = "Para voltar a mostrar os controlos durante este arranque, toque e mantenha premido o ícone do Virtual Mac no ecrã principal e escolha Mostrar controlos do Virtual Mac.";
+"Top Left" = "Superior esquerdo";
+"Top Right" = "Superior direito";
+"Touch and Hold for Secondary Click" = "Toque e mantenha pressionado para clique secundário";
+"Two-Finger Tap for Secondary Click" = "Toque com dois dedos para clique secundário";
+"Two-Finger Touch Scrolling" = "Rolagem por toque com dois dedos";
+"Unknown" = "Desconhecido";
+"Unsaved changes in macOS may be lost." = "Alterações não salvas no macOS podem ser perdidas.";
+"Unsupported Restore Image" = "Imagem de restauro não suportada";
+"USB Keyboard" = "Teclado USB";
+"USB Mouse" = "Rato USB";
+"Use an IPSW on your iPad" = "Usar um IPSW no iPad";
+"Use USB Keyboard for macOS Monterey. Newer guests support the Mac keyboard device." = "No macOS Monterey, use um teclado USB. Versões mais recentes do macOS são compatíveis com o teclado Mac.";
+"Use USB Mouse for macOS Monterey. Newer guests support the Mac trackpad device." = "No macOS Monterey, use um rato USB. As versões mais recentes do macOS são compatíveis com o trackpad Mac.";
+"Validation failed: %@" = "A validação falhou: %@";
+"Verify your iPad has sufficient free storage and try again." = "Verifique se o iPad tem espaço livre suficiente e tente novamente.";
+"Version" = "Versão";
+"Video Encoding and Decoding Acceleration" = "Aceleração da codificação e descodificação de vídeo";
+"View Details" = "Ver detalhes";
+"Virtual Mac" = "Mac Virtual";
+"Virtual Mac %@ does not support %@. Check for updates in Sileo." = "O Virtual Mac %@ não suporta %@. Procure atualizações no Sileo.";
+"Virtual Mac Controls" = "Controlos do Mac Virtual";
+"Virtual Mac devices are stored in %@." = "Os Virtual Macs são guardados em %@.";
+"Virtual Mac Display" = "Ecrã 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";
+"Virtual Mac start failed: %@" = "Não foi possível iniciar o Virtual Mac: %@";
+"Virtual Mac Stopped" = "O Mac Virtual parou";
+"Virtual Mac stopped: %@" = "Virtual Mac interrompido: %@";
+"VPN" = "VPN";
+"Waiting for installation output…" = "A aguardar o resultado da instalação…";
+"Welcome to Virtual Mac" = "Bem-vindo ao Mac Virtual";
+"Wi-Fi" = "Wi-Fi";
+"Width" = "Largura";
+"You can also copy an existing Virtual Mac bundle to /var/mobile/Media/VirtualMac using an app such as iMazing or Filza." = "Também pode copiar um pacote Virtual Mac existente para /var/mobile/Media/VirtualMac com uma aplicação como o iMazing ou o Filza.";
+"Your changes to this Virtual Mac will not be saved." = "As alterações neste Virtual Mac não serão salvas.";
+"“%@” and all files stored in it will be permanently deleted." = "“%@” e todos os ficheiros nele guardados serão eliminados permanentemente.";
diff --git a/VirtualMac/resources/Localizations/ro.lproj/InfoPlist.strings b/VirtualMac/resources/Localizations/ro.lproj/InfoPlist.strings
new file mode 100644
index 0000000..840c9fc
--- /dev/null
+++ b/VirtualMac/resources/Localizations/ro.lproj/InfoPlist.strings
@@ -0,0 +1,2 @@
+"CFBundleDisplayName" = "Mac Virtual";
+"CFBundleName" = "Mac Virtual";
diff --git a/VirtualMac/resources/Localizations/ro.lproj/Localizable.strings b/VirtualMac/resources/Localizations/ro.lproj/Localizable.strings
new file mode 100644
index 0000000..ee474d9
--- /dev/null
+++ b/VirtualMac/resources/Localizations/ro.lproj/Localizable.strings
@@ -0,0 +1,247 @@
+/* Virtual Mac 1.1 localization. */
+" · Legacy" = " · Versiune veche";
+"%.0f%% complete" = "%.0f%% finalizat";
+"%@ CPU · %@ GB RAM · %llu GB · %@%@" = "%@ CPU · %@ GB RAM · %llu GB · %@%@";
+"%@ is not supported" = "%@ nu este compatibil";
+"%@ 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: %@";
+"%@\n\n%@\n\nThe incomplete Virtual Mac was retained in Temporary Installation Files as %@. It can be deleted from Settings." = "%@\n\n%@\n\nMac-ul virtual incomplet a fost păstrat în Fișiere temporare de instalare ca %@. Poate fi șters din Configurări.";
+"%@\nState: %@\n%@\n\n" = "%@\nStato: %@\n%@\n\n";
+"A previous macOS installation did not finish. You can review its details, keep it for debugging, or delete it." = "O instalare anterioară a macOS nu s-a finalizat. Puteți consulta detaliile, o puteți păstra pentru depanare sau o puteți șterge.";
+"About" = "Despre";
+"Accommodate Finger Double-Taps" = "Facilitează atingerea dublă cu degetul";
+"Add Shared Folder" = "Adăugați un dosar partajat";
+"Advanced" = "Avansat";
+"Allowed: %llu–%llu%@" = "Permis: %llu–%llu%@";
+"Always Hidden" = "Întotdeauna ascuns";
+"Always Visible" = "Întotdeauna vizibil";
+"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";
+"Audio and Acceleration" = "Audio și accelerare";
+"Audio Output" = "Ieșire audio";
+"Automatic" = "Automat";
+"Automatic hides the controls when an external keyboard and pointing device are connected." = "Modul automat ascunde comenzile când sunt conectate o tastatură externă și un dispozitiv de indicare.";
+"Available macOS Releases" = "Versiuni macOS disponibile";
+"Available macOS Versions" = "Versiuni macOS disponibile";
+"Boot and Network" = "Pornire și rețea";
+"Bottom Left" = "Stânga jos";
+"Bottom Right" = "Dreapta jos";
+"Bridge" = "Punte";
+"Bridge via %@" = "Punte prin %@";
+"Bridge: %@" = "Punte: %@";
+"Build %@" = "Compilarea %@";
+"Calculating speed…" = "Se calculează viteza…";
+"Cancel" = "Anulați";
+"Cancel Download" = "Anulați descărcării";
+"Cancel Download?" = "Anulați descărcarea?";
+"Cancel Installation" = "Anulați instalare";
+"Cancel Installation?" = "Anulațire l’instalare?";
+"Cellular" = "Rețea celulară";
+"Choose a Different Version" = "Alegeți altă versiune";
+"Choose a macOS IPSW restore image." = "Selectați o imagine de restaurare macOS IPSW.";
+"Choose a name for this Virtual Mac." = "Alegeți un nume per acest Mac virtual.";
+"Choose Custom IPSW" = "Alegeți un IPSW personalizat";
+"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. Renaming and deletion are unavailable while it is running." = "Modificările configurației se aplică după oprirea și repornirea Mac-ului virtual. Redenumirea și ștergerea nu sunt disponibile în timpul funcționării.";
+"Configuration failed: %@" = "Configurarea a eșuat: %@";
+"Configure %@" = "Configura %@";
+"Continue" = "Continuă";
+"Controls Hidden" = "Comenzi nascosti";
+"Controls Opacity" = "Opacitatea comenzilor";
+"Copy Library Path" = "Copiați calea bibliotecii";
+"Copying Restore Image" = "Se copiază imaginea de restaurare";
+"Could Not Copy IPSW" = "IPSW-ul nu a putut fi copiat";
+"Could Not Prepare Restore Image" = "Imaginea de restaurare nu a putut fi pregătită";
+"Could Not Rename Virtual Mac" = "Mac-ul virtual nu a putut fi redenumit";
+"Could Not Save" = "Nu s-a putut salva";
+"Could Not Start Installer" = "Programul de instalare nu a putut fi pornit";
+"Couldn’t Export Diagnostics" = "Nu s-au putut exporta datele de diagnosticare";
+"Create Virtual Mac" = "Creați un Mac virtual";
+"Custom" = "Personalizzata";
+"Debug Logging" = "Jurnalizare pentru depanare";
+"Delete" = "Ștergeți";
+"Delete All" = "Ștergeți tutto";
+"Delete Cached Install Images" = "Ștergeți imaginile de instalare din cache";
+"Delete Cached Install Images?" = "Ștergeți imaginile de instalare din cache?";
+"Delete Incomplete Installation" = "Ștergeți instalare incompleta";
+"Delete IPSW After Successful Installation" = "Ștergeți IPSW după instalarea cu succes";
+"Delete or rename the existing Virtual Mac first." = "Mai întâi ștergeți sau redenumiți Mac-ul virtual existent.";
+"Delete Temporary Installation Files" = "Ștergeți fișierele temporare de instalare";
+"Delete Temporary Installation Files?" = "Ștergeți fișierele temporare de instalare?";
+"Delete Virtual Mac" = "Ștergeți Mac virtual";
+"Delete Virtual Mac?" = "Ștergeți Mac virtual?";
+"Developer Beta" = "Beta pentru dezvoltatori";
+"Developers" = "Dezvoltatori";
+"Disabled" = "Dezactivat";
+"Discard Changes" = "Renunțați la modificări";
+"Discard Changes?" = "Renunțați la modificări?";
+"Disk Exceeds Available Storage" = "Discul depășește spațiul disponibil";
+"Display" = "Afișaj";
+"Display Height" = "Înălțime afișaj";
+"Display Resolution" = "Rezoluție afișaj";
+"Display Width" = "Lățime afișaj";
+"Done" = "Gata";
+"Double-tap to hold or release this modifier" = "Tocca due volte per bloccare o rilasciare acest tasto modificatore";
+"Download Failed" = "Descărcarea a eșuat";
+"Downloading macOS" = "Se descarcă macOS";
+"Enter six hexadecimal octets separated by colons." = "Introduceți sei ottetti esadecimali separati da due punti.";
+"Ethernet (%@)" = "Ethernet (%@)";
+"Experimental" = "Experimental";
+"Export Diagnostics" = "Exportă datele de diagnosticare";
+"Failed to load extracted frameworks" = "Nu s-a putut caricare i framework estratti";
+"Failed to load the extracted Apple virtualization frameworks." = "Nu s-a putut caricare i framework di virtualizzazione Apple estratti.";
+"Fill Window" = "Umple fereastra";
+"Fit in Window" = "Potrivește în fereastră";
+"Fit in Window shows the entire display. Fill Window crops its edges when the window has a different shape." = "Potrivire în fereastră afișează întregul ecran. Umplere fereastră decupează marginile când fereastra are altă formă.";
+"Force Shut Down" = "Forțați oprirea";
+"Force Shut Down Virtual Mac?" = "Forzare lo oprire di Mac virtual?";
+"Full Screen" = "Ecran complet";
+"General" = "Generali";
+"Get Help" = "Obțineți ajutor";
+"Height" = "Înălțime";
+"Hide for This Boot" = "Ascundeți pentru această pornire";
+"Incomplete Installation" = "Instalare incompleta";
+"Incomplete Installations" = "Installazioni incomplete";
+"Input" = "Intrare";
+"Input While a Virtual Mac Is Running" = "Introducere în timp ce rulează un Mac virtual";
+"Install %@" = "Instalați %@";
+"Install macOS" = "Instalează macOS";
+"Installation Details" = "Detalii instalare";
+"Installation Failed" = "Instalarea a eșuat";
+"Installation progress may pause for several minutes while the Virtual Mac starts the installation environment. Your iPad will remain awake." = "Progresul instalării se poate opri câteva minute în timp ce Mac Virtual pornește mediul de instalare. iPad-ul va rămâne activ.";
+"Installation progress may remain unchanged while macOS prepares the next installation stage. Your iPad will remain awake." = "Este posibil ca progresul instalării să rămână neschimbat în timp ce macOS pregătește etapa următoare. iPad-ul va rămâne activ.";
+"Installed, but settings save failed: %@" = "Instalat, dar configurările nu au putut fi salvate: %@";
+"Installing macOS" = "Instalare di macOS";
+"iPad Internet Connection" = "Conexiunea la internet a iPadului";
+"Keep Downloading" = "Continuați descărcarea";
+"Keep Editing" = "Continuați la modifica";
+"Keep Installing" = "Continuați l’instalare";
+"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ă";
+"Keyboard Crash Workaround" = "Soluție pentru blocarea tastaturii";
+"Keyboard Crash Workaround takes effect the next time Virtual Mac opens. Debug Logging takes effect the next time a Virtual Mac starts." = "Soluția pentru blocarea tastaturii va intra în vigoare la următoarea deschidere a aplicației Mac Virtual. Jurnalizarea pentru depanare va intra în vigoare la următoarea pornire a unui Mac virtual.";
+"Library Appearance" = "Aspetto biblioteca";
+"Loading extracted Apple virtualization frameworks…" = "Caricamento dei framework di virtualizzazione Apple estratti…";
+"MAC Address" = "Adresă MAC";
+"Mac Keyboard" = "Tastatură Mac";
+"Mac Keyboard Shortcuts" = "Comenzi rapide de la tastatură Mac";
+"Mac Trackpad" = "Trackpad Mac";
+"macOS Installed" = "macOS installato";
+"Memory" = "Memorie";
+"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";
+"Name" = "Nume";
+"Name Already Used" = "Numele este deja folosit";
+"NAT: Share %@" = "NAT: condividi %@";
+"Network" = "Rețea";
+"Network Attachment" = "Conexiune de rețea";
+"Network Bridge (%@)" = "Bridge di rete (%@)";
+"New Virtual Mac" = "Mac virtual nou";
+"No Results" = "Niciun rezultat";
+"No Virtual Macs match your search." = "Niciun Mac Virtual nu corespunde căutării.";
+"OK" = "OK";
+"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.";
+"Options" = "Opzioni";
+"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";
+"Portrait Full Screen" = "Ecran complet în mod portret";
+"Preparing installation…" = "Se pregătește instalarea…";
+"Preparing the IPSW for installation. Your iPad will remain awake." = "Se pregătește IPSW pentru instalare. iPad-ul va rămâne activ.";
+"Preparing virtual hardware…" = "Se pregătește hardware-ul virtual…";
+"Preparing…" = "Se pregătește…";
+"Processors" = "Procesoare";
+"Read & Write" = "Citire și scriere";
+"Read Only" = "Doar citire";
+"Reading restore image…" = "Se citește imaginea de restaurare…";
+"Recommended macOS Release" = "Versiunea macOS recomandată";
+"Recover Networking After Sleep" = "Recuperați rețeaua după repaus";
+"Release" = "Versiune publică";
+"Remove" = "Eliminați";
+"Report Issue" = "Raportați o problemă";
+"Reset" = "Resetați";
+"Reset Settings" = "Resetați setările";
+"Reset Settings?" = "Resetațire le impostazioni?";
+"Resolution" = "Rezoluție";
+"Resources" = "Resurse";
+"Resume" = "Reluați";
+"Save" = "Salvează";
+"Search Virtual Mac" = "Căutați Mac virtual";
+"Settings" = "Setări";
+"Shared Folder" = "Dosar partajat";
+"Shared via %@" = "Partajat prin %@";
+"Show Developer Betas" = "Afișați beta per dezvoltatori";
+"Show Library" = "Afișați biblioteca";
+"Show Minor Releases" = "Afișați versiunile minore";
+"Show Version Details" = "Afișați detaliile versiunii";
+"Show Virtual Mac Controls" = "Afișați controlli di Mac virtual";
+"Start" = "Inizia";
+"Start %@" = "Porniți %@";
+"Start in Recovery" = "Porniți in Recupero";
+"Start on Launch" = "Porniți la deschidere";
+"Starting installation environment…" = "Se pornește mediul de instalare…";
+"Starting installation services…" = "Se pornesc serviciile de instalare…";
+"Starting installation…" = "Se pornește instalarea…";
+"Starting Virtual Mac…" = "Se pornește Mac-ul virtual…";
+"Storage" = "Stocare";
+"Support" = "Asistență";
+"Support for %@ is experimental" = "Compatibilitatea cu %@ este experimentală";
+"Suppress iPadOS Home Indicator" = "Ascunde indicatorul principal din iPadOS";
+"Suppress iPadOS Multitasking Gestures" = "Dezactivează gesturile multitasking din iPadOS";
+"Suppress iPadOS System Edge Gestures" = "Dezactivează gesturile de sistem de la marginile ecranului în iPadOS";
+"Switch to Running Virtual Mac" = "Passa al Mac virtual rulează";
+"Switch to the running Virtual Mac and shut it down before starting another one." = "Passa al Mac virtual rulează e spegnilo prima di avviarne un altro.";
+"The diagnostics archive could not be created." = "Arhiva de diagnosticare nu a putut fi creată.";
+"The first progress value can take several minutes while the Virtual Mac changes from DFU to RestoreOS. Your iPad will remain awake." = "Prima valoare a progresului poate apărea după câteva minute, în timp ce Mac-ul virtual trece din DFU în RestoreOS. iPad-ul va rămâne activ.";
+"The incomplete Virtual Mac and its installation files will be deleted." = "Mac-ul virtual incomplet și fișierele sale de instalare vor fi șterse.";
+"The install image and temporary installation files were kept so the failure can be diagnosed. You can export diagnostics from Settings." = "Imaginea de instalare și fișierele temporare de instalare au fost păstrate pentru diagnosticarea erorii. Puteți exporta datele de diagnosticare din Configurări.";
+"The installer could not be started: %s" = "Programul de instalare nu a putut fi pornit: %s";
+"The new Virtual Mac is ready to use." = "Noul Mac virtual este gata de utilizare.";
+"The partial restore image will be deleted." = "Imaginea de restaurare descărcată parțial va fi ștearsă.";
+"The Virtual Mac configuration could not be created." = "Configurația Mac-ului virtual nu a putut fi creată.";
+"The Virtual Mac did not publish a display framebuffer." = "Mac-ul virtual nu a publicat un buffer de cadre pentru afișaj.";
+"The Virtual Mac display view is unavailable" = "Vizualizarea afișajului Mac-ului virtual nu este disponibilă";
+"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 show the controls again during this boot, touch and hold the Virtual Mac icon on the Home Screen, then choose Show Virtual Mac Controls." = "Pentru a afișa din nou comenzile în timpul acestei porniri, țineți apăsată pictograma Virtual Mac de pe ecranul principal, apoi alegeți Afișați comenzile Virtual Mac.";
+"Top Left" = "Stânga sus";
+"Top Right" = "Dreapta sus";
+"Touch and Hold for Secondary Click" = "Atingeți și mențineți apăsat pentru clic secundar";
+"Two-Finger Tap for Secondary Click" = "Atingeți cu două degete pentru clic secundar";
+"Two-Finger Touch Scrolling" = "Derulare la atingere cu două degete";
+"Unknown" = "Necunoscut";
+"Unsaved changes in macOS may be lost." = "Modificările nesalvate din macOS se pot pierde.";
+"Unsupported Restore Image" = "Imagine de restaurare neacceptată";
+"USB Keyboard" = "Tastatură USB";
+"USB Mouse" = "Mouse USB";
+"Use an IPSW on your iPad" = "Folosiți un IPSW de pe iPad";
+"Use USB Keyboard for macOS Monterey. Newer guests support the Mac keyboard device." = "Pentru macOS Monterey, folosiți tastatura USB. Sistemele mai noi acceptă dispozitivul tastatură Mac.";
+"Use USB Mouse for macOS Monterey. Newer guests support the Mac trackpad device." = "Pentru macOS Monterey, folosiți mouse-ul USB. Sistemele mai noi acceptă dispozitivul trackpad Mac.";
+"Validation failed: %@" = "Validarea a eșuat: %@";
+"Verify your iPad has sufficient free storage and try again." = "Verificați dacă iPad-ul are suficient spațiu liber și încercați din nou.";
+"Version" = "Versiune";
+"Video Encoding and Decoding Acceleration" = "Accelerarea codificării și decodificării video";
+"View Details" = "Vedeți detaliile";
+"Virtual Mac" = "Mac Virtual";
+"Virtual Mac %@ does not support %@. Check for updates in Sileo." = "Virtual Mac %@ nu este compatibil cu %@. Verificați dacă există actualizări în Sileo.";
+"Virtual Mac Controls" = "Comenzile Mac-ului virtual";
+"Virtual Mac devices are stored in %@." = "Mac-urile virtuale sunt stocate în %@.";
+"Virtual Mac Display" = "Ecranul Mac-ului 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";
+"Virtual Mac start failed: %@" = "Pornirea Mac-ului virtual a eșuat: %@";
+"Virtual Mac Stopped" = "Mac-ul virtual s-a oprit";
+"Virtual Mac stopped: %@" = "Mac virtual arrestato: %@";
+"VPN" = "VPN";
+"Waiting for installation output…" = "Se așteaptă rezultatul instalării…";
+"Welcome to Virtual Mac" = "Bun venit la Mac Virtual";
+"Wi-Fi" = "Wi-Fi";
+"Width" = "Lățime";
+"You can also copy an existing Virtual Mac bundle to /var/mobile/Media/VirtualMac using an app such as iMazing or Filza." = "Puteți anche copiare un pachetul Mac virtual esistente in /var/mobile/Media/VirtualMac usando un’app come iMazing o Filza.";
+"Your changes to this Virtual Mac will not be saved." = "Modificările aduse acestui Mac virtual nu vor fi salvate.";
+"“%@” and all files stored in it will be permanently deleted." = "“%@” e tutti i file contenuti vor fi șterse definitiv.";
diff --git a/VirtualMac/resources/Localizations/ru.lproj/InfoPlist.strings b/VirtualMac/resources/Localizations/ru.lproj/InfoPlist.strings
new file mode 100644
index 0000000..00410e6
--- /dev/null
+++ b/VirtualMac/resources/Localizations/ru.lproj/InfoPlist.strings
@@ -0,0 +1,2 @@
+"CFBundleDisplayName" = "Виртуальный Mac";
+"CFBundleName" = "Виртуальный Mac";
diff --git a/VirtualMac/resources/Localizations/ru.lproj/Localizable.strings b/VirtualMac/resources/Localizations/ru.lproj/Localizable.strings
new file mode 100644
index 0000000..8f49e98
--- /dev/null
+++ b/VirtualMac/resources/Localizations/ru.lproj/Localizable.strings
@@ -0,0 +1,247 @@
+/* Virtual Mac 1.1 localization. */
+" · Legacy" = " · Устаревшая";
+"%.0f%% complete" = "Выполнено: %.0f%%";
+"%@ CPU · %@ GB RAM · %llu GB · %@%@" = "%@ ЦП · %@ ГБ ОЗУ · %llu ГБ · %@%@";
+"%@ is not supported" = "%@ не поддерживается";
+"%@ 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" = "Осталось: %@";
+"%@\n\n%@\n\nThe incomplete Virtual Mac was retained in Temporary Installation Files as %@. It can be deleted from Settings." = "%@\n\n%@\n\nНеполный виртуальный Mac сохранён во «Временных файлах установки» как %@. Его можно удалить в Настройках.";
+"%@\nState: %@\n%@\n\n" = "%@\nСостояние: %@\n%@\n\n";
+"A previous macOS installation did not finish. You can review its details, keep it for debugging, or delete it." = "Предыдущая установка macOS не завершена. Можно просмотреть сведения, сохранить её для отладки или удалить.";
+"About" = "Об этом приложении";
+"Accommodate Finger Double-Taps" = "Упростить двойное касание пальцем";
+"Add Shared Folder" = "Добавить общую папку";
+"Advanced" = "Дополнительно";
+"Allowed: %llu–%llu%@" = "Допустимо: %llu–%llu%@";
+"Always Hidden" = "Всегда скрыто";
+"Always Visible" = "Всегда видно";
+"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";
+"Audio and Acceleration" = "Аудио и ускорение";
+"Audio Output" = "Аудиовыход";
+"Automatic" = "Автоматически";
+"Automatic hides the controls when an external keyboard and pointing device are connected." = "В автоматическом режиме элементы управления скрываются при подключении внешней клавиатуры и устройства указания.";
+"Available macOS Releases" = "Доступные выпуски macOS";
+"Available macOS Versions" = "Доступные версии macOS";
+"Boot and Network" = "Загрузка и сеть";
+"Bottom Left" = "Слева внизу";
+"Bottom Right" = "Справа внизу";
+"Bridge" = "Мост";
+"Bridge via %@" = "Мост через %@";
+"Bridge: %@" = "Мост: %@";
+"Build %@" = "Сборка %@";
+"Calculating speed…" = "Вычисление скорости…";
+"Cancel" = "Отмена";
+"Cancel Download" = "Отменить загрузку";
+"Cancel Download?" = "Отменить загрузку?";
+"Cancel Installation" = "Отменить установку";
+"Cancel Installation?" = "Отменить установку?";
+"Cellular" = "Сотовая сеть";
+"Choose a Different Version" = "Выбрать другую версию";
+"Choose a macOS IPSW restore image." = "Выберите образ восстановления macOS IPSW.";
+"Choose a name for this Virtual Mac." = "Выберите имя для этого виртуального Mac.";
+"Choose Custom IPSW" = "Выбрать собственный IPSW";
+"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. Renaming and deletion are unavailable while it is running." = "Изменения конфигурации вступят в силу после выключения и повторного запуска виртуального Mac. Во время работы его нельзя переименовать или удалить.";
+"Configuration failed: %@" = "Ошибка конфигурации: %@";
+"Configure %@" = "Настроить %@";
+"Continue" = "Продолжить";
+"Controls Hidden" = "Элементы управления скрыты";
+"Controls Opacity" = "Непрозрачность элементов управления";
+"Copy Library Path" = "Копировать путь к библиотеке";
+"Copying Restore Image" = "Копирование образа восстановления";
+"Could Not Copy IPSW" = "Не удалось скопировать IPSW";
+"Could Not Prepare Restore Image" = "Не удалось подготовить образ восстановления";
+"Could Not Rename Virtual Mac" = "Не удалось переименовать Виртуальный Mac";
+"Could Not Save" = "Не удалось сохранить";
+"Could Not Start Installer" = "Не удалось запустить установщик";
+"Couldn’t Export Diagnostics" = "Не удалось экспортировать диагностику";
+"Create Virtual Mac" = "Создать Виртуальный Mac";
+"Custom" = "Пользовательская";
+"Debug Logging" = "Ведение журнала отладки";
+"Delete" = "Удалить";
+"Delete All" = "Удалить всё";
+"Delete Cached Install Images" = "Удалить кэшированные образы установки";
+"Delete Cached Install Images?" = "Удалить кэшированные образы установки?";
+"Delete Incomplete Installation" = "Удалить незавершённую установку";
+"Delete IPSW After Successful Installation" = "Удалить IPSW после успешной установки";
+"Delete or rename the existing Virtual Mac first." = "Сначала удалите или переименуйте существующий виртуальный Mac.";
+"Delete Temporary Installation Files" = "Удалить временные файлы установки";
+"Delete Temporary Installation Files?" = "Удалить временные файлы установки?";
+"Delete Virtual Mac" = "Удалить виртуальный Mac";
+"Delete Virtual Mac?" = "Удалить виртуальный Mac?";
+"Developer Beta" = "Бета-версия для разработчиков";
+"Developers" = "Разработчики";
+"Disabled" = "Отключено";
+"Discard Changes" = "Отменить изменения";
+"Discard Changes?" = "Отменить изменения?";
+"Disk Exceeds Available Storage" = "Размер диска превышает доступное хранилище";
+"Display" = "Дисплей";
+"Display Height" = "Высота дисплея";
+"Display Resolution" = "Разрешение дисплея";
+"Display Width" = "Ширина дисплея";
+"Done" = "Готово";
+"Double-tap to hold or release this modifier" = "Дважды коснитесь, чтобы зафиксировать или отпустить эту клавишу-модификатор";
+"Download Failed" = "Сбой загрузки";
+"Downloading macOS" = "Загрузка macOS";
+"Enter six hexadecimal octets separated by colons." = "Введите шесть шестнадцатеричных октетов, разделённых двоеточиями.";
+"Ethernet (%@)" = "Ethernet (%@)";
+"Experimental" = "Экспериментально";
+"Export Diagnostics" = "Экспорт диагностики";
+"Failed to load extracted frameworks" = "Не удалось загрузить извлечённые фреймворки";
+"Failed to load the extracted Apple virtualization frameworks." = "Не удалось загрузить извлечённые фреймворки виртуализации Apple.";
+"Fill Window" = "Заполнить окно";
+"Fit in Window" = "Вписать в окно";
+"Fit in Window shows the entire display. Fill Window crops its edges when the window has a different shape." = "«Вписать в окно» показывает весь дисплей. «Заполнить окно» обрезает края, если форма окна отличается.";
+"Force Shut Down" = "Принудительно выключить";
+"Force Shut Down Virtual Mac?" = "Принудительно выключить виртуальный Mac?";
+"Full Screen" = "Во весь экран";
+"General" = "Основные";
+"Get Help" = "Справка";
+"Height" = "Высота";
+"Hide for This Boot" = "Скрыть до следующей загрузки";
+"Incomplete Installation" = "Незавершённая установка";
+"Incomplete Installations" = "Незавершённые установки";
+"Input" = "Ввод";
+"Input While a Virtual Mac Is Running" = "Ввод во время работы виртуального Mac";
+"Install %@" = "Установить %@";
+"Install macOS" = "Установить macOS";
+"Installation Details" = "Сведения об установке";
+"Installation Failed" = "Сбой установки";
+"Installation progress may pause for several minutes while the Virtual Mac starts the installation environment. Your iPad will remain awake." = "Ход установки может остановиться на несколько минут, пока Виртуальный Mac запускает среду установки. iPad не перейдёт в режим сна.";
+"Installation progress may remain unchanged while macOS prepares the next installation stage. Your iPad will remain awake." = "Ход установки может не меняться, пока macOS подготавливает следующий этап. iPad не перейдёт в режим сна.";
+"Installed, but settings save failed: %@" = "Установлено, но не удалось сохранить настройки: %@";
+"Installing macOS" = "Установка macOS";
+"iPad Internet Connection" = "Интернет-подключение iPad";
+"Keep Downloading" = "Продолжить загрузку";
+"Keep Editing" = "Продолжить редактирование";
+"Keep Installing" = "Продолжить установку";
+"Keep Virtual Mac open. Your iPad will remain awake until the download finishes." = "Не закрывайте «Виртуальный Mac». iPad не перейдёт в режим сна до завершения загрузки.";
+"Keyboard" = "Клавиатура";
+"Keyboard Crash Workaround" = "Обход сбоя клавиатуры";
+"Keyboard Crash Workaround takes effect the next time Virtual Mac opens. Debug Logging takes effect the next time a Virtual Mac starts." = "Решение проблемы сбоя клавиатуры вступит в силу при следующем открытии приложения «Виртуальный Mac». Ведение журнала отладки включится при следующем запуске виртуального Mac.";
+"Library Appearance" = "Вид библиотеки";
+"Loading extracted Apple virtualization frameworks…" = "Загрузка извлечённых фреймворков виртуализации Apple…";
+"MAC Address" = "MAC Адрес";
+"Mac Keyboard" = "Клавиатура Mac";
+"Mac Keyboard Shortcuts" = "Сочетания клавиш Mac";
+"Mac Trackpad" = "Трекпад Mac";
+"macOS Installed" = "macOS установлена";
+"Memory" = "Память";
+"Microphone Input" = "Вход микрофона";
+"Minimum: %llu GB. The upper limit is determined by the filesystem." = "Минимум: %llu ГБ. Верхний предел определяется файловой системой.";
+"Move Controls" = "Переместить элементы управления";
+"Name" = "Имя";
+"Name Already Used" = "Имя уже используется";
+"NAT: Share %@" = "NAT: общий доступ через %@";
+"Network" = "Сеть";
+"Network Attachment" = "Сетевое подключение";
+"Network Bridge (%@)" = "Сетевой мост (%@)";
+"New Virtual Mac" = "Новый Виртуальный Mac";
+"No Results" = "Результатов нет";
+"No Virtual Macs match your search." = "Ни один виртуальный Mac не соответствует поиску.";
+"OK" = "ОК";
+"Only about %llu GB is currently available. The disk image is sparse, but installation or later use can fail when storage fills up." = "Сейчас доступно только около %llu ГБ. Образ диска динамический, но установка или дальнейшее использование могут завершиться ошибкой при заполнении хранилища.";
+"Options" = "Параметры";
+"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" = "Устройство указания";
+"Portrait Full Screen" = "Во весь экран, портретная ориентация";
+"Preparing installation…" = "Подготовка к установке…";
+"Preparing the IPSW for installation. Your iPad will remain awake." = "Подготовка IPSW к установке. iPad не перейдёт в режим сна.";
+"Preparing virtual hardware…" = "Подготовка виртуального оборудования…";
+"Preparing…" = "Идет подготовка…";
+"Processors" = "Процессоры";
+"Read & Write" = "Чтение и запись";
+"Read Only" = "Только для чтения";
+"Reading restore image…" = "Чтение образа восстановления…";
+"Recommended macOS Release" = "Рекомендуемый выпуск macOS";
+"Recover Networking After Sleep" = "Восстановление сети после сна";
+"Release" = "Выпуск";
+"Remove" = "Удалить";
+"Report Issue" = "Сообщить о проблеме";
+"Reset" = "Сбросить";
+"Reset Settings" = "Сбросить настройки";
+"Reset Settings?" = "Сбросить настройки?";
+"Resolution" = "Разрешение";
+"Resources" = "Ресурсы";
+"Resume" = "Возобновить";
+"Save" = "Сохранить";
+"Search Virtual Mac" = "Найти Виртуальный Mac";
+"Settings" = "Настройки";
+"Shared Folder" = "Общая папка";
+"Shared via %@" = "Общий доступ через %@";
+"Show Developer Betas" = "Показывать бета-версии для разработчиков";
+"Show Library" = "Показать медиатеку";
+"Show Minor Releases" = "Показывать промежуточные выпуски";
+"Show Version Details" = "Показывать сведения о версии";
+"Show Virtual Mac Controls" = "Показать элементы управления виртуального Mac";
+"Start" = "Запуск";
+"Start %@" = "Запустить %@";
+"Start in Recovery" = "Запустить в режиме восстановления";
+"Start on Launch" = "Запускать при открытии";
+"Starting installation environment…" = "Запуск среды установки…";
+"Starting installation services…" = "Запуск служб установки…";
+"Starting installation…" = "Запуск установки…";
+"Starting Virtual Mac…" = "Запуск виртуального Mac…";
+"Storage" = "Хранилище";
+"Support" = "Поддержка";
+"Support for %@ is experimental" = "Поддержка %@ носит экспериментальный характер";
+"Suppress iPadOS Home Indicator" = "Скрыть индикатор «Домой» iPadOS";
+"Suppress iPadOS Multitasking Gestures" = "Отключить жесты многозадачности iPadOS";
+"Suppress iPadOS System Edge Gestures" = "Отключить системные жесты от краёв экрана iPadOS";
+"Switch to Running Virtual Mac" = "Перейти к запущенному виртуальному Mac";
+"Switch to the running Virtual Mac and shut it down before starting another one." = "Перейдите к запущенному виртуальному Mac и выключите его перед запуском другого.";
+"The diagnostics archive could not be created." = "Не удалось создать архив диагностики.";
+"The first progress value can take several minutes while the Virtual Mac changes from DFU to RestoreOS. Your iPad will remain awake." = "Первое значение хода выполнения может появиться через несколько минут, пока виртуальный Mac переходит из DFU в RestoreOS. iPad не перейдёт в режим сна.";
+"The incomplete Virtual Mac and its installation files will be deleted." = "Незавершённый виртуальный Mac и его установочные файлы будут удалены.";
+"The install image and temporary installation files were kept so the failure can be diagnosed. You can export diagnostics from Settings." = "Установочный образ и временные файлы установки сохранены для диагностики сбоя. Диагностику можно экспортировать в Настройках.";
+"The installer could not be started: %s" = "Не удалось запустить программу установки: %s";
+"The new Virtual Mac is ready to use." = "Новый виртуальный Mac готов к работе.";
+"The partial restore image will be deleted." = "Частично загруженный образ восстановления будет удалён.";
+"The Virtual Mac configuration could not be created." = "Не удалось создать конфигурацию виртуального Mac.";
+"The Virtual Mac did not publish a display framebuffer." = "Виртуальный Mac не опубликовал кадровый буфер дисплея.";
+"The Virtual Mac display view is unavailable" = "Представление дисплея виртуального Mac недоступно";
+"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 show the controls again during this boot, touch and hold the Virtual Mac icon on the Home Screen, then choose Show Virtual Mac Controls." = "Чтобы снова показать элементы управления во время этой загрузки, нажмите и удерживайте значок «Виртуальный Mac» на экране «Домой», затем выберите «Показать элементы управления виртуального Mac».";
+"Top Left" = "Слева вверху";
+"Top Right" = "Справа вверху";
+"Touch and Hold for Secondary Click" = "Нажмите и удерживайте для вторичного щелчка";
+"Two-Finger Tap for Secondary Click" = "Касание двумя пальцами для вторичного щелчка";
+"Two-Finger Touch Scrolling" = "Прокрутка двумя пальцами";
+"Unknown" = "Неизвестно";
+"Unsaved changes in macOS may be lost." = "Несохранённые изменения в macOS могут быть потеряны.";
+"Unsupported Restore Image" = "Неподдерживаемый образ восстановления";
+"USB Keyboard" = "USB-клавиатура";
+"USB Mouse" = "USB-мышь";
+"Use an IPSW on your iPad" = "Использовать IPSW на iPad";
+"Use USB Keyboard for macOS Monterey. Newer guests support the Mac keyboard device." = "Для macOS Monterey используйте USB-клавиатуру. Более новые версии macOS поддерживают клавиатуру Mac.";
+"Use USB Mouse for macOS Monterey. Newer guests support the Mac trackpad device." = "Для macOS Monterey используйте USB-мышь. Более новые версии macOS поддерживают трекпад Mac.";
+"Validation failed: %@" = "Ошибка проверки: %@";
+"Verify your iPad has sufficient free storage and try again." = "Убедитесь, что на iPad достаточно свободного места, и повторите попытку.";
+"Version" = "Версия";
+"Video Encoding and Decoding Acceleration" = "Ускорение кодирования и декодирования видео";
+"View Details" = "Подробнее";
+"Virtual Mac" = "Виртуальный Mac";
+"Virtual Mac %@ does not support %@. Check for updates in Sileo." = "Virtual Mac %@ не поддерживает %@. Проверьте наличие обновлений в Sileo.";
+"Virtual Mac Controls" = "Элементы управления Виртуального Mac";
+"Virtual Mac devices are stored in %@." = "Виртуальные Mac хранятся в %@.";
+"Virtual Mac Display" = "Дисплей Виртуального 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";
+"Virtual Mac start failed: %@" = "Не удалось запустить виртуальный Mac: %@";
+"Virtual Mac Stopped" = "Виртуальный Mac остановлен";
+"Virtual Mac stopped: %@" = "Виртуальный Mac остановлен: %@";
+"VPN" = "VPN";
+"Waiting for installation output…" = "Ожидание вывода установки…";
+"Welcome to Virtual Mac" = "Добро пожаловать в «Виртуальный Mac»";
+"Wi-Fi" = "Wi-Fi";
+"Width" = "Ширина";
+"You can also copy an existing Virtual Mac bundle to /var/mobile/Media/VirtualMac using an app such as iMazing or Filza." = "Существующий пакет виртуального Mac также можно скопировать в /var/mobile/Media/VirtualMac с помощью приложения, например iMazing или Filza.";
+"Your changes to this Virtual Mac will not be saved." = "Изменения этого виртуального Mac не будут сохранены.";
+"“%@” and all files stored in it will be permanently deleted." = "«%@» и все файлы в нём будут удалены без возможности восстановления.";
diff --git a/VirtualMac/resources/Localizations/sk.lproj/InfoPlist.strings b/VirtualMac/resources/Localizations/sk.lproj/InfoPlist.strings
new file mode 100644
index 0000000..7a20eee
--- /dev/null
+++ b/VirtualMac/resources/Localizations/sk.lproj/InfoPlist.strings
@@ -0,0 +1,2 @@
+"CFBundleDisplayName" = "Virtuálny Mac";
+"CFBundleName" = "Virtuálny Mac";
diff --git a/VirtualMac/resources/Localizations/sk.lproj/Localizable.strings b/VirtualMac/resources/Localizations/sk.lproj/Localizable.strings
new file mode 100644
index 0000000..89c925f
--- /dev/null
+++ b/VirtualMac/resources/Localizations/sk.lproj/Localizable.strings
@@ -0,0 +1,247 @@
+/* Virtual Mac 1.1 localization. */
+" · Legacy" = " · Starší";
+"%.0f%% complete" = "%.0f %% dokončené";
+"%@ CPU · %@ GB RAM · %llu GB · %@%@" = "%@ CPU · %@ GB RAM · %llu GB · %@%@";
+"%@ is not supported" = "%@ nie je podporovaný";
+"%@ 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 %@";
+"%@\n\n%@\n\nThe incomplete Virtual Mac was retained in Temporary Installation Files as %@. It can be deleted from Settings." = "%@\n\n%@\n\nNedokončený virtuálny Mac bol zachovaný medzi Dočasnými inštalačnými súbormi ako %@. Môžete ho odstrániť v Nastaveniach.";
+"%@\nState: %@\n%@\n\n" = "%@\nStav: %@\n%@\n\n";
+"A previous macOS installation did not finish. You can review its details, keep it for debugging, or delete it." = "Predchádzajúca inštalácia macOS sa nedokončila. Môžete zobraziť podrobnosti, ponechať ju na ladenie alebo ju odstrániť.";
+"About" = "Informácie";
+"Accommodate Finger Double-Taps" = "Uľahčiť dvojité klepnutie prstom";
+"Add Shared Folder" = "Pridať zdieľaný priečinok";
+"Advanced" = "Rozšírené";
+"Allowed: %llu–%llu%@" = "Povolené: %llu–%llu%@";
+"Always Hidden" = "Vždy skryté";
+"Always Visible" = "Vždy viditeľné";
+"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";
+"Audio and Acceleration" = "Zvuk a akcelerace";
+"Audio Output" = "Zvukový výstup";
+"Automatic" = "Automaticky";
+"Automatic hides the controls when an external keyboard and pointing device are connected." = "Automaticky skryje ovládací prvky, když je pripojena externá klávesnica a polohovacie zariadenie.";
+"Available macOS Releases" = "Dostupné vydania macOS";
+"Available macOS Versions" = "Dostupné verzie systému macOS";
+"Boot and Network" = "Spustenie a sieť";
+"Bottom Left" = "Vlevo dole";
+"Bottom Right" = "Vpravo dole";
+"Bridge" = "Most";
+"Bridge via %@" = "Premostiť cez %@";
+"Bridge: %@" = "Most: %@";
+"Build %@" = "Zostava %@";
+"Calculating speed…" = "Výpočet rychlosti…";
+"Cancel" = "Zrušiť";
+"Cancel Download" = "Zrušit sťahovanie";
+"Cancel Download?" = "Zrušit sťahovanie?";
+"Cancel Installation" = "Zrušit instalaci";
+"Cancel Installation?" = "Zrušit instalaci?";
+"Cellular" = "Mobilní sieť";
+"Choose a Different Version" = "Vybrať inú verziu";
+"Choose a macOS IPSW restore image." = "Vyberte obraz obnovy macOS IPSW.";
+"Choose a name for this Virtual Mac." = "Vyberte název tohoto virtuálnyho Macu.";
+"Choose Custom IPSW" = "Vybrať vlastný IPSW";
+"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. Renaming and deletion are unavailable while it is running." = "Zmeny konfigurácie sa prejavia po vypnutí a opätovnom spustení virtuálneho Macu. Počas prevádzky ho nemožno premenovať ani odstrániť.";
+"Configuration failed: %@" = "Konfigurácia zlyhala: %@";
+"Configure %@" = "Konfigurovat %@";
+"Continue" = "Pokračovať";
+"Controls Hidden" = "Ovládací prvky jsou skryté";
+"Controls Opacity" = "Nepriehľadnosť ovládacích prvkov";
+"Copy Library Path" = "Kopírovať cestu knižnice";
+"Copying Restore Image" = "Kopírování obrazu pro obnovu";
+"Could Not Copy IPSW" = "IPSW sa nepodarilo skopírovať";
+"Could Not Prepare Restore Image" = "Obraz obnovy sa nepodarilo pripraviť";
+"Could Not Rename Virtual Mac" = "Virtuálny Mac sa nepodarilo premenovať";
+"Could Not Save" = "Nepodarilo sa uložiť";
+"Could Not Start Installer" = "Inštalátor sa nepodarilo spustiť";
+"Couldn’t Export Diagnostics" = "Diagnostiku se nepodarilo exportovat";
+"Create Virtual Mac" = "Vytvoriť Virtuálny Mac";
+"Custom" = "Vlastní";
+"Debug Logging" = "Zaznamenávanie ladenia";
+"Delete" = "Odstrániť";
+"Delete All" = "Odstrániť vše";
+"Delete Cached Install Images" = "Odstrániť inštalačné obrazy z vyrovnávacej pamäte";
+"Delete Cached Install Images?" = "Odstrániť inštalačné obrazy z vyrovnávacej pamäte?";
+"Delete Incomplete Installation" = "Odstrániť nedokončenéu instalaci";
+"Delete IPSW After Successful Installation" = "Po úspešnej inštalácii odstráňte IPSW";
+"Delete or rename the existing Virtual Mac first." = "Najprv odstráňte alebo premenujte existujúci virtuálny Mac.";
+"Delete Temporary Installation Files" = "Odstrániť dočasné inštalačné súbory";
+"Delete Temporary Installation Files?" = "Odstrániť dočasné inštalačné súbory?";
+"Delete Virtual Mac" = "Odstrániť virtuálny Mac";
+"Delete Virtual Mac?" = "Odstrániť virtuálny Mac?";
+"Developer Beta" = "Vývojárská betaverze";
+"Developers" = "Vývojári";
+"Disabled" = "Vypnuté";
+"Discard Changes" = "Zahodit zmeny";
+"Discard Changes?" = "Zahodit zmeny?";
+"Disk Exceeds Available Storage" = "Disk presahuje dostupné úložisko";
+"Display" = "Displej";
+"Display Height" = "Výška displeja";
+"Display Resolution" = "Rozlíšenie displeja";
+"Display Width" = "Šírka displeja";
+"Done" = "Hotovo";
+"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 Failed" = "Sťahovanie zlyhalo";
+"Downloading macOS" = "Sťahovanie macOS";
+"Enter six hexadecimal octets separated by colons." = "Zadajte šesť hexadecimálnych oktetov oddelených dvojbodkami.";
+"Ethernet (%@)" = "Ethernet (%@)";
+"Experimental" = "Experimentálne";
+"Export Diagnostics" = "Exportovať diagnostiku";
+"Failed to load extracted frameworks" = "Extrahované frameworky se nepodarilo načíst";
+"Failed to load the extracted Apple virtualization frameworks." = "Extrahované frameworky Apple pro virtualizaci se nepodarilo načíst.";
+"Fill Window" = "Vyplniť okno";
+"Fit in Window" = "Prispôsobiť oknu";
+"Fit in Window shows the entire display. Fill Window crops its edges when the window has a different shape." = "Prispôsobiť oknu zobrazí celý displej. Vyplniť okno oreže okraje, ak má okno iný tvar.";
+"Force Shut Down" = "Vynutit vypnutí";
+"Force Shut Down Virtual Mac?" = "Vynutit vypnutí virtuálnyho Macu?";
+"Full Screen" = "Celá obrazovka";
+"General" = "Všeobecné";
+"Get Help" = "Pomoc";
+"Height" = "Výška";
+"Hide for This Boot" = "Skrýt pro toto spustenie";
+"Incomplete Installation" = "Nedokončená instalace";
+"Incomplete Installations" = "Nedokončené instalace";
+"Input" = "Vstup";
+"Input While a Virtual Mac Is Running" = "Vstup počas behu virtuálneho Macu";
+"Install %@" = "Nainštalovať %@";
+"Install macOS" = "Nainštalujte macOS";
+"Installation Details" = "Podrobnosti instalace";
+"Installation Failed" = "Inštalácia zlyhala";
+"Installation progress may pause for several minutes while the Virtual Mac starts the installation environment. Your iPad will remain awake." = "Priebeh inštalácie sa môže na niekoľko minút pozastaviť, kým Virtuálny Mac spustí inštalačné prostredie. iPad zostane aktívny.";
+"Installation progress may remain unchanged while macOS prepares the next installation stage. Your iPad will remain awake." = "Priebeh inštalácie sa nemusí meniť, kým macOS pripravuje ďalšiu fázu inštalácie. iPad zostane aktívny.";
+"Installed, but settings save failed: %@" = "Nainstalováno, ale nastavenia se nepodarilo uložit: %@";
+"Installing macOS" = "Instalace macOS";
+"iPad Internet Connection" = "Internetové pripojenie iPadu";
+"Keep Downloading" = "Pokračovat ve sťahovanie";
+"Keep Editing" = "Pokračovat v úpravách";
+"Keep Installing" = "Pokračovat v instalaci";
+"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";
+"Keyboard Crash Workaround" = "Riešenie zlyhania klávesnice";
+"Keyboard Crash Workaround takes effect the next time Virtual Mac opens. Debug Logging takes effect the next time a Virtual Mac starts." = "Riešenie pádu klávesnice sa prejaví pri ďalšom otvorení aplikácie Virtuálny Mac. Zaznamenávanie ladenia sa zapne pri ďalšom spustení virtuálneho Macu.";
+"Library Appearance" = "Vzhled knižnice";
+"Loading extracted Apple virtualization frameworks…" = "Načítavanie extrahovaných frameworkov Apple na virtualizáciu…";
+"MAC Address" = "MAC adresa";
+"Mac Keyboard" = "Klávesnica Mac";
+"Mac Keyboard Shortcuts" = "Klávesové skratky pre Mac";
+"Mac Trackpad" = "Trackpad Mac";
+"macOS Installed" = "macOS je nainstalován";
+"Memory" = "Pamäť";
+"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";
+"Name" = "Názov";
+"Name Already Used" = "Název se už používá";
+"NAT: Share %@" = "NAT: Sdílet %@";
+"Network" = "Sieť";
+"Network Attachment" = "Sieťové pripojení";
+"Network Bridge (%@)" = "Sieťový most (%@)";
+"New Virtual Mac" = "Nový Virtuálny Mac";
+"No Results" = "Žiadne výsledky";
+"No Virtual Macs match your search." = "Žiadny virtuálny Mac nezodpovedá vášmu vyhľadávaniu.";
+"OK" = "Potvrdiť";
+"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ť.";
+"Options" = "Volby";
+"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";
+"Portrait Full Screen" = "Celá obrazovka na výšku";
+"Preparing installation…" = "Príprava inštalácie…";
+"Preparing the IPSW for installation. Your iPad will remain awake." = "Príprava IPSW na inštaláciu. iPad zostane aktívny.";
+"Preparing virtual hardware…" = "Príprava virtuálnyho hardwaru…";
+"Preparing…" = "Príprava…";
+"Processors" = "Procesory";
+"Read & Write" = "Čtení a zápis";
+"Read Only" = "Jen pro čtení";
+"Reading restore image…" = "Načítání obrazu pro obnovu…";
+"Recommended macOS Release" = "Odporúčané vydanie macOS";
+"Recover Networking After Sleep" = "Obnovenie siete po spánku";
+"Release" = "Vydání";
+"Remove" = "Odstrániť";
+"Report Issue" = "Nahlásiť problém";
+"Reset" = "Resetovat";
+"Reset Settings" = "Obnoviť nastavenia";
+"Reset Settings?" = "Resetovat nastavenia?";
+"Resolution" = "Rozlíšenie";
+"Resources" = "Prostriedky";
+"Resume" = "Pokračovat";
+"Save" = "Uložiť";
+"Search Virtual Mac" = "Vyhľadať Virtuálny Mac";
+"Settings" = "Nastavenia";
+"Shared Folder" = "Zdieľaný priečinok";
+"Shared via %@" = "Zdieľané cez %@";
+"Show Developer Betas" = "Zobraziť vývojárské betaverze";
+"Show Library" = "Zobraziť knižnicu";
+"Show Minor Releases" = "Zobraziť dílčí vydání";
+"Show Version Details" = "Zobraziť podrobnosti verzie";
+"Show Virtual Mac Controls" = "Zobraziť ovládací prvky virtuálnyho Macu";
+"Start" = "Spustiť";
+"Start %@" = "Spustiť %@";
+"Start in Recovery" = "Spustiť v zotavení";
+"Start on Launch" = "Spustiť pri otvorení";
+"Starting installation environment…" = "Spúšťanie inštalačného prostredia…";
+"Starting installation services…" = "Spúšťanie inštalačných služieb…";
+"Starting installation…" = "Spúšťanie inštalácie…";
+"Starting Virtual Mac…" = "Spúšťanie virtuálneho Macu…";
+"Storage" = "Úložisko";
+"Support" = "Podpora";
+"Support for %@ is experimental" = "Podpora %@ je experimentálna";
+"Suppress iPadOS Home Indicator" = "Skryť indikátor plochy iPadOS";
+"Suppress iPadOS Multitasking Gestures" = "Vypnúť gestá multitaskingu iPadOS";
+"Suppress iPadOS System Edge Gestures" = "Vypnúť systémové gestá od okrajov obrazovky iPadOS";
+"Switch to Running Virtual Mac" = "Prepnúť na spustený virtuálny Mac";
+"Switch to the running Virtual Mac and shut it down before starting another one." = "Pred spustením iného virtuálneho Macu prepnite na spustený a vypnite ho.";
+"The diagnostics archive could not be created." = "Diagnostický archív sa nepodarilo vytvoriť.";
+"The first progress value can take several minutes while the Virtual Mac changes from DFU to RestoreOS. Your iPad will remain awake." = "Prvá hodnota priebehu môže trvať niekoľko minút, kým virtuálny Mac prechádza z DFU do RestoreOS. iPad zostane aktívny.";
+"The incomplete Virtual Mac and its installation files will be deleted." = "Nedokončený virtuálny Mac a jeho inštalačné súbory budú odstránené.";
+"The install image and temporary installation files were kept so the failure can be diagnosed. You can export diagnostics from Settings." = "Inštalačný obraz a dočasné inštalačné súbory boli zachované, aby bolo možné chybu diagnostikovať. Diagnostiku môžete exportovať v Nastaveniach.";
+"The installer could not be started: %s" = "Inštalačný program sa nepodarilo spustiť: %s";
+"The new Virtual Mac is ready to use." = "Nový virtuálny Mac je pripravený na použitie.";
+"The partial restore image will be deleted." = "Čiastočne stiahnutý obraz obnovy bude odstránený.";
+"The Virtual Mac configuration could not be created." = "Konfiguráciu virtuálneho Macu sa nepodarilo vytvoriť.";
+"The Virtual Mac did not publish a display framebuffer." = "Virtuálny Mac nezverejnil framebuffer displeja.";
+"The Virtual Mac display view is unavailable" = "Zobrazenie displeja virtuálnyho Macu není dostupné";
+"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 show the controls again during this boot, touch and hold the Virtual Mac icon on the Home Screen, then choose Show Virtual Mac Controls." = "Ak chcete počas tohto spustenia znovu zobraziť ovládacie prvky, podržte ikonu Virtual Mac na ploche a vyberte Zobraziť ovládacie prvky virtuálneho Macu.";
+"Top Left" = "Vľavo hore";
+"Top Right" = "Vpravo hore";
+"Touch and Hold for Secondary Click" = "Dotknite sa a podržte pre sekundárne kliknutie";
+"Two-Finger Tap for Secondary Click" = "Ťuknutie dvoma prstami pre sekundárne kliknutie";
+"Two-Finger Touch Scrolling" = "Posúvanie dotykom dvoch prstov";
+"Unknown" = "Neznáme";
+"Unsaved changes in macOS may be lost." = "Neuložené zmeny v macOS môžu být stratené.";
+"Unsupported Restore Image" = "Nepodporovaný obraz obnovy";
+"USB Keyboard" = "USB klávesnica";
+"USB Mouse" = "USB myš";
+"Use an IPSW on your iPad" = "Použiť IPSW v iPade";
+"Use USB Keyboard for macOS Monterey. Newer guests support the Mac keyboard device." = "V macOS Monterey použite USB klávesnicu. Novšie verzie macOS podporujú klávesnicu Mac.";
+"Use USB Mouse for macOS Monterey. Newer guests support the Mac trackpad device." = "V macOS Monterey použite USB myš. Novšie verzie macOS podporujú trackpad Mac.";
+"Validation failed: %@" = "Overenie zlyhalo: %@";
+"Verify your iPad has sufficient free storage and try again." = "Overte, či je na iPade dostatok voľného miesta, a skúste to znova.";
+"Version" = "Verzia";
+"Video Encoding and Decoding Acceleration" = "Akcelerácia kódovania a dekódovania videa";
+"View Details" = "Zobraziť podrobnosti";
+"Virtual Mac" = "Virtuálny Mac";
+"Virtual Mac %@ does not support %@. Check for updates in Sileo." = "Virtual Mac %@ nepodporuje %@. Vyhľadajte aktualizácie v Sileu.";
+"Virtual Mac Controls" = "Ovládacie prvky Virtuálneho Macu";
+"Virtual Mac devices are stored in %@." = "Virtuálne Macy sa ukladajú do %@.";
+"Virtual Mac Display" = "Displej Virtuálneho Macu";
+"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";
+"Virtual Mac start failed: %@" = "Virtuálny Mac se nepodarilo spustiť: %@";
+"Virtual Mac Stopped" = "Virtuálny Mac sa zastavil";
+"Virtual Mac stopped: %@" = "Virtuálny Mac byl zastaven: %@";
+"VPN" = "VPN";
+"Waiting for installation output…" = "Čakanie na výstup inštalácie…";
+"Welcome to Virtual Mac" = "Vitajte vo Virtuálnom Macu";
+"Wi-Fi" = "Wi-Fi";
+"Width" = "Šírka";
+"You can also copy an existing Virtual Mac bundle to /var/mobile/Media/VirtualMac using an app such as iMazing or Filza." = "Existujúci balík virtuálneho Macu môžete skopírovať aj do /var/mobile/Media/VirtualMac pomocou aplikácie, ako je iMazing alebo Filza.";
+"Your changes to this Virtual Mac will not be saved." = "Zmeny tohoto virtuálnyho Macu nebudou uložené.";
+"“%@” and all files stored in it will be permanently deleted." = "„%@“ a všetky súbory v ňom budú natrvalo odstránené.";
diff --git a/VirtualMac/resources/Localizations/sl.lproj/InfoPlist.strings b/VirtualMac/resources/Localizations/sl.lproj/InfoPlist.strings
new file mode 100644
index 0000000..8641085
--- /dev/null
+++ b/VirtualMac/resources/Localizations/sl.lproj/InfoPlist.strings
@@ -0,0 +1,2 @@
+"CFBundleDisplayName" = "Navidezni Mac";
+"CFBundleName" = "Navidezni Mac";
diff --git a/VirtualMac/resources/Localizations/sl.lproj/Localizable.strings b/VirtualMac/resources/Localizations/sl.lproj/Localizable.strings
new file mode 100644
index 0000000..a2a59f3
--- /dev/null
+++ b/VirtualMac/resources/Localizations/sl.lproj/Localizable.strings
@@ -0,0 +1,247 @@
+/* Virtual Mac 1.1 localization. */
+" · Legacy" = " · Starejše";
+"%.0f%% complete" = "Dokončano %.0f%%";
+"%@ CPU · %@ GB RAM · %llu GB · %@%@" = "%@ CPE · %@ GB pomnilnika · %llu GB · %@%@";
+"%@ is not supported" = "%@ ni podprt";
+"%@ 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 %@";
+"%@\n\n%@\n\nThe incomplete Virtual Mac was retained in Temporary Installation Files as %@. It can be deleted from Settings." = "%@\n\n%@\n\nNedokončan navidezni Mac je bil med Začasnimi namestitvenimi datotekami shranjen kot %@. Izbrišete ga lahko v Nastavitvah.";
+"%@\nState: %@\n%@\n\n" = "%@\nStanje: %@\n%@\n\n";
+"A previous macOS installation did not finish. You can review its details, keep it for debugging, or delete it." = "Prejšnja namestitev sistema macOS se ni dokončala. Ogledate si lahko podrobnosti, jo obdržite za odpravljanje napak ali izbrišete.";
+"About" = "Informacije";
+"Accommodate Finger Double-Taps" = "Olajšaj dvojni dotik s prstom";
+"Add Shared Folder" = "Dodaj mapo v skupni rabi";
+"Advanced" = "Napredno";
+"Allowed: %llu–%llu%@" = "Dovoljeno: %llu–%llu%@";
+"Always Hidden" = "Vedno skrito";
+"Always Visible" = "Vedno prikazano";
+"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";
+"Audio and Acceleration" = "Zvok in pospeševanje";
+"Audio Output" = "Izhod zvoka";
+"Automatic" = "Samodejno";
+"Automatic hides the controls when an external keyboard and pointing device are connected." = "Samodejni način skrije kontrolnike, ko sta povezani zunanja tipkovnica in kazalna naprava.";
+"Available macOS Releases" = "Razpoložljive izdaje macOS";
+"Available macOS Versions" = "Razpoložljive različice macOS";
+"Boot and Network" = "Zagon in omrežje";
+"Bottom Left" = "Spodaj levo";
+"Bottom Right" = "Spodaj desno";
+"Bridge" = "Most";
+"Bridge via %@" = "Premosti prek %@";
+"Bridge: %@" = "Most: %@";
+"Build %@" = "Različica %@";
+"Calculating speed…" = "Izračunavanje hitrosti…";
+"Cancel" = "Prekliči";
+"Cancel Download" = "Prekliči prenos";
+"Cancel Download?" = "Želite preklicati prenos?";
+"Cancel Installation" = "Prekliči namestitev";
+"Cancel Installation?" = "Želite preklicati namestitev?";
+"Cellular" = "Mobilno omrežje";
+"Choose a Different Version" = "Izberi drugo različico";
+"Choose a macOS IPSW restore image." = "Izberite obnovitveno sliko macOS IPSW.";
+"Choose a name for this Virtual Mac." = "Izberite ime za ta Virtual Mac.";
+"Choose Custom IPSW" = "Izberi IPSW po meri";
+"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. Renaming and deletion are unavailable while it is running." = "Spremembe nastavitev začnejo veljati po zaustavitvi in ponovnem zagonu Virtual Maca. Med izvajanjem ga ni mogoče preimenovati ali izbrisati.";
+"Configuration failed: %@" = "Nastavitev ni uspela: %@";
+"Configure %@" = "Nastavi %@";
+"Continue" = "Nadaljuj";
+"Controls Hidden" = "Kontrolniki so skriti";
+"Controls Opacity" = "Motnost kontrolnikov";
+"Copy Library Path" = "Kopiraj pot knjižnice";
+"Copying Restore Image" = "Kopiranje obnovitvene slike";
+"Could Not Copy IPSW" = "IPSW-ja ni bilo mogoče kopirati";
+"Could Not Prepare Restore Image" = "Obnovitvene slike ni bilo mogoče pripraviti";
+"Could Not Rename Virtual Mac" = "Navideznega Maca ni bilo mogoče preimenovati";
+"Could Not Save" = "Ni bilo mogoče shraniti";
+"Could Not Start Installer" = "Namestitvenega programa ni bilo mogoče zagnati";
+"Couldn’t Export Diagnostics" = "Diagnostike ni bilo mogoče izvoziti";
+"Create Virtual Mac" = "Ustvari navidezni Mac";
+"Custom" = "Po meri";
+"Debug Logging" = "Beleženje razhroščevanja";
+"Delete" = "Izbriši";
+"Delete All" = "Izbriši vse";
+"Delete Cached Install Images" = "Izbriši predpomnjene namestitvene slike";
+"Delete Cached Install Images?" = "Želite izbrisati predpomnjene namestitvene slike?";
+"Delete Incomplete Installation" = "Izbriši nedokončano namestitev";
+"Delete IPSW After Successful Installation" = "Po uspešni namestitvi izbriši IPSW";
+"Delete or rename the existing Virtual Mac first." = "Najprej izbrišite ali preimenujte obstoječi Virtual Mac.";
+"Delete Temporary Installation Files" = "Izbriši začasne namestitvene datoteke";
+"Delete Temporary Installation Files?" = "Želite izbrisati začasne namestitvene datoteke?";
+"Delete Virtual Mac" = "Izbriši Virtual Mac";
+"Delete Virtual Mac?" = "Želite izbrisati Virtual Mac?";
+"Developer Beta" = "Razvijalska beta";
+"Developers" = "Razvijalci";
+"Disabled" = "Onemogočeno";
+"Discard Changes" = "Zavrzi spremembe";
+"Discard Changes?" = "Želite zavreči spremembe?";
+"Disk Exceeds Available Storage" = "Disk presega razpoložljivi prostor";
+"Display" = "Zaslon";
+"Display Height" = "Višina zaslona";
+"Display Resolution" = "Ločljivost zaslona";
+"Display Width" = "Širina zaslona";
+"Done" = "Končano";
+"Double-tap to hold or release this modifier" = "Dvakrat tapnite, da pridržite ali sprostite to modifikacijsko tipko";
+"Download Failed" = "Prenos ni uspel";
+"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 (%@)";
+"Experimental" = "Poskusno";
+"Export Diagnostics" = "Izvozi diagnostiko";
+"Failed to load extracted frameworks" = "Izločenih ogrodij ni bilo mogoče naložiti";
+"Failed to load the extracted Apple virtualization frameworks." = "Izločenih Applovih ogrodij za virtualizacijo ni bilo mogoče naložiti.";
+"Fill Window" = "Zapolni okno";
+"Fit in Window" = "Prilagodi oknu";
+"Fit in Window shows the entire display. Fill Window crops its edges when the window has a different shape." = "Prilagodi oknu prikaže ves zaslon. Zapolni okno obreže robove, kadar ima okno drugačno obliko.";
+"Force Shut Down" = "Vsili zaustavitev";
+"Force Shut Down Virtual Mac?" = "Želite prisilno zaustaviti Virtual Mac?";
+"Full Screen" = "Celozaslonsko";
+"General" = "Splošno";
+"Get Help" = "Pomoč";
+"Height" = "Višina";
+"Hide for This Boot" = "Skrij za ta zagon";
+"Incomplete Installation" = "Nedokončana namestitev";
+"Incomplete Installations" = "Nedokončane namestitve";
+"Input" = "Vnos";
+"Input While a Virtual Mac Is Running" = "Vnos med delovanjem navideznega Maca";
+"Install %@" = "Namesti %@";
+"Install macOS" = "Namesti macOS";
+"Installation Details" = "Podrobnosti namestitve";
+"Installation Failed" = "Namestitev ni uspela";
+"Installation progress may pause for several minutes while the Virtual Mac starts the installation environment. Your iPad will remain awake." = "Napredek namestitve se lahko za nekaj minut ustavi, medtem ko Navidezni Mac zažene namestitveno okolje. iPad bo ostal buden.";
+"Installation progress may remain unchanged while macOS prepares the next installation stage. Your iPad will remain awake." = "Napredek namestitve lahko ostane nespremenjen, medtem ko macOS pripravlja naslednjo stopnjo namestitve. iPad bo ostal buden.";
+"Installed, but settings save failed: %@" = "Nameščeno, vendar nastavitev ni bilo mogoče shraniti: %@";
+"Installing macOS" = "Nameščanje sistema macOS";
+"iPad Internet Connection" = "Internetna povezava iPada";
+"Keep Downloading" = "Nadaljuj prenos";
+"Keep Editing" = "Nadaljuj urejanje";
+"Keep Installing" = "Nadaljuj namestitev";
+"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";
+"Keyboard Crash Workaround" = "Rešitev za sesutje tipkovnice";
+"Keyboard Crash Workaround takes effect the next time Virtual Mac opens. Debug Logging takes effect the next time a Virtual Mac starts." = "Rešitev za sesutje tipkovnice začne veljati ob naslednjem odprtju aplikacije Navidezni Mac. Beleženje razhroščevanja začne veljati ob naslednjem zagonu navideznega Maca.";
+"Library Appearance" = "Videz knjižnice";
+"Loading extracted Apple virtualization frameworks…" = "Nalaganje izločenih Applovih ogrodij za virtualizacijo…";
+"MAC Address" = "Naslov MAC";
+"Mac Keyboard" = "Tipkovnica Mac";
+"Mac Keyboard Shortcuts" = "Bližnjice na tipkovnici Mac";
+"Mac Trackpad" = "Sledilna ploščica Mac";
+"macOS Installed" = "macOS je nameščen";
+"Memory" = "Pomnilnik";
+"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";
+"Name" = "Ime";
+"Name Already Used" = "Ime je že uporabljeno";
+"NAT: Share %@" = "NAT: deli %@";
+"Network" = "Omrežje";
+"Network Attachment" = "Omrežna povezava";
+"Network Bridge (%@)" = "Omrežni most (%@)";
+"New Virtual Mac" = "Nov navidezni Mac";
+"No Results" = "Ni rezultatov";
+"No Virtual Macs match your search." = "Noben Virtual Mac ne ustreza iskanju.";
+"OK" = "V redu";
+"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.";
+"Options" = "Možnosti";
+"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";
+"Portrait Full Screen" = "Celozaslonsko pokončno";
+"Preparing installation…" = "Pripravljanje namestitve…";
+"Preparing the IPSW for installation. Your iPad will remain awake." = "Pripravljanje datoteke IPSW za namestitev. iPad bo ostal buden.";
+"Preparing virtual hardware…" = "Pripravljanje navidezne strojne opreme…";
+"Preparing…" = "Pripravljanje…";
+"Processors" = "Procesorji";
+"Read & Write" = "Branje in pisanje";
+"Read Only" = "Samo za branje";
+"Reading restore image…" = "Branje obnovitvene slike…";
+"Recommended macOS Release" = "Priporočena izdaja macOS";
+"Recover Networking After Sleep" = "Obnovi omrežje po spanju";
+"Release" = "Izdaja";
+"Remove" = "Odstrani";
+"Report Issue" = "Prijavi težavo";
+"Reset" = "Ponastavi";
+"Reset Settings" = "Ponastavi nastavitve";
+"Reset Settings?" = "Želite ponastaviti nastavitve?";
+"Resolution" = "Ločljivost";
+"Resources" = "Viri";
+"Resume" = "Nadaljuj";
+"Save" = "Shrani";
+"Search Virtual Mac" = "Poišči navidezni Mac";
+"Settings" = "Nastavitve";
+"Shared Folder" = "Mapa v skupni rabi";
+"Shared via %@" = "V skupni rabi prek %@";
+"Show Developer Betas" = "Pokaži razvijalske bete";
+"Show Library" = "Prikaži knjižnico";
+"Show Minor Releases" = "Pokaži manjše izdaje";
+"Show Version Details" = "Prikaži podrobnosti različice";
+"Show Virtual Mac Controls" = "Pokaži kontrolnike Virtual Maca";
+"Start" = "Zaženi";
+"Start %@" = "Zaženi %@";
+"Start in Recovery" = "Zaženi v načinu za obnovitev";
+"Start on Launch" = "Zaženi ob odprtju";
+"Starting installation environment…" = "Zaganjanje namestitvenega okolja…";
+"Starting installation services…" = "Zaganjanje namestitvenih storitev…";
+"Starting installation…" = "Začenjanje namestitve…";
+"Starting Virtual Mac…" = "Zaganjanje Virtual Maca…";
+"Storage" = "Shramba";
+"Support" = "Podpora";
+"Support for %@ is experimental" = "Podpora za %@ je preizkusna";
+"Suppress iPadOS Home Indicator" = "Skrij indikator domače strani iPadOS";
+"Suppress iPadOS Multitasking Gestures" = "Onemogoči večopravilne poteze iPadOS";
+"Suppress iPadOS System Edge Gestures" = "Onemogoči sistemske poteze z roba zaslona iPadOS";
+"Switch to Running Virtual Mac" = "Preklopi na delujoči Virtual Mac";
+"Switch to the running Virtual Mac and shut it down before starting another one." = "Preklopite na delujoči Virtual Mac in ga zaustavite, preden zaženete drugega.";
+"The diagnostics archive could not be created." = "Diagnostičnega arhiva ni bilo mogoče ustvariti.";
+"The first progress value can take several minutes while the Virtual Mac changes from DFU to RestoreOS. Your iPad will remain awake." = "Prva vrednost napredka se lahko prikaže šele čez nekaj minut, medtem ko Virtual Mac prehaja iz DFU v RestoreOS. iPad bo ostal buden.";
+"The incomplete Virtual Mac and its installation files will be deleted." = "Nedokončani Virtual Mac in njegove namestitvene datoteke bodo izbrisani.";
+"The install image and temporary installation files were kept so the failure can be diagnosed. You can export diagnostics from Settings." = "Namestitvena slika in začasne namestitvene datoteke so bile ohranjene za diagnosticiranje napake. Diagnostiko lahko izvozite v Nastavitvah.";
+"The installer could not be started: %s" = "Namestitvenega programa ni bilo mogoče zagnati: %s";
+"The new Virtual Mac is ready to use." = "Novi Virtual Mac je pripravljen za uporabo.";
+"The partial restore image will be deleted." = "Delno prenesena obnovitvena slika bo izbrisana.";
+"The Virtual Mac configuration could not be created." = "Nastavitev Virtual Maca ni bilo mogoče ustvariti.";
+"The Virtual Mac did not publish a display framebuffer." = "Virtual Mac ni objavil medpomnilnika sličic zaslona.";
+"The Virtual Mac display view is unavailable" = "Pogled zaslona Virtual Maca ni na voljo";
+"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 show the controls again during this boot, touch and hold the Virtual Mac icon on the Home Screen, then choose Show Virtual Mac Controls." = "Če želite med tem zagonom znova prikazati kontrolnike, se dotaknite ikone Virtual Mac na začetnem zaslonu in jo pridržite, nato izberite Pokaži kontrolnike Virtual Maca.";
+"Top Left" = "Zgoraj levo";
+"Top Right" = "Zgoraj desno";
+"Touch and Hold for Secondary Click" = "Dotik in pridržanje za sekundarni klik";
+"Two-Finger Tap for Secondary Click" = "Dotik z dvema prstoma za sekundarni klik";
+"Two-Finger Touch Scrolling" = "Drsenje z dotikom dveh prstov";
+"Unknown" = "Neznano";
+"Unsaved changes in macOS may be lost." = "Neshranjene spremembe v sistemu macOS bodo morda izgubljene.";
+"Unsupported Restore Image" = "Nepodprta obnovitvena slika";
+"USB Keyboard" = "Tipkovnica USB";
+"USB Mouse" = "Miška USB";
+"Use an IPSW on your iPad" = "Uporabi IPSW v iPadu";
+"Use USB Keyboard for macOS Monterey. Newer guests support the Mac keyboard device." = "Za macOS Monterey uporabite tipkovnico USB. Novejši gostujoči sistemi podpirajo napravo tipkovnice Mac.";
+"Use USB Mouse for macOS Monterey. Newer guests support the Mac trackpad device." = "Za macOS Monterey uporabite miško USB. Novejši gostujoči sistemi podpirajo napravo sledilne ploščice Mac.";
+"Validation failed: %@" = "Preverjanje ni uspelo: %@";
+"Verify your iPad has sufficient free storage and try again." = "Preverite, ali ima iPad dovolj prostega prostora, in poskusite znova.";
+"Version" = "Različica";
+"Video Encoding and Decoding Acceleration" = "Pospeševanje kodiranja in dekodiranja videa";
+"View Details" = "Prikaži podrobnosti";
+"Virtual Mac" = "Navidezni Mac";
+"Virtual Mac %@ does not support %@. Check for updates in Sileo." = "Virtual Mac %@ ne podpira %@. Preverite posodobitve v Sileu.";
+"Virtual Mac Controls" = "Kontrolniki navideznega Maca";
+"Virtual Mac devices are stored in %@." = "Navidezni Maci se shranjujejo v %@.";
+"Virtual Mac Display" = "Zaslon 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";
+"Virtual Mac start failed: %@" = "Zagon Virtual Maca ni uspel: %@";
+"Virtual Mac Stopped" = "Navidezni Mac se je ustavil";
+"Virtual Mac stopped: %@" = "Virtual Mac se je ustavil: %@";
+"VPN" = "VPN";
+"Waiting for installation output…" = "Čakanje na izpis namestitve…";
+"Welcome to Virtual Mac" = "Dobrodošli v Navideznem Macu";
+"Wi-Fi" = "Wi-Fi";
+"Width" = "Širina";
+"You can also copy an existing Virtual Mac bundle to /var/mobile/Media/VirtualMac using an app such as iMazing or Filza." = "Obstoječi paket Virtual Mac lahko kopirate tudi v /var/mobile/Media/VirtualMac z aplikacijo, kot je iMazing ali Filza.";
+"Your changes to this Virtual Mac will not be saved." = "Vaše spremembe tega Virtual Maca ne bodo shranjene.";
+"“%@” and all files stored in it will be permanently deleted." = "»%@« in vse datoteke v njem bodo trajno izbrisani.";
diff --git a/VirtualMac/resources/Localizations/sv.lproj/InfoPlist.strings b/VirtualMac/resources/Localizations/sv.lproj/InfoPlist.strings
new file mode 100644
index 0000000..3750a8a
--- /dev/null
+++ b/VirtualMac/resources/Localizations/sv.lproj/InfoPlist.strings
@@ -0,0 +1,2 @@
+"CFBundleDisplayName" = "Virtuell Mac";
+"CFBundleName" = "Virtuell Mac";
diff --git a/VirtualMac/resources/Localizations/sv.lproj/Localizable.strings b/VirtualMac/resources/Localizations/sv.lproj/Localizable.strings
new file mode 100644
index 0000000..ff27709
--- /dev/null
+++ b/VirtualMac/resources/Localizations/sv.lproj/Localizable.strings
@@ -0,0 +1,247 @@
+/* Virtual Mac 1.1 localization. */
+" · Legacy" = " · Äldre";
+"%.0f%% complete" = "%.0f%% slutfört";
+"%@ CPU · %@ GB RAM · %llu GB · %@%@" = "%@ CPU · %@ GB RAM · %llu GB · %@%@";
+"%@ is not supported" = "%@ stöds inte";
+"%@ 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";
+"%@\n\n%@\n\nThe incomplete Virtual Mac was retained in Temporary Installation Files as %@. It can be deleted from Settings." = "%@\n\n%@\n\nDen ofullständiga virtuella Mac-datorn sparades i Tillfälliga installationsfiler som %@. Den kan raderas i Inställningar.";
+"%@\nState: %@\n%@\n\n" = "%@\nStatus: %@\n%@\n\n";
+"A previous macOS installation did not finish. You can review its details, keep it for debugging, or delete it." = "En tidigare macOS-installation slutfördes inte. Du kan granska detaljerna, behålla den för felsökning eller radera den.";
+"About" = "Om";
+"Accommodate Finger Double-Taps" = "Gör dubbeltryck med ett finger enklare";
+"Add Shared Folder" = "Lägg till delad mapp";
+"Advanced" = "Avancerat";
+"Allowed: %llu–%llu%@" = "Tillåtet: %llu–%llu%@";
+"Always Hidden" = "Alltid gömd";
+"Always Visible" = "Alltid synlig";
+"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";
+"Audio and Acceleration" = "Ljud och acceleration";
+"Audio Output" = "Ljudutgång";
+"Automatic" = "Automatisk";
+"Automatic hides the controls when an external keyboard and pointing device are connected." = "Automatiskt döljer reglagen när ett externt tangentbord och pekdon är anslutna.";
+"Available macOS Releases" = "Tillgängliga macOS-versioner";
+"Available macOS Versions" = "Tillgängliga macOS-versioner";
+"Boot and Network" = "Start och nätverk";
+"Bottom Left" = "Nere till vänster";
+"Bottom Right" = "Nere till höger";
+"Bridge" = "Brygga";
+"Bridge via %@" = "Brygga via %@";
+"Bridge: %@" = "Brygga: %@";
+"Build %@" = "Bygge %@";
+"Calculating speed…" = "Beräknar hastighet…";
+"Cancel" = "Avbryt";
+"Cancel Download" = "Avbryt hämtning";
+"Cancel Download?" = "Avbryta hämtningen?";
+"Cancel Installation" = "Avbryt installation";
+"Cancel Installation?" = "Avbryta installationen?";
+"Cellular" = "Mobilnät";
+"Choose a Different Version" = "Välj en annan version";
+"Choose a macOS IPSW restore image." = "Välj en macOS IPSW-återställningsavbild.";
+"Choose a name for this Virtual Mac." = "Välj ett namn för denna Virtual Mac.";
+"Choose Custom IPSW" = "Välj anpassad IPSW";
+"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. Renaming and deletion are unavailable while it is running." = "Konfigurationsändringar börjar gälla efter att Virtual Mac har stängts av och startats igen. Den kan inte döpas om eller raderas medan den körs.";
+"Configuration failed: %@" = "Konfigurationen misslyckades: %@";
+"Configure %@" = "Konfigurera %@";
+"Continue" = "Fortsätt";
+"Controls Hidden" = "Reglage dolda";
+"Controls Opacity" = "Reglagens opacitet";
+"Copy Library Path" = "Kopiera biblioteksväg";
+"Copying Restore Image" = "Kopierar återställningsavbild";
+"Could Not Copy IPSW" = "Kunde inte kopiera IPSW";
+"Could Not Prepare Restore Image" = "Kunde inte förbereda återställningsavbilden";
+"Could Not Rename Virtual Mac" = "Kunde inte byta namn på Virtuell Mac";
+"Could Not Save" = "Kunde inte spara";
+"Could Not Start Installer" = "Kunde inte starta installeraren";
+"Couldn’t Export Diagnostics" = "Kunde inte exportera diagnostik";
+"Create Virtual Mac" = "Skapa en virtuell Mac";
+"Custom" = "Anpassad";
+"Debug Logging" = "Felsökningsloggning";
+"Delete" = "Radera";
+"Delete All" = "Radera alla";
+"Delete Cached Install Images" = "Ta bort cachade installationsavbilder";
+"Delete Cached Install Images?" = "Ta bort cachade installationsavbilder?";
+"Delete Incomplete Installation" = "Radera ofullständig installation";
+"Delete IPSW After Successful Installation" = "Ta bort IPSW efter lyckad installation";
+"Delete or rename the existing Virtual Mac first." = "Radera eller döp först om den befintliga Virtual Mac.";
+"Delete Temporary Installation Files" = "Radera tillfälliga installationsfiler";
+"Delete Temporary Installation Files?" = "Radera tillfälliga installationsfiler?";
+"Delete Virtual Mac" = "Radera Virtual Mac";
+"Delete Virtual Mac?" = "Radera Virtual Mac?";
+"Developer Beta" = "Utvecklarbeta";
+"Developers" = "Utvecklare";
+"Disabled" = "Av";
+"Discard Changes" = "Ignorera ändringar";
+"Discard Changes?" = "Ignorera ändringar?";
+"Disk Exceeds Available Storage" = "Skivan överskrider tillgängligt lagringsutrymme";
+"Display" = "Bildskärm";
+"Display Height" = "Bildskärmshöjd";
+"Display Resolution" = "Bildskärmsupplösning";
+"Display Width" = "Bildskärmsbredd";
+"Done" = "Klar";
+"Double-tap to hold or release this modifier" = "Tryck två gånger för att låsa eller släppa denna specialtangent";
+"Download Failed" = "Hämtningen misslyckades";
+"Downloading macOS" = "Hämtar macOS";
+"Enter six hexadecimal octets separated by colons." = "Ange sex hexadecimala oktetter avgränsade med kolon.";
+"Ethernet (%@)" = "Ethernet (%@)";
+"Experimental" = "Experimentell";
+"Export Diagnostics" = "Exportera diagnostik";
+"Failed to load extracted frameworks" = "Kunde inte läsa in extraherade ramverk";
+"Failed to load the extracted Apple virtualization frameworks." = "De extraherade Apple-ramverken för virtualisering kunde inte läsas in.";
+"Fill Window" = "Fyll fönstret";
+"Fit in Window" = "Anpassa till fönstret";
+"Fit in Window shows the entire display. Fill Window crops its edges when the window has a different shape." = "Anpassa till fönster visar hela bildskärmen. Fyll fönster beskär kanterna när fönstret har en annan form.";
+"Force Shut Down" = "Tvinga avstängning";
+"Force Shut Down Virtual Mac?" = "Tvinga avstängning av Virtual Mac?";
+"Full Screen" = "Helskärm";
+"General" = "Allmänt";
+"Get Help" = "Få hjälp";
+"Height" = "Höjd";
+"Hide for This Boot" = "Dölj för denna start";
+"Incomplete Installation" = "Ofullständig installation";
+"Incomplete Installations" = "Ofullständiga installationer";
+"Input" = "Inmatning";
+"Input While a Virtual Mac Is Running" = "Inmatning medan en virtuell Mac körs";
+"Install %@" = "Installera %@";
+"Install macOS" = "Installera macOS";
+"Installation Details" = "Installationsdetaljer";
+"Installation Failed" = "Installationen misslyckades";
+"Installation progress may pause for several minutes while the Virtual Mac starts the installation environment. Your iPad will remain awake." = "Installationsförloppet kan pausas i flera minuter medan Virtuell Mac startar installationsmiljön. Din iPad förblir aktiv.";
+"Installation progress may remain unchanged while macOS prepares the next installation stage. Your iPad will remain awake." = "Installationsförloppet kan förbli oförändrat medan macOS förbereder nästa installationssteg. Din iPad förblir aktiv.";
+"Installed, but settings save failed: %@" = "Installerat, men inställningarna kunde inte sparas: %@";
+"Installing macOS" = "Installerar macOS";
+"iPad Internet Connection" = "Internetanslutning på iPad";
+"Keep Downloading" = "Fortsätt hämta";
+"Keep Editing" = "Fortsätt redigera";
+"Keep Installing" = "Fortsätt installera";
+"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";
+"Keyboard Crash Workaround" = "Lösning för tangentbordskrascher";
+"Keyboard Crash Workaround takes effect the next time Virtual Mac opens. Debug Logging takes effect the next time a Virtual Mac starts." = "Lösningen för tangentbordskrascher börjar gälla nästa gång Virtuell Mac öppnas. Felsökningsloggning börjar gälla nästa gång en virtuell Mac startas.";
+"Library Appearance" = "Bibliotekets utseende";
+"Loading extracted Apple virtualization frameworks…" = "Läser in extraherade Apple-ramverk för virtualisering…";
+"MAC Address" = "MAC-adress";
+"Mac Keyboard" = "Mac-tangentbord";
+"Mac Keyboard Shortcuts" = "Mac-tangentbordsgenvägar";
+"Mac Trackpad" = "Mac-styrplatta";
+"macOS Installed" = "macOS installerat";
+"Memory" = "Minne";
+"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";
+"Name" = "Namn";
+"Name Already Used" = "Namnet används redan";
+"NAT: Share %@" = "NAT: Dela %@";
+"Network" = "Nätverk";
+"Network Attachment" = "Nätverksanslutning";
+"Network Bridge (%@)" = "Nätverksbrygga (%@)";
+"New Virtual Mac" = "Ny virtuell Mac";
+"No Results" = "Inga resultat";
+"No Virtual Macs match your search." = "Ingen virtuell Mac matchar din sökning.";
+"OK" = "OK";
+"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.";
+"Options" = "Alternativ";
+"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";
+"Portrait Full Screen" = "Helskärm i stående format";
+"Preparing installation…" = "Förbereder installation…";
+"Preparing the IPSW for installation. Your iPad will remain awake." = "Förbereder IPSW för installation. Din iPad förblir aktiv.";
+"Preparing virtual hardware…" = "Förbereder virtuell maskinvara…";
+"Preparing…" = "Förbereder…";
+"Processors" = "Processorer";
+"Read & Write" = "Läs och skriv";
+"Read Only" = "Skrivskyddad";
+"Reading restore image…" = "Läser återställningsavbild…";
+"Recommended macOS Release" = "Rekommenderad macOS-version";
+"Recover Networking After Sleep" = "Återställ nätverk efter viloläge";
+"Release" = "Utgåva";
+"Remove" = "Ta bort";
+"Report Issue" = "Rapportera ett problem";
+"Reset" = "Nollställ";
+"Reset Settings" = "Återställ inställningar";
+"Reset Settings?" = "Nollställa inställningar?";
+"Resolution" = "Upplösning";
+"Resources" = "Resurser";
+"Resume" = "Fortsätt";
+"Save" = "Spara";
+"Search Virtual Mac" = "Sök efter virtuell Mac";
+"Settings" = "Inställningar";
+"Shared Folder" = "Delad mapp";
+"Shared via %@" = "Delad via %@";
+"Show Developer Betas" = "Visa utvecklarbetor";
+"Show Library" = "Visa bibliotek";
+"Show Minor Releases" = "Visa delversioner";
+"Show Version Details" = "Visa versionsdetaljer";
+"Show Virtual Mac Controls" = "Visa Virtual Mac-reglage";
+"Start" = "Starta";
+"Start %@" = "Starta %@";
+"Start in Recovery" = "Starta i återställning";
+"Start on Launch" = "Starta vid öppning";
+"Starting installation environment…" = "Startar installationsmiljön…";
+"Starting installation services…" = "Startar installationstjänster…";
+"Starting installation…" = "Startar installation…";
+"Starting Virtual Mac…" = "Startar Virtual Mac…";
+"Storage" = "Lagring";
+"Support" = "Support";
+"Support for %@ is experimental" = "Stödet för %@ är experimentellt";
+"Suppress iPadOS Home Indicator" = "Dölj hemskärmsindikatorn i iPadOS";
+"Suppress iPadOS Multitasking Gestures" = "Inaktivera multitaskinggester i iPadOS";
+"Suppress iPadOS System Edge Gestures" = "Inaktivera systemgester från skärmkanterna i iPadOS";
+"Switch to Running Virtual Mac" = "Byt till Virtual Mac som körs";
+"Switch to the running Virtual Mac and shut it down before starting another one." = "Byt till den Virtual Mac som körs och stäng av den innan du startar en annan.";
+"The diagnostics archive could not be created." = "Diagnostikarkivet kunde inte skapas.";
+"The first progress value can take several minutes while the Virtual Mac changes from DFU to RestoreOS. Your iPad will remain awake." = "Det första förloppsvärdet kan ta flera minuter medan Virtual Mac växlar från DFU till RestoreOS. Din iPad förblir aktiv.";
+"The incomplete Virtual Mac and its installation files will be deleted." = "Den ofullständiga Virtual Mac och dess installationsfiler raderas.";
+"The install image and temporary installation files were kept so the failure can be diagnosed. You can export diagnostics from Settings." = "Installationsavbilden och de tillfälliga installationsfilerna sparades så att felet kan diagnostiseras. Du kan exportera diagnostik från Inställningar.";
+"The installer could not be started: %s" = "Installationsprogrammet kunde inte startas: %s";
+"The new Virtual Mac is ready to use." = "Den nya Virtual Mac är klar att använda.";
+"The partial restore image will be deleted." = "Den delvis hämtade återställningsavbilden raderas.";
+"The Virtual Mac configuration could not be created." = "Konfigurationen för Virtual Mac kunde inte skapas.";
+"The Virtual Mac did not publish a display framebuffer." = "Virtual Mac publicerade ingen bildskärmsframebuffer.";
+"The Virtual Mac display view is unavailable" = "Bildskärmsvyn för Virtual Mac är inte tillgänglig";
+"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 show the controls again during this boot, touch and hold the Virtual Mac icon on the Home Screen, then choose Show Virtual Mac Controls." = "Visa reglagen igen under denna start genom att hålla ned Virtual Mac-symbolen på hemskärmen och sedan välja ”Visa Virtual Mac-reglage”.";
+"Top Left" = "Uppe till vänster";
+"Top Right" = "Uppe till höger";
+"Touch and Hold for Secondary Click" = "Peka och håll ned för sekundärt klick";
+"Two-Finger Tap for Secondary Click" = "Tryck med två fingrar för sekundärt klick";
+"Two-Finger Touch Scrolling" = "Rullning med två fingrar";
+"Unknown" = "Okänd";
+"Unsaved changes in macOS may be lost." = "Osparade ändringar i macOS kan gå förlorade.";
+"Unsupported Restore Image" = "Återställningsavbilden stöds inte";
+"USB Keyboard" = "USB-tangentbord";
+"USB Mouse" = "USB-mus";
+"Use an IPSW on your iPad" = "Använd en IPSW på din iPad";
+"Use USB Keyboard for macOS Monterey. Newer guests support the Mac keyboard device." = "Använd ett USB-tangentbord i macOS Monterey. Nyare macOS-versioner stöder Mac-tangentbordet.";
+"Use USB Mouse for macOS Monterey. Newer guests support the Mac trackpad device." = "Använd en USB-mus i macOS Monterey. Nyare macOS-versioner stöder Mac-styrplattan.";
+"Validation failed: %@" = "Valideringen misslyckades: %@";
+"Verify your iPad has sufficient free storage and try again." = "Kontrollera att din iPad har tillräckligt med ledigt lagringsutrymme och försök igen.";
+"Version" = "Version";
+"Video Encoding and Decoding Acceleration" = "Acceleration av videokodning och -avkodning";
+"View Details" = "Visa detaljer";
+"Virtual Mac" = "Virtuell Mac";
+"Virtual Mac %@ does not support %@. Check for updates in Sileo." = "Virtual Mac %@ stöder inte %@. Sök efter uppdateringar i Sileo.";
+"Virtual Mac Controls" = "Reglage för Virtuell Mac";
+"Virtual Mac devices are stored in %@." = "Virtuella Mac-datorer lagras i %@.";
+"Virtual Mac Display" = "Virtuell Mac-skärm";
+"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";
+"Virtual Mac start failed: %@" = "Virtual Mac kunde inte startas: %@";
+"Virtual Mac Stopped" = "Virtuell Mac stoppades";
+"Virtual Mac stopped: %@" = "Virtual Mac stoppades: %@";
+"VPN" = "VPN";
+"Waiting for installation output…" = "Väntar på installationsutdata…";
+"Welcome to Virtual Mac" = "Välkommen till Virtuell Mac";
+"Wi-Fi" = "Wi-Fi";
+"Width" = "Bredd";
+"You can also copy an existing Virtual Mac bundle to /var/mobile/Media/VirtualMac using an app such as iMazing or Filza." = "Du kan också kopiera ett befintligt Virtual Mac-paket till /var/mobile/Media/VirtualMac med en app som iMazing eller Filza.";
+"Your changes to this Virtual Mac will not be saved." = "Dina ändringar i denna Virtual Mac sparas inte.";
+"“%@” and all files stored in it will be permanently deleted." = "”%@” och alla filer som lagras i den raderas permanent.";
diff --git a/VirtualMac/resources/Localizations/th.lproj/InfoPlist.strings b/VirtualMac/resources/Localizations/th.lproj/InfoPlist.strings
new file mode 100644
index 0000000..630f8ed
--- /dev/null
+++ b/VirtualMac/resources/Localizations/th.lproj/InfoPlist.strings
@@ -0,0 +1,2 @@
+"CFBundleDisplayName" = "Mac เสมือน";
+"CFBundleName" = "Mac เสมือน";
diff --git a/VirtualMac/resources/Localizations/th.lproj/Localizable.strings b/VirtualMac/resources/Localizations/th.lproj/Localizable.strings
new file mode 100644
index 0000000..7f2dd63
--- /dev/null
+++ b/VirtualMac/resources/Localizations/th.lproj/Localizable.strings
@@ -0,0 +1,247 @@
+/* Virtual Mac 1.1 localization. */
+" · Legacy" = " · รุ่นเก่า";
+"%.0f%% complete" = "เสร็จแล้ว %.0f%%";
+"%@ CPU · %@ GB RAM · %llu GB · %@%@" = "CPU %@ ตัว · หน่วยความจำ %@ GB · %llu GB · %@%@";
+"%@ is not supported" = "ไม่รองรับ %@";
+"%@ 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" = "เหลือ %@";
+"%@\n\n%@\n\nThe incomplete Virtual Mac was retained in Temporary Installation Files as %@. It can be deleted from Settings." = "%@\n\n%@\n\nเก็บ Mac เสมือนที่ติดตั้งไม่เสร็จไว้ในไฟล์ติดตั้งชั่วคราวในชื่อ %@ คุณสามารถลบได้จากการตั้งค่า";
+"%@\nState: %@\n%@\n\n" = "%@\nสถานะ: %@\n%@\n\n";
+"A previous macOS installation did not finish. You can review its details, keep it for debugging, or delete it." = "การติดตั้ง macOS ครั้งก่อนยังไม่เสร็จ คุณสามารถดูรายละเอียด เก็บไว้เพื่อตรวจสอบปัญหา หรือลบออกได้";
+"About" = "เกี่ยวกับ";
+"Accommodate Finger Double-Taps" = "ช่วยให้แตะสองครั้งด้วยนิ้วได้ง่ายขึ้น";
+"Add Shared Folder" = "เพิ่มโฟลเดอร์ที่แชร์";
+"Advanced" = "ขั้นสูง";
+"Allowed: %llu–%llu%@" = "ใช้ได้: %llu–%llu%@";
+"Always Hidden" = "ซ่อนอยู่เสมอ";
+"Always Visible" = "มองเห็นได้เสมอ";
+"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 เครื่องอื่นกำลังทำงานอยู่";
+"Audio and Acceleration" = "เสียงและการเร่งความเร็ว";
+"Audio Output" = "สัญญาณเสียงออก";
+"Automatic" = "อัตโนมัติ";
+"Automatic hides the controls when an external keyboard and pointing device are connected." = "แบบอัตโนมัติจะซ่อนตัวควบคุมเมื่อเชื่อมต่อแป้นพิมพ์และอุปกรณ์ชี้ตำแหน่งภายนอก";
+"Available macOS Releases" = "รุ่น macOS ที่พร้อมใช้งาน";
+"Available macOS Versions" = "เวอร์ชัน macOS ที่มีให้เลือก";
+"Boot and Network" = "การเริ่มระบบและเครือข่าย";
+"Bottom Left" = "ล่างซ้าย";
+"Bottom Right" = "ล่างขวา";
+"Bridge" = "บริดจ์";
+"Bridge via %@" = "บริดจ์ผ่าน %@";
+"Bridge: %@" = "บริดจ์: %@";
+"Build %@" = "บิลด์ %@";
+"Calculating speed…" = "กำลังคำนวณความเร็ว…";
+"Cancel" = "ยกเลิก";
+"Cancel Download" = "ยกเลิกการดาวน์โหลด";
+"Cancel Download?" = "ยกเลิกการดาวน์โหลดหรือไม่";
+"Cancel Installation" = "ยกเลิกการติดตั้ง";
+"Cancel Installation?" = "ยกเลิกการติดตั้งหรือไม่";
+"Cellular" = "เซลลูลาร์";
+"Choose a Different Version" = "เลือกเวอร์ชั่นอื่น";
+"Choose a macOS IPSW restore image." = "เลือกอิมเมจกู้คืน macOS IPSW";
+"Choose a name for this Virtual Mac." = "ตั้งชื่อ Virtual Mac เครื่องนี้";
+"Choose Custom IPSW" = "เลือก IPSW แบบกำหนดเอง";
+"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. Renaming and deletion are unavailable while it is running." = "การเปลี่ยนแปลงการกำหนดค่าจะมีผลหลังจากปิดและเริ่ม Virtual Mac ใหม่ คุณไม่สามารถเปลี่ยนชื่อหรือลบขณะที่เครื่องกำลังทำงาน";
+"Configuration failed: %@" = "กำหนดค่าไม่สำเร็จ: %@";
+"Configure %@" = "กำหนดค่า %@";
+"Continue" = "ดำเนินการต่อ";
+"Controls Hidden" = "ซ่อนตัวควบคุมแล้ว";
+"Controls Opacity" = "ความทึบของตัวควบคุม";
+"Copy Library Path" = "คัดลอกเส้นทางไลบรารี";
+"Copying Restore Image" = "กำลังคัดลอกอิมเมจกู้คืน";
+"Could Not Copy IPSW" = "ไม่สามารถคัดลอก IPSW";
+"Could Not Prepare Restore Image" = "ไม่สามารถเตรียมอิมเมจกู้คืน";
+"Could Not Rename Virtual Mac" = "ไม่สามารถเปลี่ยนชื่อ Mac เสมือน";
+"Could Not Save" = "ไม่สามารถบันทึก";
+"Could Not Start Installer" = "ไม่สามารถเริ่มตัวติดตั้ง";
+"Couldn’t Export Diagnostics" = "ไม่สามารถส่งออกข้อมูลวินิจฉัยได้";
+"Create Virtual Mac" = "สร้าง Mac เสมือน";
+"Custom" = "กำหนดเอง";
+"Debug Logging" = "การบันทึกการแก้ไขข้อบกพร่อง";
+"Delete" = "ลบ";
+"Delete All" = "ลบทั้งหมด";
+"Delete Cached Install Images" = "ลบอิมเมจการติดตั้งที่แคชไว้";
+"Delete Cached Install Images?" = "ลบอิมเมจการติดตั้งที่แคชไว้หรือไม่";
+"Delete Incomplete Installation" = "ลบการติดตั้งที่ไม่เสร็จ";
+"Delete IPSW After Successful Installation" = "ลบ IPSW หลังจากการติดตั้งสำเร็จ";
+"Delete or rename the existing Virtual Mac first." = "โปรดลบหรือเปลี่ยนชื่อ Virtual Mac ที่มีอยู่ก่อน";
+"Delete Temporary Installation Files" = "ลบไฟล์ติดตั้งชั่วคราว";
+"Delete Temporary Installation Files?" = "ลบไฟล์ติดตั้งชั่วคราวหรือไม่";
+"Delete Virtual Mac" = "ลบ Virtual Mac";
+"Delete Virtual Mac?" = "ลบ Virtual Mac หรือไม่";
+"Developer Beta" = "เบต้าสำหรับนักพัฒนา";
+"Developers" = "นักพัฒนา";
+"Disabled" = "ปิดใช้งาน";
+"Discard Changes" = "ละทิ้งการเปลี่ยนแปลง";
+"Discard Changes?" = "ละทิ้งการเปลี่ยนแปลงหรือไม่";
+"Disk Exceeds Available Storage" = "ดิสก์ใหญ่กว่าพื้นที่จัดเก็บที่มี";
+"Display" = "จอภาพ";
+"Display Height" = "ความสูงจอภาพ";
+"Display Resolution" = "ความละเอียดจอภาพ";
+"Display Width" = "ความกว้างจอภาพ";
+"Done" = "เสร็จสิ้น";
+"Double-tap to hold or release this modifier" = "แตะสองครั้งเพื่อกดค้างหรือปล่อยปุ่มปรับนี้";
+"Download Failed" = "การดาวน์โหลดล้มเหลว";
+"Downloading macOS" = "กำลังดาวน์โหลด macOS";
+"Enter six hexadecimal octets separated by colons." = "ป้อนเลขฐานสิบหกหกชุดคั่นด้วยเครื่องหมายทวิภาค";
+"Ethernet (%@)" = "อีเทอร์เน็ต (%@)";
+"Experimental" = "ทดลอง";
+"Export Diagnostics" = "ส่งออกการวินิจฉัย";
+"Failed to load extracted frameworks" = "ไม่สามารถโหลดเฟรมเวิร์กที่แยกออกมาได้";
+"Failed to load the extracted Apple virtualization frameworks." = "ไม่สามารถโหลดเฟรมเวิร์กการจำลองเสมือนของ Apple ที่แยกออกมาได้";
+"Fill Window" = "เติมหน้าต่าง";
+"Fit in Window" = "ปรับให้พอดีกับหน้าต่าง";
+"Fit in Window shows the entire display. Fill Window crops its edges when the window has a different shape." = "พอดีกับหน้าต่างจะแสดงทั้งจอ ส่วนเต็มหน้าต่างจะครอบขอบเมื่อหน้าต่างมีสัดส่วนต่างกัน";
+"Force Shut Down" = "บังคับปิดเครื่อง";
+"Force Shut Down Virtual Mac?" = "บังคับปิด Virtual Mac หรือไม่";
+"Full Screen" = "เต็มหน้าจอ";
+"General" = "ทั่วไป";
+"Get Help" = "ขอความช่วยเหลือ";
+"Height" = "ความสูง";
+"Hide for This Boot" = "ซ่อนสำหรับการเปิดเครื่องครั้งนี้";
+"Incomplete Installation" = "การติดตั้งไม่เสร็จ";
+"Incomplete Installations" = "การติดตั้งที่ไม่เสร็จ";
+"Input" = "อุปกรณ์ป้อนข้อมูล";
+"Input While a Virtual Mac Is Running" = "การป้อนข้อมูลขณะ Mac เสมือนกำลังทำงาน";
+"Install %@" = "ติดตั้ง %@";
+"Install macOS" = "ติดตั้ง macOS";
+"Installation Details" = "รายละเอียดการติดตั้ง";
+"Installation Failed" = "การติดตั้งล้มเหลว";
+"Installation progress may pause for several minutes while the Virtual Mac starts the installation environment. Your iPad will remain awake." = "ความคืบหน้าการติดตั้งอาจหยุดชั่วคราวหลายนาทีขณะที่ Mac เสมือน เริ่มสภาพแวดล้อมการติดตั้ง iPad จะไม่พักเครื่อง";
+"Installation progress may remain unchanged while macOS prepares the next installation stage. Your iPad will remain awake." = "ความคืบหน้าการติดตั้งอาจไม่เปลี่ยนแปลงขณะที่ macOS เตรียมขั้นตอนการติดตั้งถัดไป iPad จะไม่พักเครื่อง";
+"Installed, but settings save failed: %@" = "ติดตั้งแล้ว แต่บันทึกการตั้งค่าไม่สำเร็จ: %@";
+"Installing macOS" = "กำลังติดตั้ง macOS";
+"iPad Internet Connection" = "การเชื่อมต่ออินเทอร์เน็ตของ iPad";
+"Keep Downloading" = "ดาวน์โหลดต่อ";
+"Keep Editing" = "แก้ไขต่อ";
+"Keep Installing" = "ติดตั้งต่อ";
+"Keep Virtual Mac open. Your iPad will remain awake until the download finishes." = "เปิด Virtual Mac ไว้ iPad จะไม่พักเครื่องจนกว่าการดาวน์โหลดจะเสร็จ";
+"Keyboard" = "แป้นพิมพ์";
+"Keyboard Crash Workaround" = "วิธีแก้ปัญหาแป้นพิมพ์หยุดทำงาน";
+"Keyboard Crash Workaround takes effect the next time Virtual Mac opens. Debug Logging takes effect the next time a Virtual Mac starts." = "วิธีแก้ปัญหาแป้นพิมพ์ขัดข้องจะมีผลในครั้งถัดไปที่เปิด Mac เสมือน การบันทึกการแก้ไขข้อบกพร่องจะมีผลในครั้งถัดไปที่เริ่ม Mac เสมือน";
+"Library Appearance" = "ลักษณะคลัง";
+"Loading extracted Apple virtualization frameworks…" = "กำลังโหลดเฟรมเวิร์กการจำลองเสมือนของ Apple ที่แยกออกมา…";
+"MAC Address" = "ที่อยู่ MAC";
+"Mac Keyboard" = "แป้นพิมพ์ Mac";
+"Mac Keyboard Shortcuts" = "แป้นพิมพ์ลัด Mac";
+"Mac Trackpad" = "แทร็คแพด Mac";
+"macOS Installed" = "ติดตั้ง macOS แล้ว";
+"Memory" = "หน่วยความจำ";
+"Microphone Input" = "สัญญาณไมโครโฟนเข้า";
+"Minimum: %llu GB. The upper limit is determined by the filesystem." = "ขั้นต่ำ: %llu GB ขีดจำกัดสูงสุดขึ้นอยู่กับระบบไฟล์";
+"Move Controls" = "ย้ายตัวควบคุม";
+"Name" = "ชื่อ";
+"Name Already Used" = "ชื่อนี้ถูกใช้แล้ว";
+"NAT: Share %@" = "NAT: แชร์ %@";
+"Network" = "เครือข่าย";
+"Network Attachment" = "การเชื่อมต่อเครือข่าย";
+"Network Bridge (%@)" = "บริดจ์เครือข่าย (%@)";
+"New Virtual Mac" = "Mac เสมือนเครื่องใหม่";
+"No Results" = "ไม่พบผลลัพธ์";
+"No Virtual Macs match your search." = "ไม่พบ Virtual Mac ที่ตรงกับการค้นหา";
+"OK" = "ตกลง";
+"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 อิมเมจดิสก์เป็นแบบเบาบาง แต่การติดตั้งหรือการใช้งานภายหลังอาจล้มเหลวเมื่อพื้นที่เต็ม";
+"Options" = "ตัวเลือก";
+"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" = "อุปกรณ์ชี้ตำแหน่ง";
+"Portrait Full Screen" = "เต็มหน้าจอแนวตั้ง";
+"Preparing installation…" = "กำลังเตรียมการติดตั้ง…";
+"Preparing the IPSW for installation. Your iPad will remain awake." = "กำลังเตรียม IPSW สำหรับติดตั้ง iPad จะไม่พักเครื่อง";
+"Preparing virtual hardware…" = "กำลังเตรียมฮาร์ดแวร์เสมือน…";
+"Preparing…" = "กำลังเตรียม…";
+"Processors" = "หน่วยประมวลผล";
+"Read & Write" = "อ่านและเขียน";
+"Read Only" = "อ่านอย่างเดียว";
+"Reading restore image…" = "กำลังอ่านอิมเมจกู้คืน…";
+"Recommended macOS Release" = "รุ่น macOS ที่แนะนำ";
+"Recover Networking After Sleep" = "กู้คืนระบบเครือข่ายหลังการนอนหลับ";
+"Release" = "รุ่นเผยแพร่";
+"Remove" = "เอาออก";
+"Report Issue" = "รายงานปัญหา";
+"Reset" = "รีเซ็ต";
+"Reset Settings" = "รีเซ็ตการตั้งค่า";
+"Reset Settings?" = "รีเซ็ตการตั้งค่าหรือไม่";
+"Resolution" = "ความละเอียด";
+"Resources" = "ทรัพยากร";
+"Resume" = "ทำงานต่อ";
+"Save" = "บันทึก";
+"Search Virtual Mac" = "ค้นหา Mac เสมือน";
+"Settings" = "การตั้งค่า";
+"Shared Folder" = "โฟลเดอร์ที่แชร์";
+"Shared via %@" = "แชร์ผ่าน %@";
+"Show Developer Betas" = "แสดงรุ่นเบต้าสำหรับนักพัฒนา";
+"Show Library" = "แสดงคลัง";
+"Show Minor Releases" = "แสดงรุ่นย่อย";
+"Show Version Details" = "แสดงรายละเอียดเวอร์ชัน";
+"Show Virtual Mac Controls" = "แสดงตัวควบคุม Virtual Mac";
+"Start" = "เริ่ม";
+"Start %@" = "เริ่ม %@";
+"Start in Recovery" = "เริ่มในโหมดกู้คืน";
+"Start on Launch" = "เริ่มเมื่อเปิดแอป";
+"Starting installation environment…" = "กำลังเริ่มสภาพแวดล้อมการติดตั้ง…";
+"Starting installation services…" = "กำลังเริ่มบริการติดตั้ง…";
+"Starting installation…" = "กำลังเริ่มการติดตั้ง…";
+"Starting Virtual Mac…" = "กำลังเริ่ม Virtual Mac…";
+"Storage" = "พื้นที่จัดเก็บ";
+"Support" = "บริการช่วยเหลือ";
+"Support for %@ is experimental" = "การรองรับ %@ ยังอยู่ในขั้นทดลอง";
+"Suppress iPadOS Home Indicator" = "ซ่อนแถบโฮมของ iPadOS";
+"Suppress iPadOS Multitasking Gestures" = "ปิดใช้คำสั่งนิ้วมัลติทาสก์ของ iPadOS";
+"Suppress iPadOS System Edge Gestures" = "ปิดใช้คำสั่งนิ้วของระบบจากขอบหน้าจอใน iPadOS";
+"Switch to Running Virtual Mac" = "สลับไปยัง Virtual Mac ที่กำลังทำงาน";
+"Switch to the running Virtual Mac and shut it down before starting another one." = "สลับไปยัง Virtual Mac ที่กำลังทำงานและปิดเครื่องก่อนเริ่มเครื่องอื่น";
+"The diagnostics archive could not be created." = "ไม่สามารถสร้างไฟล์ข้อมูลวินิจฉัยได้";
+"The first progress value can take several minutes while the Virtual Mac changes from DFU to RestoreOS. Your iPad will remain awake." = "ค่าความคืบหน้าแรกอาจใช้เวลาหลายนาทีขณะที่ Virtual Mac เปลี่ยนจาก DFU เป็น RestoreOS iPad จะไม่พักเครื่อง";
+"The incomplete Virtual Mac and its installation files will be deleted." = "Virtual Mac ที่ติดตั้งไม่เสร็จและไฟล์ติดตั้งจะถูกลบ";
+"The install image and temporary installation files were kept so the failure can be diagnosed. You can export diagnostics from Settings." = "เก็บอิมเมจติดตั้งและไฟล์ติดตั้งชั่วคราวไว้เพื่อวินิจฉัยข้อผิดพลาด คุณสามารถส่งออกข้อมูลวินิจฉัยจากการตั้งค่า";
+"The installer could not be started: %s" = "ไม่สามารถเริ่มโปรแกรมติดตั้งได้: %s";
+"The new Virtual Mac is ready to use." = "Virtual Mac เครื่องใหม่พร้อมใช้งานแล้ว";
+"The partial restore image will be deleted." = "อิมเมจกู้คืนที่ดาวน์โหลดไม่ครบจะถูกลบ";
+"The Virtual Mac configuration could not be created." = "ไม่สามารถสร้างการกำหนดค่า Virtual Mac ได้";
+"The Virtual Mac did not publish a display framebuffer." = "Virtual Mac ไม่ได้เผยแพร่เฟรมบัฟเฟอร์จอภาพ";
+"The Virtual Mac display view is unavailable" = "มุมมองจอภาพ Virtual Mac ไม่พร้อมใช้งาน";
+"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 show the controls again during this boot, touch and hold the Virtual Mac icon on the Home Screen, then choose Show Virtual Mac Controls." = "หากต้องการแสดงตัวควบคุมอีกครั้งระหว่างการเปิดเครื่องครั้งนี้ ให้แตะไอคอน Virtual Mac บนหน้าจอโฮมค้างไว้ แล้วเลือกแสดงตัวควบคุม Virtual Mac";
+"Top Left" = "บนซ้าย";
+"Top Right" = "บนขวา";
+"Touch and Hold for Secondary Click" = "แตะค้างไว้เพื่อคลิกรอง";
+"Two-Finger Tap for Secondary Click" = "แตะสองนิ้วเพื่อคลิกรอง";
+"Two-Finger Touch Scrolling" = "การเลื่อนแบบสัมผัสด้วยสองนิ้ว";
+"Unknown" = "ไม่ทราบ";
+"Unsaved changes in macOS may be lost." = "การเปลี่ยนแปลงใน macOS ที่ยังไม่ได้บันทึกอาจสูญหาย";
+"Unsupported Restore Image" = "อิมเมจกู้คืนที่ไม่รองรับ";
+"USB Keyboard" = "แป้นพิมพ์ USB";
+"USB Mouse" = "เมาส์ USB";
+"Use an IPSW on your iPad" = "ใช้ IPSW บน iPad";
+"Use USB Keyboard for macOS Monterey. Newer guests support the Mac keyboard device." = "ใช้แป้นพิมพ์ USB สำหรับ macOS Monterey ระบบแขกรุ่นใหม่รองรับอุปกรณ์แป้นพิมพ์ Mac";
+"Use USB Mouse for macOS Monterey. Newer guests support the Mac trackpad device." = "ใช้เมาส์ USB สำหรับ macOS Monterey ระบบแขกรุ่นใหม่รองรับอุปกรณ์แทร็คแพด Mac";
+"Validation failed: %@" = "การตรวจสอบไม่สำเร็จ: %@";
+"Verify your iPad has sufficient free storage and try again." = "ตรวจสอบว่า iPad มีพื้นที่ว่างเพียงพอแล้วลองอีกครั้ง";
+"Version" = "เวอร์ชัน";
+"Video Encoding and Decoding Acceleration" = "การเร่งความเร็วการเข้ารหัสและถอดรหัสวิดีโอ";
+"View Details" = "ดูรายละเอียด";
+"Virtual Mac" = "Mac เสมือน";
+"Virtual Mac %@ does not support %@. Check for updates in Sileo." = "Virtual Mac %@ ไม่รองรับ %@ โปรดตรวจสอบการอัปเดตใน Sileo";
+"Virtual Mac Controls" = "ตัวควบคุม Mac เสมือน";
+"Virtual Mac devices are stored in %@." = "Mac เสมือนจัดเก็บอยู่ใน %@";
+"Virtual Mac Display" = "จอภาพ 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 ดั้งเดิม";
+"Virtual Mac start failed: %@" = "เริ่ม Virtual Mac ไม่สำเร็จ: %@";
+"Virtual Mac Stopped" = "Mac เสมือนหยุดทำงาน";
+"Virtual Mac stopped: %@" = "Virtual Mac หยุดทำงาน: %@";
+"VPN" = "VPN";
+"Waiting for installation output…" = "กำลังรอผลลัพธ์การติดตั้ง…";
+"Welcome to Virtual Mac" = "ยินดีต้อนรับสู่ Mac เสมือน";
+"Wi-Fi" = "Wi-Fi";
+"Width" = "ความกว้าง";
+"You can also copy an existing Virtual Mac bundle to /var/mobile/Media/VirtualMac using an app such as iMazing or Filza." = "คุณยังสามารถคัดลอกชุด Virtual Mac ที่มีอยู่ไปยัง /var/mobile/Media/VirtualMac โดยใช้แอป เช่น iMazing หรือ Filza";
+"Your changes to this Virtual Mac will not be saved." = "การเปลี่ยนแปลงของ Virtual Mac เครื่องนี้จะไม่ถูกบันทึก";
+"“%@” and all files stored in it will be permanently deleted." = "“%@” และไฟล์ทั้งหมดที่เก็บอยู่ภายในจะถูกลบอย่างถาวร";
diff --git a/VirtualMac/resources/Localizations/tr.lproj/InfoPlist.strings b/VirtualMac/resources/Localizations/tr.lproj/InfoPlist.strings
new file mode 100644
index 0000000..e0eb58c
--- /dev/null
+++ b/VirtualMac/resources/Localizations/tr.lproj/InfoPlist.strings
@@ -0,0 +1,2 @@
+"CFBundleDisplayName" = "Sanal Mac";
+"CFBundleName" = "Sanal Mac";
diff --git a/VirtualMac/resources/Localizations/tr.lproj/Localizable.strings b/VirtualMac/resources/Localizations/tr.lproj/Localizable.strings
new file mode 100644
index 0000000..5c031a7
--- /dev/null
+++ b/VirtualMac/resources/Localizations/tr.lproj/Localizable.strings
@@ -0,0 +1,247 @@
+/* Virtual Mac 1.1 localization. */
+" · Legacy" = " · Eski";
+"%.0f%% complete" = "%.0f%% tamamlandı";
+"%@ CPU · %@ GB RAM · %llu GB · %@%@" = "%@ CPU · %@ GB RAM · %llu GB · %@%@";
+"%@ is not supported" = "%@ desteklenmiyor";
+"%@ 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ı";
+"%@\n\n%@\n\nThe incomplete Virtual Mac was retained in Temporary Installation Files as %@. It can be deleted from Settings." = "%@\n\n%@\n\nTamamlanmamış sanal Mac, Geçici Kurulum Dosyaları içinde %@ olarak tutuldu. Ayarlar’dan silinebilir.";
+"%@\nState: %@\n%@\n\n" = "%@\nDurum: %@\n%@\n\n";
+"A previous macOS installation did not finish. You can review its details, keep it for debugging, or delete it." = "Önceki bir macOS kurulumu tamamlanmadı. Ayrıntılarını inceleyebilir, hata ayıklama için tutabilir veya silebilirsiniz.";
+"About" = "Hakkında";
+"Accommodate Finger Double-Taps" = "Parmakla çift dokunmayı kolaylaştır";
+"Add Shared Folder" = "Paylaşılan Klasör Ekle";
+"Advanced" = "İleri Düzey";
+"Allowed: %llu–%llu%@" = "İzin verilen: %llu–%llu%@";
+"Always Hidden" = "Her zaman gizli";
+"Always Visible" = "Her zaman görünür";
+"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";
+"Audio and Acceleration" = "Ses ve Hızlandırma";
+"Audio Output" = "Ses Çıkışı";
+"Automatic" = "Otomatik";
+"Automatic hides the controls when an external keyboard and pointing device are connected." = "Otomatik, harici bir klavye ve işaretleme aygıtı bağlıyken denetimleri gizler.";
+"Available macOS Releases" = "Kullanılabilir macOS Sürümleri";
+"Available macOS Versions" = "Kullanılabilir macOS Sürümleri";
+"Boot and Network" = "Önyükleme ve Ağ";
+"Bottom Left" = "Sol Alt";
+"Bottom Right" = "Sağ Alt";
+"Bridge" = "Köprü";
+"Bridge via %@" = "%@ Üzerinden Köprü";
+"Bridge: %@" = "Köprü: %@";
+"Build %@" = "Derleme %@";
+"Calculating speed…" = "Hız hesaplanıyor…";
+"Cancel" = "Vazgeç";
+"Cancel Download" = "İndirmeyi İptal Et";
+"Cancel Download?" = "İndirme İptal Edilsin mi?";
+"Cancel Installation" = "Kurulumu İptal Et";
+"Cancel Installation?" = "Kurulum İptal Edilsin mi?";
+"Cellular" = "Hücresel";
+"Choose a Different Version" = "Farklı Bir Sürüm Seç";
+"Choose a macOS IPSW restore image." = "Bir macOS IPSW geri yükleme görüntüsü seçin.";
+"Choose a name for this Virtual Mac." = "Bu Sanal Mac için bir ad seçin.";
+"Choose Custom IPSW" = "Özel IPSW Seç";
+"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. Renaming and deletion are unavailable while it is running." = "Yapılandırma değişiklikleri Sanal Mac kapatılıp yeniden başlatıldıktan sonra geçerli olur. Çalışırken yeniden adlandırılamaz veya silinemez.";
+"Configuration failed: %@" = "Yapılandırma başarısız: %@";
+"Configure %@" = "%@ Aygıtını Yapılandır";
+"Continue" = "Sürdür";
+"Controls Hidden" = "Denetimler Gizli";
+"Controls Opacity" = "Denetim Opaklığı";
+"Copy Library Path" = "Kitaplık Yolunu Kopyala";
+"Copying Restore Image" = "Geri Yükleme İmajı Kopyalanıyor";
+"Could Not Copy IPSW" = "IPSW Kopyalanamadı";
+"Could Not Prepare Restore Image" = "Geri Yükleme Görüntüsü Hazırlanamadı";
+"Could Not Rename Virtual Mac" = "Sanal Mac Yeniden Adlandırılamadı";
+"Could Not Save" = "Kaydedilemedi";
+"Could Not Start Installer" = "Yükleyici Başlatılamadı";
+"Couldn’t Export Diagnostics" = "Tanılar Dışa Aktarılamadı";
+"Create Virtual Mac" = "Sanal Mac Oluştur";
+"Custom" = "Özel";
+"Debug Logging" = "Hata ayıklama günlüğü";
+"Delete" = "Sil";
+"Delete All" = "Tümünü Sil";
+"Delete Cached Install Images" = "Önbelleğe Alınmış Kurulum İmajlarını Sil";
+"Delete Cached Install Images?" = "Önbelleğe alınmış kurulum imajları silinsin mi?";
+"Delete Incomplete Installation" = "Tamamlanmamış Kurulumu Sil";
+"Delete IPSW After Successful Installation" = "Başarılı Kurulumdan Sonra IPSW'ü Sil";
+"Delete or rename the existing Virtual Mac first." = "Önce var olan Sanal Mac’i silin veya yeniden adlandırın.";
+"Delete Temporary Installation Files" = "Geçici Kurulum Dosyalarını Sil";
+"Delete Temporary Installation Files?" = "Geçici Kurulum Dosyaları Silinsin mi?";
+"Delete Virtual Mac" = "Sanal Mac’i Sil";
+"Delete Virtual Mac?" = "Sanal Mac Silinsin mi?";
+"Developer Beta" = "Geliştirici Betası";
+"Developers" = "Geliştiriciler";
+"Disabled" = "Kapalı";
+"Discard Changes" = "Değişiklikleri At";
+"Discard Changes?" = "Değişiklikler Atılsın mı?";
+"Disk Exceeds Available Storage" = "Disk Kullanılabilir Saklama Alanını Aşıyor";
+"Display" = "Ekran";
+"Display Height" = "Ekran Yüksekliği";
+"Display Resolution" = "Ekran Çözünürlüğü";
+"Display Width" = "Ekran Genişliği";
+"Done" = "Bitti";
+"Double-tap to hold or release this modifier" = "Bu niteleyiciyi basılı tutmak veya bırakmak için çift dokunun";
+"Download Failed" = "İndirme Başarısız";
+"Downloading macOS" = "macOS İndiriliyor";
+"Enter six hexadecimal octets separated by colons." = "İki noktayla ayrılmış altı onaltılık sekizli girin.";
+"Ethernet (%@)" = "Ethernet (%@)";
+"Experimental" = "Deneysel";
+"Export Diagnostics" = "Tanı Verilerini Dışa Aktar";
+"Failed to load extracted frameworks" = "Çıkarılan framework’ler yüklenemedi";
+"Failed to load the extracted Apple virtualization frameworks." = "Çıkarılan Apple sanallaştırma framework’leri yüklenemedi.";
+"Fill Window" = "Pencereyi Doldur";
+"Fit in Window" = "Pencereye Sığdır";
+"Fit in Window shows the entire display. Fill Window crops its edges when the window has a different shape." = "Pencereye Sığdır tüm ekranı gösterir. Pencereyi Doldur, pencerenin şekli farklı olduğunda kenarları kırpar.";
+"Force Shut Down" = "Kapatmaya Zorla";
+"Force Shut Down Virtual Mac?" = "Sanal Mac Kapatmaya Zorlansın mı?";
+"Full Screen" = "Tam Ekran";
+"General" = "Genel";
+"Get Help" = "Yardım Al";
+"Height" = "Yükseklik";
+"Hide for This Boot" = "Bu Önyüklemede Gizle";
+"Incomplete Installation" = "Tamamlanmamış Kurulum";
+"Incomplete Installations" = "Tamamlanmamış Kurulumlar";
+"Input" = "Giriş";
+"Input While a Virtual Mac Is Running" = "Sanal Mac çalışırken giriş";
+"Install %@" = "%@ Yükle";
+"Install macOS" = "macOS’i Yükle";
+"Installation Details" = "Kurulum Ayrıntıları";
+"Installation Failed" = "Yükleme Başarısız";
+"Installation progress may pause for several minutes while the Virtual Mac starts the installation environment. Your iPad will remain awake." = "Sanal Mac kurulum ortamını başlatırken kurulum ilerlemesi birkaç dakika duraklayabilir. iPad’iniz uyanık kalacak.";
+"Installation progress may remain unchanged while macOS prepares the next installation stage. Your iPad will remain awake." = "macOS bir sonraki kurulum aşamasını hazırlarken kurulum ilerlemesi değişmeden kalabilir. iPad’iniz uyanık kalacak.";
+"Installed, but settings save failed: %@" = "Kuruldu ancak ayarlar kaydedilemedi: %@";
+"Installing macOS" = "macOS Kuruluyor";
+"iPad Internet Connection" = "iPad İnternet Bağlantısı";
+"Keep Downloading" = "İndirmeye Devam Et";
+"Keep Editing" = "Düzenlemeye Devam Et";
+"Keep Installing" = "Kuruluma Devam Et";
+"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";
+"Keyboard Crash Workaround" = "Klavye Çökmesi Geçici Çözümü";
+"Keyboard Crash Workaround takes effect the next time Virtual Mac opens. Debug Logging takes effect the next time a Virtual Mac starts." = "Klavye çökmesi çözümü, Sanal Mac bir sonraki açılışında etkinleşir. Hata ayıklama günlüğü, bir sanal Mac bir sonraki başlatıldığında etkinleşir.";
+"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";
+"Mac Keyboard" = "Mac Klavyesi";
+"Mac Keyboard Shortcuts" = "Mac Klavye Kısayolları";
+"Mac Trackpad" = "Mac İzleme Dörtgeni";
+"macOS Installed" = "macOS Kuruldu";
+"Memory" = "Bellek";
+"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şı";
+"Name" = "Ad";
+"Name Already Used" = "Ad Zaten Kullanılıyor";
+"NAT: Share %@" = "NAT: %@ Paylaş";
+"Network" = "Ağ";
+"Network Attachment" = "Ağ Bağlantısı";
+"Network Bridge (%@)" = "Ağ Köprüsü (%@)";
+"New Virtual Mac" = "Yeni Sanal Mac";
+"No Results" = "Sonuç Yok";
+"No Virtual Macs match your search." = "Aramanızla eşleşen bir Sanal Mac yok.";
+"OK" = "Tamam";
+"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.";
+"Options" = "Seçenekler";
+"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ı";
+"Portrait Full Screen" = "Dikey Tam Ekran";
+"Preparing installation…" = "Kurulum hazırlanıyor…";
+"Preparing the IPSW for installation. Your iPad will remain awake." = "IPSW kurulum için hazırlanıyor. iPad’iniz uyanık kalacak.";
+"Preparing virtual hardware…" = "Sanal donanım hazırlanıyor…";
+"Preparing…" = "Hazırlanıyor…";
+"Processors" = "İşlemciler";
+"Read & Write" = "Oku ve Yaz";
+"Read Only" = "Salt Okunur";
+"Reading restore image…" = "Geri yükleme imajı okunuyor…";
+"Recommended macOS Release" = "Önerilen macOS Sürümü";
+"Recover Networking After Sleep" = "Uykudan Sonra Ağı Kurtarma";
+"Release" = "Sürüm";
+"Remove" = "Çıkar";
+"Report Issue" = "Sorun Bildir";
+"Reset" = "Sıfırla";
+"Reset Settings" = "Ayarları Sıfırla";
+"Reset Settings?" = "Ayarlar Sıfırlansın mı?";
+"Resolution" = "Çözünürlük";
+"Resources" = "Kaynaklar";
+"Resume" = "Sürdür";
+"Save" = "Kaydet";
+"Search Virtual Mac" = "Sanal Mac Ara";
+"Settings" = "Ayarlar";
+"Shared Folder" = "Paylaşılan Klasör";
+"Shared via %@" = "%@ Üzerinden Paylaşılıyor";
+"Show Developer Betas" = "Geliştirici Betalarını Göster";
+"Show Library" = "Kitaplığı Göster";
+"Show Minor Releases" = "Ara Sürümleri Göster";
+"Show Version Details" = "Sürüm Ayrıntılarını Göster";
+"Show Virtual Mac Controls" = "Sanal Mac Denetimlerini Göster";
+"Start" = "Başlat";
+"Start %@" = "%@ Aygıtını Başlat";
+"Start in Recovery" = "Kurtarma Modunda Başlat";
+"Start on Launch" = "Açılışta Başlat";
+"Starting installation environment…" = "Kurulum ortamı başlatılıyor…";
+"Starting installation services…" = "Kurulum hizmetleri başlatılıyor…";
+"Starting installation…" = "Kurulum başlatılıyor…";
+"Starting Virtual Mac…" = "Sanal Mac başlatılıyor…";
+"Storage" = "Saklama Alanı";
+"Support" = "Destek";
+"Support for %@ is experimental" = "%@ desteği deneyseldir";
+"Suppress iPadOS Home Indicator" = "iPadOS Ana Ekran göstergesini gizle";
+"Suppress iPadOS Multitasking Gestures" = "iPadOS çoklu görev hareketlerini devre dışı bırak";
+"Suppress iPadOS System Edge Gestures" = "iPadOS sisteminin ekran kenarı hareketlerini devre dışı bırak";
+"Switch to Running Virtual Mac" = "Çalışan Sanal Mac’e Geç";
+"Switch to the running Virtual Mac and shut it down before starting another one." = "Başka birini başlatmadan önce çalışan Sanal Mac’e geçip onu kapatın.";
+"The diagnostics archive could not be created." = "Tanı arşivi oluşturulamadı.";
+"The first progress value can take several minutes while the Virtual Mac changes from DFU to RestoreOS. Your iPad will remain awake." = "Sanal Mac DFU’dan RestoreOS’e geçerken ilk ilerleme değeri birkaç dakika sürebilir. iPad’iniz uyanık kalacak.";
+"The incomplete Virtual Mac and its installation files will be deleted." = "Tamamlanmamış Sanal Mac ve kurulum dosyaları silinecek.";
+"The install image and temporary installation files were kept so the failure can be diagnosed. You can export diagnostics from Settings." = "Arızanın tanılanabilmesi için kurulum imajı ve geçici kurulum dosyaları tutuldu. Tanıları Ayarlar’dan dışa aktarabilirsiniz.";
+"The installer could not be started: %s" = "Yükleyici başlatılamadı: %s";
+"The new Virtual Mac is ready to use." = "Yeni Sanal Mac kullanıma hazır.";
+"The partial restore image will be deleted." = "Kısmen indirilmiş geri yükleme imajı silinecek.";
+"The Virtual Mac configuration could not be created." = "Sanal Mac yapılandırması oluşturulamadı.";
+"The Virtual Mac did not publish a display framebuffer." = "Sanal Mac bir ekran framebuffer’ı yayımlamadı.";
+"The Virtual Mac display view is unavailable" = "Sanal Mac ekran görünümü kullanılamıyor";
+"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 show the controls again during this boot, touch and hold the Virtual Mac icon on the Home Screen, then choose Show Virtual Mac Controls." = "Bu önyüklemede denetimleri yeniden göstermek için Ana Ekran’da Virtual Mac simgesine dokunup basılı tutun ve Sanal Mac Denetimlerini Göster’i seçin.";
+"Top Left" = "Sol Üst";
+"Top Right" = "Sağ Üst";
+"Touch and Hold for Secondary Click" = "İkincil Tıklama için Dokunup Basılı Tutun";
+"Two-Finger Tap for Secondary Click" = "İkincil Tıklama için İki Parmakla Dokunma";
+"Two-Finger Touch Scrolling" = "İki Parmakla Dokunarak Kaydırma";
+"Unknown" = "Bilinmeyen";
+"Unsaved changes in macOS may be lost." = "macOS’te kaydedilmemiş değişiklikler kaybolabilir.";
+"Unsupported Restore Image" = "Desteklenmeyen Geri Yükleme Görüntüsü";
+"USB Keyboard" = "USB Klavye";
+"USB Mouse" = "USB Fare";
+"Use an IPSW on your iPad" = "iPad’inizdeki Bir IPSW’yi Kullan";
+"Use USB Keyboard for macOS Monterey. Newer guests support the Mac keyboard device." = "macOS Monterey’de USB Klavye kullanın. Daha yeni macOS sürümleri Mac klavye aygıtını destekler.";
+"Use USB Mouse for macOS Monterey. Newer guests support the Mac trackpad device." = "macOS Monterey’de USB Fare kullanın. Daha yeni macOS sürümleri Mac izleme dörtgeni aygıtını destekler.";
+"Validation failed: %@" = "Doğrulama başarısız: %@";
+"Verify your iPad has sufficient free storage and try again." = "iPad’inizde yeterli boş alan olduğunu doğrulayıp yeniden deneyin.";
+"Version" = "Sürüm";
+"Video Encoding and Decoding Acceleration" = "Video Kodlama ve Kod Çözme Hızlandırması";
+"View Details" = "Ayrıntıları Göster";
+"Virtual Mac" = "Sanal Mac";
+"Virtual Mac %@ does not support %@. Check for updates in Sileo." = "Virtual Mac %@, %@ sürümünü desteklemiyor. Sileo’da güncellemeleri kontrol edin.";
+"Virtual Mac Controls" = "Sanal Mac Denetimleri";
+"Virtual Mac devices are stored in %@." = "Sanal Mac’ler %@ içinde saklanır.";
+"Virtual Mac Display" = "Sanal Mac Ekranı";
+"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";
+"Virtual Mac start failed: %@" = "Sanal Mac başlatılamadı: %@";
+"Virtual Mac Stopped" = "Sanal Mac Durduruldu";
+"Virtual Mac stopped: %@" = "Sanal Mac durdu: %@";
+"VPN" = "VPN";
+"Waiting for installation output…" = "Kurulum çıktısı bekleniyor…";
+"Welcome to Virtual Mac" = "Sanal Mac’e Hoş Geldiniz";
+"Wi-Fi" = "Wi-Fi";
+"Width" = "Genişlik";
+"You can also copy an existing Virtual Mac bundle to /var/mobile/Media/VirtualMac using an app such as iMazing or Filza." = "Var olan bir Sanal Mac paketini iMazing veya Filza gibi bir uygulamayla /var/mobile/Media/VirtualMac konumuna da kopyalayabilirsiniz.";
+"Your changes to this Virtual Mac will not be saved." = "Bu Sanal Mac’teki değişiklikleriniz kaydedilmeyecek.";
+"“%@” and all files stored in it will be permanently deleted." = "“%@” ve içinde saklanan tüm dosyalar kalıcı olarak silinecek.";
diff --git a/VirtualMac/resources/Localizations/uk.lproj/InfoPlist.strings b/VirtualMac/resources/Localizations/uk.lproj/InfoPlist.strings
new file mode 100644
index 0000000..c5942bf
--- /dev/null
+++ b/VirtualMac/resources/Localizations/uk.lproj/InfoPlist.strings
@@ -0,0 +1,2 @@
+"CFBundleDisplayName" = "Віртуальний Mac";
+"CFBundleName" = "Віртуальний Mac";
diff --git a/VirtualMac/resources/Localizations/uk.lproj/Localizable.strings b/VirtualMac/resources/Localizations/uk.lproj/Localizable.strings
new file mode 100644
index 0000000..ec22211
--- /dev/null
+++ b/VirtualMac/resources/Localizations/uk.lproj/Localizable.strings
@@ -0,0 +1,247 @@
+/* Virtual Mac 1.1 localization. */
+" · Legacy" = " · Устаревшая";
+"%.0f%% complete" = "Виконано %.0f%%";
+"%@ CPU · %@ GB RAM · %llu GB · %@%@" = "%@ ЦП · %@ ГБ ОЗУ · %llu ГБ · %@%@";
+"%@ is not supported" = "%@ не підтримується";
+"%@ 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" = "Залишилося: %@";
+"%@\n\n%@\n\nThe incomplete Virtual Mac was retained in Temporary Installation Files as %@. It can be deleted from Settings." = "%@\n\n%@\n\nНеповний віртуальний Mac збережено у Тимчасових файлах інсталяції як %@. Його можна видалити в Параметрах.";
+"%@\nState: %@\n%@\n\n" = "%@\nСостояние: %@\n%@\n\n";
+"A previous macOS installation did not finish. You can review its details, keep it for debugging, or delete it." = "Попередню інсталяцію macOS не завершено. Можна переглянути подробиці, зберегти її для налагодження або видалити.";
+"About" = "Про програму";
+"Accommodate Finger Double-Taps" = "Полегшити подвійний дотик пальцем";
+"Add Shared Folder" = "Добавить общую папку";
+"Advanced" = "Додатково";
+"Allowed: %llu–%llu%@" = "Допустимо: %llu–%llu%@";
+"Always Hidden" = "Завжди прихований";
+"Always Visible" = "Завжди видно";
+"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";
+"Audio and Acceleration" = "Аудіо та прискорення";
+"Audio Output" = "Аудіовихід";
+"Automatic" = "Автоматичний";
+"Automatic hides the controls when an external keyboard and pointing device are connected." = "В автоматичному режимі елементи керування приховуються, коли під’єднано зовнішню клавіатуру та вказівний пристрій.";
+"Available macOS Releases" = "Доступні випуски macOS";
+"Available macOS Versions" = "Доступні версії macOS";
+"Boot and Network" = "Запуск і мережа";
+"Bottom Left" = "Сліва внизу";
+"Bottom Right" = "Справа внизу";
+"Bridge" = "Міст";
+"Bridge via %@" = "Міст через %@";
+"Bridge: %@" = "Мост: %@";
+"Build %@" = "Збірка %@";
+"Calculating speed…" = "Обчислення швидкості…";
+"Cancel" = "Скасувати";
+"Cancel Download" = "Отменить загрузку";
+"Cancel Download?" = "Отменить загрузку?";
+"Cancel Installation" = "Отменить установку";
+"Cancel Installation?" = "Отменить установку?";
+"Cellular" = "Сотовая мережа";
+"Choose a Different Version" = "Вибрати іншу версію";
+"Choose a macOS IPSW restore image." = "Виберіть образ відновлення macOS IPSW.";
+"Choose a name for this Virtual Mac." = "Виберіть ім’я для цього віртуального Mac.";
+"Choose Custom IPSW" = "Вибрати власний IPSW";
+"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. Renaming and deletion are unavailable while it is running." = "Зміни конфігурації набудуть чинності після вимкнення й повторного запуску віртуального Mac. Під час роботи його не можна перейменувати або видалити.";
+"Configuration failed: %@" = "Помилка конфигурации: %@";
+"Configure %@" = "Настроить %@";
+"Continue" = "Продовжити";
+"Controls Hidden" = "Елементи керування приховано";
+"Controls Opacity" = "Непрозорість елементів керування";
+"Copy Library Path" = "Копіювати шлях до бібліотеки";
+"Copying Restore Image" = "Копирование образа відновлення";
+"Could Not Copy IPSW" = "Не вдалося скопіювати IPSW";
+"Could Not Prepare Restore Image" = "Не вдалося підготувати образ відновлення";
+"Could Not Rename Virtual Mac" = "Не вдалося перейменувати Віртуальний Mac";
+"Could Not Save" = "Не вдалося зберегти";
+"Could Not Start Installer" = "Не вдалося запустити інсталятор";
+"Couldn’t Export Diagnostics" = "Не вдалося експортувати діагностичні дані";
+"Create Virtual Mac" = "Створити Віртуальний Mac";
+"Custom" = "Пользовательская";
+"Debug Logging" = "Журналювання налагодження";
+"Delete" = "Видалити";
+"Delete All" = "Видалити все";
+"Delete Cached Install Images" = "Видалити кешовані образи інсталяції";
+"Delete Cached Install Images?" = "Видалити кешовані образи інсталяції?";
+"Delete Incomplete Installation" = "Видалити незавершену інсталяцію";
+"Delete IPSW After Successful Installation" = "Видалити IPSW після успішного встановлення";
+"Delete or rename the existing Virtual Mac first." = "Спочатку видаліть або перейменуйте наявний віртуальний Mac.";
+"Delete Temporary Installation Files" = "Видалити тимчасові файли інсталяції";
+"Delete Temporary Installation Files?" = "Видалити тимчасові файли інсталяції?";
+"Delete Virtual Mac" = "Видалити віртуальний Mac";
+"Delete Virtual Mac?" = "Видалити віртуальний Mac?";
+"Developer Beta" = "Бета-версія для розробників";
+"Developers" = "Розробники";
+"Disabled" = "Вимкнено";
+"Discard Changes" = "Отменить зміни";
+"Discard Changes?" = "Отменить зміни?";
+"Disk Exceeds Available Storage" = "Розмір диска перевищує доступне сховище";
+"Display" = "Дисплей";
+"Display Height" = "Висота дисплея";
+"Display Resolution" = "Разрешение дисплея";
+"Display Width" = "Ширина дисплея";
+"Done" = "Готово";
+"Double-tap to hold or release this modifier" = "Двічі торкніться, щоб зафіксувати або відпустити цю клавішу-модифікатор";
+"Download Failed" = "Помилка завантаження";
+"Downloading macOS" = "Завантаження macOS";
+"Enter six hexadecimal octets separated by colons." = "Введіть шість шістнадцяткових октетів, розділених двокрапками.";
+"Ethernet (%@)" = "Ethernet (%@)";
+"Experimental" = "Експериментально";
+"Export Diagnostics" = "Експортувати діагностику";
+"Failed to load extracted frameworks" = "Не вдалося завантажити видобуті фреймворки";
+"Failed to load the extracted Apple virtualization frameworks." = "Не вдалося завантажити видобуті фреймворки виртуализации Apple.";
+"Fill Window" = "Заповнити вікно";
+"Fit in Window" = "Умістити у вікні";
+"Fit in Window shows the entire display. Fill Window crops its edges when the window has a different shape." = "«Умістити у вікні» показує весь дисплей. «Заповнити вікно» обрізає краї, якщо форма вікна відрізняється.";
+"Force Shut Down" = "Принудительно вимкнути";
+"Force Shut Down Virtual Mac?" = "Принудительно вимкнути віртуальний Mac?";
+"Full Screen" = "На весь екран";
+"General" = "Загальні";
+"Get Help" = "Довідка";
+"Height" = "Висота";
+"Hide for This Boot" = "Приховати до наступного запуску";
+"Incomplete Installation" = "Незавершена інсталяція";
+"Incomplete Installations" = "Незавершені інсталяції";
+"Input" = "Ввод";
+"Input While a Virtual Mac Is Running" = "Введення під час роботи віртуального Mac";
+"Install %@" = "Інсталювати %@";
+"Install macOS" = "Інсталювати macOS";
+"Installation Details" = "Сведения об установке";
+"Installation Failed" = "Помилка інсталяції";
+"Installation progress may pause for several minutes while the Virtual Mac starts the installation environment. Your iPad will remain awake." = "Хід інсталяції може зупинитися на кілька хвилин, поки Віртуальний Mac запускає середовище інсталяції. iPad не перейде в режим сну.";
+"Installation progress may remain unchanged while macOS prepares the next installation stage. Your iPad will remain awake." = "Хід інсталяції може не змінюватися, поки macOS готує наступний етап. iPad не перейде в режим сну.";
+"Installed, but settings save failed: %@" = "Установлено, но не удалось зберегти налаштування: %@";
+"Installing macOS" = "Інсталяція macOS";
+"iPad Internet Connection" = "Інтернет-з’єднання iPad";
+"Keep Downloading" = "Продолжить загрузку";
+"Keep Editing" = "Продолжить редактирование";
+"Keep Installing" = "Продолжить установку";
+"Keep Virtual Mac open. Your iPad will remain awake until the download finishes." = "Не закривайте «Віртуальний Mac». iPad не перейде в режим сну до завершення завантаження.";
+"Keyboard" = "Клавіатура";
+"Keyboard Crash Workaround" = "Обхід збою клавіатури";
+"Keyboard Crash Workaround takes effect the next time Virtual Mac opens. Debug Logging takes effect the next time a Virtual Mac starts." = "Рішення проблеми збою клавіатури почне діяти під час наступного відкриття програми «Віртуальний Mac». Журналювання налагодження почне діяти під час наступного запуску віртуального Mac.";
+"Library Appearance" = "Вид библиотеки";
+"Loading extracted Apple virtualization frameworks…" = "Завантаження видобутих фреймворків віртуалізації Apple…";
+"MAC Address" = "MAC Адрес";
+"Mac Keyboard" = "Клавіатура Mac";
+"Mac Keyboard Shortcuts" = "Комбінації клавіш Mac";
+"Mac Trackpad" = "Трекпад Mac";
+"macOS Installed" = "macOS інстальована";
+"Memory" = "Пам’ять";
+"Microphone Input" = "Вход микрофона";
+"Minimum: %llu GB. The upper limit is determined by the filesystem." = "Минимум: %llu ГБ. Верхний предел определяется файловой системой.";
+"Move Controls" = "Перемістити елементи керування";
+"Name" = "Назва";
+"Name Already Used" = "Имя уже используется";
+"NAT: Share %@" = "NAT: спільний доступ через %@";
+"Network" = "Мережа";
+"Network Attachment" = "Сетевое підключення";
+"Network Bridge (%@)" = "Сетевой мост (%@)";
+"New Virtual Mac" = "Новий Віртуальний Mac";
+"No Results" = "Немає результатів";
+"No Virtual Macs match your search." = "Жоден віртуальний Mac не відповідає пошуку.";
+"OK" = "OK";
+"Only about %llu GB is currently available. The disk image is sparse, but installation or later use can fail when storage fills up." = "Зараз доступно лише близько %llu ГБ. Образ диска динамічний, але інсталяція або подальше використання можуть завершитися помилкою, якщо сховище заповниться.";
+"Options" = "Параметри";
+"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" = "Пристрій указания";
+"Portrait Full Screen" = "На весь екран, портретна орієнтація";
+"Preparing installation…" = "Підготовка до інсталяції…";
+"Preparing the IPSW for installation. Your iPad will remain awake." = "Підготовка IPSW до інсталяції. iPad не перейде в режим сну.";
+"Preparing virtual hardware…" = "Підготовка виртуального оборудования…";
+"Preparing…" = "Идет підготовка…";
+"Processors" = "Процесори";
+"Read & Write" = "Читання й запис";
+"Read Only" = "Лише читання";
+"Reading restore image…" = "Чтение образа відновлення…";
+"Recommended macOS Release" = "Рекомендований випуск macOS";
+"Recover Networking After Sleep" = "Відновлення мережі після сну";
+"Release" = "Випуск";
+"Remove" = "Вилучити";
+"Report Issue" = "Повідомити про проблему";
+"Reset" = "Скинути";
+"Reset Settings" = "Скинути налаштування";
+"Reset Settings?" = "Скинути налаштування?";
+"Resolution" = "Разрешение";
+"Resources" = "Ресурси";
+"Resume" = "Возобновить";
+"Save" = "Зберегти";
+"Search Virtual Mac" = "Знайти Віртуальний Mac";
+"Settings" = "Налаштування";
+"Shared Folder" = "Спільна папка";
+"Shared via %@" = "Спільний доступ через %@";
+"Show Developer Betas" = "Показувати бета-версії для розробників";
+"Show Library" = "Показати медіатеку";
+"Show Minor Releases" = "Показувати проміжні випуски";
+"Show Version Details" = "Показувати відомості про версію";
+"Show Virtual Mac Controls" = "Показати елементи керування віртуального Mac";
+"Start" = "Запуск";
+"Start %@" = "Запустить %@";
+"Start in Recovery" = "Запустить в режиме відновлення";
+"Start on Launch" = "Запускати під час відкриття";
+"Starting installation environment…" = "Запуск середовища інсталяції…";
+"Starting installation services…" = "Запуск служб інсталяції…";
+"Starting installation…" = "Запуск інсталяції…";
+"Starting Virtual Mac…" = "Запуск виртуального Mac…";
+"Storage" = "Сховище";
+"Support" = "Підтримка";
+"Support for %@ is experimental" = "Підтримка %@ має експериментальний характер";
+"Suppress iPadOS Home Indicator" = "Сховати індикатор «Додому» iPadOS";
+"Suppress iPadOS Multitasking Gestures" = "Вимкнути жести багатозадачності iPadOS";
+"Suppress iPadOS System Edge Gestures" = "Вимкнути системні жести від країв екрана iPadOS";
+"Switch to Running Virtual Mac" = "Перейти к запущенийному виртуальному Mac";
+"Switch to the running Virtual Mac and shut it down before starting another one." = "Перейдіть до запущеного віртуального Mac і вимкніть його перед запуском іншого.";
+"The diagnostics archive could not be created." = "Не вдалося создать архив диагностики.";
+"The first progress value can take several minutes while the Virtual Mac changes from DFU to RestoreOS. Your iPad will remain awake." = "Перше значення перебігу виконання може з’явитися за кілька хвилин, поки віртуальний Mac переходить із DFU в RestoreOS. iPad не перейде в режим сну.";
+"The incomplete Virtual Mac and its installation files will be deleted." = "Незавершений віртуальний Mac і його інсталяційні файли буде видалено.";
+"The install image and temporary installation files were kept so the failure can be diagnosed. You can export diagnostics from Settings." = "Інсталяційний образ і тимчасові файли інсталяції збережено для діагностики помилки. Діагностичні дані можна експортувати в Параметрах.";
+"The installer could not be started: %s" = "Не вдалося запустити програму інсталяції: %s";
+"The new Virtual Mac is ready to use." = "Новий віртуальний Mac готовий до роботи.";
+"The partial restore image will be deleted." = "Частково завантажений образ відновлення буде видалено.";
+"The Virtual Mac configuration could not be created." = "Не вдалося создать конфигурацию виртуального Mac.";
+"The Virtual Mac did not publish a display framebuffer." = "Віртуальний Mac не опублікував кадровий буфер дисплея.";
+"The Virtual Mac display view is unavailable" = "Представление дисплея виртуального Mac недоступно";
+"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 show the controls again during this boot, touch and hold the Virtual Mac icon on the Home Screen, then choose Show Virtual Mac Controls." = "Щоб знову показати елементи керування під час цього запуску, натисніть і утримуйте іконку «Віртуальний Mac» на початковому екрані, а потім виберіть «Показати елементи керування Virtual Mac».";
+"Top Left" = "Сліва вверху";
+"Top Right" = "Справа вверху";
+"Touch and Hold for Secondary Click" = "Торкніться й утримуйте для вторинного клацання";
+"Two-Finger Tap for Secondary Click" = "Торкніться двома пальцями для додаткового клацання";
+"Two-Finger Touch Scrolling" = "Прокручування двома пальцями";
+"Unknown" = "Невідомо";
+"Unsaved changes in macOS may be lost." = "Незбережені зміни в macOS може бути втрачено.";
+"Unsupported Restore Image" = "Непідтримуваний образ відновлення";
+"USB Keyboard" = "USB-клавіатура";
+"USB Mouse" = "USB-миша";
+"Use an IPSW on your iPad" = "Використати IPSW на iPad";
+"Use USB Keyboard for macOS Monterey. Newer guests support the Mac keyboard device." = "Для macOS Monterey використовуйте USB-клавіатуру. Новіші системи підтримують клавіатуру Mac.";
+"Use USB Mouse for macOS Monterey. Newer guests support the Mac trackpad device." = "Для macOS Monterey використовуйте USB-мишу. Новіші системи підтримують трекпад Mac.";
+"Validation failed: %@" = "Помилка проверки: %@";
+"Verify your iPad has sufficient free storage and try again." = "Переконайтеся, що на iPad достатньо вільного місця, і повторіть спробу.";
+"Version" = "Версія";
+"Video Encoding and Decoding Acceleration" = "Прискорення кодування та декодування відео";
+"View Details" = "Докладніше";
+"Virtual Mac" = "Віртуальний Mac";
+"Virtual Mac %@ does not support %@. Check for updates in Sileo." = "Virtual Mac %@ не підтримує %@. Перевірте наявність оновлень у Sileo.";
+"Virtual Mac Controls" = "Елементи керування Віртуального Mac";
+"Virtual Mac devices are stored in %@." = "Віртуальні Mac зберігаються в %@.";
+"Virtual Mac Display" = "Дисплей Віртуального 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";
+"Virtual Mac start failed: %@" = "Не вдалося запустить віртуальний Mac: %@";
+"Virtual Mac Stopped" = "Віртуальний Mac зупинено";
+"Virtual Mac stopped: %@" = "Віртуальний Mac остановлен: %@";
+"VPN" = "VPN";
+"Waiting for installation output…" = "Очікування виводу інсталяції…";
+"Welcome to Virtual Mac" = "Вітаємо у Віртуальному Mac";
+"Wi-Fi" = "Wi-Fi";
+"Width" = "Ширина";
+"You can also copy an existing Virtual Mac bundle to /var/mobile/Media/VirtualMac using an app such as iMazing or Filza." = "Наявний пакет Virtual Mac також можна скопіювати до /var/mobile/Media/VirtualMac за допомогою програми, як-от iMazing або Filza.";
+"Your changes to this Virtual Mac will not be saved." = "Зміни цього віртуального Mac не буде збережено.";
+"“%@” and all files stored in it will be permanently deleted." = "«%@» і всі файли в ньому буде остаточно видалено.";
diff --git a/VirtualMac/resources/Localizations/vi.lproj/InfoPlist.strings b/VirtualMac/resources/Localizations/vi.lproj/InfoPlist.strings
new file mode 100644
index 0000000..1510d53
--- /dev/null
+++ b/VirtualMac/resources/Localizations/vi.lproj/InfoPlist.strings
@@ -0,0 +1,2 @@
+"CFBundleDisplayName" = "Máy Mac ảo";
+"CFBundleName" = "Máy Mac ảo";
diff --git a/VirtualMac/resources/Localizations/vi.lproj/Localizable.strings b/VirtualMac/resources/Localizations/vi.lproj/Localizable.strings
new file mode 100644
index 0000000..bbaa7c2
--- /dev/null
+++ b/VirtualMac/resources/Localizations/vi.lproj/Localizable.strings
@@ -0,0 +1,247 @@
+/* Virtual Mac 1.1 localization. */
+" · Legacy" = " · Cũ";
+"%.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ợ";
+"%@ 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 %@";
+"%@\n\n%@\n\nThe incomplete Virtual Mac was retained in Temporary Installation Files as %@. It can be deleted from Settings." = "%@\n\n%@\n\nMáy Mac ảo chưa hoàn tất được giữ trong Tệp cài đặt tạm thời với tên %@. Bạn có thể xóa máy này trong Cài đặt.";
+"%@\nState: %@\n%@\n\n" = "%@\nTrạng thái: %@\n%@\n\n";
+"A previous macOS installation did not finish. You can review its details, keep it for debugging, or delete it." = "Một lần cài đặt macOS trước đó chưa hoàn tất. Bạn có thể xem chi tiết, giữ lại để gỡ lỗi hoặc xóa.";
+"About" = "Giới thiệu";
+"Accommodate Finger Double-Taps" = "Giúp thao tác chạm hai lần bằng ngón tay dễ hơn";
+"Add Shared Folder" = "Thêm thư mục được chia sẻ";
+"Advanced" = "Nâng cao";
+"Allowed: %llu–%llu%@" = "Cho phép: %llu–%llu%@";
+"Always Hidden" = "Luôn ẩn";
+"Always Visible" = "Luôn hiển thị";
+"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";
+"Audio and Acceleration" = "Âm thanh và tăng tốc";
+"Audio Output" = "Đầu ra âm thanh";
+"Automatic" = "Tự động";
+"Automatic hides the controls when an external keyboard and pointing device are connected." = "Tự động ẩn các nút điều khiển khi kết nối bàn phím ngoài và thiết bị trỏ.";
+"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";
+"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";
+"Bridge" = "Cầu nối";
+"Bridge via %@" = "Cầu nối qua %@";
+"Bridge: %@" = "Cầu nối: %@";
+"Build %@" = "Bản dựng %@";
+"Calculating speed…" = "Đang tính tốc độ…";
+"Cancel" = "Hủy";
+"Cancel Download" = "Hủy tải xuống";
+"Cancel Download?" = "Hủy tải xuống?";
+"Cancel Installation" = "Hủy cài đặt";
+"Cancel Installation?" = "Hủy cài đặt?";
+"Cellular" = "Di động";
+"Choose a Different Version" = "Chọn phiên bản khác";
+"Choose a macOS IPSW restore image." = "Chọn ảnh khôi phục IPSW của macOS.";
+"Choose a name for this Virtual Mac." = "Chọn tên cho máy Mac ảo này.";
+"Choose Custom IPSW" = "Chọn IPSW tùy chỉnh";
+"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. Renaming and deletion are unavailable while it is running." = "Thay đổi cấu hình có hiệu lực sau khi tắt và khởi động lại máy Mac ảo. Không thể đổi tên hoặc xóa khi máy đang chạy.";
+"Configuration failed: %@" = "Cấu hình không thành công: %@";
+"Configure %@" = "Định cấu hình %@";
+"Continue" = "Tiếp tục";
+"Controls Hidden" = "Đã ẩn nút điều khiển";
+"Controls Opacity" = "Độ mờ của bộ điều khiển";
+"Copy Library Path" = "Sao chép đường dẫn thư viện";
+"Copying Restore Image" = "Đang sao chép ảnh khôi phục";
+"Could Not Copy IPSW" = "Không thể sao chép IPSW";
+"Could Not Prepare Restore Image" = "Không thể chuẩn bị ảnh khôi phục";
+"Could Not Rename Virtual Mac" = "Không thể đổi tên Máy Mac ảo";
+"Could Not Save" = "Không thể lưu";
+"Could Not Start Installer" = "Không thể khởi động trình cài đặt";
+"Couldn’t Export Diagnostics" = "Không thể xuất dữ liệu chẩn đoán";
+"Create Virtual Mac" = "Tạo Máy Mac ảo";
+"Custom" = "Tùy chỉnh";
+"Debug Logging" = "Ghi nhật ký gỡ lỗi";
+"Delete" = "Xóa";
+"Delete All" = "Xóa tất cả";
+"Delete Cached Install Images" = "Xóa ảnh cài đặt đã lưu vào bộ nhớ đệm";
+"Delete Cached Install Images?" = "Xóa ảnh cài đặt đã lưu vào bộ nhớ đệm?";
+"Delete Incomplete Installation" = "Xóa bản cài đặt chưa hoàn tất";
+"Delete IPSW After Successful Installation" = "Xóa IPSW Sau khi cài đặt thành công";
+"Delete or rename the existing Virtual Mac first." = "Trước tiên hãy xóa hoặc đổi tên máy Mac ảo hiện có.";
+"Delete Temporary Installation Files" = "Xóa tệp cài đặt tạm thời";
+"Delete Temporary Installation Files?" = "Xóa tệp cài đặt tạm thời?";
+"Delete Virtual Mac" = "Xóa máy Mac ảo";
+"Delete Virtual Mac?" = "Xóa máy Mac ảo?";
+"Developer Beta" = "Bản beta dành cho nhà phát triển";
+"Developers" = "Nhà phát triển";
+"Disabled" = "Tắt";
+"Discard Changes" = "Hủy bỏ thay đổi";
+"Discard Changes?" = "Hủy bỏ thay đổi?";
+"Disk Exceeds Available Storage" = "Ổ đĩa vượt quá dung lượng khả dụng";
+"Display" = "Màn hình";
+"Display Height" = "Chiều cao màn hình";
+"Display Resolution" = "Độ phân giải màn hình";
+"Display Width" = "Chiều rộng màn hình";
+"Done" = "Xong";
+"Double-tap to hold or release this modifier" = "Chạm hai lần để giữ hoặc nhả phím bổ trợ này";
+"Download Failed" = "Tải về không thành công";
+"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 (%@)";
+"Experimental" = "Thử nghiệm";
+"Export Diagnostics" = "Xuất chẩn đoán";
+"Failed to load extracted frameworks" = "Không thể tải các framework đã trích xuất";
+"Failed to load the extracted Apple virtualization frameworks." = "Không thể tải các framework ảo hóa Apple đã trích xuất.";
+"Fill Window" = "Lấp đầy cửa sổ";
+"Fit in Window" = "Vừa với cửa sổ";
+"Fit in Window shows the entire display. Fill Window crops its edges when the window has a different shape." = "Vừa cửa sổ hiển thị toàn bộ màn hình. Lấp đầy cửa sổ cắt bớt các cạnh khi cửa sổ có hình dạng khác.";
+"Force Shut Down" = "Buộc tắt";
+"Force Shut Down Virtual Mac?" = "Buộc tắt máy Mac ảo?";
+"Full Screen" = "Toàn màn hình";
+"General" = "Cài đặt chung";
+"Get Help" = "Nhận trợ giúp";
+"Height" = "Chiều cao";
+"Hide for This Boot" = "Ẩn trong lần khởi động này";
+"Incomplete Installation" = "Bản cài đặt chưa hoàn tất";
+"Incomplete Installations" = "Các bản cài đặt chưa hoàn tất";
+"Input" = "Đầu vào";
+"Input While a Virtual Mac Is Running" = "Nhập liệu khi Máy Mac ảo đang chạy";
+"Install %@" = "Cài đặt %@";
+"Install macOS" = "Cài đặt macOS";
+"Installation Details" = "Chi tiết cài đặt";
+"Installation Failed" = "Cài đặt không thành công";
+"Installation progress may pause for several minutes while the Virtual Mac starts the installation environment. Your iPad will remain awake." = "Tiến trình cài đặt có thể tạm dừng vài phút trong khi Máy Mac ảo khởi động môi trường cài đặt. iPad của bạn sẽ không chuyển sang chế độ ngủ.";
+"Installation progress may remain unchanged while macOS prepares the next installation stage. Your iPad will remain awake." = "Tiến trình cài đặt có thể không thay đổi trong khi macOS chuẩn bị giai đoạn tiếp theo. iPad của bạn sẽ không chuyển sang chế độ ngủ.";
+"Installed, but settings save failed: %@" = "Đã cài đặt nhưng không thể lưu cài đặt: %@";
+"Installing macOS" = "Đang cài đặt macOS";
+"iPad Internet Connection" = "Kết nối internet của iPad";
+"Keep Downloading" = "Tiếp tục tải xuống";
+"Keep Editing" = "Tiếp tục chỉnh sửa";
+"Keep Installing" = "Tiếp tục cài đặt";
+"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";
+"Keyboard Crash Workaround" = "Giải pháp cho sự cố bàn phím";
+"Keyboard Crash Workaround takes effect the next time Virtual Mac opens. Debug Logging takes effect the next time a Virtual Mac starts." = "Giải pháp cho sự cố bàn phím sẽ có hiệu lực vào lần tiếp theo Máy Mac ảo được mở. Ghi nhật ký gỡ lỗi sẽ có hiệu lực vào lần tiếp theo một máy Mac ảo khởi động.";
+"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";
+"Mac Keyboard" = "Bàn phím Mac";
+"Mac Keyboard Shortcuts" = "Phím tắt Mac";
+"Mac Trackpad" = "Bàn di chuột Mac";
+"macOS Installed" = "Đã cài đặt macOS";
+"Memory" = "Bộ nhớ";
+"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";
+"Name" = "Tên";
+"Name Already Used" = "Tên đã được sử dụng";
+"NAT: Share %@" = "NAT: Chia sẻ %@";
+"Network" = "Mạng";
+"Network Attachment" = "Kết nối mạng";
+"Network Bridge (%@)" = "Cầu nối mạng (%@)";
+"New Virtual Mac" = "Máy Mac ảo mới";
+"No Results" = "Không có kết quả";
+"No Virtual Macs match your search." = "Không có Máy Mac ảo nào khớp với tìm kiếm.";
+"OK" = "OK";
+"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.";
+"Options" = "Tùy chọn";
+"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ỏ";
+"Portrait Full Screen" = "Toàn màn hình dọc";
+"Preparing installation…" = "Đang chuẩn bị cài đặt…";
+"Preparing the IPSW for installation. Your iPad will remain awake." = "Đang chuẩn bị IPSW để cài đặt. iPad của bạn sẽ không ngủ.";
+"Preparing virtual hardware…" = "Đang chuẩn bị phần cứng ảo…";
+"Preparing…" = "Đang chuẩn bị…";
+"Processors" = "Bộ xử lý";
+"Read & Write" = "Đọc và ghi";
+"Read Only" = "Chỉ đọc";
+"Reading restore image…" = "Đang đọc ảnh khôi phục…";
+"Recommended macOS Release" = "Bản phát hành macOS được đề xuất";
+"Recover Networking After Sleep" = "Khôi phục mạng sau khi ngủ";
+"Release" = "Bản phát hành";
+"Remove" = "Xóa";
+"Report Issue" = "Báo cáo sự cố";
+"Reset" = "Đặt lại";
+"Reset Settings" = "Đặt lại cài đặt";
+"Reset Settings?" = "Đặt lại cài đặt?";
+"Resolution" = "Độ phân giải";
+"Resources" = "Tài nguyên";
+"Resume" = "Tiếp tục";
+"Save" = "Lưu";
+"Search Virtual Mac" = "Tìm Máy Mac ảo";
+"Settings" = "Cài đặt";
+"Shared Folder" = "Thư mục được chia sẻ";
+"Shared via %@" = "Được chia sẻ qua %@";
+"Show Developer Betas" = "Hiển thị bản beta dành cho nhà phát triển";
+"Show Library" = "Hiển thị thư viện";
+"Show Minor Releases" = "Hiển thị các bản phát hành phụ";
+"Show Version Details" = "Hiển thị chi tiết phiên bản";
+"Show Virtual Mac Controls" = "Hiển thị nút điều khiển máy Mac ảo";
+"Start" = "Khởi động";
+"Start %@" = "Khởi động %@";
+"Start in Recovery" = "Khởi động vào Khôi phục";
+"Start on Launch" = "Khởi động khi mở";
+"Starting installation environment…" = "Đang khởi động môi trường cài đặt…";
+"Starting installation services…" = "Đang khởi động dịch vụ cài đặt…";
+"Starting installation…" = "Đang bắt đầu cài đặt…";
+"Starting Virtual Mac…" = "Đang khởi động máy Mac ảo…";
+"Storage" = "Dung lượng";
+"Support" = "Hỗ trợ";
+"Support for %@ is experimental" = "Khả năng hỗ trợ %@ đang ở giai đoạn thử nghiệm";
+"Suppress iPadOS Home Indicator" = "Ẩn chỉ báo Màn hình chính của iPadOS";
+"Suppress iPadOS Multitasking Gestures" = "Tắt các cử chỉ đa nhiệm của iPadOS";
+"Suppress iPadOS System Edge Gestures" = "Tắt các cử chỉ hệ thống từ cạnh màn hình trong iPadOS";
+"Switch to Running Virtual Mac" = "Chuyển sang máy Mac ảo đang chạy";
+"Switch to the running Virtual Mac and shut it down before starting another one." = "Hãy chuyển sang máy Mac ảo đang chạy và tắt máy đó trước khi khởi động máy khác.";
+"The diagnostics archive could not be created." = "Không thể tạo tệp chẩn đoán.";
+"The first progress value can take several minutes while the Virtual Mac changes from DFU to RestoreOS. Your iPad will remain awake." = "Giá trị tiến trình đầu tiên có thể mất vài phút trong khi máy Mac ảo chuyển từ DFU sang RestoreOS. iPad của bạn sẽ không ngủ.";
+"The incomplete Virtual Mac and its installation files will be deleted." = "Máy Mac ảo chưa hoàn tất và các tệp cài đặt của máy sẽ bị xóa.";
+"The install image and temporary installation files were kept so the failure can be diagnosed. You can export diagnostics from Settings." = "Ảnh cài đặt và các tệp cài đặt tạm thời đã được giữ lại để có thể chẩn đoán lỗi. Bạn có thể xuất dữ liệu chẩn đoán từ Cài đặt.";
+"The installer could not be started: %s" = "Không thể khởi chạy trình cài đặt: %s";
+"The new Virtual Mac is ready to use." = "Máy Mac ảo mới đã sẵn sàng để sử dụng.";
+"The partial restore image will be deleted." = "Ảnh khôi phục tải xuống một phần sẽ bị xóa.";
+"The Virtual Mac configuration could not be created." = "Không thể tạo cấu hình máy Mac ảo.";
+"The Virtual Mac did not publish a display framebuffer." = "Máy Mac ảo không công bố framebuffer màn hình.";
+"The Virtual Mac display view is unavailable" = "Chế độ xem màn hình máy Mac ảo không khả dụng";
+"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 show the controls again during this boot, touch and hold the Virtual Mac icon on the Home Screen, then choose Show Virtual Mac Controls." = "Để hiển thị lại các nút điều khiển trong lần khởi động này, 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ị nút điều khiển 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 and Hold for Secondary Click" = "Chạm và giữ cho lần nhấp phụ";
+"Two-Finger Tap for Secondary Click" = "Nhấn bằng hai ngón tay để nhấp chuột phụ";
+"Two-Finger Touch Scrolling" = "Cuộn cảm ứng bằng hai ngón tay";
+"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.";
+"Unsupported Restore Image" = "Ảnh khôi phục không được hỗ trợ";
+"USB Keyboard" = "Bàn phím USB";
+"USB Mouse" = "Chuột USB";
+"Use an IPSW on your iPad" = "Sử dụng IPSW trên iPad của bạn";
+"Use USB Keyboard for macOS Monterey. Newer guests support the Mac keyboard device." = "Với macOS Monterey, hãy sử dụng bàn phím USB. Các phiên bản macOS mới hơn hỗ trợ bàn phím Mac.";
+"Use USB Mouse for macOS Monterey. Newer guests support the Mac trackpad device." = "Với macOS Monterey, hãy sử dụng chuột USB. Các phiên bản macOS mới hơn hỗ trợ bàn di chuột Mac.";
+"Validation failed: %@" = "Xác thực không thành công: %@";
+"Verify your iPad has sufficient free storage and try again." = "Hãy kiểm tra iPad của bạn có đủ dung lượng trống rồi thử lại.";
+"Version" = "Phiên bản";
+"Video Encoding and Decoding Acceleration" = "Tăng tốc mã hóa và giải mã video";
+"View Details" = "Xem chi tiết";
+"Virtual Mac" = "Máy Mac ảo";
+"Virtual Mac %@ does not support %@. Check for updates in Sileo." = "Virtual Mac %@ không hỗ trợ %@. Hãy kiểm tra bản cập nhật trong Sileo.";
+"Virtual Mac Controls" = "Bộ điều khiển Máy Mac ảo";
+"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 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";
+"Virtual Mac start failed: %@" = "Không thể khởi động máy Mac ảo: %@";
+"Virtual Mac Stopped" = "Máy Mac ảo đã dừng";
+"Virtual Mac stopped: %@" = "Máy Mac ảo đã dừng: %@";
+"VPN" = "VPN";
+"Waiting for installation output…" = "Đang chờ đầu ra cài đặt…";
+"Welcome to Virtual Mac" = "Chào mừng bạn đến với Máy Mac ảo";
+"Wi-Fi" = "Wi-Fi";
+"Width" = "Chiều rộng";
+"You can also copy an existing Virtual Mac bundle to /var/mobile/Media/VirtualMac using an app such as iMazing or Filza." = "Bạn cũng có thể sao chép một gói máy Mac ảo hiện có vào /var/mobile/Media/VirtualMac bằng ứng dụng như iMazing hoặc Filza.";
+"Your changes to this Virtual Mac will not be saved." = "Các thay đổi của bạn đối với máy Mac ảo này sẽ không được lưu.";
+"“%@” and all files stored in it will be permanently deleted." = "“%@” và tất cả tệp được lưu trong đó sẽ bị xóa vĩnh viễn.";
diff --git a/VirtualMac/resources/Localizations/zh_CN.lproj/InfoPlist.strings b/VirtualMac/resources/Localizations/zh_CN.lproj/InfoPlist.strings
new file mode 100644
index 0000000..34a5e80
--- /dev/null
+++ b/VirtualMac/resources/Localizations/zh_CN.lproj/InfoPlist.strings
@@ -0,0 +1,2 @@
+"CFBundleDisplayName" = "虚拟Mac";
+"CFBundleName" = "虚拟Mac";
diff --git a/VirtualMac/resources/Localizations/zh_CN.lproj/Localizable.strings b/VirtualMac/resources/Localizations/zh_CN.lproj/Localizable.strings
new file mode 100644
index 0000000..f2b44bf
--- /dev/null
+++ b/VirtualMac/resources/Localizations/zh_CN.lproj/Localizable.strings
@@ -0,0 +1,247 @@
+/* Virtual Mac 1.1 localization. */
+" · Legacy" = " · 旧版";
+"%.0f%% complete" = "已完成%.0f%%";
+"%@ CPU · %@ GB RAM · %llu GB · %@%@" = "%@核CPU · %@ GB内存 · %llu GB · %@%@";
+"%@ is not supported" = "不支持%@";
+"%@ 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" = "剩余%@";
+"%@\n\n%@\n\nThe incomplete Virtual Mac was retained in Temporary Installation Files as %@. It can be deleted from Settings." = "%@\n\n%@\n\n未完成的虚拟Mac已作为%@保留在“安装临时文件”中,可在“设置”中删除。";
+"%@\nState: %@\n%@\n\n" = "%@\n状态:%@\n%@\n\n";
+"A previous macOS installation did not finish. You can review its details, keep it for debugging, or delete it." = "上一次macOS安装未完成。你可以查看详细信息、保留文件以供调试,或将其删除。";
+"About" = "关于";
+"Accommodate Finger Double-Taps" = "适应手指双击";
+"Add Shared Folder" = "添加共享文件夹";
+"Advanced" = "高级";
+"Allowed: %llu–%llu%@" = "允许范围:%llu–%llu%@";
+"Always Hidden" = "始终隐藏";
+"Always Visible" = "始终可见";
+"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正在运行";
+"Audio and Acceleration" = "音频与加速";
+"Audio Output" = "音频输出";
+"Automatic" = "自动";
+"Automatic hides the controls when an external keyboard and pointing device are connected." = "连接外接键盘和指针设备时,“自动”会隐藏控制项。";
+"Available macOS Releases" = "可用的macOS版本";
+"Available macOS Versions" = "可用的macOS版本";
+"Boot and Network" = "启动与网络";
+"Bottom Left" = "左下角";
+"Bottom Right" = "右下角";
+"Bridge" = "桥接";
+"Bridge via %@" = "通过%@桥接";
+"Bridge: %@" = "桥接:%@";
+"Build %@" = "版本%@";
+"Calculating speed…" = "正在计算速度…";
+"Cancel" = "取消";
+"Cancel Download" = "取消下载";
+"Cancel Download?" = "要取消下载吗?";
+"Cancel Installation" = "取消安装";
+"Cancel Installation?" = "要取消安装吗?";
+"Cellular" = "蜂窝网络";
+"Choose a Different Version" = "选择其他版本";
+"Choose a macOS IPSW restore image." = "请选择macOS IPSW恢复镜像。";
+"Choose a name for this Virtual Mac." = "为此虚拟Mac选择名称。";
+"Choose Custom IPSW" = "选择自定义IPSW";
+"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. Renaming and deletion are unavailable while it is running." = "配置更改会在虚拟Mac关机并重新启动后生效。运行期间无法重命名或删除。";
+"Configuration failed: %@" = "配置失败:%@";
+"Configure %@" = "配置%@";
+"Continue" = "继续";
+"Controls Hidden" = "控制项已隐藏";
+"Controls Opacity" = "控制项不透明度";
+"Copy Library Path" = "复制资料库路径";
+"Copying Restore Image" = "正在复制恢复镜像";
+"Could Not Copy IPSW" = "无法复制IPSW";
+"Could Not Prepare Restore Image" = "无法准备恢复镜像";
+"Could Not Rename Virtual Mac" = "无法重命名虚拟Mac";
+"Could Not Save" = "无法保存";
+"Could Not Start Installer" = "无法启动安装程序";
+"Couldn’t Export Diagnostics" = "无法导出诊断信息";
+"Create Virtual Mac" = "创建虚拟Mac";
+"Custom" = "自定义";
+"Debug Logging" = "调试日志";
+"Delete" = "删除";
+"Delete All" = "全部删除";
+"Delete Cached Install Images" = "删除缓存的安装镜像";
+"Delete Cached Install Images?" = "要删除缓存的安装镜像吗?";
+"Delete Incomplete Installation" = "删除未完成的安装";
+"Delete IPSW After Successful Installation" = "安装成功后删除IPSW";
+"Delete or rename the existing Virtual Mac first." = "请先删除现有的虚拟Mac或将其重命名。";
+"Delete Temporary Installation Files" = "删除安装临时文件";
+"Delete Temporary Installation Files?" = "确定删除安装临时文件吗?";
+"Delete Virtual Mac" = "删除虚拟Mac";
+"Delete Virtual Mac?" = "要删除虚拟Mac吗?";
+"Developer Beta" = "开发者测试版";
+"Developers" = "开发者";
+"Disabled" = "已停用";
+"Discard Changes" = "放弃更改";
+"Discard Changes?" = "要放弃更改吗?";
+"Disk Exceeds Available Storage" = "磁盘大小超出可用存储空间";
+"Display" = "显示";
+"Display Height" = "显示高度";
+"Display Resolution" = "显示分辨率";
+"Display Width" = "显示宽度";
+"Done" = "完成";
+"Double-tap to hold or release this modifier" = "轻点两下以锁定或释放此修饰键";
+"Download Failed" = "下载失败";
+"Downloading macOS" = "正在下载macOS";
+"Enter six hexadecimal octets separated by colons." = "输入六组以冒号分隔的十六进制数。";
+"Ethernet (%@)" = "以太网(%@)";
+"Experimental" = "实验性";
+"Export Diagnostics" = "导出诊断";
+"Failed to load extracted frameworks" = "无法载入已提取的框架";
+"Failed to load the extracted Apple virtualization frameworks." = "无法载入已提取的Apple虚拟化框架。";
+"Fill Window" = "填满窗口";
+"Fit in Window" = "适应窗口";
+"Fit in Window shows the entire display. Fill Window crops its edges when the window has a different shape." = "“适应窗口”会显示完整画面。“填满窗口”会在窗口形状不同时裁剪画面边缘。";
+"Force Shut Down" = "强制关机";
+"Force Shut Down Virtual Mac?" = "要强制关闭虚拟Mac吗?";
+"Full Screen" = "全屏";
+"General" = "通用";
+"Get Help" = "获取帮助";
+"Height" = "高度";
+"Hide for This Boot" = "本次运行期间隐藏";
+"Incomplete Installation" = "未完成的安装";
+"Incomplete Installations" = "未完成的安装";
+"Input" = "输入";
+"Input While a Virtual Mac Is Running" = "虚拟Mac运行时输入";
+"Install %@" = "安装%@";
+"Install macOS" = "安装macOS";
+"Installation Details" = "安装详细信息";
+"Installation Failed" = "安装失败";
+"Installation progress may pause for several minutes while the Virtual Mac starts the installation environment. Your iPad will remain awake." = "虚拟Mac启动安装环境时,安装进度可能会暂停几分钟。你的iPad将保持唤醒。";
+"Installation progress may remain unchanged while macOS prepares the next installation stage. Your iPad will remain awake." = "macOS准备下一安装阶段时,安装进度可能暂时不变。你的iPad将保持唤醒。";
+"Installed, but settings save failed: %@" = "已安装,但无法保存设置:%@";
+"Installing macOS" = "正在安装macOS";
+"iPad Internet Connection" = "iPad互联网连接";
+"Keep Downloading" = "继续下载";
+"Keep Editing" = "继续编辑";
+"Keep Installing" = "继续安装";
+"Keep Virtual Mac open. Your iPad will remain awake until the download finishes." = "请保持虚拟Mac打开。下载时iPad将保持唤醒。";
+"Keyboard" = "键盘";
+"Keyboard Crash Workaround" = "键盘意外退出解决方案";
+"Keyboard Crash Workaround takes effect the next time Virtual Mac opens. Debug Logging takes effect the next time a Virtual Mac starts." = "键盘崩溃解决方案将在下次打开虚拟Mac时生效。调试日志将在下次启动虚拟Mac时生效。";
+"Library Appearance" = "资料库外观";
+"Loading extracted Apple virtualization frameworks…" = "正在载入已提取的Apple虚拟化框架…";
+"MAC Address" = "MAC地址";
+"Mac Keyboard" = "Mac键盘";
+"Mac Keyboard Shortcuts" = "Mac键盘快捷键";
+"Mac Trackpad" = "Mac触控板";
+"macOS Installed" = "macOS已安装";
+"Memory" = "内存";
+"Microphone Input" = "麦克风输入";
+"Minimum: %llu GB. The upper limit is determined by the filesystem." = "最小值:%llu GB。上限由文件系统决定。";
+"Move Controls" = "移动控制项";
+"Name" = "名称";
+"Name Already Used" = "名称已被使用";
+"NAT: Share %@" = "NAT:共享%@";
+"Network" = "网络";
+"Network Attachment" = "网络连接";
+"Network Bridge (%@)" = "网络桥接(%@)";
+"New Virtual Mac" = "创建虚拟Mac";
+"No Results" = "无结果";
+"No Virtual Macs match your search." = "没有符合搜索条件的虚拟Mac。";
+"OK" = "好";
+"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可用空间。磁盘镜像为稀疏格式,但存储空间耗尽时,安装或后续使用仍可能失败。";
+"Options" = "选项";
+"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" = "指针设备";
+"Portrait Full Screen" = "竖屏全屏";
+"Preparing installation…" = "正在准备安装…";
+"Preparing the IPSW for installation. Your iPad will remain awake." = "正在准备用于安装的IPSW。你的iPad将保持唤醒。";
+"Preparing virtual hardware…" = "正在准备虚拟硬件…";
+"Preparing…" = "正在准备…";
+"Processors" = "处理器";
+"Read & Write" = "读与写";
+"Read Only" = "只读";
+"Reading restore image…" = "正在读取恢复镜像…";
+"Recommended macOS Release" = "推荐的macOS版本";
+"Recover Networking After Sleep" = "睡眠后恢复网络";
+"Release" = "正式版";
+"Remove" = "移除";
+"Report Issue" = "报告问题";
+"Reset" = "还原";
+"Reset Settings" = "重置设置";
+"Reset Settings?" = "要还原设置吗?";
+"Resolution" = "分辨率";
+"Resources" = "资源";
+"Resume" = "继续";
+"Save" = "保存";
+"Search Virtual Mac" = "搜索虚拟Mac";
+"Settings" = "设置";
+"Shared Folder" = "共享文件夹";
+"Shared via %@" = "通过%@共享";
+"Show Developer Betas" = "显示开发者测试版";
+"Show Library" = "显示资料库";
+"Show Minor Releases" = "显示次要版本";
+"Show Version Details" = "显示版本详情";
+"Show Virtual Mac Controls" = "显示虚拟Mac控制项";
+"Start" = "启动";
+"Start %@" = "启动%@";
+"Start in Recovery" = "在恢复模式中启动";
+"Start on Launch" = "启动时自动";
+"Starting installation environment…" = "正在启动安装环境…";
+"Starting installation services…" = "正在启动安装服务…";
+"Starting installation…" = "正在开始安装…";
+"Starting Virtual Mac…" = "正在启动虚拟Mac…";
+"Storage" = "存储";
+"Support" = "支持";
+"Support for %@ is experimental" = "%@支持尚处于实验阶段";
+"Suppress iPadOS Home Indicator" = "隐藏iPadOS主屏幕指示器";
+"Suppress iPadOS Multitasking Gestures" = "停用iPadOS多任务手势";
+"Suppress iPadOS System Edge Gestures" = "停用iPadOS系统边缘手势";
+"Switch to Running Virtual Mac" = "切换到正在运行的虚拟Mac";
+"Switch to the running Virtual Mac and shut it down before starting another one." = "请切换到正在运行的虚拟Mac并将其关机,然后再启动另一台。";
+"The diagnostics archive could not be created." = "无法创建诊断归档。";
+"The first progress value can take several minutes while the Virtual Mac changes from DFU to RestoreOS. Your iPad will remain awake." = "虚拟Mac从DFU切换到RestoreOS时,首次显示进度可能需要几分钟。你的iPad将保持唤醒。";
+"The incomplete Virtual Mac and its installation files will be deleted." = "将删除未完成的虚拟Mac及其安装文件。";
+"The install image and temporary installation files were kept so the failure can be diagnosed. You can export diagnostics from Settings." = "安装镜像和安装临时文件已保留,以便诊断故障。你可以在“设置”中导出诊断信息。";
+"The installer could not be started: %s" = "无法启动安装程序:%s";
+"The new Virtual Mac is ready to use." = "新的虚拟Mac已可使用。";
+"The partial restore image will be deleted." = "将删除未下载完成的恢复镜像。";
+"The Virtual Mac configuration could not be created." = "无法创建虚拟Mac配置。";
+"The Virtual Mac did not publish a display framebuffer." = "虚拟Mac未提供显示帧缓冲区。";
+"The Virtual Mac display view is unavailable" = "虚拟Mac显示视图不可用";
+"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 show the controls again during this boot, touch and hold the Virtual Mac icon on the Home Screen, then choose Show Virtual Mac Controls." = "要在本次运行期间再次显示控制项,请按住主屏幕上的虚拟Mac图标,然后选择“显示虚拟Mac控制项”。";
+"Top Left" = "左上角";
+"Top Right" = "右上角";
+"Touch and Hold for Secondary Click" = "触摸并按住以辅助点按";
+"Two-Finger Tap for Secondary Click" = "两指轻点以辅助点按";
+"Two-Finger Touch Scrolling" = "两指触摸滚动";
+"Unknown" = "未知";
+"Unsaved changes in macOS may be lost." = "macOS中未保存的更改可能会丢失。";
+"Unsupported Restore Image" = "不支持的恢复镜像";
+"USB Keyboard" = "USB键盘";
+"USB Mouse" = "USB鼠标";
+"Use an IPSW on your iPad" = "使用iPad上的IPSW";
+"Use USB Keyboard for macOS Monterey. Newer guests support the Mac keyboard device." = "在macOS Monterey中,请使用USB键盘。较新版本的macOS支持Mac键盘设备。";
+"Use USB Mouse for macOS Monterey. Newer guests support the Mac trackpad device." = "在macOS Monterey中,请使用USB鼠标。较新版本的macOS支持Mac触控板设备。";
+"Validation failed: %@" = "验证失败:%@";
+"Verify your iPad has sufficient free storage and try again." = "请确认你的iPad有足够的可用存储空间,然后重试。";
+"Version" = "版本";
+"Video Encoding and Decoding Acceleration" = "视频编码和解码加速";
+"View Details" = "查看详细信息";
+"Virtual Mac" = "虚拟Mac";
+"Virtual Mac %@ does not support %@. Check for updates in Sileo." = "虚拟Mac %@不支持%@。请在Sileo中检查更新。";
+"Virtual Mac Controls" = "虚拟Mac控制";
+"Virtual Mac devices are stored in %@." = "虚拟Mac存储在%@。";
+"Virtual Mac Display" = "虚拟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显示";
+"Virtual Mac start failed: %@" = "虚拟Mac启动失败:%@";
+"Virtual Mac Stopped" = "虚拟Mac已停止";
+"Virtual Mac stopped: %@" = "虚拟Mac已停止:%@";
+"VPN" = "VPN";
+"Waiting for installation output…" = "正在等待安装输出…";
+"Welcome to Virtual Mac" = "欢迎使用虚拟Mac";
+"Wi-Fi" = "无线局域网";
+"Width" = "宽度";
+"You can also copy an existing Virtual Mac bundle to /var/mobile/Media/VirtualMac using an app such as iMazing or Filza." = "你也可以使用iMazing或Filza等app,将现有虚拟Mac包复制到/var/mobile/Media/VirtualMac。";
+"Your changes to this Virtual Mac will not be saved." = "你对此虚拟Mac所做的更改不会被保存。";
+"“%@” and all files stored in it will be permanently deleted." = "“%@”及其中存储的所有文件将被永久删除。";
diff --git a/VirtualMac/resources/Localizations/zh_HK.lproj/InfoPlist.strings b/VirtualMac/resources/Localizations/zh_HK.lproj/InfoPlist.strings
new file mode 100644
index 0000000..c9c187d
--- /dev/null
+++ b/VirtualMac/resources/Localizations/zh_HK.lproj/InfoPlist.strings
@@ -0,0 +1,2 @@
+"CFBundleDisplayName" = "虛擬Mac";
+"CFBundleName" = "虛擬Mac";
diff --git a/VirtualMac/resources/Localizations/zh_HK.lproj/Localizable.strings b/VirtualMac/resources/Localizations/zh_HK.lproj/Localizable.strings
new file mode 100644
index 0000000..3bf2a15
--- /dev/null
+++ b/VirtualMac/resources/Localizations/zh_HK.lproj/Localizable.strings
@@ -0,0 +1,247 @@
+/* Virtual Mac 1.1 localization. */
+" · Legacy" = " · 舊版";
+"%.0f%% complete" = "已完成%.0f%%";
+"%@ CPU · %@ GB RAM · %llu GB · %@%@" = "%@核CPU · %@ GB內存 · %llu GB · %@%@";
+"%@ is not supported" = "不支援%@";
+"%@ 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" = "尚餘%@";
+"%@\n\n%@\n\nThe incomplete Virtual Mac was retained in Temporary Installation Files as %@. It can be deleted from Settings." = "%@\n\n%@\n\n未完成的虛擬Mac已作為%@保留在「安裝暫存檔案」中,可在「設定」中刪除。";
+"%@\nState: %@\n%@\n\n" = "%@\n狀態:%@\n%@\n\n";
+"A previous macOS installation did not finish. You can review its details, keep it for debugging, or delete it." = "上一次macOS安裝未完成。你可以查看詳細信息、保留文件以供調試,或將其刪除。";
+"About" = "關於";
+"Accommodate Finger Double-Taps" = "改善手指點兩下辨識";
+"Add Shared Folder" = "添加共享文件夾";
+"Advanced" = "進階";
+"Allowed: %llu–%llu%@" = "允許範圍:%llu–%llu%@";
+"Always Hidden" = "總是隱藏";
+"Always Visible" = "總是顯示";
+"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正在運行";
+"Audio and Acceleration" = "音頻與加速";
+"Audio Output" = "音頻輸出";
+"Automatic" = "自動";
+"Automatic hides the controls when an external keyboard and pointing device are connected." = "連接外接鍵盤和指針設備時,“自動”會隱藏控制項。";
+"Available macOS Releases" = "可用的macOS版本";
+"Available macOS Versions" = "可用的macOS版本";
+"Boot and Network" = "啓動與網絡";
+"Bottom Left" = "左下角";
+"Bottom Right" = "右下角";
+"Bridge" = "橋接";
+"Bridge via %@" = "透過%@橋接";
+"Bridge: %@" = "橋接:%@";
+"Build %@" = "版本%@";
+"Calculating speed…" = "正在計算速度…";
+"Cancel" = "取消";
+"Cancel Download" = "取消下載";
+"Cancel Download?" = "要取消下載嗎?";
+"Cancel Installation" = "取消安裝";
+"Cancel Installation?" = "要取消安裝嗎?";
+"Cellular" = "流動網絡";
+"Choose a Different Version" = "選擇其他版本";
+"Choose a macOS IPSW restore image." = "請選擇macOS IPSW還原映像。";
+"Choose a name for this Virtual Mac." = "為此虛擬Mac選擇名稱。";
+"Choose Custom IPSW" = "選擇自訂IPSW";
+"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. Renaming and deletion are unavailable while it is running." = "配置更改會在虛擬Mac關機並重新啓動後生效。運行期間無法重命名或刪除。";
+"Configuration failed: %@" = "配置失敗:%@";
+"Configure %@" = "配置%@";
+"Continue" = "繼續";
+"Controls Hidden" = "控制項已隱藏";
+"Controls Opacity" = "控制項不透明度";
+"Copy Library Path" = "複製資料庫路徑";
+"Copying Restore Image" = "正在複製恢復鏡像";
+"Could Not Copy IPSW" = "無法複製IPSW";
+"Could Not Prepare Restore Image" = "無法準備還原映像";
+"Could Not Rename Virtual Mac" = "無法重新命名虛擬Mac";
+"Could Not Save" = "無法儲存";
+"Could Not Start Installer" = "無法啟動安裝程式";
+"Couldn’t Export Diagnostics" = "無法導出診斷信息";
+"Create Virtual Mac" = "建立虛擬Mac";
+"Custom" = "自定義";
+"Debug Logging" = "偵錯記錄";
+"Delete" = "刪除";
+"Delete All" = "全部刪除";
+"Delete Cached Install Images" = "刪除快取的安裝映像";
+"Delete Cached Install Images?" = "要刪除快取的安裝映像嗎?";
+"Delete Incomplete Installation" = "刪除未完成的安裝";
+"Delete IPSW After Successful Installation" = "成功安裝後刪除IPSW";
+"Delete or rename the existing Virtual Mac first." = "請先刪除現有的虛擬Mac或將其重命名。";
+"Delete Temporary Installation Files" = "刪除安裝暫存檔案";
+"Delete Temporary Installation Files?" = "確定刪除安裝暫存檔案嗎?";
+"Delete Virtual Mac" = "刪除虛擬Mac";
+"Delete Virtual Mac?" = "要刪除虛擬Mac嗎?";
+"Developer Beta" = "開發者測試版";
+"Developers" = "開發者";
+"Disabled" = "已停用";
+"Discard Changes" = "放棄更改";
+"Discard Changes?" = "要放棄更改嗎?";
+"Disk Exceeds Available Storage" = "磁盤大小超出可用存儲空間";
+"Display" = "顯示";
+"Display Height" = "顯示高度";
+"Display Resolution" = "顯示分辨率";
+"Display Width" = "顯示寬度";
+"Done" = "完成";
+"Double-tap to hold or release this modifier" = "輕點兩下以鎖定或釋放此修飾鍵";
+"Download Failed" = "下載失敗";
+"Downloading macOS" = "正在下載macOS";
+"Enter six hexadecimal octets separated by colons." = "輸入六組以冒號分隔的十六進制數。";
+"Ethernet (%@)" = "以太網(%@)";
+"Experimental" = "實驗性";
+"Export Diagnostics" = "輸出診斷資料";
+"Failed to load extracted frameworks" = "無法載入已提取的框架";
+"Failed to load the extracted Apple virtualization frameworks." = "無法載入已提取的Apple虛擬化框架。";
+"Fill Window" = "填滿視窗";
+"Fit in Window" = "配合視窗大小";
+"Fit in Window shows the entire display. Fill Window crops its edges when the window has a different shape." = "“適應窗口”會顯示完整畫面。“填滿窗口”會在窗口形狀不同時裁剪畫面邊緣。";
+"Force Shut Down" = "強制關機";
+"Force Shut Down Virtual Mac?" = "要強制關閉虛擬Mac嗎?";
+"Full Screen" = "全螢幕";
+"General" = "一般";
+"Get Help" = "取得協助";
+"Height" = "高度";
+"Hide for This Boot" = "本次運行期間隱藏";
+"Incomplete Installation" = "未完成的安裝";
+"Incomplete Installations" = "未完成的安裝";
+"Input" = "輸入";
+"Input While a Virtual Mac Is Running" = "虛擬Mac執行時的輸入";
+"Install %@" = "安裝%@";
+"Install macOS" = "安裝macOS";
+"Installation Details" = "安裝詳細信息";
+"Installation Failed" = "安裝失敗";
+"Installation progress may pause for several minutes while the Virtual Mac starts the installation environment. Your iPad will remain awake." = "虛擬Mac啓動安裝環境時,安裝進度可能會暫停幾分鐘。你的iPad將保持喚醒。";
+"Installation progress may remain unchanged while macOS prepares the next installation stage. Your iPad will remain awake." = "macOS準備下一安裝階段時,安裝進度可能暫時不變。你的iPad將保持喚醒。";
+"Installed, but settings save failed: %@" = "已安裝,但無法保存設置:%@";
+"Installing macOS" = "正在安裝macOS";
+"iPad Internet Connection" = "iPad互聯網連線";
+"Keep Downloading" = "繼續下載";
+"Keep Editing" = "繼續編輯";
+"Keep Installing" = "繼續安裝";
+"Keep Virtual Mac open. Your iPad will remain awake until the download finishes." = "請保持虛擬Mac打開。下載完成前,你的iPad將保持喚醒。";
+"Keyboard" = "鍵盤";
+"Keyboard Crash Workaround" = "鍵盤意外退出解決方案";
+"Keyboard Crash Workaround takes effect the next time Virtual Mac opens. Debug Logging takes effect the next time a Virtual Mac starts." = "鍵盤崩潰解決方案會在下次開啟虛擬Mac時生效。偵錯記錄會在下次啟動虛擬Mac時生效。";
+"Library Appearance" = "資料庫外觀";
+"Loading extracted Apple virtualization frameworks…" = "正在載入已提取的Apple虛擬化框架…";
+"MAC Address" = "MAC地址";
+"Mac Keyboard" = "Mac鍵盤";
+"Mac Keyboard Shortcuts" = "Mac鍵盤快捷鍵";
+"Mac Trackpad" = "Mac觸控板";
+"macOS Installed" = "macOS已安裝";
+"Memory" = "記憶體";
+"Microphone Input" = "麥克風輸入";
+"Minimum: %llu GB. The upper limit is determined by the filesystem." = "最小值:%llu GB。上限由文件系統決定。";
+"Move Controls" = "移動控制項";
+"Name" = "名稱";
+"Name Already Used" = "名稱已被使用";
+"NAT: Share %@" = "NAT:共享%@";
+"Network" = "網絡";
+"Network Attachment" = "網絡連接";
+"Network Bridge (%@)" = "網絡橋接(%@)";
+"New Virtual Mac" = "建立虛擬Mac";
+"No Results" = "找不到結果";
+"No Virtual Macs match your search." = "沒有符合搜尋條件的虛擬Mac。";
+"OK" = "好";
+"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可用空間。磁盤鏡像為稀疏格式,但存儲空間耗盡時,安裝或後續使用仍可能失敗。";
+"Options" = "選項";
+"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" = "指針設備";
+"Portrait Full Screen" = "直向全螢幕";
+"Preparing installation…" = "正在準備安裝…";
+"Preparing the IPSW for installation. Your iPad will remain awake." = "正在準備用於安裝的IPSW。你的iPad將保持喚醒。";
+"Preparing virtual hardware…" = "正在準備虛擬硬件…";
+"Preparing…" = "正在準備…";
+"Processors" = "處理器";
+"Read & Write" = "讀與寫";
+"Read Only" = "只讀";
+"Reading restore image…" = "正在讀取恢復鏡像…";
+"Recommended macOS Release" = "建議的macOS版本";
+"Recover Networking After Sleep" = "睡眠喚醒後恢復網絡";
+"Release" = "正式版";
+"Remove" = "移除";
+"Report Issue" = "報告問題";
+"Reset" = "還原";
+"Reset Settings" = "重設設定";
+"Reset Settings?" = "要還原設置嗎?";
+"Resolution" = "分辨率";
+"Resources" = "資源";
+"Resume" = "繼續";
+"Save" = "儲存";
+"Search Virtual Mac" = "搜尋虛擬Mac";
+"Settings" = "設定";
+"Shared Folder" = "共享文件夾";
+"Shared via %@" = "透過%@共享";
+"Show Developer Betas" = "顯示開發者測試版";
+"Show Library" = "顯示資料庫";
+"Show Minor Releases" = "顯示次要版本";
+"Show Version Details" = "顯示版本詳細資料";
+"Show Virtual Mac Controls" = "顯示虛擬Mac控制項";
+"Start" = "啓動";
+"Start %@" = "啓動%@";
+"Start in Recovery" = "在恢復模式中啓動";
+"Start on Launch" = "啟動時執行";
+"Starting installation environment…" = "正在啓動安裝環境…";
+"Starting installation services…" = "正在啓動安裝服務…";
+"Starting installation…" = "正在開始安裝…";
+"Starting Virtual Mac…" = "正在啓動虛擬Mac…";
+"Storage" = "儲存空間";
+"Support" = "支援";
+"Support for %@ is experimental" = "%@支援仍屬實驗性";
+"Suppress iPadOS Home Indicator" = "隱藏iPadOS主畫面指示器";
+"Suppress iPadOS Multitasking Gestures" = "停用iPadOS多工手勢";
+"Suppress iPadOS System Edge Gestures" = "停用iPadOS系統邊緣手勢";
+"Switch to Running Virtual Mac" = "切換到正在運行的虛擬Mac";
+"Switch to the running Virtual Mac and shut it down before starting another one." = "請切換到正在運行的虛擬Mac並將其關機,然後再啓動另一台。";
+"The diagnostics archive could not be created." = "無法創建診斷歸檔。";
+"The first progress value can take several minutes while the Virtual Mac changes from DFU to RestoreOS. Your iPad will remain awake." = "虛擬Mac從DFU切換到RestoreOS時,首次顯示進度可能需要幾分鐘。你的iPad將保持喚醒。";
+"The incomplete Virtual Mac and its installation files will be deleted." = "將刪除未完成的虛擬Mac及其安裝文件。";
+"The install image and temporary installation files were kept so the failure can be diagnosed. You can export diagnostics from Settings." = "安裝映像和安裝暫存檔案已保留,以便診斷故障。你可以在「設定」中匯出診斷資料。";
+"The installer could not be started: %s" = "無法啟動安裝程式:%s";
+"The new Virtual Mac is ready to use." = "新的虛擬Mac已可使用。";
+"The partial restore image will be deleted." = "將刪除未下載完成的恢復鏡像。";
+"The Virtual Mac configuration could not be created." = "無法創建虛擬Mac配置。";
+"The Virtual Mac did not publish a display framebuffer." = "虛擬Mac未提供顯示幀緩衝區。";
+"The Virtual Mac display view is unavailable" = "虛擬Mac顯示視圖不可用";
+"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 show the controls again during this boot, touch and hold the Virtual Mac icon on the Home Screen, then choose Show Virtual Mac Controls." = "要在本次運行期間再次顯示控制項,請按住主屏幕上的虛擬Mac圖標,然後選擇“顯示虛擬Mac控制項”。";
+"Top Left" = "左上角";
+"Top Right" = "右上角";
+"Touch and Hold for Secondary Click" = "觸碰並按住以使用輔助按鈕";
+"Two-Finger Tap for Secondary Click" = "用兩指點一下以使用輔助按鈕";
+"Two-Finger Touch Scrolling" = "兩指觸控捲動";
+"Unknown" = "未知";
+"Unsaved changes in macOS may be lost." = "macOS中未保存的更改可能會丟失。";
+"Unsupported Restore Image" = "不支援的還原映像";
+"USB Keyboard" = "USB鍵盤";
+"USB Mouse" = "USB鼠標";
+"Use an IPSW on your iPad" = "使用iPad上的IPSW";
+"Use USB Keyboard for macOS Monterey. Newer guests support the Mac keyboard device." = "在macOS Monterey中,請使用USB鍵盤。較新版本的macOS支援Mac鍵盤裝置。";
+"Use USB Mouse for macOS Monterey. Newer guests support the Mac trackpad device." = "在macOS Monterey中,請使用USB滑鼠。較新版本的macOS支援Mac觸控板裝置。";
+"Validation failed: %@" = "驗證失敗:%@";
+"Verify your iPad has sufficient free storage and try again." = "請確認你的iPad有足夠的可用存儲空間,然後重試。";
+"Version" = "版本";
+"Video Encoding and Decoding Acceleration" = "視像編碼及解碼加速";
+"View Details" = "查看詳細信息";
+"Virtual Mac" = "虛擬Mac";
+"Virtual Mac %@ does not support %@. Check for updates in Sileo." = "虛擬Mac %@不支援%@。請在Sileo檢查更新。";
+"Virtual Mac Controls" = "虛擬Mac控制項";
+"Virtual Mac devices are stored in %@." = "虛擬Mac裝置儲存在%@。";
+"Virtual Mac Display" = "虛擬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顯示";
+"Virtual Mac start failed: %@" = "虛擬Mac啓動失敗:%@";
+"Virtual Mac Stopped" = "虛擬Mac已停止";
+"Virtual Mac stopped: %@" = "虛擬Mac已停止:%@";
+"VPN" = "VPN";
+"Waiting for installation output…" = "正在等待安裝輸出…";
+"Welcome to Virtual Mac" = "歡迎使用虛擬Mac";
+"Wi-Fi" = "Wi-Fi";
+"Width" = "寬度";
+"You can also copy an existing Virtual Mac bundle to /var/mobile/Media/VirtualMac using an app such as iMazing or Filza." = "你也可以使用iMazing或Filza等app,將現有虛擬Mac包複製到/var/mobile/Media/VirtualMac。";
+"Your changes to this Virtual Mac will not be saved." = "你對此虛擬Mac所做的更改不會被保存。";
+"“%@” and all files stored in it will be permanently deleted." = "“%@”及其中存儲的所有文件將被永久刪除。";
diff --git a/VirtualMac/resources/Localizations/zh_TW.lproj/InfoPlist.strings b/VirtualMac/resources/Localizations/zh_TW.lproj/InfoPlist.strings
new file mode 100644
index 0000000..c9c187d
--- /dev/null
+++ b/VirtualMac/resources/Localizations/zh_TW.lproj/InfoPlist.strings
@@ -0,0 +1,2 @@
+"CFBundleDisplayName" = "虛擬Mac";
+"CFBundleName" = "虛擬Mac";
diff --git a/VirtualMac/resources/Localizations/zh_TW.lproj/Localizable.strings b/VirtualMac/resources/Localizations/zh_TW.lproj/Localizable.strings
new file mode 100644
index 0000000..1a8fe74
--- /dev/null
+++ b/VirtualMac/resources/Localizations/zh_TW.lproj/Localizable.strings
@@ -0,0 +1,247 @@
+/* Virtual Mac 1.1 localization. */
+" · Legacy" = " · 舊版";
+"%.0f%% complete" = "已完成%.0f%%";
+"%@ CPU · %@ GB RAM · %llu GB · %@%@" = "%@核CPU · %@ GB記憶體 · %llu GB · %@%@";
+"%@ is not supported" = "不支援%@";
+"%@ 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" = "剩餘%@";
+"%@\n\n%@\n\nThe incomplete Virtual Mac was retained in Temporary Installation Files as %@. It can be deleted from Settings." = "%@\n\n%@\n\n未完成的虛擬Mac已作為%@保留在「安裝暫存檔案」中,可在「設定」中刪除。";
+"%@\nState: %@\n%@\n\n" = "%@\n狀態:%@\n%@\n\n";
+"A previous macOS installation did not finish. You can review its details, keep it for debugging, or delete it." = "上一次macOS安裝未完成。你可以檢視詳細資訊、保留檔案以供除錯,或將其刪除。";
+"About" = "關於";
+"Accommodate Finger Double-Taps" = "改善手指點兩下辨識";
+"Add Shared Folder" = "新增共享資料夾";
+"Advanced" = "進階";
+"Allowed: %llu–%llu%@" = "允許範圍:%llu–%llu%@";
+"Always Hidden" = "永遠隱藏";
+"Always Visible" = "永遠顯示";
+"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正在執行";
+"Audio and Acceleration" = "音訊與加速";
+"Audio Output" = "音訊輸出";
+"Automatic" = "自動";
+"Automatic hides the controls when an external keyboard and pointing device are connected." = "連線外接鍵盤和指標裝置時,“自動”會隱藏控制項。";
+"Available macOS Releases" = "可用的macOS版本";
+"Available macOS Versions" = "可用的macOS版本";
+"Boot and Network" = "啟動與網路";
+"Bottom Left" = "左下角";
+"Bottom Right" = "右下角";
+"Bridge" = "橋接";
+"Bridge via %@" = "透過%@橋接";
+"Bridge: %@" = "橋接:%@";
+"Build %@" = "版本%@";
+"Calculating speed…" = "正在計算速度…";
+"Cancel" = "取消";
+"Cancel Download" = "取消下載";
+"Cancel Download?" = "要取消下載嗎?";
+"Cancel Installation" = "取消安裝";
+"Cancel Installation?" = "要取消安裝嗎?";
+"Cellular" = "行動網路";
+"Choose a Different Version" = "選擇其他版本";
+"Choose a macOS IPSW restore image." = "請選擇macOS IPSW回復映像。";
+"Choose a name for this Virtual Mac." = "為此虛擬Mac選擇名稱。";
+"Choose Custom IPSW" = "選擇自訂IPSW";
+"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. Renaming and deletion are unavailable while it is running." = "配置更改會在虛擬Mac關機並重新啟動後生效。執行期間無法重新命名或刪除。";
+"Configuration failed: %@" = "配置失敗:%@";
+"Configure %@" = "配置%@";
+"Continue" = "繼續";
+"Controls Hidden" = "控制項已隱藏";
+"Controls Opacity" = "控制項不透明度";
+"Copy Library Path" = "拷貝資料庫路徑";
+"Copying Restore Image" = "正在複製恢復映象";
+"Could Not Copy IPSW" = "無法拷貝IPSW";
+"Could Not Prepare Restore Image" = "無法準備回復映像";
+"Could Not Rename Virtual Mac" = "無法重新命名虛擬Mac";
+"Could Not Save" = "無法儲存";
+"Could Not Start Installer" = "無法啟動安裝程式";
+"Couldn’t Export Diagnostics" = "無法匯出診斷資訊";
+"Create Virtual Mac" = "建立虛擬Mac";
+"Custom" = "自定義";
+"Debug Logging" = "偵錯記錄";
+"Delete" = "刪除";
+"Delete All" = "全部刪除";
+"Delete Cached Install Images" = "刪除快取的安裝映像";
+"Delete Cached Install Images?" = "要刪除快取的安裝映像嗎?";
+"Delete Incomplete Installation" = "刪除未完成的安裝";
+"Delete IPSW After Successful Installation" = "成功安裝後刪除IPSW";
+"Delete or rename the existing Virtual Mac first." = "請先刪除現有的虛擬Mac或將其重新命名。";
+"Delete Temporary Installation Files" = "刪除安裝暫存檔案";
+"Delete Temporary Installation Files?" = "確定刪除安裝暫存檔案嗎?";
+"Delete Virtual Mac" = "刪除虛擬Mac";
+"Delete Virtual Mac?" = "要刪除虛擬Mac嗎?";
+"Developer Beta" = "開發者測試版";
+"Developers" = "開發者";
+"Disabled" = "已停用";
+"Discard Changes" = "放棄更改";
+"Discard Changes?" = "要放棄更改嗎?";
+"Disk Exceeds Available Storage" = "磁碟大小超出可用儲存空間";
+"Display" = "顯示";
+"Display Height" = "顯示高度";
+"Display Resolution" = "顯示解析度";
+"Display Width" = "顯示寬度";
+"Done" = "完成";
+"Double-tap to hold or release this modifier" = "輕點兩下以鎖定或釋放此修飾鍵";
+"Download Failed" = "下載失敗";
+"Downloading macOS" = "正在下載macOS";
+"Enter six hexadecimal octets separated by colons." = "輸入六組以冒號分隔的十六進位制數。";
+"Ethernet (%@)" = "乙太網(%@)";
+"Experimental" = "實驗性";
+"Export Diagnostics" = "輸出診斷資料";
+"Failed to load extracted frameworks" = "無法載入已提取的框架";
+"Failed to load the extracted Apple virtualization frameworks." = "無法載入已提取的Apple虛擬化框架。";
+"Fill Window" = "填滿視窗";
+"Fit in Window" = "符合視窗大小";
+"Fit in Window shows the entire display. Fill Window crops its edges when the window has a different shape." = "“適應視窗”會顯示完整畫面。“填滿視窗”會在視窗形狀不同時裁剪畫面邊緣。";
+"Force Shut Down" = "強制關機";
+"Force Shut Down Virtual Mac?" = "要強制關閉虛擬Mac嗎?";
+"Full Screen" = "全螢幕";
+"General" = "一般";
+"Get Help" = "取得協助";
+"Height" = "高度";
+"Hide for This Boot" = "本次執行期間隱藏";
+"Incomplete Installation" = "未完成的安裝";
+"Incomplete Installations" = "未完成的安裝";
+"Input" = "輸入";
+"Input While a Virtual Mac Is Running" = "虛擬Mac執行時的輸入";
+"Install %@" = "安裝%@";
+"Install macOS" = "安裝macOS";
+"Installation Details" = "安裝詳細資訊";
+"Installation Failed" = "安裝失敗";
+"Installation progress may pause for several minutes while the Virtual Mac starts the installation environment. Your iPad will remain awake." = "虛擬Mac啟動安裝環境時,安裝進度可能會暫停數分鐘。你的iPad將保持喚醒。";
+"Installation progress may remain unchanged while macOS prepares the next installation stage. Your iPad will remain awake." = "macOS準備下一安裝階段時,安裝進度可能暫時不變。你的iPad將保持喚醒。";
+"Installed, but settings save failed: %@" = "已安裝,但無法儲存設定:%@";
+"Installing macOS" = "正在安裝macOS";
+"iPad Internet Connection" = "iPad網際網路連線";
+"Keep Downloading" = "繼續下載";
+"Keep Editing" = "繼續編輯";
+"Keep Installing" = "繼續安裝";
+"Keep Virtual Mac open. Your iPad will remain awake until the download finishes." = "請保持虛擬Mac開啟。下載完成前,你的iPad將保持喚醒。";
+"Keyboard" = "鍵盤";
+"Keyboard Crash Workaround" = "鍵盤意外退出解決方案";
+"Keyboard Crash Workaround takes effect the next time Virtual Mac opens. Debug Logging takes effect the next time a Virtual Mac starts." = "鍵盤當機解決方案會在下次開啟虛擬Mac時生效。偵錯記錄會在下次啟動虛擬Mac時生效。";
+"Library Appearance" = "資料庫外觀";
+"Loading extracted Apple virtualization frameworks…" = "正在載入已提取的Apple虛擬化框架…";
+"MAC Address" = "MAC地址";
+"Mac Keyboard" = "Mac鍵盤";
+"Mac Keyboard Shortcuts" = "Mac鍵盤快速鍵";
+"Mac Trackpad" = "Mac觸控板";
+"macOS Installed" = "macOS已安裝";
+"Memory" = "記憶體";
+"Microphone Input" = "麥克風輸入";
+"Minimum: %llu GB. The upper limit is determined by the filesystem." = "最小值:%llu GB。上限由檔案系統決定。";
+"Move Controls" = "移動控制項";
+"Name" = "名稱";
+"Name Already Used" = "名稱已被使用";
+"NAT: Share %@" = "NAT:共享%@";
+"Network" = "網路";
+"Network Attachment" = "網路連線";
+"Network Bridge (%@)" = "網路橋接(%@)";
+"New Virtual Mac" = "建立虛擬Mac";
+"No Results" = "找不到結果";
+"No Virtual Macs match your search." = "沒有符合搜尋條件的虛擬Mac。";
+"OK" = "好";
+"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可用空間。磁碟映象為稀疏格式,但儲存空間耗盡時,安裝或後續使用仍可能失敗。";
+"Options" = "選項";
+"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" = "指標裝置";
+"Portrait Full Screen" = "直向全螢幕";
+"Preparing installation…" = "正在準備安裝…";
+"Preparing the IPSW for installation. Your iPad will remain awake." = "正在準備用於安裝的IPSW。你的iPad將保持喚醒。";
+"Preparing virtual hardware…" = "正在準備虛擬硬體…";
+"Preparing…" = "正在準備…";
+"Processors" = "處理器";
+"Read & Write" = "讀與寫";
+"Read Only" = "只讀";
+"Reading restore image…" = "正在讀取恢復映象…";
+"Recommended macOS Release" = "建議的macOS版本";
+"Recover Networking After Sleep" = "睡眠喚醒後回復網路";
+"Release" = "正式版";
+"Remove" = "移除";
+"Report Issue" = "回報問題";
+"Reset" = "還原";
+"Reset Settings" = "重置設定";
+"Reset Settings?" = "要還原設定嗎?";
+"Resolution" = "解析度";
+"Resources" = "資源";
+"Resume" = "繼續";
+"Save" = "儲存";
+"Search Virtual Mac" = "搜尋虛擬Mac";
+"Settings" = "設定";
+"Shared Folder" = "共享資料夾";
+"Shared via %@" = "透過%@共享";
+"Show Developer Betas" = "顯示開發者測試版";
+"Show Library" = "顯示資料庫";
+"Show Minor Releases" = "顯示次要版本";
+"Show Version Details" = "顯示版本詳細資訊";
+"Show Virtual Mac Controls" = "顯示虛擬Mac控制項";
+"Start" = "啟動";
+"Start %@" = "啟動%@";
+"Start in Recovery" = "在恢復模式中啟動";
+"Start on Launch" = "啟動時執行";
+"Starting installation environment…" = "正在啟動安裝環境…";
+"Starting installation services…" = "正在啟動安裝服務…";
+"Starting installation…" = "正在開始安裝…";
+"Starting Virtual Mac…" = "正在啟動虛擬Mac…";
+"Storage" = "儲存空間";
+"Support" = "支援";
+"Support for %@ is experimental" = "%@支援仍處於實驗階段";
+"Suppress iPadOS Home Indicator" = "隱藏iPadOS主畫面指示器";
+"Suppress iPadOS Multitasking Gestures" = "停用iPadOS多工手勢";
+"Suppress iPadOS System Edge Gestures" = "停用iPadOS系統邊緣手勢";
+"Switch to Running Virtual Mac" = "切換到正在執行的虛擬Mac";
+"Switch to the running Virtual Mac and shut it down before starting another one." = "請切換到正在執行的虛擬Mac並將其關機,然後再啟動另一臺。";
+"The diagnostics archive could not be created." = "無法建立診斷歸檔。";
+"The first progress value can take several minutes while the Virtual Mac changes from DFU to RestoreOS. Your iPad will remain awake." = "虛擬Mac從DFU切換到RestoreOS時,首次顯示進度可能需要幾分鐘。你的iPad將保持喚醒。";
+"The incomplete Virtual Mac and its installation files will be deleted." = "將刪除未完成的虛擬Mac及其安裝檔案。";
+"The install image and temporary installation files were kept so the failure can be diagnosed. You can export diagnostics from Settings." = "安裝映像和安裝暫存檔案已保留,以便診斷故障。你可以在「設定」中匯出診斷資訊。";
+"The installer could not be started: %s" = "無法啟動安裝程式:%s";
+"The new Virtual Mac is ready to use." = "新的虛擬Mac已可使用。";
+"The partial restore image will be deleted." = "將刪除未下載完成的恢復映象。";
+"The Virtual Mac configuration could not be created." = "無法建立虛擬Mac配置。";
+"The Virtual Mac did not publish a display framebuffer." = "虛擬Mac未提供顯示幀緩衝區。";
+"The Virtual Mac display view is unavailable" = "虛擬Mac顯示檢視不可用";
+"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 show the controls again during this boot, touch and hold the Virtual Mac icon on the Home Screen, then choose Show Virtual Mac Controls." = "要在本次執行期間再次顯示控制項,請按住主螢幕上的虛擬Mac圖示,然後選擇“顯示虛擬Mac控制項”。";
+"Top Left" = "左上角";
+"Top Right" = "右上角";
+"Touch and Hold for Secondary Click" = "觸碰並按住以使用輔助按鈕";
+"Two-Finger Tap for Secondary Click" = "用兩指點一下以使用輔助按鈕";
+"Two-Finger Touch Scrolling" = "兩指觸控捲動";
+"Unknown" = "未知";
+"Unsaved changes in macOS may be lost." = "macOS中未儲存的更改可能會丟失。";
+"Unsupported Restore Image" = "不支援的回復映像";
+"USB Keyboard" = "USB鍵盤";
+"USB Mouse" = "USB滑鼠";
+"Use an IPSW on your iPad" = "使用iPad上的IPSW";
+"Use USB Keyboard for macOS Monterey. Newer guests support the Mac keyboard device." = "在macOS Monterey中,請使用USB鍵盤。較新版本的macOS支援Mac鍵盤裝置。";
+"Use USB Mouse for macOS Monterey. Newer guests support the Mac trackpad device." = "在macOS Monterey中,請使用USB滑鼠。較新版本的macOS支援Mac觸控板裝置。";
+"Validation failed: %@" = "驗證失敗:%@";
+"Verify your iPad has sufficient free storage and try again." = "請確認你的iPad有足夠的可用儲存空間,然後重試。";
+"Version" = "版本";
+"Video Encoding and Decoding Acceleration" = "視訊編碼與解碼加速";
+"View Details" = "檢視詳細資訊";
+"Virtual Mac" = "虛擬Mac";
+"Virtual Mac %@ does not support %@. Check for updates in Sileo." = "虛擬Mac %@不支援%@。請在Sileo檢查更新。";
+"Virtual Mac Controls" = "虛擬Mac控制項";
+"Virtual Mac devices are stored in %@." = "虛擬Mac裝置儲存在%@。";
+"Virtual Mac Display" = "虛擬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顯示";
+"Virtual Mac start failed: %@" = "虛擬Mac啟動失敗:%@";
+"Virtual Mac Stopped" = "虛擬Mac已停止";
+"Virtual Mac stopped: %@" = "虛擬Mac已停止:%@";
+"VPN" = "VPN";
+"Waiting for installation output…" = "正在等待安裝輸出…";
+"Welcome to Virtual Mac" = "歡迎使用虛擬Mac";
+"Wi-Fi" = "Wi-Fi";
+"Width" = "寬度";
+"You can also copy an existing Virtual Mac bundle to /var/mobile/Media/VirtualMac using an app such as iMazing or Filza." = "你也可以使用iMazing或Filza等app,將現有虛擬Mac包複製到/var/mobile/Media/VirtualMac。";
+"Your changes to this Virtual Mac will not be saved." = "你對此虛擬Mac所做的更改不會被儲存。";
+"“%@” and all files stored in it will be permanently deleted." = "“%@”及其中儲存的所有檔案將被永久刪除。";
diff --git a/VirtualMac/screenshots/VirtualMac.png b/VirtualMac/screenshots/VirtualMac.png
index 6266c52..5b9163e 100644
Binary files a/VirtualMac/screenshots/VirtualMac.png and b/VirtualMac/screenshots/VirtualMac.png differ
diff --git a/VirtualMac/screenshots/VirtualMac_Configuration.png b/VirtualMac/screenshots/VirtualMac_Configuration.png
index 79c1b8d..5532735 100644
Binary files a/VirtualMac/screenshots/VirtualMac_Configuration.png and b/VirtualMac/screenshots/VirtualMac_Configuration.png differ
diff --git a/VirtualMac/screenshots/VirtualMac_Create.png b/VirtualMac/screenshots/VirtualMac_Create.png
new file mode 100644
index 0000000..e4afb7c
Binary files /dev/null and b/VirtualMac/screenshots/VirtualMac_Create.png differ
diff --git a/VirtualMac/screenshots/VirtualMac_Download.png b/VirtualMac/screenshots/VirtualMac_Download.png
new file mode 100644
index 0000000..beaa6e1
Binary files /dev/null and b/VirtualMac/screenshots/VirtualMac_Download.png differ
diff --git a/VirtualMac/screenshots/VirtualMac_Library.png b/VirtualMac/screenshots/VirtualMac_Library.png
index e6f07b3..d79fc8f 100644
Binary files a/VirtualMac/screenshots/VirtualMac_Library.png and b/VirtualMac/screenshots/VirtualMac_Library.png differ
diff --git a/VirtualMac/screenshots/VirtualMac_LibraryList.png b/VirtualMac/screenshots/VirtualMac_LibraryList.png
new file mode 100644
index 0000000..549a183
Binary files /dev/null and b/VirtualMac/screenshots/VirtualMac_LibraryList.png differ
diff --git a/VirtualMac/screenshots/VirtualMac_Settings.png b/VirtualMac/screenshots/VirtualMac_Settings.png
new file mode 100644
index 0000000..23aa872
Binary files /dev/null and b/VirtualMac/screenshots/VirtualMac_Settings.png differ
diff --git a/VirtualMac/screenshots/VirtualMac_Welcome.png b/VirtualMac/screenshots/VirtualMac_Welcome.png
new file mode 100644
index 0000000..b642216
Binary files /dev/null and b/VirtualMac/screenshots/VirtualMac_Welcome.png differ
diff --git a/VirtualMac/screenshots/VirtualMac_macOS.png b/VirtualMac/screenshots/VirtualMac_macOS.png
index 857835d..5e3c6af 100644
Binary files a/VirtualMac/screenshots/VirtualMac_macOS.png and b/VirtualMac/screenshots/VirtualMac_macOS.png differ
diff --git a/VirtualMac/scripts/README.md b/VirtualMac/scripts/README.md
index b874f70..b352242 100644
--- a/VirtualMac/scripts/README.md
+++ b/VirtualMac/scripts/README.md
@@ -1,6 +1,6 @@
# Scripts
-Run `../setup.sh` for a complete reproducible build. The scripts directly in this directory are the stages used for building a deb package; they may also be run individually after the environment has been prepared.
+Run `../setup.sh` for a complete reproducible build. The scripts directly in this directory are the stages used by building a deb package; they may also be run individually after the environment has been prepared.
- `development/` contains USB deployment, bring-up, and interactive device/real-Mac helpers.
- `tests/` contains test and benchmark harnesses.
diff --git a/VirtualMac/scripts/audit-ipad-package-stage.sh b/VirtualMac/scripts/audit-ipad-package-stage.sh
index 31c94a1..e74bb1b 100755
--- a/VirtualMac/scripts/audit-ipad-package-stage.sh
+++ b/VirtualMac/scripts/audit-ipad-package-stage.sh
@@ -2,6 +2,8 @@
set -euo pipefail
+command -v nm >/dev/null || { echo "package audit failed: missing command: nm" >&2; exit 1; }
+
STAGE="${1:-}"
[[ -n "$STAGE" && -d "$STAGE" ]] || {
echo "usage: $0 <deb-stage-directory>" >&2
@@ -12,6 +14,14 @@ RUNTIME="$STAGE/var/root/VirtualMac"
PAYLOAD="$RUNTIME/payload"
FRAMEWORKS="$PAYLOAD/Frameworks"
VMM="$PAYLOAD/VirtualMachine.xpc/Contents/MacOS/com.apple.Virtualization.VirtualMachine"
+VMM_IPADOS14="$VMM.ipados14"
+VMM_IPADOS15="$VMM.ipados15"
+VMM_IPADOS16="$VMM.ipados16"
+INSTALL_FRAMEWORKS="$PAYLOAD/Installation.xpc/Contents/Frameworks"
+INSTALL_EXECUTABLE="$PAYLOAD/Installation.xpc/Contents/MacOS/com.apple.Virtualization.Installation"
+VIDEO_TOOLBOX="$FRAMEWORKS/VideoToolbox.framework/VideoToolbox"
+VIDEO_TOOLBOX15="$PAYLOAD/Compatibility/iPadOS15/VideoToolbox"
+VIDEO_TOOLBOX14="$PAYLOAD/Compatibility/iPadOS14/VideoToolbox"
die() {
echo "package audit failed: $*" >&2
@@ -25,6 +35,7 @@ for binary in \
"$FRAMEWORKS/vmnet.framework/vmnet" \
"$FRAMEWORKS/Netrb.framework/Netrb" \
"$FRAMEWORKS/VideoToolbox.framework/VideoToolbox" \
+ "$FRAMEWORKS/VideoToolboxParavirtualizationSupport.framework/VideoToolboxParavirtualizationSupport" \
"$FRAMEWORKS/MetalSerializer.framework/MetalSerializer" \
"$FRAMEWORKS/MetalCompat.dylib" \
"$FRAMEWORKS/LaunchServicesCompat.dylib" \
@@ -33,6 +44,160 @@ for binary in \
[[ -f "$binary" ]] || die "missing runtime file: ${binary#"$STAGE/"}"
done
+for variant in \
+ "$VMM_IPADOS14" \
+ "$VMM_IPADOS15" \
+ "$VMM_IPADOS16" \
+ "$INSTALL_EXECUTABLE.ipados14" \
+ "$INSTALL_EXECUTABLE.ipados15" \
+ "$INSTALL_EXECUTABLE.ipados15-auth" \
+ "$INSTALL_EXECUTABLE.ipados16" \
+ "$INSTALL_FRAMEWORKS/InstallationCompat.dylib.ipados14" \
+ "$INSTALL_FRAMEWORKS/InstallationCompat.dylib.ipados15" \
+ "$INSTALL_FRAMEWORKS/InstallationCompat.dylib.ipados16" \
+ "$INSTALL_FRAMEWORKS/MobileDevice.framework/Versions/A/MobileDevice.ipados14" \
+ "$INSTALL_FRAMEWORKS/MobileDevice.framework/Versions/A/MobileDevice.ipados15" \
+ "$INSTALL_FRAMEWORKS/MobileDevice.framework/Versions/A/MobileDevice.ipados15-auth" \
+ "$INSTALL_FRAMEWORKS/MobileDevice.framework/Versions/A/MobileDevice.ipados16"; do
+ [[ -f "$variant" ]] || die "missing installation host variant: ${variant#"$STAGE/"}"
+ [[ ! -L "$variant" ]] ||
+ die "host variant must be an independent file: ${variant#"$STAGE/"}"
+done
+
+ROOTFUL_PRIVATE="$STAGE/var/root/VirtualMac/rootful"
+ROOTFUL_BOOTSTRAP="$STAGE/var/root/VirtualMac/bootstrap-rootful"
+COMMON_BOOTSTRAP="$STAGE/var/root/VirtualMac/bootstrap-common"
+[[ -f "$ROOTFUL_BOOTSTRAP/usr/libexec/VirtualMac/bootpd" ]] ||
+ die "missing private matching iPadOS 14 bootpd"
+[[ -f "$ROOTFUL_PRIVATE/Library/LaunchDaemons/com.apple.bootpd.plist" ]] ||
+ die "missing private iPadOS 14 bootpd job"
+[[ -f "$ROOTFUL_PRIVATE/Library/LaunchDaemons/vzi.apple.bootpd-controller.plist" ]] ||
+ die "missing iPadOS 14 private DHCP controller job"
+[[ -x "$ROOTFUL_BOOTSTRAP/usr/libexec/VirtualMac/bootpd-controller.sh" ]] ||
+ die "missing iPadOS 14 private DHCP controller"
+for duplicate in \
+ "$ROOTFUL_BOOTSTRAP/Applications/VirtualMac.app" \
+ "$ROOTFUL_BOOTSTRAP/usr/bin/virtualmac-diagnostics" \
+ "$ROOTFUL_BOOTSTRAP/usr/lib/TweakInject/VZKeyboardPassthrough.dylib" \
+ "$ROOTFUL_BOOTSTRAP/usr/lib/VirtualMac/libmrc.dylib" \
+ "$ROOTFUL_BOOTSTRAP/usr/sbin/VirtualMac/rtadvd"; do
+ [[ ! -e "$duplicate" ]] ||
+ die "rootful bootstrap duplicates universal payload: ${duplicate#"$STAGE/"}"
+done
+[[ "$(plutil -extract Label raw \
+ "$ROOTFUL_PRIVATE/Library/LaunchDaemons/com.apple.bootpd.plist")" == \
+ vzi.apple.bootpd ]] || die "iPadOS 14 bootpd must use a private label"
+[[ "$(plutil -extract Program raw \
+ "$ROOTFUL_PRIVATE/Library/LaunchDaemons/com.apple.bootpd.plist")" == \
+ /usr/libexec/VirtualMac/bootpd ]] ||
+ die "iPadOS 14 bootpd must use a private path"
+[[ "$(plutil -extract Disabled raw \
+ "$ROOTFUL_PRIVATE/Library/LaunchDaemons/com.apple.bootpd.plist")" == \
+ true ]] || die "iPadOS 14 bootpd must install disabled until configured"
+for forbidden in \
+ "$STAGE/usr/libexec/bootpd" \
+ "$STAGE/var/root/VirtualMac/bootstrap-rootful/usr/libexec/bootpd" \
+ "$STAGE/var/root/VirtualMac/bootstrap-rootful/Library/LaunchDaemons/com.apple.bootpd.plist"; do
+ [[ ! -e "$forbidden" ]] ||
+ die "package must not stage an Apple system-path replacement: $forbidden"
+done
+
+for variant in \
+ "$STAGE/var/jb/usr/libexec/InternetSharing.ipados14" \
+ "$STAGE/var/jb/usr/libexec/InternetSharing.ipados15" \
+ "$STAGE/var/jb/usr/libexec/InternetSharing.ipados16" \
+ "$STAGE/var/jb/usr/lib/IOKit14Compat.dylib"; do
+ [[ -f "$variant" ]] || die "missing network host variant: ${variant#"$STAGE/"}"
+ [[ ! -L "$variant" ]] ||
+ die "network host variant must be an independent file: ${variant#"$STAGE/"}"
+done
+[[ -f "$STAGE/var/jb/usr/lib/libmrc.ipados15-auth.dylib" ]] ||
+ die "missing authenticated iPadOS 15 libmrc variant"
+
+for name in Hypervisor ParavirtualizedGraphics Virtualization MetalSerializer \
+ VideoToolbox DiskImages2; do
+ [[ -f "$PAYLOAD/Compatibility/iPadOS14/$name" ]] ||
+ die "missing iPadOS 14 framework variant: $name"
+ [[ ! -L "$PAYLOAD/Compatibility/iPadOS14/$name" ]] ||
+ die "iPadOS 14 framework variant must be an independent file: $name"
+ [[ -f "$PAYLOAD/Compatibility/iPadOS15/$name" ]] ||
+ die "missing iPadOS 15 framework variant: $name"
+ [[ ! -L "$PAYLOAD/Compatibility/iPadOS15/$name" ]] ||
+ die "iPadOS 15 framework variant must be an independent file: $name"
+ [[ -f "$PAYLOAD/Compatibility/iPadOS15Authenticated/$name" ]] ||
+ die "missing authenticated iPadOS 15 framework variant: $name"
+ [[ ! -L "$PAYLOAD/Compatibility/iPadOS15Authenticated/$name" ]] ||
+ die "authenticated iPadOS 15 framework variant must be an independent file: $name"
+done
+[[ -f "$PAYLOAD/Compatibility/iPadOS14/HypervisorBigSur" ]] ||
+ die "missing iPadOS 14 Big Sur Hypervisor implementation"
+[[ -f "$PAYLOAD/Compatibility/iPadOS14/LibSystemCompat.dylib" ]] ||
+ die "missing iPadOS 14 libSystem compatibility variant"
+[[ -f "$FRAMEWORKS/LibCxx.dylib" ]] ||
+ die "missing iPadOS 14 Ventura libc++ compatibility variant"
+[[ -f "$FRAMEWORKS/ParavirtualizedGraphics.framework/Resources/default.ipados14.metallib" ]] ||
+ die "missing iPadOS 14 Metal library"
+
+# Compatibility artifacts may coexist in the package, but the established
+# iPadOS 16 executable must remain byte-for-byte equal to the normal staged
+# executable and must retain system dependencies. Only the postinst-selected
+# iPadOS 15 VMM may reference the bundled legacy shims.
+cmp -s "$VMM" "$VMM_IPADOS16" ||
+ die "normal VMM differs from its preserved iPadOS 16 variant"
+for dependency in \
+ '@loader_path/../../../Frameworks/DiskImages2.framework/DiskImages2' \
+ '@loader_path/../../../Frameworks/LibSystem15Compat.dylib' \
+ '@loader_path/../../../Frameworks/IOKit15Compat.dylib'; do
+ otool -L "$VMM_IPADOS16" | grep -Fq "$dependency" &&
+ die "iPadOS 15 compatibility dependency leaked into iPadOS 16 VMM: $dependency"
+ otool -L "$VMM_IPADOS15" | grep -Fq "$dependency" ||
+ die "iPadOS 15 VMM is missing compatibility dependency: $dependency"
+done
+
+# VideoToolbox is deliberately three-way isolated. iPadOS 16 retains the
+# system support-framework dependency. The 15.x compatibility image uses the
+# bundled support framework, while only 14.x receives a private dylib identity
+# to prevent old dyld from coalescing it with iPadOS's VideoToolbox.
+system_vt_support='/System/Library/PrivateFrameworks/VideoToolboxParavirtualizationSupport.framework/VideoToolboxParavirtualizationSupport'
+bundled_vt_support='@loader_path/../VideoToolboxParavirtualizationSupport.framework/VideoToolboxParavirtualizationSupport'
+otool -L "$VIDEO_TOOLBOX" | grep -Fq "$system_vt_support" ||
+ die "iPadOS 16 VideoToolbox no longer uses its proven system support framework"
+otool -L "$VIDEO_TOOLBOX" | grep -Fq "$bundled_vt_support" &&
+ die "legacy VideoToolbox dependency leaked into iPadOS 16"
+for legacy_vt in "$VIDEO_TOOLBOX15" "$VIDEO_TOOLBOX14"; do
+ otool -L "$legacy_vt" | grep -Fq "$bundled_vt_support" ||
+ die "legacy VideoToolbox is missing bundled support dependency: $legacy_vt"
+done
+otool -D "$VIDEO_TOOLBOX15" | grep -Fq \
+ '/System/Library/Frameworks/VideoToolbox.framework/VideoToolbox' ||
+ die "iPadOS 15 VideoToolbox identity was unexpectedly changed"
+otool -D "$VIDEO_TOOLBOX14" | grep -Fq '@rpath/VirtualMacVideoToolbox' ||
+ die "iPadOS 14 VideoToolbox is missing its private dyld identity"
+# Our Hypervisor adaptation is runtime-selected from the common hook. Only the
+# iPadOS 14 vmnet checksum adapter remains a separately compiled hot path.
+HOOK="$FRAMEWORKS/LaunchServicesCompat.dylib"
+HOOK14="$FRAMEWORKS/LaunchServicesCompat.dylib.ipados14"
+[[ ! -e "$FRAMEWORKS/LaunchServicesCompat.dylib.ipados15" ]] ||
+ die "redundant iPadOS 15 VMM hook variant is still packaged"
+nm -u "$HOOK" | grep -Eq '(_vmnet_write|_vmnet_start_interface)$' &&
+ die "iPadOS 14 vmnet interposition leaked into the iPadOS 15/16 hook"
+nm -u "$HOOK14" | grep -Eq '(_vmnet_write|_vmnet_start_interface)$' ||
+ die "iPadOS 14 hook is missing its private vmnet interposition"
+nm -u "$HOOK" | grep -Eq '_hv_vm_config_set_ipa_size$' ||
+ die "common hook is missing runtime Hypervisor adaptation"
+nm -u "$HOOK14" | grep -Eq '_hv_vm_config_set_ipa_size$' ||
+ die "iPadOS 14 hook is missing runtime Hypervisor adaptation"
+for dependency in \
+ '@loader_path/../../../Frameworks/LibSystem14' \
+ '@loader_path/../../../Frameworks/LibCxx.dylib'; do
+ otool -L "$VMM_IPADOS14" | grep -Fq "$dependency" ||
+ die "iPadOS 14 VMM is missing compatibility dependency: $dependency"
+ otool -L "$VMM_IPADOS15" | grep -Fq "$dependency" &&
+ die "iPadOS 14 dependency leaked into iPadOS 15 VMM: $dependency"
+ otool -L "$VMM_IPADOS16" | grep -Fq "$dependency" &&
+ die "iPadOS 14 dependency leaked into iPadOS 16 VMM: $dependency"
+done
+
[[ ! -e "$PAYLOAD/VirtualMachine.xpc/Contents/Frameworks" ]] ||
die "VirtualMachine.xpc contains a second framework tree"
[[ ! -e "$PAYLOAD/AVPBooter.vmapple2.bin" ]] ||
@@ -48,6 +213,16 @@ for development_file in \
die "development-only file was packaged: ${development_file#"$STAGE/"}"
done
+[[ ! -e "$STAGE/var/jb/Library/MobileSubstrate" ]] ||
+ die "package must not duplicate ElleKit's MobileSubstrate compatibility path"
+for extension in dylib plist; do
+ tweak_path="$COMMON_BOOTSTRAP/usr/lib/TweakInject/VZKeyboardPassthrough.$extension"
+ [[ -f "$tweak_path" && ! -L "$tweak_path" ]] ||
+ die "SpringBoard tweak is missing from its upgrade-safe staging path"
+done
+[[ ! -e "$STAGE/var/jb/usr/lib/TweakInject/VZKeyboardPassthrough.dylib" ]] ||
+ die "SpringBoard tweak must be installed by postinst after legacy cleanup"
+
metadata="$(find "$STAGE" -type f \( -name .DS_Store -o -name '._*' \) -print -quit)"
[[ -z "$metadata" ]] || die "host metadata was packaged: ${metadata#"$STAGE/"}"
extended_attribute="$(xattr -lr "$STAGE" 2>/dev/null | head -1)"
diff --git a/VirtualMac/scripts/audit-ipados-compatibility.sh b/VirtualMac/scripts/audit-ipados-compatibility.sh
index 33dadd9..2bce157 100755
--- a/VirtualMac/scripts/audit-ipados-compatibility.sh
+++ b/VirtualMac/scripts/audit-ipados-compatibility.sh
@@ -2,7 +2,7 @@
# Reject a payload that accidentally picked up a macOS platform stamp, an SDK
# deployment target newer than the supported range, or a strong import absent
-# from the oldest iPadOS 16 shared cache.
+# from the selected oldest iPadOS shared cache.
set -euo pipefail
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
@@ -35,24 +35,57 @@ for root in "${roots[@]}"; do
in_build && /platform/ { platform=$2 }
in_build && /minos/ { minos=$2; print platform " " minos; exit }
')"
- [[ "$build_version" == "2 16.0" ]] ||
+ [[ "$build_version" == "2 $VZ_IPADOS_MIN_VERSION" ]] ||
die "unsupported platform/minimum OS ($build_version): $candidate"
checked=$((checked + 1))
done < <(find "$root" -type f -print0)
done
(( checked > 0 )) || die "no built iPad Mach-O files found"
-echo "iPadOS 16.0 deployment stamps verified: $checked Mach-O files"
-
-compat_dsc="${VZ_IPADOS_COMPAT_DSC:-$VZ_BUILD_ROOT/compat/ipados-16.1/20B82__iPad14,3_4_5_6/dyld_shared_cache_arm64e}"
-if [[ -f "$compat_dsc" ]]; then
- need_command dyld_info
- ipsw_tool="$VZ_BUILD_ROOT/toolchain/bin/ipsw-a2sb"
- need_file "$ipsw_tool"
- VZ_IPSW_TOOL="$ipsw_tool" python3 "$SCRIPT_DIR/audit-ipados-dsc.py" \
- "$compat_dsc" "$VZ_BUILD_ROOT/compat/ipados-16.1" "${roots[@]}"
-elif [[ "${VZ_REQUIRE_IPADOS_COMPAT_DSC:-0}" == 1 ]]; then
- die "oldest-host cache missing; run scripts/fetch-ipados-compat-cache.sh"
-else
- echo "note: oldest-host ABI audit skipped; run scripts/fetch-ipados-compat-cache.sh"
-fi
+echo "iPadOS $VZ_IPADOS_MIN_VERSION deployment stamps verified: $checked Mach-O files"
+
+read -r -a host_versions <<< \
+ "${VZ_AUDIT_HOST_VERSIONS:-$VZ_IPADOS_MIN_VERSION}"
+(( ${#host_versions[@]} > 0 )) || die "no iPadOS host versions selected"
+
+need_command dyld_info
+ipsw_tool="$VZ_BUILD_ROOT/toolchain/bin/ipsw-a2sb"
+need_file "$ipsw_tool"
+
+for host_version in "${host_versions[@]}"; do
+ case "$host_version" in
+ 14.5) host_major=14; build=18E199 ;;
+ 15.0) host_major=15; build=19A346 ;;
+ 15.7) host_major=15; build=19H12 ;;
+ 16.1) host_major=16; build=20B82 ;;
+ 16.3.1) host_major=16; build=20D67 ;;
+ *) die "unsupported ABI-audit host version: $host_version" ;;
+ esac
+ compat_output="$VZ_BUILD_ROOT/compat/ipados-$host_version"
+ default_compat="$(find "$compat_output" -type f \
+ -path "*/${build}__*/dyld_shared_cache_arm64e" -print -quit \
+ 2>/dev/null || true)"
+ # prepare-inputs already extracts the optional 16.3.1 cache for kernel
+ # and ABI analysis. Reuse it instead of storing a second multi-gigabyte
+ # copy under compat/.
+ if [[ -z "$default_compat" && "$host_version" == 16.3.1 ]]; then
+ default_compat="$(find "$VZ_BUILD_ROOT/inputs/ipados" -type f \
+ -path "*/${build}__*/dyld_shared_cache_arm64e" -print -quit \
+ 2>/dev/null || true)"
+ fi
+ compat_dsc="$default_compat"
+ if (( ${#host_versions[@]} == 1 )) && \
+ [[ -n "${VZ_IPADOS_COMPAT_DSC:-}" ]]; then
+ compat_dsc="$VZ_IPADOS_COMPAT_DSC"
+ fi
+ if [[ -f "$compat_dsc" ]]; then
+ VZ_IPSW_TOOL="$ipsw_tool" python3 \
+ "$SCRIPT_DIR/audit-ipados-dsc.py" \
+ --host-major "$host_major" \
+ "$compat_dsc" "$compat_output" "${roots[@]}"
+ elif [[ "${VZ_REQUIRE_IPADOS_COMPAT_DSC:-0}" == 1 ]]; then
+ die "iPadOS $host_version cache missing; run fetch-ipados-compat-cache.sh --version $host_version"
+ else
+ echo "note: iPadOS $host_version ABI audit skipped; run fetch-ipados-compat-cache.sh --version $host_version"
+ fi
+done
diff --git a/VirtualMac/scripts/audit-ipados-dsc.py b/VirtualMac/scripts/audit-ipados-dsc.py
index fbb6556..0752ce6 100755
--- a/VirtualMac/scripts/audit-ipados-dsc.py
+++ b/VirtualMac/scripts/audit-ipados-dsc.py
@@ -51,6 +51,8 @@ class SharedCache:
self.tbd_root = work_path / "tbd"
self.tbd_root.mkdir(parents=True, exist_ok=True)
self.parsed_tbds: dict[Path, tuple[set[str], list[str]]] = {}
+ self.parsed_macho_symbols: dict[str, set[str]] = {}
+ self.parsed_macho_reexports: dict[str, list[str]] = {}
listing = command_output(
IPSW_TOOL, "dyld", "info", "-l", "--no-color", str(cache_path)
@@ -129,24 +131,92 @@ class SharedCache:
tbd = self.ensure_tbd(install_name)
if tbd is None:
- return False
+ # Some older shared caches contain Objective-C relative method
+ # metadata that the current ipsw TBD generator cannot traverse.
+ # Its Mach-O symbol command still reads the image's export/symbol
+ # tables correctly. Use that as an exact fallback instead of
+ # reporting foundational classes such as NSString as absent.
+ actual_name = self.actual_install_name(install_name)
+ if actual_name is None:
+ return False
+ if actual_name not in self.parsed_macho_symbols:
+ listing = command_output(
+ IPSW_TOOL, "dyld", "macho", "--no-color", "--symbols",
+ str(self.path), actual_name,
+ )
+ exported: set[str] = set()
+ for line in listing.splitlines():
+ if not re.match(r"^0x[0-9A-Fa-f]+:", line) or not re.search(
+ r"\bexternal\b", line
+ ):
+ continue
+ match = re.search(r"\t(\S+)\s*$", line)
+ if match:
+ exported.add(match.group(1))
+ self.parsed_macho_symbols[actual_name] = exported
+ loads = command_output(
+ IPSW_TOOL, "dyld", "macho", "--no-color", "--loads",
+ str(self.path), actual_name,
+ )
+ self.parsed_macho_reexports[actual_name] = re.findall(
+ r"LC_REEXPORT_DYLIB\s+(/\S+)", loads
+ )
+ if symbol in self.parsed_macho_symbols[actual_name]:
+ return True
+ return any(
+ self.exports_symbol(item, symbol, visited)
+ for item in self.parsed_macho_reexports[actual_name]
+ )
exports, reexports = self.parse_tbd(tbd)
if symbol in exports:
return True
return any(self.exports_symbol(item, symbol, visited) for item in reexports)
-def find_machos(roots: list[Path]) -> list[Path]:
+def find_machos(roots: list[Path], host_major: int) -> list[Path]:
binaries: list[Path] = []
for root in roots:
if not root.is_dir():
continue
for directory, _, filenames in os.walk(root, followlinks=False):
+ compatibility_match = re.search(
+ r"(?:^|/)Compatibility/iPadOS(\d+)(?:Authenticated)?(?:/|$)",
+ directory,
+ )
+ if (
+ compatibility_match
+ and int(compatibility_match.group(1)) != host_major
+ ):
+ continue
for filename in filenames:
candidate = Path(directory) / filename
+ # The universal package uses this restamped Ventura helper
+ # only on rootless iPadOS 15/16. Taurine/iPadOS 14 instead
+ # packages its matching native implementation under the
+ # private /var/root/VirtualMac/rootful runtime.
+ if (
+ host_major == 14
+ and candidate.name == "bootpd"
+ and candidate.parent.name == "ipad-network-helpers"
+ ):
+ continue
# Build-only macOS inputs; their restamped siblings are audited.
if candidate.name.endswith(".macos"):
continue
+ # Multi-version payloads retain one image per host ABI.
+ # Audit only the image postinst selects for this host, and
+ # skip the build-time unsuffixed copy when that exact sibling
+ # exists.
+ variant_match = re.search(
+ r"\.ipados(\d+)(?:-auth)?$", candidate.name
+ )
+ if variant_match and int(variant_match.group(1)) != host_major:
+ continue
+ if not variant_match and (
+ candidate.parent
+ / (candidate.name + f".ipados{host_major}")
+ ).is_file():
+ continue
if candidate.is_symlink():
continue
if "Mach-O" in command_output("file", str(candidate)):
@@ -179,13 +249,17 @@ def imports(binary: Path):
def main() -> int:
parser = argparse.ArgumentParser()
+ parser.add_argument(
+ "--host-major", type=int, choices=(14, 15, 16), default=15,
+ help="select the payload variants installed on this iPadOS major",
+ )
parser.add_argument("cache", type=Path)
parser.add_argument("work", type=Path)
parser.add_argument("roots", nargs="+", type=Path)
args = parser.parse_args()
cache = SharedCache(args.cache, args.work)
- binaries = find_machos(args.roots)
+ binaries = find_machos(args.roots, args.host_major)
if not binaries:
raise RuntimeError("no Mach-O files found for shared-cache audit")
@@ -257,7 +331,7 @@ def main() -> int:
return 1
print(
- "oldest-host ABI verified: "
+ f"iPadOS {args.host_major} host ABI verified: "
f"{len(binaries)} Mach-O files, {audited_imports} system imports; "
f"{weak_missing_dependencies} absent weak dylibs and "
f"{weak_missing_imports} absent weak imports tolerated"
diff --git a/VirtualMac/scripts/bootstrap.sh b/VirtualMac/scripts/bootstrap.sh
index 51c1086..51da50a 100755
--- a/VirtualMac/scripts/bootstrap.sh
+++ b/VirtualMac/scripts/bootstrap.sh
@@ -18,7 +18,16 @@ install_formula() {
fi
}
-install_formula ldid
+if ! command -v ldid >/dev/null 2>&1 ||
+ ! brew list --versions ldid-procursus >/dev/null 2>&1; then
+ # Saurik's older Homebrew formula emits a dual-CodeDirectory signature
+ # that Taurine/iPadOS 14 rejects for loaded arm64e dylibs. Use the same
+ # Procursus signer shipped on the jailbreak instead.
+ if brew list --versions ldid >/dev/null 2>&1; then
+ brew uninstall ldid
+ fi
+ brew install ldid-procursus
+fi
install_formula libimobiledevice idevice_id
install_formula go
if ! command -v sshpass >/dev/null 2>&1; then
diff --git a/VirtualMac/scripts/build-frameworks.sh b/VirtualMac/scripts/build-frameworks.sh
index 8a626ce..f8da45a 100755
--- a/VirtualMac/scripts/build-frameworks.sh
+++ b/VirtualMac/scripts/build-frameworks.sh
@@ -54,7 +54,8 @@ for spec in "${images[@]}"; do
VZ_IPSW="$IPSW" VZ_WEAKEN="MetalSerializer,vmnet" \
"$PYTHON" "$VZ_REPO_ROOT/vz/uncache.py" \
"$DSC" "$image" "$raw" "$proto" compact
- "$PYTHON" "$VZ_REPO_ROOT/vz/stamp_ios.py" "$proto" "$ios" 16.0
+ "$PYTHON" "$VZ_REPO_ROOT/vz/stamp_ios.py" "$proto" "$ios" \
+ "$VZ_IPADOS_MIN_VERSION"
chmod 755 "$mac" "$ios"
for output in "$mac" "$ios"; do
@@ -119,7 +120,8 @@ VZ_IPSW="$IPSW" \
"$DSC" "$metal_serializer_image" "$metal_serializer_raw" \
"$metal_serializer_proto" compact
"$PYTHON" "$VZ_REPO_ROOT/vz/stamp_ios.py" \
- "$metal_serializer_proto" "$metal_serializer_ios" 16.0
+ "$metal_serializer_proto" "$metal_serializer_ios" \
+ "$VZ_IPADOS_MIN_VERSION"
chmod 755 "$metal_serializer_ios"
uuid="$(dwarfdump --uuid "$metal_serializer_ios" | awk '{print $2}')"
[[ "$uuid" == "$metal_serializer_uuid" ]] ||
diff --git a/VirtualMac/scripts/build-ipad-app.sh b/VirtualMac/scripts/build-ipad-app.sh
index 19a0d9b..fecce0a 100755
--- a/VirtualMac/scripts/build-ipad-app.sh
+++ b/VirtualMac/scripts/build-ipad-app.sh
@@ -10,30 +10,64 @@ OUT="$VZ_BUILD_ROOT/ipad-app"
APP="$OUT/VirtualMac.app"
BIN="$APP/VirtualMac"
HOOK="$APP/VZHostCompat.dylib"
+DIAGNOSTICS="$OUT/virtualmac-diagnostics"
ENTS="$VZ_REPO_ROOT/vz/host/VirtualMac.entitlements"
need_command ldid
+need_command plutil
need_command sips
need_command xattr
need_command xcrun
need_file "$VZ_REPO_ROOT/vz/host/VirtualMac-Info.plist"
need_file "$VZ_REPO_ROOT/vz/host/VirtualMacLaunchScreen.storyboard"
need_file "$VZ_REPO_ROOT/assets/VirtualMac.png"
+need_file "$VZ_REPO_ROOT/assets/VirtualMacTemplate.png"
+for installer_icon in monterey ventura sonoma sequoia tahoe golden-gate ipsw; do
+ need_file "$VZ_REPO_ROOT/assets/installers/$installer_icon.png"
+done
need_file "$VZ_REPO_ROOT/vz/host/NSViewShim.m"
need_file "$VZ_REPO_ROOT/vz/host/VZAppSettings.m"
+need_file "$VZ_REPO_ROOT/vz/host/VZDiagnostics.m"
+need_file "$VZ_REPO_ROOT/vz/host/VZFailureDetailsViewController.m"
need_file "$VZ_REPO_ROOT/vz/host/VZRestoreCatalog.m"
+need_file "$VZ_REPO_ROOT/vz/host/VZSupport.m"
+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/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"
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"
+sips -Z 320 "$VZ_REPO_ROOT/assets/VirtualMacTemplate.png" \
+ --out "$APP/VirtualMacTemplate.png" >/dev/null
+APP_VERSION="${VZ_RELEASE_VERSION:-1.1}"
+APP_BUILD="$(git -C "$VZ_REPO_ROOT" rev-list --count HEAD)"
+plutil -replace CFBundleShortVersionString -string "$APP_VERSION" \
+ "$APP/Info.plist"
+plutil -replace CFBundleVersion -string "$APP_BUILD" "$APP/Info.plist"
+plutil -replace MinimumOSVersion -string "$VZ_IPADOS_MIN_VERSION" \
+ "$APP/Info.plist"
cp "$VZ_REPO_ROOT/vendor/VirtualBuddy/ipsws_v2.json" "$APP/ipsws_v2.json"
+if [[ -d "$VZ_REPO_ROOT/resources/Localizations" ]]; then
+ cp -R "$VZ_REPO_ROOT/resources/Localizations/"*.lproj "$APP/"
+fi
+if [[ -d "$VZ_REPO_ROOT/assets/developers" ]]; then
+ mkdir -p "$APP/Developers"
+ cp "$VZ_REPO_ROOT/assets/developers/"* "$APP/Developers/"
+fi
+if [[ -d "$VZ_REPO_ROOT/assets/installers" ]]; then
+ mkdir -p "$APP/Installers"
+ for installer_icon in monterey ventura sonoma sequoia tahoe golden-gate ipsw; do
+ cp "$VZ_REPO_ROOT/assets/installers/$installer_icon.png" "$APP/Installers/"
+ done
+fi
if [[ -d "$VZ_REPO_ROOT/assets/wallpapers" ]]; then
mkdir -p "$APP/Wallpapers"
cp "$VZ_REPO_ROOT/assets/wallpapers"/*.jpg "$APP/Wallpapers/"
@@ -41,7 +75,8 @@ if [[ -d "$VZ_REPO_ROOT/assets/wallpapers" ]]; then
fi
xcrun ibtool --compile "$APP/VirtualMacLaunchScreen.storyboardc" \
"$VZ_REPO_ROOT/vz/host/VirtualMacLaunchScreen.storyboard" \
- --target-device ipad --minimum-deployment-target 16.0 >/dev/null
+ --target-device ipad \
+ --minimum-deployment-target "$VZ_IPADOS_MIN_VERSION" >/dev/null
# Generate the exact legacy icon filenames consumed by iPadOS 16. The checked
# in 1024-pixel RGB master has no alpha channel, as required for app icons.
@@ -57,14 +92,17 @@ for spec in \
done
xcrun --sdk iphoneos clang \
- -arch arm64 -miphoneos-version-min=16.0 -isysroot "$SDK" -fblocks \
- -framework AVFAudio -framework Foundation -framework GameController \
- -framework UIKit \
+ -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 UniformTypeIdentifiers \
-Wl,-export_dynamic -Wl,-undefined,dynamic_lookup \
"$VZ_REPO_ROOT/vz/host/NSViewShim.m" \
"$VZ_REPO_ROOT/vz/host/VZAppSettings.m" \
+ "$VZ_REPO_ROOT/vz/host/VZDiagnostics.m" \
+ "$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/VZNewVMViewController.m" \
"$VZ_REPO_ROOT/vz/host/VZProgressViewController.m" \
"$VZ_REPO_ROOT/vz/host/VZSettingsViewController.m" \
@@ -72,13 +110,21 @@ xcrun --sdk iphoneos clang \
"$VZ_REPO_ROOT/vz/host/VirtualMacApp.m" \
-o "$BIN"
xcrun --sdk iphoneos clang \
- -arch arm64e -miphoneos-version-min=16.0 -isysroot "$SDK" \
+ -arch arm64e -miphoneos-version-min="$VZ_IPADOS_MIN_VERSION" -isysroot "$SDK" \
-dynamiclib -fblocks -Wl,-undefined,dynamic_lookup \
-install_name "@executable_path/VZHostCompat.dylib" \
"$VZ_REPO_ROOT/vz/host/vzxpchook.m" \
-o "$HOOK"
+xcrun --sdk iphoneos clang \
+ -arch arm64 -miphoneos-version-min="$VZ_IPADOS_MIN_VERSION" -isysroot "$SDK" -fblocks \
+ -framework Foundation \
+ "$VZ_REPO_ROOT/vz/host/VZAppSettings.m" \
+ "$VZ_REPO_ROOT/vz/host/VZDiagnostics.m" \
+ "$VZ_REPO_ROOT/vz/host/virtualmac_diagnostics_main.m" \
+ -o "$DIAGNOSTICS"
xattr -cr "$APP"
-ldid -S"$ENTS" "$BIN"
+ldid -Icom.mac.virtual -S"$ENTS" "$BIN"
ldid -S"$ENTS" "$HOOK"
+ldid -S "$DIAGNOSTICS"
echo "native iPad VM app built: $APP"
diff --git a/VirtualMac/scripts/build-ipad-deb.sh b/VirtualMac/scripts/build-ipad-deb.sh
index d2f4e05..2d72b56 100755
--- a/VirtualMac/scripts/build-ipad-deb.sh
+++ b/VirtualMac/scripts/build-ipad-deb.sh
@@ -8,7 +8,10 @@ source "$SCRIPT_DIR/lib/common.sh"
need_command ditto
need_command dpkg-deb
need_command file
+need_command codesign
+need_command install_name_tool
need_command ldid
+need_command plutil
need_command rsync
need_command xattr
@@ -24,13 +27,18 @@ fi
commit_count="$(git -C "$VZ_REPO_ROOT" rev-list --count HEAD)"
commit_hash="$(git -C "$VZ_REPO_ROOT" rev-parse --short=10 HEAD)"
-RELEASE_VERSION="${VZ_RELEASE_VERSION:-1.0}"
+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}"
if [[ -n "${VZ_PACKAGE_VERSION:-}" ]]; then
VERSION="$VZ_PACKAGE_VERSION"
else
- # Epoch 1 supersedes the early hash-only development packages. Commit
- # count supplies monotonic Debian ordering; the hash keeps provenance.
- VERSION="1:${RELEASE_VERSION}+git${commit_count}.${commit_hash}"
+ # Epoch 2 supersedes both the early hash-only packages and the previously
+ # published `+git` version scheme. Commit count supplies monotonic Debian
+ # ordering; the hash keeps provenance without adding a redundant marker.
+ VERSION="2:${RELEASE_VERSION}+${commit_count}.${commit_hash}"
fi
PACKAGE_NAME="VirtualMac_${RELEASE_VERSION}_${commit_hash}.deb"
RELEASE="$VZ_BUILD_ROOT/release"
@@ -49,22 +57,28 @@ mkdir -p \
"$STAGE/var/jb/Applications" \
"$STAGE/var/jb/Library/LaunchDaemons" \
"$STAGE/var/jb/basebin/LaunchDaemons" \
- "$STAGE/var/jb/Library/MobileSubstrate/DynamicLibraries" \
- "$STAGE/var/jb/usr/lib/TweakInject" \
"$STAGE/var/jb/usr/lib" \
"$STAGE/var/jb/usr/libexec" \
+ "$STAGE/var/jb/usr/bin" \
"$STAGE/var/jb/usr/sbin" \
"$STAGE/var/jb/usr/share/VirtualMac" \
+ "$STAGE/var/root/VirtualMac/bootstrap-common/usr/lib/TweakInject" \
"$RELEASE"
-ditto "$VZ_BUILD_ROOT/ipad-vm/payload" \
- "$STAGE/var/root/VirtualMac/payload"
ditto "$VZ_BUILD_ROOT/ipad-installation/payload" \
"$STAGE/var/root/VirtualMac/payload"
+# The installation build consumes the VM compatibility dylib, so its cached
+# payload may lag during a fast VM-only iteration. Overlay the authoritative
+# VM runtime last; both services intentionally use this one shared framework
+# tree in the final package.
+ditto "$VZ_BUILD_ROOT/ipad-vm/payload" \
+ "$STAGE/var/root/VirtualMac/payload"
ditto "$VZ_BUILD_ROOT/ipad-installation/install" \
"$STAGE/var/root/VirtualMac/install"
ditto "$VZ_BUILD_ROOT/ipad-app/VirtualMac.app" \
"$STAGE/var/jb/Applications/VirtualMac.app"
+install -m 755 "$VZ_BUILD_ROOT/ipad-app/virtualmac-diagnostics" \
+ "$STAGE/var/jb/usr/bin/virtualmac-diagnostics"
# The component builds retain command-line probes for developer iteration.
# They are not used by the app and do not belong in the end-user package.
@@ -76,6 +90,20 @@ rm -f \
install -m 755 "$VZ_BUILD_ROOT/ipad-network-sharing/InternetSharing" \
"$STAGE/var/jb/usr/libexec/InternetSharing"
+install -m 755 "$VZ_BUILD_ROOT/ipad-network-sharing/InternetSharing.ipados14" \
+ "$STAGE/var/jb/usr/libexec/InternetSharing.ipados14"
+install -m 755 "$VZ_BUILD_ROOT/ipad-network-sharing/InternetSharing.ipados15" \
+ "$STAGE/var/jb/usr/libexec/InternetSharing.ipados15"
+install -m 755 "$VZ_BUILD_ROOT/ipad-network-sharing/InternetSharing.ipados16" \
+ "$STAGE/var/jb/usr/libexec/InternetSharing.ipados16"
+# Keep every host-selected image at its explicit versioned path, even when a
+# pair is currently byte-identical. This makes post-install selection
+# auditable and prevents an iPadOS 14/16 installation from implicitly relying
+# on a file named for iPadOS 15.
+install -m 755 "$VZ_BUILD_ROOT/ipad-network-sharing/libmrc.dylib" \
+ "$STAGE/var/jb/usr/lib/libmrc.dylib"
+install -m 755 "$VZ_BUILD_ROOT/ipad-network-sharing/libmrc.ipados15-auth.dylib" \
+ "$STAGE/var/jb/usr/lib/libmrc.ipados15-auth.dylib"
install -m 755 "$VZ_BUILD_ROOT/ipad-network-sharing/AuthorizationCompat.dylib" \
"$STAGE/var/jb/usr/lib/AuthorizationCompat.dylib"
install -m 755 "$VZ_BUILD_ROOT/ipad-network-helpers/bootpd" \
@@ -84,6 +112,8 @@ install -m 755 "$VZ_BUILD_ROOT/ipad-network-helpers/rtadvd" \
"$STAGE/var/jb/usr/sbin/rtadvd"
install -m 755 "$VZ_BUILD_ROOT/ipad-network-helpers/OpenDirectoryCompat.dylib" \
"$STAGE/var/jb/usr/lib/OpenDirectoryCompat.dylib"
+install -m 755 "$VZ_BUILD_ROOT/ipad-network-helpers/IOKit14Compat.dylib" \
+ "$STAGE/var/jb/usr/lib/IOKit14Compat.dylib"
install -m 644 "$VZ_BUILD_ROOT/ipad-network-helpers/com.apple.bootpd.plist" \
"$STAGE/var/jb/Library/LaunchDaemons/com.apple.bootpd.plist"
# This is an intentional mirror, not a second runtime payload: postinst uses
@@ -97,13 +127,83 @@ for destination in \
"$destination"
done
install -m 755 "$VZ_BUILD_ROOT/ipad-tweak/VZKeyboardPassthrough.dylib" \
- "$STAGE/var/jb/Library/MobileSubstrate/DynamicLibraries/VZKeyboardPassthrough.dylib"
-install -m 644 "$VZ_BUILD_ROOT/ipad-tweak/VZKeyboardPassthrough.plist" \
- "$STAGE/var/jb/Library/MobileSubstrate/DynamicLibraries/VZKeyboardPassthrough.plist"
-install -m 755 "$VZ_BUILD_ROOT/ipad-tweak/VZKeyboardPassthrough.dylib" \
- "$STAGE/var/jb/usr/lib/TweakInject/VZKeyboardPassthrough.dylib"
+ "$STAGE/var/root/VirtualMac/bootstrap-common/usr/lib/TweakInject/VZKeyboardPassthrough.dylib"
install -m 644 "$VZ_BUILD_ROOT/ipad-tweak/VZKeyboardPassthrough.plist" \
- "$STAGE/var/jb/usr/lib/TweakInject/VZKeyboardPassthrough.plist"
+ "$STAGE/var/root/VirtualMac/bootstrap-common/usr/lib/TweakInject/VZKeyboardPassthrough.plist"
+# Releases before 1.1 owned the MobileSubstrate compatibility pathname. On
+# some bootstraps it aliases usr/lib/TweakInject, so dpkg's obsolete-file pass
+# can otherwise unlink a new canonical payload through the old name during an
+# upgrade. Keep one neutral package-owned source and let postinst install the
+# single loader copy after that pass has completed.
+
+# Taurine is rootful while Dopamine is rootless. Keep one common framework
+# runtime under /var/root. The normal /var/jb payload is also the installation
+# source for rootful copies of the app, diagnostics command, tweak, and helper
+# libraries. Only rootful binaries with different load commands or a distinct
+# iPadOS 14 implementation are staged separately below. This avoids packaging
+# a second copy of every app resource and localization.
+ROOTFUL="$STAGE/var/root/VirtualMac/bootstrap-rootful"
+ROOTFUL_HELPERS="$STAGE/var/root/VirtualMac/rootful"
+mkdir -p \
+ "$ROOTFUL/usr/libexec/VirtualMac" \
+ "$ROOTFUL_HELPERS/Library/LaunchDaemons" \
+ "$ROOTFUL_HELPERS"
+for name in InternetSharing.ipados14; do
+ install -m 755 "$VZ_BUILD_ROOT/ipad-network-sharing/$name" \
+ "$ROOTFUL/usr/libexec/VirtualMac/$name"
+ install_name_tool -change @loader_path/../lib/AuthorizationCompat.dylib \
+ /usr/lib/VirtualMac/AuthorizationCompat.dylib \
+ "$ROOTFUL/usr/libexec/VirtualMac/$name"
+ codesign --force --sign - \
+ --entitlements "$VZ_REPO_ROOT/vz/patches/internet-sharing.ents.xml" \
+ --generate-entitlement-der "$ROOTFUL/usr/libexec/VirtualMac/$name"
+done
+
+# Use the matching iPadOS 14 implementation, privately. Its package signature
+# is preflighted by Taurine; Apple's /usr/libexec/bootpd remains untouched.
+install -m 755 "$VZ_BUILD_ROOT/ipad-network-helpers/bootpd.ipados14" \
+ "$ROOTFUL/usr/libexec/VirtualMac/bootpd"
+install -m 755 "$VZ_REPO_ROOT/packaging/rootful/bootpd-controller.sh" \
+ "$ROOTFUL/usr/libexec/VirtualMac/bootpd-controller.sh"
+install -m 644 "$VZ_BUILD_ROOT/ipad-network-helpers/com.apple.bootpd.plist" \
+ "$ROOTFUL_HELPERS/Library/LaunchDaemons/com.apple.bootpd.plist"
+install -m 644 "$VZ_BUILD_ROOT/ipad-network-sharing/com.apple.NetworkSharing.plist" \
+ "$ROOTFUL_HELPERS/Library/LaunchDaemons/com.apple.NetworkSharing.plist"
+install -m 644 \
+ "$VZ_REPO_ROOT/packaging/rootful/vzi.apple.bootpd-controller.plist" \
+ "$ROOTFUL_HELPERS/Library/LaunchDaemons/vzi.apple.bootpd-controller.plist"
+plutil -replace ProgramArguments -json \
+ '["/usr/libexec/VirtualMac/bootpd"]' \
+ "$ROOTFUL_HELPERS/Library/LaunchDaemons/com.apple.bootpd.plist"
+plutil -replace Label -string vzi.apple.bootpd \
+ "$ROOTFUL_HELPERS/Library/LaunchDaemons/com.apple.bootpd.plist"
+plutil -replace Program -string \
+ /usr/libexec/VirtualMac/bootpd \
+ "$ROOTFUL_HELPERS/Library/LaunchDaemons/com.apple.bootpd.plist"
+# Register the socket job without activating it during package installation.
+# Big Sur InternetSharing enables it only after writing /tmp/bootpd.plist.
+plutil -replace Disabled -bool YES \
+ "$ROOTFUL_HELPERS/Library/LaunchDaemons/com.apple.bootpd.plist"
+plutil -replace ProgramArguments -json \
+ '["/usr/libexec/VirtualMac/InternetSharing"]' \
+ "$ROOTFUL_HELPERS/Library/LaunchDaemons/com.apple.NetworkSharing.plist"
+plutil -replace Program -string \
+ /usr/libexec/VirtualMac/InternetSharing \
+ "$ROOTFUL_HELPERS/Library/LaunchDaemons/com.apple.NetworkSharing.plist"
+# iPadOS 14 vmnet cannot resolve the private system-domain Mach service on
+# demand. Start the matching helper at bootstrap so it is already accepting
+# requests before a VM attaches its NIC. This plist is rootful-only; the
+# established iPadOS 15/16 launch placement is unchanged.
+plutil -remove RunAtLoad \
+ "$ROOTFUL_HELPERS/Library/LaunchDaemons/com.apple.NetworkSharing.plist" \
+ 2>/dev/null || true
+plutil -insert RunAtLoad -bool YES \
+ "$ROOTFUL_HELPERS/Library/LaunchDaemons/com.apple.NetworkSharing.plist"
+plutil -remove KeepAlive \
+ "$ROOTFUL_HELPERS/Library/LaunchDaemons/com.apple.NetworkSharing.plist" \
+ 2>/dev/null || true
+plutil -insert KeepAlive -bool YES \
+ "$ROOTFUL_HELPERS/Library/LaunchDaemons/com.apple.NetworkSharing.plist"
# Never package host filesystem metadata. Component builders also remove it
# before signing, but this catches metadata from every independently built
# app, XPC, framework, and packaging input.
@@ -126,6 +226,7 @@ chmod 4755 "$STAGE/var/root/VirtualMac/install/install-launcher"
"$SCRIPT_DIR/audit-ipad-package-stage.sh" "$STAGE"
installed_size="$(du -sk "$STAGE" | awk '{print $1}')"
sed -i '' -e "s/@VERSION@/$VERSION/g" \
+ -e "s/@MIN_IOS@/$VZ_IPADOS_MIN_VERSION/g" \
-e "s/@INSTALLED_SIZE@/$installed_size/g" "$STAGE/DEBIAN/control"
dpkg-deb --root-owner-group --build "$STAGE" "$RELEASE/$PACKAGE_NAME"
diff --git a/VirtualMac/scripts/build-ipad-diskimages2.sh b/VirtualMac/scripts/build-ipad-diskimages2.sh
new file mode 100755
index 0000000..925880c
--- /dev/null
+++ b/VirtualMac/scripts/build-ipad-diskimages2.sh
@@ -0,0 +1,65 @@
+#!/bin/bash
+
+set -euo pipefail
+SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
+# shellcheck source=lib/common.sh
+source "$SCRIPT_DIR/lib/common.sh"
+
+DSC="$VZ_BUILD_ROOT/inputs/macos/22D68__MacOS/dyld_shared_cache_arm64e"
+IMAGE="DiskImages2.framework/Versions/A/DiskImages2"
+RESOURCES="$VZ_BUILD_ROOT/inputs/macos/22D68__MacOS/System/Library/PrivateFrameworks/DiskImages2.framework/Versions/A/Resources"
+EXPECTED_UUID="35192C78-5415-38BF-B6B7-2175FDDC6FA1"
+PYTHON="$VZ_BUILD_ROOT/toolchain/venv/bin/python3"
+DYLDEX="$VZ_BUILD_ROOT/toolchain/venv/bin/dyldex"
+IPSW="$VZ_BUILD_ROOT/toolchain/bin/ipsw-a2sb"
+OUT="$VZ_BUILD_ROOT/ipad-diskimages2"
+RAW="$OUT/DiskImages2.raw"
+PROTO="$OUT/DiskImages2.proto"
+FRAMEWORK="$OUT/DiskImages2.framework"
+VERSION="$FRAMEWORK/Versions/A"
+BIN="$VERSION/DiskImages2"
+
+need_file "$DSC"
+need_file "$DSC.01"
+need_file "$RESOURCES/Info.plist"
+need_file "$PYTHON"
+need_file "$DYLDEX"
+need_file "$IPSW"
+need_command codesign
+need_command ditto
+need_command dwarfdump
+need_command otool
+
+mkdir -p "$OUT"
+if [[ ! -f "$RAW" ]]; then
+ # Invoke the entry point with this checkout's Python. Older developer
+ # build directories may retain a relocatable venv script shebang.
+ "$PYTHON" "$DYLDEX" -e "$IMAGE" -o "$RAW" "$DSC"
+fi
+
+# The VMM uses local raw images. Ventura's optional remote-image support links
+# libcurl, which is absent on iPadOS 15; leave it weak so that unused feature
+# does not prevent the matching DiskImages2 ABI from loading.
+VZ_IPSW="$IPSW" VZ_WEAKEN=libcurl "$PYTHON" \
+ "$VZ_REPO_ROOT/vz/uncache.py" \
+ "$DSC" "$IMAGE" "$RAW" "$PROTO" compact
+rm -rf "$FRAMEWORK"
+mkdir -p "$VERSION/Resources"
+"$PYTHON" "$VZ_REPO_ROOT/vz/stamp_ios.py" "$PROTO" "$BIN" \
+ "$VZ_IPADOS_MIN_VERSION"
+codesign --force --sign - "$BIN"
+chmod 755 "$BIN"
+ditto "$RESOURCES" "$VERSION/Resources"
+ln -sfn A "$FRAMEWORK/Versions/Current"
+ln -sfn Versions/Current/DiskImages2 "$FRAMEWORK/DiskImages2"
+ln -sfn Versions/Current/Resources "$FRAMEWORK/Resources"
+codesign --force --sign - "$FRAMEWORK"
+
+uuid="$(dwarfdump --uuid "$BIN" | awk '{print $2}')"
+[[ "$uuid" == "$EXPECTED_UUID" ]] ||
+ die "DiskImages2 UUID mismatch: expected $EXPECTED_UUID, got $uuid"
+codesign --verify --deep --strict "$FRAMEWORK"
+otool -l "$BIN" | grep -q LC_DYLD_CHAINED_FIXUPS ||
+ die "DiskImages2 is missing LC_DYLD_CHAINED_FIXUPS"
+
+echo "Ventura DiskImages2 compatibility framework built: $FRAMEWORK"
diff --git a/VirtualMac/scripts/build-ipad-installation.sh b/VirtualMac/scripts/build-ipad-installation.sh
index 5c204a9..5d12709 100755
--- a/VirtualMac/scripts/build-ipad-installation.sh
+++ b/VirtualMac/scripts/build-ipad-installation.sh
@@ -15,10 +15,21 @@ VMM_COMPAT="$PAYLOAD/Frameworks/LaunchServicesCompat.dylib"
INSTALL_ROOT="$OUT/install"
XPC="$PAYLOAD/Installation.xpc"
INSTALLER="$XPC/Contents/MacOS/com.apple.Virtualization.Installation"
+INSTALLER_IPADOS14="$INSTALLER.ipados14"
+INSTALLER_IPADOS15="$INSTALLER.ipados15"
+INSTALLER_IPADOS15_AUTH="$INSTALLER.ipados15-auth"
+INSTALLER_IPADOS16="$INSTALLER.ipados16"
XPC_FRAMEWORKS="$XPC/Contents/Frameworks"
COMPAT="$XPC_FRAMEWORKS/InstallationCompat.dylib"
+COMPAT_IPADOS14="$COMPAT.ipados14"
+COMPAT_IPADOS15="$COMPAT.ipados15"
+COMPAT_IPADOS16="$COMPAT.ipados16"
MOBILE_DEVICE_FRAMEWORK="$XPC_FRAMEWORKS/MobileDevice.framework"
MOBILE_DEVICE="$MOBILE_DEVICE_FRAMEWORK/Versions/A/MobileDevice"
+MOBILE_DEVICE_IPADOS14="$MOBILE_DEVICE.ipados14"
+MOBILE_DEVICE_IPADOS15="$MOBILE_DEVICE.ipados15"
+MOBILE_DEVICE_IPADOS15_AUTH="$MOBILE_DEVICE.ipados15-auth"
+MOBILE_DEVICE_IPADOS16="$MOBILE_DEVICE.ipados16"
USBMUXD="$MOBILE_DEVICE_FRAMEWORK/Versions/A/Resources/usbmuxd"
CRYPTO="$XPC_FRAMEWORKS/crypto.dylib"
SSL="$XPC_FRAMEWORKS/ssl.dylib"
@@ -29,6 +40,9 @@ CRASHREPORTER_COMPAT="$XPC_FRAMEWORKS/CrashReporterCompat.dylib"
DISKIMAGES_COMPAT="$XPC_FRAMEWORKS/DiskImagesCompat.dylib"
CORESERVICES_COMPAT="$XPC_FRAMEWORKS/CoreServicesCompat.dylib"
SECURITY_COMPAT="$XPC_FRAMEWORKS/SecurityCompat.dylib"
+FOUNDATION14_COMPAT="$XPC_FRAMEWORKS/Foundation14Compat.dylib"
+IOKIT14_COMPAT="$XPC_FRAMEWORKS/IOKit14Compat.dylib"
+SOFTLINKING14_COMPAT="$XPC_FRAMEWORKS/SoftLinking14Compat.dylib"
HOST_HOOK="$INSTALL_ROOT/VZHostCompat.dylib"
PROBE="$INSTALL_ROOT/restore-image-probe"
INSTALL_TOOL="$INSTALL_ROOT/install-macos"
@@ -47,6 +61,8 @@ PYTHON="$VZ_BUILD_ROOT/toolchain/venv/bin/python3"
DYLDEX="$VZ_BUILD_ROOT/toolchain/venv/bin/dyldex"
IPSW_TOOL="$VZ_BUILD_ROOT/toolchain/bin/ipsw-a2sb"
CACHE="$VZ_BUILD_ROOT/cache/device-support-runtime"
+IPADOS15_OBJC_PATCH="$VZ_REPO_ROOT/vz/patches/patch_ipados15_objc_class_data.py"
+IPADOS15_OBJC_IMPORT_PATCH="$VZ_REPO_ROOT/vz/patches/patch_ipados15_objc_imports.py"
need_command codesign
need_command ditto
@@ -90,6 +106,12 @@ need_file "$VZ_REPO_ROOT/vz/host/crashreporter_compat.c"
need_file "$VZ_REPO_ROOT/vz/host/diskimages_compat.c"
need_file "$VZ_REPO_ROOT/vz/host/coreservices_compat.c"
need_file "$VZ_REPO_ROOT/vz/host/security_compat.c"
+need_file "$VZ_REPO_ROOT/vz/host/diskarbitration15_compat.c"
+need_file "$VZ_REPO_ROOT/vz/host/foundation14_compat.c"
+need_file "$VZ_REPO_ROOT/vz/host/iokit14_compat.c"
+need_file "$VZ_REPO_ROOT/vz/host/softlinking14_compat.c"
+need_file "$IPADOS15_OBJC_PATCH"
+need_file "$IPADOS15_OBJC_IMPORT_PATCH"
# Installation launches the same VirtualMachine.xpc used by ordinary boots.
# Rebuild and package its compatibility library too so USB-controller bridge
@@ -113,7 +135,7 @@ lipo -thin arm64e \
-output "$INSTALLER.macos"
"$VZ_BUILD_ROOT/toolchain/venv/bin/python3" \
"$VZ_REPO_ROOT/vz/stamp_ios.py" \
- "$INSTALLER.macos" "$INSTALLER" 16.0
+ "$INSTALLER.macos" "$INSTALLER" "$VZ_IPADOS_MIN_VERSION"
rm -f "$INSTALLER.macos"
# Installation.xpc soft-loads the installed DeviceSupport MobileDevice. Keep
@@ -135,7 +157,7 @@ mkdir -p "$MOBILE_DEVICE_FRAMEWORK/Versions/A"
lipo -thin arm64e "$SOURCE_MOBILE_DEVICE/Versions/A/MobileDevice" \
-output "$CACHE/MobileDevice.macos"
"$PYTHON" "$VZ_REPO_ROOT/vz/stamp_ios.py" \
- "$CACHE/MobileDevice.macos" "$MOBILE_DEVICE" 16.0
+ "$CACHE/MobileDevice.macos" "$MOBILE_DEVICE" "$VZ_IPADOS_MIN_VERSION"
if [[ -d "$SOURCE_MOBILE_DEVICE/Versions/A/Resources" ]]; then
ditto "$SOURCE_MOBILE_DEVICE/Versions/A/Resources" \
"$MOBILE_DEVICE_FRAMEWORK/Versions/A/Resources"
@@ -155,7 +177,7 @@ ln -sfn Versions/Current/Resources "$MOBILE_DEVICE_FRAMEWORK/Resources"
lipo -thin arm64e "$SOURCE_MOBILE_DEVICE/Versions/A/Resources/usbmuxd" \
-output "$CACHE/usbmuxd.macos"
"$PYTHON" "$VZ_REPO_ROOT/vz/stamp_ios.py" \
- "$CACHE/usbmuxd.macos" "$USBMUXD" 16.0
+ "$CACHE/usbmuxd.macos" "$USBMUXD" "$VZ_IPADOS_MIN_VERSION"
install_name_tool \
-change /System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice \
@loader_path/../MobileDevice \
@@ -229,7 +251,7 @@ for spec in 'libcrypto.35.dylib|crypto.dylib' \
@loader_path/crypto.dylib
fi
"$PYTHON" "$VZ_REPO_ROOT/vz/stamp_ios.py" \
- "$proto" "$output" 16.0
+ "$proto" "$output" "$VZ_IPADOS_MIN_VERSION"
done
trustImage="TrustEvaluationAgent.framework/Versions/A/TrustEvaluationAgent"
@@ -242,10 +264,10 @@ VZ_IPSW="$IPSW_TOOL" "$PYTHON" "$VZ_REPO_ROOT/vz/uncache.py" \
"$DSC" "$trustImage" "$trustRaw" "$trustProto" compact
mkdir -p "$TRUST_EVALUATION_FRAMEWORK"
"$PYTHON" "$VZ_REPO_ROOT/vz/stamp_ios.py" \
- "$trustProto" "$TRUST_EVALUATION" 16.0
+ "$trustProto" "$TRUST_EVALUATION" "$VZ_IPADOS_MIN_VERSION"
xcrun --sdk iphoneos clang \
- -arch arm64e -miphoneos-version-min=16.0 -isysroot "$SDK" \
+ -arch arm64e -miphoneos-version-min="$VZ_IPADOS_MIN_VERSION" -isysroot "$SDK" \
-dynamiclib \
-Wl,-reexport_library,"$COREUTILS_TBD" \
-install_name "@rpath/CoreUtilsCompat.dylib" \
@@ -253,14 +275,14 @@ xcrun --sdk iphoneos clang \
-o "$COREUTILS_COMPAT"
xcrun --sdk iphoneos clang \
- -arch arm64e -miphoneos-version-min=16.0 -isysroot "$SDK" \
+ -arch arm64e -miphoneos-version-min="$VZ_IPADOS_MIN_VERSION" -isysroot "$SDK" \
-dynamiclib \
-install_name "@rpath/CrashReporterCompat.dylib" \
"$VZ_REPO_ROOT/vz/host/crashreporter_compat.c" \
-o "$CRASHREPORTER_COMPAT"
xcrun --sdk iphoneos clang \
- -arch arm64e -miphoneos-version-min=16.0 -isysroot "$SDK" \
+ -arch arm64e -miphoneos-version-min="$VZ_IPADOS_MIN_VERSION" -isysroot "$SDK" \
-dynamiclib \
-Wl,-reexport_library,"$DISKIMAGES_TBD" \
-install_name "@rpath/DiskImagesCompat.dylib" \
@@ -268,14 +290,14 @@ xcrun --sdk iphoneos clang \
-o "$DISKIMAGES_COMPAT"
xcrun --sdk iphoneos clang \
- -arch arm64e -miphoneos-version-min=16.0 -isysroot "$SDK" \
+ -arch arm64e -miphoneos-version-min="$VZ_IPADOS_MIN_VERSION" -isysroot "$SDK" \
-dynamiclib \
-install_name "@rpath/CoreServicesCompat.dylib" \
"$VZ_REPO_ROOT/vz/host/coreservices_compat.c" \
-o "$CORESERVICES_COMPAT"
xcrun --sdk iphoneos clang \
- -arch arm64e -miphoneos-version-min=16.0 -isysroot "$SDK" \
+ -arch arm64e -miphoneos-version-min="$VZ_IPADOS_MIN_VERSION" -isysroot "$SDK" \
-dynamiclib \
-Wl,-reexport_library,"$SECURITY_TBD" \
-install_name "@rpath/SecurityCompat.dylib" \
@@ -283,7 +305,31 @@ xcrun --sdk iphoneos clang \
-o "$SECURITY_COMPAT"
xcrun --sdk iphoneos clang \
- -arch arm64e -miphoneos-version-min=16.0 -isysroot "$SDK" \
+ -arch arm64e -miphoneos-version-min=14.5 -isysroot "$SDK" \
+ -dynamiclib -framework Foundation -framework CFNetwork \
+ -Wl,-reexport_framework,Foundation -Wl,-reexport_framework,CFNetwork \
+ -install_name "@rpath/Foundation14Compat.dylib" \
+ "$VZ_REPO_ROOT/vz/host/foundation14_compat.c" \
+ -o "$FOUNDATION14_COMPAT"
+xcrun --sdk iphoneos clang \
+ -arch arm64e -miphoneos-version-min=14.5 -isysroot "$SDK" \
+ -dynamiclib -framework CoreFoundation -framework IOKit \
+ -Wl,-reexport_framework,IOKit \
+ -install_name "@rpath/IOKit14Compat.dylib" \
+ "$VZ_REPO_ROOT/vz/host/iokit14_compat.c" \
+ -o "$IOKIT14_COMPAT"
+xcrun --sdk iphoneos clang \
+ -arch arm64e -miphoneos-version-min=14.5 -isysroot "$SDK" \
+ -dynamiclib -lc++ \
+ -install_name "@rpath/SoftLinking14Compat.dylib" \
+ "$VZ_REPO_ROOT/vz/host/softlinking14_compat.c" \
+ -o "$SOFTLINKING14_COMPAT"
+nm -gU "$SOFTLINKING14_COMPAT" | awk '{print $NF}' | \
+ grep -Fxq __sl_dlopen ||
+ die "SoftLinking14Compat does not export __sl_dlopen"
+
+xcrun --sdk iphoneos clang \
+ -arch arm64e -miphoneos-version-min="$VZ_IPADOS_MIN_VERSION" -isysroot "$SDK" \
-dynamiclib -fblocks -Wl,-undefined,dynamic_lookup \
-framework CoreFoundation -framework IOKit \
-Wl,-reexport_library,"$DA_TBD" \
@@ -292,6 +338,41 @@ xcrun --sdk iphoneos clang \
"$VZ_REPO_ROOT/vz/host/installation_usb_shim.m" \
-o "$COMPAT"
+# iPadOS 15 has no DiskArbitration image. Build a legacy-only variant that
+# provides the narrow MobileDevice surface locally; the normal iPadOS 16
+# variant continues to re-export Apple's system framework unchanged.
+xcrun --sdk iphoneos clang \
+ -arch arm64e -miphoneos-version-min="$VZ_IPADOS_MIN_VERSION" -isysroot "$SDK" \
+ -dynamiclib -fblocks -Wl,-undefined,dynamic_lookup \
+ -framework CoreFoundation -framework IOKit \
+ -install_name "@rpath/InstallationCompat.dylib" \
+ "$VZ_REPO_ROOT/vz/host/installationhook.m" \
+ "$VZ_REPO_ROOT/vz/host/installation_usb_shim.m" \
+ "$VZ_REPO_ROOT/vz/host/diskarbitration15_compat.c" \
+ -o "$COMPAT_IPADOS15"
+
+cp "$MOBILE_DEVICE" "$MOBILE_DEVICE_IPADOS16"
+cp "$MOBILE_DEVICE" "$MOBILE_DEVICE_IPADOS15_AUTH"
+install_name_tool -change \
+ /System/Library/PrivateFrameworks/DiskArbitration.framework/DiskArbitration \
+ @loader_path/../../../InstallationCompat.dylib \
+ "$MOBILE_DEVICE_IPADOS15_AUTH"
+"$PYTHON" "$IPADOS15_OBJC_IMPORT_PATCH" "$MOBILE_DEVICE_IPADOS15_AUTH"
+# iPadOS 15.4 adopted the newer Objective-C class-data authentication used by
+# Ventura. Preserve that signed image, then strip only the older 15.x copy.
+cp "$MOBILE_DEVICE_IPADOS15_AUTH" "$MOBILE_DEVICE_IPADOS15"
+"$PYTHON" "$IPADOS15_OBJC_PATCH" "$MOBILE_DEVICE_IPADOS15"
+cp "$MOBILE_DEVICE_IPADOS15" "$MOBILE_DEVICE_IPADOS14"
+install_name_tool -change \
+ /System/Library/Frameworks/Foundation.framework/Foundation \
+ @loader_path/../../../Foundation14Compat.dylib \
+ "$MOBILE_DEVICE_IPADOS14"
+"$PYTHON" "$VZ_REPO_ROOT/vz/stamp_ios.py" \
+ "$MOBILE_DEVICE_IPADOS14" "$MOBILE_DEVICE_IPADOS14.restamped" 14.5
+mv -f "$MOBILE_DEVICE_IPADOS14.restamped" "$MOBILE_DEVICE_IPADOS14"
+"$PYTHON" "$VZ_REPO_ROOT/vz/patches/patch_ipados14_mobiledevice.py" \
+ "$MOBILE_DEVICE_IPADOS14"
+
install_name_tool \
-change \
/System/Library/Frameworks/Foundation.framework/Versions/C/Foundation \
@@ -313,47 +394,88 @@ install_name_tool \
/System/Library/PrivateFrameworks/SoftLinking.framework/SoftLinking \
"$INSTALLER"
+# Ventura's arm64e Objective-C class metadata uses an ABI that iPadOS 15's
+# runtime cannot authenticate. Keep the established iPadOS 16 executable
+# unchanged and adapt only the copy selected by postinst on older hosts.
+cp "$INSTALLER" "$INSTALLER_IPADOS16"
+cp "$INSTALLER" "$INSTALLER_IPADOS15_AUTH"
+"$PYTHON" "$IPADOS15_OBJC_IMPORT_PATCH" "$INSTALLER_IPADOS15_AUTH"
+cp "$INSTALLER_IPADOS15_AUTH" "$INSTALLER_IPADOS15"
+"$PYTHON" "$IPADOS15_OBJC_PATCH" "$INSTALLER_IPADOS15"
+cp "$INSTALLER_IPADOS15" "$INSTALLER_IPADOS14"
+install_name_tool \
+ -change /System/Library/Frameworks/Foundation.framework/Foundation \
+ @loader_path/../Frameworks/Foundation14Compat.dylib \
+ -change /System/Library/PrivateFrameworks/SoftLinking.framework/SoftLinking \
+ @loader_path/../Frameworks/SoftLinking14Compat.dylib \
+ "$INSTALLER_IPADOS14"
+"$PYTHON" "$VZ_REPO_ROOT/vz/stamp_ios.py" \
+ "$INSTALLER_IPADOS14" "$INSTALLER_IPADOS14.restamped" 14.5
+mv -f "$INSTALLER_IPADOS14.restamped" "$INSTALLER_IPADOS14"
+
+cp "$COMPAT_IPADOS15" "$COMPAT_IPADOS14"
+install_name_tool -change \
+ /System/Library/Frameworks/IOKit.framework/IOKit \
+ @loader_path/IOKit14Compat.dylib \
+ "$COMPAT_IPADOS14"
+"$PYTHON" "$VZ_REPO_ROOT/vz/stamp_ios.py" \
+ "$COMPAT_IPADOS14" "$COMPAT_IPADOS14.restamped" 14.5
+mv -f "$COMPAT_IPADOS14.restamped" "$COMPAT_IPADOS14"
+
INFO="$XPC/Contents/Info.plist"
plutil -replace CFBundleSupportedPlatforms -json '["iPhoneOS"]' "$INFO"
plutil -replace DTPlatformName -string iphoneos "$INFO"
-plutil -replace DTPlatformVersion -string 16.0 "$INFO"
-plutil -replace DTSDKName -string iphoneos16.0.internal "$INFO"
+plutil -replace DTPlatformVersion -string "$VZ_IPADOS_MIN_VERSION" "$INFO"
+plutil -replace DTSDKName -string \
+ "iphoneos${VZ_IPADOS_MIN_VERSION}.internal" "$INFO"
plutil -remove LSMinimumSystemVersion "$INFO" 2>/dev/null || true
-plutil -replace MinimumOSVersion -string 16.0 "$INFO" 2>/dev/null || \
- plutil -insert MinimumOSVersion -string 16.0 "$INFO"
+plutil -replace MinimumOSVersion -string "$VZ_IPADOS_MIN_VERSION" \
+ "$INFO" 2>/dev/null || \
+ plutil -insert MinimumOSVersion -string "$VZ_IPADOS_MIN_VERSION" "$INFO"
xcrun --sdk iphoneos clang \
- -arch arm64e -miphoneos-version-min=16.0 -isysroot "$SDK" \
+ -arch arm64e -miphoneos-version-min="$VZ_IPADOS_MIN_VERSION" -isysroot "$SDK" \
-dynamiclib -fblocks -Wl,-undefined,dynamic_lookup \
-install_name "@rpath/VZHostCompat.dylib" \
"$VZ_REPO_ROOT/vz/host/vzxpchook.m" \
-o "$HOST_HOOK"
xcrun --sdk iphoneos clang \
- -arch arm64 -miphoneos-version-min=16.0 -isysroot "$SDK" -fblocks \
+ -arch arm64 -miphoneos-version-min="$VZ_IPADOS_MIN_VERSION" -isysroot "$SDK" -fblocks \
-framework Foundation -framework Metal -framework UIKit \
-Wl,-export_dynamic \
"$VZ_REPO_ROOT/vz/host/NSViewShim.m" \
"$VZ_REPO_ROOT/vz/development/probes/restore_image_probe.m" \
-o "$PROBE"
xcrun --sdk iphoneos clang \
- -arch arm64 -miphoneos-version-min=16.0 -isysroot "$SDK" -fblocks \
+ -arch arm64 -miphoneos-version-min="$VZ_IPADOS_MIN_VERSION" -isysroot "$SDK" -fblocks \
-framework Foundation -framework Metal -framework UIKit \
-Wl,-export_dynamic \
"$VZ_REPO_ROOT/vz/host/NSViewShim.m" \
"$VZ_REPO_ROOT/vz/install/install_macos.m" \
-o "$INSTALL_TOOL"
xcrun --sdk iphoneos clang \
- -arch arm64 -miphoneos-version-min=16.0 -isysroot "$SDK" \
+ -arch arm64 -miphoneos-version-min="$VZ_IPADOS_MIN_VERSION" -isysroot "$SDK" \
"$VZ_REPO_ROOT/vz/development/probes/usb_bridge_probe.c" \
-o "$USB_BRIDGE_PROBE"
xcrun --sdk iphoneos clang \
- -arch arm64 -miphoneos-version-min=16.0 -isysroot "$SDK" \
+ -arch arm64 -miphoneos-version-min="$VZ_IPADOS_MIN_VERSION" -isysroot "$SDK" \
"$VZ_REPO_ROOT/vz/install/install_launcher.c" \
-o "$INSTALL_LAUNCHER"
ldid -S"$ENTS" "$INSTALLER"
+ldid -Icom.apple.Virtualization.Installation -S"$ENTS" "$INSTALLER_IPADOS14"
+ldid -Icom.apple.Virtualization.Installation -S"$ENTS" "$INSTALLER_IPADOS15"
+ldid -Icom.apple.Virtualization.Installation -S"$ENTS" "$INSTALLER_IPADOS15_AUTH"
+ldid -Icom.apple.Virtualization.Installation -S"$ENTS" "$INSTALLER_IPADOS16"
ldid -S"$ENTS" "$COMPAT"
+cp "$COMPAT" "$COMPAT_IPADOS16"
+ldid -IInstallationCompat.dylib -S"$ENTS" "$COMPAT_IPADOS15"
+ldid -IInstallationCompat.dylib -S"$ENTS" "$COMPAT_IPADOS14"
ldid -S"$ENTS" "$MOBILE_DEVICE"
+ldid -IMobileDevice -S"$ENTS" "$MOBILE_DEVICE_IPADOS14"
+ldid -IMobileDevice -S"$ENTS" "$MOBILE_DEVICE_IPADOS15"
+ldid -IMobileDevice -S"$ENTS" "$MOBILE_DEVICE_IPADOS15_AUTH"
+ldid -IMobileDevice -S"$ENTS" "$MOBILE_DEVICE_IPADOS16"
ldid -S"$ENTS" "$USBMUXD"
codesign --force --sign - \
--preserve-metadata=entitlements,requirements,flags,runtime "$CRYPTO"
@@ -367,6 +489,9 @@ ldid -S"$ENTS" "$CRASHREPORTER_COMPAT"
ldid -S"$ENTS" "$DISKIMAGES_COMPAT"
ldid -S"$ENTS" "$CORESERVICES_COMPAT"
ldid -S"$ENTS" "$SECURITY_COMPAT"
+ldid -S"$ENTS" "$FOUNDATION14_COMPAT"
+ldid -S"$ENTS" "$IOKIT14_COMPAT"
+ldid -S"$ENTS" "$SOFTLINKING14_COMPAT"
ldid -S"$HOST_ENTS" "$HOST_HOOK"
ldid -S"$HOST_ENTS" "$PROBE"
ldid -S"$HOST_ENTS" "$INSTALL_TOOL"
@@ -375,14 +500,28 @@ ldid -S"$HOST_ENTS" "$INSTALL_LAUNCHER"
"$PYTHON" "$VZ_REPO_ROOT/scripts/audit-entitlements.py" \
"$ENTS" "$INSTALLER" \
+ "$ENTS" "$INSTALLER_IPADOS14" \
+ "$ENTS" "$INSTALLER_IPADOS15" \
+ "$ENTS" "$INSTALLER_IPADOS15_AUTH" \
+ "$ENTS" "$INSTALLER_IPADOS16" \
"$ENTS" "$COMPAT" \
+ "$ENTS" "$COMPAT_IPADOS14" \
+ "$ENTS" "$COMPAT_IPADOS15" \
+ "$ENTS" "$COMPAT_IPADOS16" \
"$ENTS" "$MOBILE_DEVICE" \
+ "$ENTS" "$MOBILE_DEVICE_IPADOS14" \
+ "$ENTS" "$MOBILE_DEVICE_IPADOS15" \
+ "$ENTS" "$MOBILE_DEVICE_IPADOS15_AUTH" \
+ "$ENTS" "$MOBILE_DEVICE_IPADOS16" \
"$ENTS" "$USBMUXD" \
"$ENTS" "$COREUTILS_COMPAT" \
"$ENTS" "$CRASHREPORTER_COMPAT" \
"$ENTS" "$DISKIMAGES_COMPAT" \
"$ENTS" "$CORESERVICES_COMPAT" \
"$ENTS" "$SECURITY_COMPAT" \
+ "$ENTS" "$FOUNDATION14_COMPAT" \
+ "$ENTS" "$IOKIT14_COMPAT" \
+ "$ENTS" "$SOFTLINKING14_COMPAT" \
"$HOST_ENTS" "$HOST_HOOK" \
"$HOST_ENTS" "$PROBE" \
"$HOST_ENTS" "$INSTALL_TOOL" \
@@ -401,6 +540,12 @@ otool -L "$INSTALLER" | grep -Fq \
otool -L "$COMPAT" | grep -Fq \
'/System/Library/PrivateFrameworks/DiskArbitration.framework/DiskArbitration' ||
die "InstallationCompat does not re-export iPad DiskArbitration"
+otool -L "$COMPAT_IPADOS15" | grep -Fq \
+ '/System/Library/PrivateFrameworks/DiskArbitration.framework/DiskArbitration' &&
+ die "iPadOS 15 InstallationCompat still loads DiskArbitration"
+otool -L "$MOBILE_DEVICE_IPADOS15" | grep -Fq \
+ '@loader_path/../../../InstallationCompat.dylib' ||
+ die "iPadOS 15 MobileDevice does not use InstallationCompat for DiskArbitration"
otool -L "$MOBILE_DEVICE" | grep -Fq \
'@loader_path/../../../crypto.dylib' ||
die "MobileDevice does not load bundled libcrypto"
@@ -420,7 +565,12 @@ otool -L "$USBMUXD" | grep -Fq '@loader_path/../MobileDevice' ||
die "usbmuxd does not load bundled MobileDevice"
{
- for file in "$INSTALLER" "$COMPAT" "$MOBILE_DEVICE" "$USBMUXD" \
+ for file in "$INSTALLER" "$INSTALLER_IPADOS15_AUTH" \
+ "$COMPAT" "$COMPAT_IPADOS15" \
+ "$COMPAT_IPADOS16" "$MOBILE_DEVICE" \
+ "$MOBILE_DEVICE_IPADOS15" "$MOBILE_DEVICE_IPADOS15_AUTH" \
+ "$MOBILE_DEVICE_IPADOS16" \
+ "$USBMUXD" \
"$CRYPTO" "$SSL" "$TRUST_EVALUATION" \
"$COREUTILS_COMPAT" \
"$CRASHREPORTER_COMPAT" \
diff --git a/VirtualMac/scripts/build-ipad-netrb.sh b/VirtualMac/scripts/build-ipad-netrb.sh
index 632ace3..b099176 100755
--- a/VirtualMac/scripts/build-ipad-netrb.sh
+++ b/VirtualMac/scripts/build-ipad-netrb.sh
@@ -6,35 +6,41 @@ SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
source "$SCRIPT_DIR/lib/common.sh"
DSC="${VZ_MACOS_DSC:-$VZ_BUILD_ROOT/inputs/macos/22D68__MacOS/dyld_shared_cache_arm64e}"
-OUT="$VZ_BUILD_ROOT/ipad-netrb/Netrb.framework"
-RAW="$VZ_BUILD_ROOT/ipad-netrb/Netrb.macos.raw"
-PROTO="$VZ_BUILD_ROOT/ipad-netrb/Netrb.proto"
+OUT="${VZ_NETRB_OUTPUT:-$VZ_BUILD_ROOT/ipad-netrb/Netrb.framework}"
+WORK="${VZ_NETRB_WORK_DIR:-$(dirname "$OUT")}"
+RAW="$WORK/Netrb.macos.raw"
+PROTO="$WORK/Netrb.proto"
BIN="$OUT/Netrb"
PYTHON="$VZ_BUILD_ROOT/toolchain/venv/bin/python3"
DYLDEX="$VZ_BUILD_ROOT/toolchain/venv/bin/dyldex"
IPSW="$VZ_BUILD_ROOT/toolchain/bin/ipsw-a2sb"
PATCH="$VZ_REPO_ROOT/vz/patches/patch_netrb_lookup.py"
+PATCH_LOOKUP="${VZ_NETRB_PATCH_LOOKUP:-1}"
ENTITLEMENT_AUDIT="$VZ_REPO_ROOT/scripts/audit-entitlements.py"
IMAGE="Netrb.framework/Versions/A/Netrb"
need_command codesign
need_file "$DSC"
-need_file "$DSC.01"
need_file "$PYTHON"
need_file "$DYLDEX"
need_file "$IPSW"
need_file "$PATCH"
need_file "$ENTITLEMENT_AUDIT"
need_file "$VZ_REPO_ROOT/vz/stamp_ios.py"
+[[ "$PATCH_LOOKUP" == 0 || "$PATCH_LOOKUP" == 1 ]] ||
+ die "VZ_NETRB_PATCH_LOOKUP must be 0 or 1"
mkdir -p "$OUT" "$(dirname "$RAW")"
if [[ ! -f "$RAW" ]]; then
- "$DYLDEX" -e "$IMAGE" -o "$RAW" "$DSC"
+ "$PYTHON" "$DYLDEX" -e "$IMAGE" -o "$RAW" "$DSC"
fi
VZ_IPSW="$IPSW" "$PYTHON" "$VZ_REPO_ROOT/vz/uncache.py" \
"$DSC" "$IMAGE" "$RAW" "$PROTO" compact
-"$PYTHON" "$VZ_REPO_ROOT/vz/stamp_ios.py" "$PROTO" "$BIN" 16.0
-"$PYTHON" "$PATCH" "$BIN"
+"$PYTHON" "$VZ_REPO_ROOT/vz/stamp_ios.py" "$PROTO" "$BIN" \
+ "$VZ_IPADOS_MIN_VERSION"
+if [[ "$PATCH_LOOKUP" == 1 ]]; then
+ "$PYTHON" "$PATCH" "$BIN"
+fi
codesign --force --sign - \
--preserve-metadata=entitlements,requirements,flags,runtime "$BIN"
codesign --verify "$BIN"
diff --git a/VirtualMac/scripts/build-ipad-network-helpers.sh b/VirtualMac/scripts/build-ipad-network-helpers.sh
index d4b8b49..8fd4719 100755
--- a/VirtualMac/scripts/build-ipad-network-helpers.sh
+++ b/VirtualMac/scripts/build-ipad-network-helpers.sh
@@ -7,14 +7,18 @@ source "$SCRIPT_DIR/lib/common.sh"
SOURCE_ROOT="$VZ_BUILD_ROOT/inputs/macos/22D68__MacOS"
SOURCE_BOOTPD="$SOURCE_ROOT/usr/libexec/bootpd"
+SOURCE_IPADOS14_BOOTPD="$VZ_BUILD_ROOT/inputs/ipados14/18E199__iPad13,4_5_6_7/usr/libexec/bootpd"
SOURCE_RTADVD="$SOURCE_ROOT/usr/sbin/rtadvd"
SOURCE_BOOTPD_PLIST="$SOURCE_ROOT/System/Library/LaunchDaemons/bootps.plist"
ENTS="$VZ_REPO_ROOT/vz/patches/network-helper.ents.xml"
COMPAT_PATCH="$VZ_REPO_ROOT/vz/patches/patch_network_helper.py"
+IPADOS14_PATCH="$VZ_REPO_ROOT/vz/patches/patch_ipados14_bootpd.py"
OUT="$VZ_BUILD_ROOT/ipad-network-helpers"
BOOTPD="$OUT/bootpd"
+BOOTPD_IPADOS14="$OUT/bootpd.ipados14"
RTADVD="$OUT/rtadvd"
OD_COMPAT="$OUT/OpenDirectoryCompat.dylib"
+IOKIT14_COMPAT="$OUT/IOKit14Compat.dylib"
BOOTPD_PLIST="$OUT/com.apple.bootpd.plist"
need_command codesign
@@ -23,21 +27,33 @@ need_command ldid
need_command lipo
need_command plutil
need_file "$SOURCE_BOOTPD"
+need_file "$SOURCE_IPADOS14_BOOTPD"
need_file "$SOURCE_RTADVD"
need_file "$SOURCE_BOOTPD_PLIST"
need_file "$ENTS"
need_file "$COMPAT_PATCH"
+need_file "$IPADOS14_PATCH"
rm -rf "$OUT"
mkdir -p "$OUT"
xcrun --sdk iphoneos clang \
- -arch arm64e -miphoneos-version-min=16.0 -isysroot "$(xcrun --sdk iphoneos --show-sdk-path)" \
+ -arch arm64e -miphoneos-version-min="$VZ_IPADOS_MIN_VERSION" \
+ -isysroot "$(xcrun --sdk iphoneos --show-sdk-path)" \
-dynamiclib -framework CoreFoundation \
-install_name @loader_path/../lib/OpenDirectoryCompat.dylib \
"$VZ_REPO_ROOT/vz/host/open_directory_compat.c" \
-o "$OD_COMPAT"
codesign --force --sign - "$OD_COMPAT"
+xcrun --sdk iphoneos clang \
+ -arch arm64e -miphoneos-version-min=14.5 \
+ -isysroot "$(xcrun --sdk iphoneos --show-sdk-path)" \
+ -dynamiclib -framework CoreFoundation -framework IOKit \
+ -Wl,-reexport_framework,IOKit \
+ -install_name @loader_path/../lib/IOKit14Compat.dylib \
+ "$VZ_REPO_ROOT/vz/host/iokit14_compat.c" \
+ -o "$IOKIT14_COMPAT"
+codesign --force --sign - "$IOKIT14_COMPAT"
for source in "$SOURCE_BOOTPD" "$SOURCE_RTADVD"; do
name="$(basename "$source")"
@@ -57,7 +73,8 @@ install_name_tool \
for name in bootpd rtadvd; do
"$VZ_BUILD_ROOT/toolchain/venv/bin/python3" \
- "$VZ_REPO_ROOT/vz/stamp_ios.py" "$OUT/$name.macos" "$OUT/$name" 16.0
+ "$VZ_REPO_ROOT/vz/stamp_ios.py" "$OUT/$name.macos" "$OUT/$name" \
+ "$VZ_IPADOS_MIN_VERSION"
codesign --force --sign - --entitlements "$ENTS" \
--generate-entitlement-der "$OUT/$name"
codesign --verify --strict "$OUT/$name"
@@ -68,11 +85,23 @@ done
codesign --force --sign - --entitlements "$ENTS" \
--generate-entitlement-der "$BOOTPD"
codesign --verify --strict "$BOOTPD"
+
+# Preserve the matching iPadOS 14 implementation and modify only its writable
+# configuration pathname. Never install this file over /usr/libexec/bootpd.
+cp "$SOURCE_IPADOS14_BOOTPD" "$BOOTPD_IPADOS14"
+"$VZ_BUILD_ROOT/toolchain/venv/bin/python3" "$IPADOS14_PATCH" \
+ "$BOOTPD_IPADOS14"
+codesign --force --sign - --entitlements "$ENTS" \
+ --generate-entitlement-der "$BOOTPD_IPADOS14"
+codesign --verify --strict "$BOOTPD_IPADOS14"
codesign --verify --strict "$OD_COMPAT"
+codesign --verify --strict "$IOKIT14_COMPAT"
python3 "$VZ_REPO_ROOT/scripts/audit-entitlements.py" \
"$ENTS" "$BOOTPD" \
+ "$ENTS" "$BOOTPD_IPADOS14" \
"$ENTS" "$RTADVD" \
- - "$OD_COMPAT"
+ - "$OD_COMPAT" \
+ - "$IOKIT14_COMPAT"
cp "$SOURCE_BOOTPD_PLIST" "$BOOTPD_PLIST"
plutil -replace Label -string vzi.apple.bootpd "$BOOTPD_PLIST"
diff --git a/VirtualMac/scripts/build-ipad-network-sharing.sh b/VirtualMac/scripts/build-ipad-network-sharing.sh
index ff3c877..d1e08b5 100755
--- a/VirtualMac/scripts/build-ipad-network-sharing.sh
+++ b/VirtualMac/scripts/build-ipad-network-sharing.sh
@@ -8,12 +8,24 @@ source "$SCRIPT_DIR/lib/common.sh"
SOURCE_ROOT="$VZ_BUILD_ROOT/inputs/macos/22D68__MacOS"
SOURCE_BIN="$SOURCE_ROOT/usr/libexec/InternetSharing"
SOURCE_PLIST="$SOURCE_ROOT/System/Library/LaunchDaemons/com.apple.NetworkSharing.plist"
+BIG_SUR_SOURCE_ROOT="$VZ_BUILD_ROOT/inputs/macos11/20G165__MacOS"
+BIG_SUR_SOURCE_BIN="$BIG_SUR_SOURCE_ROOT/usr/libexec/InternetSharing"
+DSC="${VZ_MACOS_DSC:-$SOURCE_ROOT/dyld_shared_cache_arm64e}"
ENTS="$VZ_REPO_ROOT/vz/patches/internet-sharing.ents.xml"
COMPAT_PATCH="$VZ_REPO_ROOT/vz/patches/patch_internet_sharing.py"
+IPADOS14_PATCH="$VZ_REPO_ROOT/vz/patches/patch_ipados14_internet_sharing.py"
OUT="$VZ_BUILD_ROOT/ipad-network-sharing"
BIN="$OUT/InternetSharing"
PLIST="$OUT/com.apple.NetworkSharing.plist"
AUTH_COMPAT="$OUT/AuthorizationCompat.dylib"
+LIBMRC="$OUT/libmrc.dylib"
+LIBMRC_IPADOS15_AUTH="$OUT/libmrc.ipados15-auth.dylib"
+LIBMRC_CACHE="$VZ_BUILD_ROOT/cache/network-sharing"
+LIBMRC_RAW="$LIBMRC_CACHE/libmrc.raw"
+LIBMRC_PROTO="$LIBMRC_CACHE/libmrc.proto"
+PYTHON="$VZ_BUILD_ROOT/toolchain/venv/bin/python3"
+DYLDEX="$VZ_BUILD_ROOT/toolchain/venv/bin/dyldex"
+IPSW="$VZ_BUILD_ROOT/toolchain/bin/ipsw-a2sb"
SDK="$(xcrun --sdk iphoneos --show-sdk-path)"
need_command codesign
@@ -24,16 +36,24 @@ need_command plutil
need_command xcrun
need_file "$SOURCE_BIN"
need_file "$SOURCE_PLIST"
+need_file "$BIG_SUR_SOURCE_BIN"
+need_file "$DSC"
+need_file "$PYTHON"
+need_file "$DYLDEX"
+need_file "$IPSW"
need_file "$ENTS"
need_file "$COMPAT_PATCH"
+need_file "$IPADOS14_PATCH"
rm -rf "$OUT"
mkdir -p "$OUT"
+mkdir -p "$LIBMRC_CACHE"
lipo -thin arm64e "$SOURCE_BIN" -output "$BIN.macos"
xcrun --sdk iphoneos clang \
- -arch arm64e -miphoneos-version-min=16.0 -isysroot "$SDK" \
+ -arch arm64e -miphoneos-version-min="$VZ_IPADOS_MIN_VERSION" -isysroot "$SDK" \
-dynamiclib -framework CoreFoundation -framework Security \
+ -framework SystemConfiguration \
-Wl,-reexport_framework,Security \
-Wl,-undefined,dynamic_lookup \
-install_name @rpath/AuthorizationCompat.dylib \
@@ -58,12 +78,63 @@ install_name_tool \
"$BIN.macos"
"$VZ_BUILD_ROOT/toolchain/venv/bin/python3" \
- "$VZ_REPO_ROOT/vz/stamp_ios.py" "$BIN.macos" "$BIN" 16.0
+ "$VZ_REPO_ROOT/vz/stamp_ios.py" "$BIN.macos" "$BIN" \
+ "$VZ_IPADOS_MIN_VERSION"
"$VZ_BUILD_ROOT/toolchain/venv/bin/python3" "$COMPAT_PATCH" "$BIN"
# Use Apple's signer so the entitlements are encoded in both the XML and DER
# slots consumed by iOS 16 AMFI, with a valid modern ad-hoc CodeDirectory.
codesign --force --sign - --entitlements "$ENTS" \
--generate-entitlement-der "$BIN"
+
+# Ventura InternetSharing uses libmrc for its DNS proxy. It does not exist on
+# iPadOS 15. Extract the exact companion library from the already-required
+# Ventura cache, adapt its arm64e Objective-C metadata, and select it only on
+# pre-16 hosts. iPadOS 16 continues to use its native system libmrc.
+if [[ ! -f "$LIBMRC_RAW" ]]; then
+ "$PYTHON" "$DYLDEX" -e /usr/lib/libmrc.dylib \
+ -o "$LIBMRC_RAW" "$DSC"
+fi
+VZ_IPSW="$IPSW" "$PYTHON" "$VZ_REPO_ROOT/vz/uncache.py" \
+ "$DSC" /usr/lib/libmrc.dylib "$LIBMRC_RAW" "$LIBMRC_PROTO" compact
+"$PYTHON" "$VZ_REPO_ROOT/vz/stamp_ios.py" \
+ "$LIBMRC_PROTO" "$LIBMRC_IPADOS15_AUTH" "$VZ_IPADOS_MIN_VERSION"
+"$PYTHON" "$VZ_REPO_ROOT/vz/patches/patch_ipados15_objc_imports.py" \
+ "$LIBMRC_IPADOS15_AUTH"
+codesign --force --sign - "$LIBMRC_IPADOS15_AUTH"
+cp "$LIBMRC_IPADOS15_AUTH" "$LIBMRC"
+"$PYTHON" "$VZ_REPO_ROOT/vz/patches/patch_ipados15_objc_class_data.py" \
+ "$LIBMRC"
+codesign --force --sign - "$LIBMRC"
+
+cp "$BIN" "$BIN.ipados16"
+cp "$BIN" "$BIN.ipados15"
+install_name_tool -change /usr/lib/libmrc.dylib \
+ @loader_path/../lib/libmrc.dylib "$BIN.ipados15"
+codesign --force --sign - --entitlements "$ENTS" \
+ --generate-entitlement-der "$BIN.ipados15"
+lipo -thin arm64e "$BIG_SUR_SOURCE_BIN" -output "$BIN.ipados14.macos"
+install_name_tool \
+ -change /System/Library/PrivateFrameworks/PacketFilter.framework/Versions/A/PacketFilter \
+ /System/Library/PrivateFrameworks/PacketFilter.framework/PacketFilter \
+ -change /System/Library/Frameworks/Security.framework/Versions/A/Security \
+ @loader_path/../lib/AuthorizationCompat.dylib \
+ -change /System/Library/Frameworks/ServiceManagement.framework/Versions/A/ServiceManagement \
+ /System/Library/PrivateFrameworks/ServiceManagement.framework/ServiceManagement \
+ -change /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation \
+ /System/Library/Frameworks/CoreFoundation.framework/CoreFoundation \
+ -change /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation \
+ /System/Library/Frameworks/Foundation.framework/Foundation \
+ -change /System/Library/Frameworks/SystemConfiguration.framework/Versions/A/SystemConfiguration \
+ /System/Library/Frameworks/SystemConfiguration.framework/SystemConfiguration \
+ -change /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit \
+ /System/Library/Frameworks/IOKit.framework/IOKit \
+ "$BIN.ipados14.macos"
+"$PYTHON" "$VZ_REPO_ROOT/vz/stamp_ios.py" \
+ "$BIN.ipados14.macos" "$BIN.ipados14" 14.5
+"$PYTHON" "$IPADOS14_PATCH" "$BIN.ipados14"
+codesign --force --sign - --entitlements "$ENTS" \
+ --generate-entitlement-der "$BIN.ipados14"
+rm -f "$BIN.ipados14.macos"
ldid -S "$AUTH_COMPAT"
rm -f "$BIN.macos"
@@ -93,8 +164,18 @@ otool -L "$BIN" | grep -Fq \
ldid -h "$BIN" >/dev/null
ldid -h "$AUTH_COMPAT" >/dev/null
codesign --verify --strict "$BIN"
+codesign --verify --strict "$BIN.ipados14"
+codesign --verify --strict "$BIN.ipados15"
+codesign --verify --strict "$BIN.ipados16"
+codesign --verify --strict "$LIBMRC"
+codesign --verify --strict "$LIBMRC_IPADOS15_AUTH"
python3 "$VZ_REPO_ROOT/scripts/audit-entitlements.py" \
"$ENTS" "$BIN" \
+ "$ENTS" "$BIN.ipados14" \
+ "$ENTS" "$BIN.ipados15" \
+ "$ENTS" "$BIN.ipados16" \
+ - "$LIBMRC" \
+ - "$LIBMRC_IPADOS15_AUTH" \
- "$AUTH_COMPAT"
"$SCRIPT_DIR/build-ipad-network-helpers.sh"
echo "iPad NetworkSharing daemon built: $OUT"
diff --git a/VirtualMac/scripts/build-ipad-videotoolbox.sh b/VirtualMac/scripts/build-ipad-videotoolbox.sh
index 3d8e6aa..308dd63 100755
--- a/VirtualMac/scripts/build-ipad-videotoolbox.sh
+++ b/VirtualMac/scripts/build-ipad-videotoolbox.sh
@@ -8,6 +8,8 @@ source "$SCRIPT_DIR/lib/common.sh"
DSC="$VZ_BUILD_ROOT/inputs/macos/22D68__MacOS/dyld_shared_cache_arm64e"
IMAGE="VideoToolbox.framework/Versions/A/VideoToolbox"
EXPECTED_UUID="3CDCD75D-0D43-3B00-8F86-8F3DCED33F5D"
+PV_IMAGE="VideoToolboxParavirtualizationSupport.framework/Versions/A/VideoToolboxParavirtualizationSupport"
+PV_EXPECTED_UUID="E13E3D99-0D6A-3C9B-A1FB-2B76E247A7B6"
PYTHON="$VZ_BUILD_ROOT/toolchain/venv/bin/python3"
DYLDEX="$VZ_BUILD_ROOT/toolchain/venv/bin/dyldex"
IPSW="$VZ_BUILD_ROOT/toolchain/bin/ipsw-a2sb"
@@ -16,6 +18,10 @@ RAW="$OUT/VideoToolbox.raw"
PROTO="$OUT/VideoToolbox.proto"
FRAMEWORK="$OUT/VideoToolbox.framework"
BIN="$FRAMEWORK/VideoToolbox"
+PV_RAW="$OUT/VideoToolboxParavirtualizationSupport.raw"
+PV_PROTO="$OUT/VideoToolboxParavirtualizationSupport.proto"
+PV_FRAMEWORK="$OUT/VideoToolboxParavirtualizationSupport.framework"
+PV_BIN="$PV_FRAMEWORK/VideoToolboxParavirtualizationSupport"
need_file "$DSC"
need_file "$DSC.01"
@@ -26,27 +32,55 @@ need_command codesign
need_command dyld_info
need_command dwarfdump
need_command otool
-mkdir -p "$OUT" "$FRAMEWORK"
+mkdir -p "$OUT" "$FRAMEWORK" "$PV_FRAMEWORK"
if [[ ! -f "$RAW" ]]; then
"$DYLDEX" -e "$IMAGE" -o "$RAW" "$DSC"
fi
+if [[ ! -f "$PV_RAW" ]]; then
+ "$DYLDEX" -e "$PV_IMAGE" -o "$PV_RAW" "$DSC"
+fi
-VZ_IPSW="$IPSW" VZ_WEAKEN=AppleVA \
+# AppleVA is not present on iPadOS, and ColorSync.framework was only added to
+# iPadOS after 15. Both dependencies are optional for the paravirtualization
+# host endpoint used by the VMM; when present on iPadOS 16, weak loading still
+# resolves and uses them normally.
+VZ_IPSW="$IPSW" VZ_WEAKEN=AppleVA,ColorSync \
"$PYTHON" "$VZ_REPO_ROOT/vz/uncache.py" \
"$DSC" "$IMAGE" "$RAW" "$PROTO" compact
-"$PYTHON" "$VZ_REPO_ROOT/vz/stamp_ios.py" "$PROTO" "$BIN" 16.0
+"$PYTHON" "$VZ_REPO_ROOT/vz/stamp_ios.py" "$PROTO" "$BIN" \
+ "$VZ_IPADOS_MIN_VERSION"
chmod 755 "$BIN"
+# iPadOS 16 already contains this private support framework, but iPadOS 15
+# does not. Ventura's VideoToolbox host endpoint weak-links it and silently
+# leaves the AVP transport unavailable when dyld cannot find it. Bundle the
+# matching Ventura implementation so the legacy runtime can expose the actual
+# paravirtualized video device to the guest.
+VZ_IPSW="$IPSW" "$PYTHON" "$VZ_REPO_ROOT/vz/uncache.py" \
+ "$DSC" "$PV_IMAGE" "$PV_RAW" "$PV_PROTO" compact
+"$PYTHON" "$VZ_REPO_ROOT/vz/stamp_ios.py" "$PV_PROTO" "$PV_BIN" \
+ "$VZ_IPADOS_MIN_VERSION"
+chmod 755 "$PV_BIN"
+
uuid="$(dwarfdump --uuid "$BIN" | awk '{print $2}')"
[[ "$uuid" == "$EXPECTED_UUID" ]] ||
die "VideoToolbox UUID mismatch: expected $EXPECTED_UUID, got $uuid"
codesign --verify "$BIN"
+pv_uuid="$(dwarfdump --uuid "$PV_BIN" | awk '{print $2}')"
+[[ "$pv_uuid" == "$PV_EXPECTED_UUID" ]] ||
+ die "VideoToolbox PV support UUID mismatch: expected $PV_EXPECTED_UUID, got $pv_uuid"
+codesign --force --sign - "$PV_BIN"
+codesign --verify "$PV_BIN"
otool -l "$BIN" >"$OUT/load-commands.txt"
grep -A5 LC_LOAD_WEAK_DYLIB "$OUT/load-commands.txt" |
grep -F /System/Library/PrivateFrameworks/AppleVA.framework/AppleVA \
>/dev/null ||
die "VideoToolbox AppleVA dependency is not weak"
+grep -A5 LC_LOAD_WEAK_DYLIB "$OUT/load-commands.txt" |
+ grep -F /System/Library/Frameworks/ColorSync.framework/ColorSync \
+ >/dev/null ||
+ die "VideoToolbox ColorSync dependency is not weak"
dyld_info -exports "$BIN" >"$OUT/exports.txt"
for symbol in \
_VTParavirtualizationHostSessionCreate \
@@ -56,4 +90,12 @@ for symbol in \
die "VideoToolbox is missing export: $symbol"
done
-echo "matching Ventura VideoToolbox host endpoint built: $FRAMEWORK"
+for symbol in \
+ _VTParavirtualizationGuestSupportRegisterGuestUUID \
+ _VTParavirtualizationGuestSupportSendRawMessageToHost \
+ _VTParavirtualizationGuestSupportSetUpWithHandlers; do
+ dyld_info -exports "$PV_BIN" | grep -F "$symbol" >/dev/null ||
+ die "VideoToolbox PV support is missing export: $symbol"
+done
+
+echo "matching Ventura VideoToolbox host endpoint built: $FRAMEWORK and $PV_FRAMEWORK"
diff --git a/VirtualMac/scripts/build-ipad-vm.sh b/VirtualMac/scripts/build-ipad-vm.sh
index 188b4d0..0b6e09f 100755
--- a/VirtualMac/scripts/build-ipad-vm.sh
+++ b/VirtualMac/scripts/build-ipad-vm.sh
@@ -16,6 +16,13 @@ VMM_BIN="$VMM/Contents/MacOS/com.apple.Virtualization.VirtualMachine"
# shared runtime directory. Keep XPC-private compatibility dylibs here too so
# the package has one authoritative framework location.
VMM_FRAMEWORKS="$FRAMEWORKS"
+IPADOS15_COMPAT="$PAYLOAD/Compatibility/iPadOS15"
+IPADOS15_AUTH_COMPAT="$PAYLOAD/Compatibility/iPadOS15Authenticated"
+IPADOS14_COMPAT="$PAYLOAD/Compatibility/iPadOS14"
+IPADOS14_HV="$VZ_BUILD_ROOT/ipados14-hypervisor"
+LIBSYSTEM15_COMPAT="$VMM_FRAMEWORKS/LibSystem15Compat.dylib"
+IOKIT15_COMPAT="$VMM_FRAMEWORKS/IOKit15Compat.dylib"
+IOKIT14_COMPAT="$OUT/ipados14-vmm/IOKit15Compat.dylib"
SOURCE_VZ="$VZ_BUILD_ROOT/inputs/macos/22D68__MacOS/System/Library/Frameworks/Virtualization.framework/Versions/A"
SOURCE_VMM="$SOURCE_VZ/XPCServices/com.apple.Virtualization.VirtualMachine.xpc"
IOS_FRAMEWORKS="$VZ_BUILD_ROOT/frameworks/bundles/ios"
@@ -28,8 +35,16 @@ MACHO_CSTRING_PATCH="$VZ_REPO_ROOT/vz/patches/patch_macho_cstring.py"
METAL_SERIALIZER_FRAMEWORK="$IOS_FRAMEWORKS/MetalSerializer.framework"
VMNET_FRAMEWORK="$VZ_BUILD_ROOT/ipad-vmnet/vmnet.framework"
NETRB_FRAMEWORK="$VZ_BUILD_ROOT/ipad-netrb/Netrb.framework"
+IPADOS14_VMNET_FRAMEWORK="$VZ_BUILD_ROOT/ipad-vmnet14/vmnet.framework"
+IPADOS14_NETRB_FRAMEWORK="$VZ_BUILD_ROOT/ipad-netrb14/Netrb.framework"
VIDEOTOOLBOX_FRAMEWORK="$VZ_BUILD_ROOT/ipad-videotoolbox/VideoToolbox.framework"
+VIDEOTOOLBOX_PV_FRAMEWORK="$VZ_BUILD_ROOT/ipad-videotoolbox/VideoToolboxParavirtualizationSupport.framework"
+DISKIMAGES2_FRAMEWORK="$VZ_BUILD_ROOT/ipad-diskimages2/DiskImages2.framework"
ENTITLEMENT_AUDIT="$VZ_REPO_ROOT/scripts/audit-entitlements.py"
+IPADOS15_OBJC_PATCH="$VZ_REPO_ROOT/vz/patches/patch_ipados15_objc_class_data.py"
+IPADOS15_OBJC_IMPORT_PATCH="$VZ_REPO_ROOT/vz/patches/patch_ipados15_objc_imports.py"
+IPADOS14_VMM_VMNET_PATCH="$VZ_REPO_ROOT/vz/patches/patch_ipados14_vmm_vmnet_import.py"
+VMM_IPADOS14_ENTS="$OUT/vmm-ipados14.ents.xml"
need_command codesign
need_command ditto
@@ -47,19 +62,103 @@ need_file "$VMM_PCI_ADDRESS_PATCH"
need_file "$PVG_EXCEPTION_LOG_PATCH"
need_file "$MACHO_CSTRING_PATCH"
need_file "$ENTITLEMENT_AUDIT"
-need_file "$METAL_SERIALIZER_FRAMEWORK/Versions/A/MetalSerializer"
+need_file "$IPADOS15_OBJC_PATCH"
+need_file "$IPADOS15_OBJC_IMPORT_PATCH"
+need_file "$IPADOS14_VMM_VMNET_PATCH"
need_file "$VZ_REPO_ROOT/vz/host/pvg_trace.m"
need_file "$VZ_REPO_ROOT/vz/shaders/pvg_display.metal"
+
+macho_matches_target() {
+ local candidate="$1"
+ [[ -f "$candidate" ]] && otool -l "$candidate" | awk \
+ -v target="$VZ_IPADOS_MIN_VERSION" '
+ /cmd LC_BUILD_VERSION/ { found=1 }
+ found && /minos/ { checked=1; exit !($2 == target) }
+ END { if (!found || !checked) exit 1 }
+ '
+}
+
+restamp_bundle() {
+ local binary="$1" bundle="$2" temporary
+ temporary="$binary.restamped"
+ "$VZ_BUILD_ROOT/toolchain/venv/bin/python3" \
+ "$VZ_REPO_ROOT/vz/stamp_ios.py" "$binary" "$temporary" \
+ "$VZ_IPADOS_MIN_VERSION"
+ mv -f "$temporary" "$binary"
+ chmod 755 "$binary"
+ codesign --force --sign - "$bundle"
+}
+
+frameworks_present=1
+for name in Hypervisor ParavirtualizedGraphics Virtualization; do
+ candidate="$IOS_FRAMEWORKS/$name.framework/Versions/A/$name"
+ [[ -f "$candidate" ]] || frameworks_present=0
+done
+[[ -f "$METAL_SERIALIZER_FRAMEWORK/Versions/A/MetalSerializer" ]] || \
+ frameworks_present=0
+if (( frameworks_present )) && [[ "${VZ_REUSE_EXTRACTED_RUNTIME:-0}" == 1 ]]; then
+ # Changing LC_BUILD_VERSION does not require re-running dyld extraction.
+ # This is the fast path used while extending the same Ventura runtime to
+ # an older iPadOS deployment floor.
+ for name in Hypervisor ParavirtualizedGraphics Virtualization; do
+ candidate="$IOS_FRAMEWORKS/$name.framework/Versions/A/$name"
+ macho_matches_target "$candidate" || \
+ restamp_bundle "$candidate" "$IOS_FRAMEWORKS/$name.framework"
+ done
+ candidate="$METAL_SERIALIZER_FRAMEWORK/Versions/A/MetalSerializer"
+ macho_matches_target "$candidate" || \
+ restamp_bundle "$candidate" "$METAL_SERIALIZER_FRAMEWORK"
+elif (( ! frameworks_present )); then
+ echo "rebuilding Ventura framework bundles for iPadOS $VZ_IPADOS_MIN_VERSION"
+ "$SCRIPT_DIR/build-frameworks.sh"
+fi
+need_file "$METAL_SERIALIZER_FRAMEWORK/Versions/A/MetalSerializer"
for name in Hypervisor ParavirtualizedGraphics Virtualization; do
need_file "$IOS_FRAMEWORKS/$name.framework/Versions/A/$name"
done
-"$SCRIPT_DIR/build-ipad-vmnet.sh"
-"$SCRIPT_DIR/build-ipad-netrb.sh"
-"$SCRIPT_DIR/build-ipad-videotoolbox.sh"
+if [[ "${VZ_REUSE_EXTRACTED_RUNTIME:-0}" == 1 ]]; then
+ [[ -f "$VMNET_FRAMEWORK/vmnet" ]] || "$SCRIPT_DIR/build-ipad-vmnet.sh"
+ [[ -f "$NETRB_FRAMEWORK/Netrb" ]] || "$SCRIPT_DIR/build-ipad-netrb.sh"
+ [[ -f "$VIDEOTOOLBOX_FRAMEWORK/VideoToolbox" ]] || \
+ "$SCRIPT_DIR/build-ipad-videotoolbox.sh"
+ [[ -f "$VIDEOTOOLBOX_PV_FRAMEWORK/VideoToolboxParavirtualizationSupport" ]] || \
+ "$SCRIPT_DIR/build-ipad-videotoolbox.sh"
+ [[ -f "$DISKIMAGES2_FRAMEWORK/Versions/A/DiskImages2" ]] || \
+ "$SCRIPT_DIR/build-ipad-diskimages2.sh"
+ macho_matches_target "$VMNET_FRAMEWORK/vmnet" || \
+ restamp_bundle "$VMNET_FRAMEWORK/vmnet" "$VMNET_FRAMEWORK"
+ macho_matches_target "$NETRB_FRAMEWORK/Netrb" || \
+ restamp_bundle "$NETRB_FRAMEWORK/Netrb" "$NETRB_FRAMEWORK"
+ macho_matches_target "$VIDEOTOOLBOX_FRAMEWORK/VideoToolbox" || \
+ restamp_bundle "$VIDEOTOOLBOX_FRAMEWORK/VideoToolbox" \
+ "$VIDEOTOOLBOX_FRAMEWORK"
+ macho_matches_target "$VIDEOTOOLBOX_PV_FRAMEWORK/VideoToolboxParavirtualizationSupport" || \
+ restamp_bundle \
+ "$VIDEOTOOLBOX_PV_FRAMEWORK/VideoToolboxParavirtualizationSupport" \
+ "$VIDEOTOOLBOX_PV_FRAMEWORK"
+ macho_matches_target "$DISKIMAGES2_FRAMEWORK/Versions/A/DiskImages2" || \
+ restamp_bundle "$DISKIMAGES2_FRAMEWORK/Versions/A/DiskImages2" \
+ "$DISKIMAGES2_FRAMEWORK"
+else
+ "$SCRIPT_DIR/build-ipad-vmnet.sh"
+ "$SCRIPT_DIR/build-ipad-netrb.sh"
+ "$SCRIPT_DIR/build-ipad-videotoolbox.sh"
+ "$SCRIPT_DIR/build-ipad-diskimages2.sh"
+fi
need_file "$VMNET_FRAMEWORK/vmnet"
need_file "$NETRB_FRAMEWORK/Netrb"
need_file "$VIDEOTOOLBOX_FRAMEWORK/VideoToolbox"
+need_file "$VIDEOTOOLBOX_PV_FRAMEWORK/VideoToolboxParavirtualizationSupport"
+need_file "$DISKIMAGES2_FRAMEWORK/Versions/A/DiskImages2"
+
+if [[ "${VZ_REUSE_EXTRACTED_RUNTIME:-0}" != 1 ||
+ ! -f "$IPADOS14_VMNET_FRAMEWORK/vmnet" ||
+ ! -f "$IPADOS14_NETRB_FRAMEWORK/Netrb" ]]; then
+ "$SCRIPT_DIR/build-ipados14-network-stack.sh"
+fi
+need_file "$IPADOS14_VMNET_FRAMEWORK/vmnet"
+need_file "$IPADOS14_NETRB_FRAMEWORK/Netrb"
rm -rf "$PAYLOAD"
mkdir -p "$BIN" "$FRAMEWORKS"
@@ -91,6 +190,10 @@ lipo -thin arm64e \
ditto "$NETRB_FRAMEWORK" "$VMM_FRAMEWORKS/Netrb.framework"
ditto "$VIDEOTOOLBOX_FRAMEWORK" \
"$VMM_FRAMEWORKS/VideoToolbox.framework"
+ditto "$VIDEOTOOLBOX_PV_FRAMEWORK" \
+ "$VMM_FRAMEWORKS/VideoToolboxParavirtualizationSupport.framework"
+ditto "$DISKIMAGES2_FRAMEWORK" \
+ "$VMM_FRAMEWORKS/DiskImages2.framework"
"$VZ_BUILD_ROOT/toolchain/venv/bin/python3" \
"$MACHO_CSTRING_PATCH" \
"$VMM_FRAMEWORKS/vmnet.framework/vmnet" \
@@ -116,33 +219,52 @@ PVG_RESOURCES="$VMM_FRAMEWORKS/ParavirtualizedGraphics.framework/Versions/A/Reso
cp "$PVG_RESOURCES/default.metallib" \
"$PVG_RESOURCES/default.macos.metallib"
xcrun --sdk iphoneos metal \
- -std=metal3.0 -mios-version-min=16.0 -ffast-math \
+ -std=metal3.0 -mios-version-min="$VZ_IPADOS_MIN_VERSION" -ffast-math \
-c "$VZ_REPO_ROOT/vz/shaders/pvg_display.metal" \
-o "$OUT/pvg_display.air"
xcrun --sdk iphoneos metallib \
"$OUT/pvg_display.air" \
-o "$PVG_RESOURCES/default.metallib"
+# iPadOS 15's Metal runtime predates Metal language 3.0. Keep the established
+# iPadOS 16 library as default and bundle an ABI-identical older-language set
+# selected by the PVG hook only on pre-16 hosts.
+xcrun --sdk iphoneos metal \
+ -std=ios-metal2.4 -mios-version-min=15.0 -ffast-math \
+ -c "$VZ_REPO_ROOT/vz/shaders/pvg_display.metal" \
+ -o "$OUT/pvg_display.ipados15.air"
+xcrun --sdk iphoneos metallib \
+ "$OUT/pvg_display.ipados15.air" \
+ -o "$PVG_RESOURCES/default.ipados15.metallib"
+# iPadOS 14.5 supports Metal language 2.3. Keep this as a third resource;
+# runtime selection is exact, so neither established newer-host path changes.
+xcrun --sdk iphoneos metal \
+ -std=ios-metal2.3 -mios-version-min=14.5 -ffast-math \
+ -c "$VZ_REPO_ROOT/vz/shaders/pvg_display.metal" \
+ -o "$OUT/pvg_display.ipados14.air"
+xcrun --sdk iphoneos metallib \
+ "$OUT/pvg_display.ipados14.air" \
+ -o "$PVG_RESOURCES/default.ipados14.metallib"
xcrun --sdk iphoneos clang \
- -arch arm64 -miphoneos-version-min=16.0 -isysroot "$SDK" -fblocks \
+ -arch arm64 -miphoneos-version-min="$VZ_IPADOS_MIN_VERSION" -isysroot "$SDK" -fblocks \
-framework Foundation \
"$VZ_REPO_ROOT/vz/host/vzboot.m" \
-o "$BIN/vzboot"
xcrun --sdk iphoneos clang \
- -arch arm64 -miphoneos-version-min=16.0 -isysroot "$SDK" \
+ -arch arm64 -miphoneos-version-min="$VZ_IPADOS_MIN_VERSION" -isysroot "$SDK" \
-framework Foundation -framework Metal -framework UIKit \
-Wl,-export_dynamic \
"$VZ_REPO_ROOT/vz/host/NSViewShim.m" \
"$VZ_REPO_ROOT/vz/development/probes/objc_methods.m" \
-o "$BIN/objc-methods"
xcrun --sdk iphoneos clang \
- -arch arm64e -miphoneos-version-min=16.0 -isysroot "$SDK" \
+ -arch arm64e -miphoneos-version-min="$VZ_IPADOS_MIN_VERSION" -isysroot "$SDK" \
-dynamiclib -fblocks -Wl,-undefined,dynamic_lookup \
-install_name "@rpath/VZHostCompat.dylib" \
"$VZ_REPO_ROOT/vz/host/vzxpchook.m" \
-o "$BIN/VZHostCompat.dylib"
xcrun --sdk iphoneos clang \
- -arch arm64e -miphoneos-version-min=16.0 -isysroot "$SDK" \
+ -arch arm64e -miphoneos-version-min="$VZ_IPADOS_MIN_VERSION" -isysroot "$SDK" \
-dynamiclib \
-framework Foundation -framework Metal \
-Wl,-reexport_framework,Metal \
@@ -150,7 +272,7 @@ xcrun --sdk iphoneos clang \
"$VZ_REPO_ROOT/vz/host/metalshim.m" \
-o "$VMM_FRAMEWORKS/MetalCompat.dylib"
xcrun --sdk iphoneos clang \
- -arch arm64e -miphoneos-version-min=16.0 -isysroot "$SDK" \
+ -arch arm64e -miphoneos-version-min="$VZ_IPADOS_MIN_VERSION" -isysroot "$SDK" \
-dynamiclib -fblocks -Wl,-undefined,dynamic_lookup \
-framework AVFAudio \
-framework CoreFoundation -framework CoreServices \
@@ -161,9 +283,32 @@ xcrun --sdk iphoneos clang \
"$VZ_REPO_ROOT/vz/host/vmmhook.m" \
"$VZ_REPO_ROOT/vz/host/pvg_trace.m" \
-o "$VMM_FRAMEWORKS/LaunchServicesCompat.dylib"
+xcrun --sdk iphoneos clang \
+ -arch arm64e -miphoneos-version-min="$VZ_IPADOS_MIN_VERSION" -isysroot "$SDK" \
+ -dynamiclib \
+ -Wl,-reexport_library,"$SDK/usr/lib/libSystem.B.tbd" \
+ -install_name "@rpath/LibSystem15Compat.dylib" \
+ "$VZ_REPO_ROOT/vz/host/libsystem15_compat.c" \
+ -o "$LIBSYSTEM15_COMPAT"
+xcrun --sdk iphoneos clang \
+ -arch arm64e -miphoneos-version-min="$VZ_IPADOS_MIN_VERSION" -isysroot "$SDK" \
+ -dynamiclib -framework CoreFoundation \
+ -Wl,-reexport_framework,IOKit \
+ -install_name "@rpath/IOKit15Compat.dylib" \
+ "$VZ_REPO_ROOT/vz/host/iokit15_compat.c" \
+ -o "$IOKIT15_COMPAT"
+mkdir -p "$(dirname "$IOKIT14_COMPAT")"
+xcrun --sdk iphoneos clang \
+ -arch arm64e -miphoneos-version-min="$VZ_IPADOS_MIN_VERSION" -isysroot "$SDK" \
+ -dynamiclib -framework CoreFoundation \
+ -Wl,-reexport_framework,IOKit \
+ -install_name "@rpath/IOKit15Compat.dylib" \
+ "$VZ_REPO_ROOT/vz/host/iokit14_compat.c" \
+ -o "$IOKIT14_COMPAT"
"$VZ_BUILD_ROOT/toolchain/venv/bin/python3" \
- "$VZ_REPO_ROOT/vz/stamp_ios.py" "$VMM_BIN" "$VMM_BIN.ios" 16.0
+ "$VZ_REPO_ROOT/vz/stamp_ios.py" "$VMM_BIN" "$VMM_BIN.ios" \
+ "$VZ_IPADOS_MIN_VERSION"
mv -f "$VMM_BIN.ios" "$VMM_BIN"
install_name_tool \
@@ -236,9 +381,12 @@ ldid -S"$ENTS" "$BIN/objc-methods"
ldid -S"$ENTS" "$BIN/VZHostCompat.dylib"
for dylib in \
"$VMM_FRAMEWORKS/MetalCompat.dylib" \
- "$VMM_FRAMEWORKS/LaunchServicesCompat.dylib"; do
+ "$VMM_FRAMEWORKS/LaunchServicesCompat.dylib" \
+ "$LIBSYSTEM15_COMPAT" \
+ "$IOKIT15_COMPAT"; do
ldid -S"$VMM_ENTS" "$dylib"
done
+
codesign --verify "$VMM_FRAMEWORKS/vmnet.framework/vmnet"
codesign --force --sign - \
--preserve-metadata=entitlements,requirements,flags,runtime \
@@ -247,6 +395,167 @@ codesign --force --sign - \
--preserve-metadata=entitlements,requirements,flags,runtime "$PVG_BINARY"
ldid -S"$VMM_ENTS" "$VMM_BIN"
+# iPadOS 15's native DiskImages2 predates the C++ ABI used by Ventura's VMM.
+# Preserve the established iPadOS 16 binary verbatim and build a second VMM
+# whose only difference is loading the bundled matching Ventura framework.
+# postinst selects the appropriate binary from the actual host version.
+VMM_IPADOS16="$VMM_BIN.ipados16"
+VMM_IPADOS15="$VMM_BIN.ipados15"
+VMM_IPADOS14="$VMM_BIN.ipados14"
+cp "$VMM_BIN" "$VMM_IPADOS16"
+cp "$VMM_BIN" "$VMM_IPADOS15"
+install_name_tool -change \
+ /System/Library/PrivateFrameworks/DiskImages2.framework/DiskImages2 \
+ @loader_path/../../../Frameworks/DiskImages2.framework/DiskImages2 \
+ -change /usr/lib/libSystem.B.dylib \
+ @loader_path/../../../Frameworks/LibSystem15Compat.dylib \
+ -change /System/Library/Frameworks/IOKit.framework/IOKit \
+ @loader_path/../../../Frameworks/IOKit15Compat.dylib \
+ "$VMM_IPADOS15"
+"$VZ_BUILD_ROOT/toolchain/venv/bin/python3" \
+ "$IPADOS15_OBJC_IMPORT_PATCH" "$VMM_IPADOS15"
+# The optional PVG reset-retain list can be null when RestoreOS tears down its
+# first graphics context. Both iPadOS 14 and newer 15.x libobjc paths expose
+# the same Ventura VMM cleanup bug; guard only the older-host VMM variant.
+"$VZ_BUILD_ROOT/toolchain/venv/bin/python3" \
+ "$VZ_REPO_ROOT/vz/patches/patch_vmm_optional_pvg_reset.py" \
+ "$VMM_IPADOS15"
+ldid -Icom.apple.Virtualization.VirtualMachine \
+ -S"$VMM_ENTS" "$VMM_IPADOS15"
+"$VZ_BUILD_ROOT/toolchain/venv/bin/python3" \
+ "$VZ_REPO_ROOT/vz/stamp_ios.py" "$VMM_IPADOS15" "$VMM_IPADOS14" 14.5
+install_name_tool \
+ -change @loader_path/../../../Frameworks/LibSystem15Compat.dylib \
+ @loader_path/../../../Frameworks/LibSystem14 \
+ -change /usr/lib/libc++.1.dylib \
+ @loader_path/../../../Frameworks/LibCxx.dylib \
+ "$VMM_IPADOS14"
+"$VZ_BUILD_ROOT/toolchain/venv/bin/python3" \
+ "$IPADOS14_VMM_VMNET_PATCH" "$VMM_IPADOS14"
+"$VZ_BUILD_ROOT/toolchain/venv/bin/python3" \
+ "$VZ_REPO_ROOT/vz/patches/patch_vmm_optional_pvg_reset.py" \
+ "$VMM_IPADOS14"
+cp "$VMM_ENTS" "$VMM_IPADOS14_ENTS"
+/usr/libexec/PlistBuddy -c \
+ "Add :com.apple.MobileInternetSharing.allow bool true" \
+ "$VMM_IPADOS14_ENTS"
+ldid -Icom.apple.Virtualization.VirtualMachine \
+ -S"$VMM_IPADOS14_ENTS" "$VMM_IPADOS14"
+
+# The iPadOS 14 VMM's vmnet path requires both its private checksum data-plane
+# interposer and MobileInternetSharing entitlement. Compile only that hot-path
+# difference separately; Hypervisor compatibility remains runtime-selected in
+# the common source on every host.
+VMM_HOOK_IPADOS14="$VMM_FRAMEWORKS/LaunchServicesCompat.dylib.ipados14"
+xcrun --sdk iphoneos clang \
+ -arch arm64e -miphoneos-version-min="$VZ_IPADOS_MIN_VERSION" -isysroot "$SDK" \
+ -dynamiclib -fblocks -Wl,-undefined,dynamic_lookup \
+ -DVZ_IPADOS14_NETWORK_COMPAT=1 \
+ -framework AVFAudio \
+ -framework CoreFoundation -framework CoreServices \
+ -framework Foundation -framework IOKit -framework Metal \
+ -Wl,-reexport_framework,CoreServices \
+ -install_name "@rpath/LaunchServicesCompat.dylib" \
+ "$VZ_REPO_ROOT/vz/host/lsshim.m" \
+ "$VZ_REPO_ROOT/vz/host/vmmhook.m" \
+ "$VZ_REPO_ROOT/vz/host/pvg_trace.m" \
+ -o "$VMM_HOOK_IPADOS14"
+ldid -ILaunchServicesCompat.dylib \
+ -S"$VMM_IPADOS14_ENTS" "$VMM_HOOK_IPADOS14"
+
+# Ventura uses its newer arm64e Objective-C ABI for class_t::data. Preserve
+# every established framework byte-for-byte in its normal location and keep
+# legacy-ABI replacement binaries outside the signed bundles. postinst copies
+# them into place only on iPadOS 14/15; iPadOS 16 never loads this adaptation.
+mkdir -p "$IPADOS15_COMPAT" "$IPADOS15_AUTH_COMPAT"
+legacy_objc_binaries=(
+ "Hypervisor|$FRAMEWORKS/Hypervisor.framework/Versions/A/Hypervisor"
+ "ParavirtualizedGraphics|$FRAMEWORKS/ParavirtualizedGraphics.framework/Versions/A/ParavirtualizedGraphics"
+ "Virtualization|$FRAMEWORKS/Virtualization.framework/Versions/A/Virtualization"
+ "MetalSerializer|$FRAMEWORKS/MetalSerializer.framework/Versions/A/MetalSerializer"
+ "VideoToolbox|$FRAMEWORKS/VideoToolbox.framework/VideoToolbox"
+ "DiskImages2|$FRAMEWORKS/DiskImages2.framework/Versions/A/DiskImages2"
+)
+for specification in "${legacy_objc_binaries[@]}"; do
+ name="${specification%%|*}"
+ binary="${specification#*|}"
+ authenticated="$IPADOS15_AUTH_COMPAT/$name"
+ legacy="$IPADOS15_COMPAT/$name"
+ cp "$binary" "$authenticated"
+ "$VZ_BUILD_ROOT/toolchain/venv/bin/python3" \
+ "$IPADOS15_OBJC_IMPORT_PATCH" "$authenticated"
+ cp "$authenticated" "$legacy"
+ "$VZ_BUILD_ROOT/toolchain/venv/bin/python3" \
+ "$IPADOS15_OBJC_PATCH" "$legacy"
+ codesign --force --sign - "$authenticated"
+ codesign --force --sign - "$legacy"
+done
+
+# Only the pre-iPadOS 16 VideoToolbox replacement must prefer the bundled
+# support framework. Leave the normal binary untouched so iPadOS 16 keeps
+# loading its proven system copy byte-for-byte.
+"$VZ_BUILD_ROOT/toolchain/venv/bin/python3" \
+ "$MACHO_CSTRING_PATCH" "$IPADOS15_COMPAT/VideoToolbox" \
+ /System/Library/PrivateFrameworks/VideoToolboxParavirtualizationSupport.framework/VideoToolboxParavirtualizationSupport \
+ @loader_path/../VideoToolboxParavirtualizationSupport.framework/VideoToolboxParavirtualizationSupport
+codesign --force --sign - "$IPADOS15_COMPAT/VideoToolbox"
+"$VZ_BUILD_ROOT/toolchain/venv/bin/python3" \
+ "$MACHO_CSTRING_PATCH" "$IPADOS15_AUTH_COMPAT/VideoToolbox" \
+ /System/Library/PrivateFrameworks/VideoToolboxParavirtualizationSupport.framework/VideoToolboxParavirtualizationSupport \
+ @loader_path/../VideoToolboxParavirtualizationSupport.framework/VideoToolboxParavirtualizationSupport
+codesign --force --sign - "$IPADOS15_AUTH_COMPAT/VideoToolbox"
+
+# iPadOS 14 uses the same legacy Objective-C ABI adaptation as iPadOS 15,
+# but dyld also requires an image whose deployment target is no newer than
+# the host. Preserve the proven iPadOS 15 copies and restamp separate files.
+mkdir -p "$IPADOS14_COMPAT"
+ldid -S"$VMM_ENTS" "$IOKIT14_COMPAT"
+cp "$IOKIT14_COMPAT" "$IPADOS14_COMPAT/IOKit15Compat.dylib"
+for legacy15 in "$IPADOS15_COMPAT"/*; do
+ name="$(basename "$legacy15")"
+ legacy14_input="$legacy15"
+ if [[ "$name" == Virtualization ]]; then
+ # iPadOS 14's dyld does not coalesce a preloaded framework by its
+ # missing macOS install-name path. Retarget only the 14.x copy; the
+ # proven iPadOS 15 and 16 framework images remain unchanged.
+ cp "$legacy15" "$OUT/Virtualization.ipados14.input"
+ "$VZ_BUILD_ROOT/toolchain/venv/bin/python3" \
+ "$MACHO_CSTRING_PATCH" "$OUT/Virtualization.ipados14.input" \
+ /System/Library/Frameworks/Hypervisor.framework/Hypervisor \
+ @loader_path/../../../Hypervisor.framework/Hypervisor
+ legacy14_input="$OUT/Virtualization.ipados14.input"
+ fi
+ "$VZ_BUILD_ROOT/toolchain/venv/bin/python3" \
+ "$VZ_REPO_ROOT/vz/stamp_ios.py" "$legacy14_input" \
+ "$IPADOS14_COMPAT/$name" 14.5
+ if [[ "$name" == VideoToolbox ]]; then
+ # iPadOS 14 preloads its system VideoToolbox before the VMM's explicit
+ # @loader_path dependency is resolved. If the extracted framework
+ # retains Apple's system LC_ID_DYLIB, old dyld coalesces the two and
+ # the VMM later calls missing Mac host-session exports through NULL.
+ # Give only the 14.x compatibility copy a private identity so the
+ # bundled Ventura implementation is mapped as a distinct image.
+ "$VZ_BUILD_ROOT/toolchain/venv/bin/python3" \
+ "$MACHO_CSTRING_PATCH" "$IPADOS14_COMPAT/$name" \
+ /System/Library/Frameworks/VideoToolbox.framework/VideoToolbox \
+ @rpath/VirtualMacVideoToolbox
+ fi
+ codesign --force --sign - "$IPADOS14_COMPAT/$name"
+done
+
+# iPadOS 14/XNU 20 uses the aligned Big Sur Hypervisor implementation. The
+# facade preserves Ventura VMM's newer public imports while forwarding the
+# common ABI to Apple's matching binary. These copies overwrite only the 14.x
+# compatibility slot; iPadOS 15 continues using Ventura Hypervisor unchanged.
+"$SCRIPT_DIR/build-ipados14-hypervisor.sh"
+cp "$IPADOS14_HV/Hypervisor" "$IPADOS14_COMPAT/Hypervisor"
+cp "$IPADOS14_HV/HypervisorBigSur" "$IPADOS14_COMPAT/HypervisorBigSur"
+cp "$IPADOS14_HV/LibSystemCompat.dylib" \
+ "$IPADOS14_COMPAT/LibSystemCompat.dylib"
+cp "$IPADOS14_HV/LibCxx.dylib" "$VMM_FRAMEWORKS/LibCxx.dylib"
+cp "$IPADOS14_VMNET_FRAMEWORK/vmnet" "$IPADOS14_COMPAT/vmnet"
+cp "$IPADOS14_NETRB_FRAMEWORK/Netrb" "$IPADOS14_COMPAT/Netrb"
+
# Finder and BridgeSupport metadata from the extracted frameworks are not
# used by the Objective-C runtime. Remove them before resealing every
# structured framework whose resource envelope may have referenced them.
@@ -257,7 +566,8 @@ for framework in \
"$FRAMEWORKS/Hypervisor.framework" \
"$FRAMEWORKS/ParavirtualizedGraphics.framework" \
"$FRAMEWORKS/Virtualization.framework" \
- "$FRAMEWORKS/MetalSerializer.framework"; do
+ "$FRAMEWORKS/MetalSerializer.framework" \
+ "$FRAMEWORKS/DiskImages2.framework"; do
codesign --force --sign - \
--preserve-metadata=entitlements,requirements,flags,runtime \
"$framework"
@@ -269,15 +579,25 @@ done
"$ENTS" "$BIN/objc-methods" \
"$ENTS" "$BIN/VZHostCompat.dylib" \
"$VMM_ENTS" "$VMM_BIN" \
+ "$VMM_IPADOS14_ENTS" "$VMM_IPADOS14" \
+ "$VMM_ENTS" "$VMM_IPADOS15" \
+ "$VMM_ENTS" "$VMM_IPADOS16" \
"$VMM_ENTS" "$VMM_FRAMEWORKS/MetalCompat.dylib" \
"$VMM_ENTS" "$VMM_FRAMEWORKS/LaunchServicesCompat.dylib" \
+ "$VMM_IPADOS14_ENTS" "$VMM_HOOK_IPADOS14" \
+ "$VMM_ENTS" "$IPADOS14_COMPAT/Hypervisor" \
+ "$VMM_ENTS" "$IPADOS14_COMPAT/LibSystemCompat.dylib" \
+ "$VMM_ENTS" "$LIBSYSTEM15_COMPAT" \
+ "$VMM_ENTS" "$IOKIT15_COMPAT" \
- "$FRAMEWORKS/Hypervisor.framework/Versions/A/Hypervisor" \
- "$FRAMEWORKS/ParavirtualizedGraphics.framework/Versions/A/ParavirtualizedGraphics" \
- "$FRAMEWORKS/Virtualization.framework/Versions/A/Virtualization" \
- "$VMM_FRAMEWORKS/vmnet.framework/vmnet" \
- "$VMM_FRAMEWORKS/Netrb.framework/Netrb" \
- "$METAL_SERIALIZER_BINARY" \
- - "$VMM_FRAMEWORKS/VideoToolbox.framework/VideoToolbox"
+ - "$VMM_FRAMEWORKS/VideoToolbox.framework/VideoToolbox" \
+ - "$VMM_FRAMEWORKS/VideoToolboxParavirtualizationSupport.framework/VideoToolboxParavirtualizationSupport" \
+ - "$VMM_FRAMEWORKS/DiskImages2.framework/Versions/A/DiskImages2"
otool -l "$VMM_BIN" | grep -q "LC_DYLD_CHAINED_FIXUPS" ||
die "VMM lost LC_DYLD_CHAINED_FIXUPS"
@@ -305,15 +625,35 @@ otool -L "$VMM_FRAMEWORKS/vmnet.framework/vmnet" | grep -Fq \
"$BIN/objc-methods"
"$BIN/VZHostCompat.dylib"
"$VMM_BIN"
+ "$VMM_IPADOS14"
+ "$VMM_IPADOS15"
+ "$VMM_IPADOS16"
"$VMM_FRAMEWORKS/MetalCompat.dylib"
"$VMM_FRAMEWORKS/LaunchServicesCompat.dylib"
+ "$VMM_HOOK_IPADOS14"
+ "$LIBSYSTEM15_COMPAT"
+ "$IOKIT15_COMPAT"
+ "$VMM_FRAMEWORKS/LibCxx.dylib"
"$VMM_FRAMEWORKS/vmnet.framework/vmnet"
"$VMM_FRAMEWORKS/Netrb.framework/Netrb"
"$METAL_SERIALIZER_BINARY"
"$VMM_FRAMEWORKS/VideoToolbox.framework/VideoToolbox"
+ "$VMM_FRAMEWORKS/VideoToolboxParavirtualizationSupport.framework/VideoToolboxParavirtualizationSupport"
+ "$VMM_FRAMEWORKS/DiskImages2.framework/Versions/A/DiskImages2"
"$FRAMEWORKS/Hypervisor.framework/Versions/A/Hypervisor"
"$FRAMEWORKS/ParavirtualizedGraphics.framework/Versions/A/ParavirtualizedGraphics"
"$FRAMEWORKS/Virtualization.framework/Versions/A/Virtualization"
+ "$IPADOS15_COMPAT/Hypervisor"
+ "$IPADOS15_COMPAT/ParavirtualizedGraphics"
+ "$IPADOS15_COMPAT/Virtualization"
+ "$IPADOS15_COMPAT/MetalSerializer"
+ "$IPADOS15_COMPAT/VideoToolbox"
+ "$IPADOS15_COMPAT/DiskImages2"
+ "$IPADOS14_COMPAT/vmnet"
+ "$IPADOS14_COMPAT/Netrb"
+ "$IPADOS14_COMPAT/Hypervisor"
+ "$IPADOS14_COMPAT/HypervisorBigSur"
+ "$IPADOS14_COMPAT/LibSystemCompat.dylib"
)
for file in "${files[@]}"; do
printf '%s\t%s\n' \
diff --git a/VirtualMac/scripts/build-ipad-vmnet.sh b/VirtualMac/scripts/build-ipad-vmnet.sh
index 0deab89..cb8c712 100755
--- a/VirtualMac/scripts/build-ipad-vmnet.sh
+++ b/VirtualMac/scripts/build-ipad-vmnet.sh
@@ -7,8 +7,9 @@ source "$SCRIPT_DIR/lib/common.sh"
DSC="${VZ_MACOS_DSC:-$VZ_BUILD_ROOT/inputs/macos/22D68__MacOS/dyld_shared_cache_arm64e}"
OUT="${VZ_VMNET_OUTPUT:-$VZ_BUILD_ROOT/ipad-vmnet/vmnet.framework}"
-RAW="$VZ_BUILD_ROOT/ipad-vmnet/vmnet.raw"
-PROTO="$VZ_BUILD_ROOT/ipad-vmnet/vmnet.proto"
+WORK="${VZ_VMNET_WORK_DIR:-$(dirname "$OUT")}"
+RAW="$WORK/vmnet.raw"
+PROTO="$WORK/vmnet.proto"
BIN="$OUT/vmnet"
ENTS="$VZ_REPO_ROOT/vz/patches/vmm.ents.xml"
PYTHON="$VZ_BUILD_ROOT/toolchain/venv/bin/python3"
@@ -20,7 +21,6 @@ IMAGE="vmnet.framework/Versions/A/vmnet"
need_command codesign
need_command otool
need_file "$DSC"
-need_file "$DSC.01"
need_file "$PYTHON"
need_file "$DYLDEX"
need_file "$IPSW"
@@ -31,19 +31,20 @@ need_file "$ENTITLEMENT_AUDIT"
rm -rf "$OUT"
mkdir -p "$OUT" "$(dirname "$RAW")"
if [[ ! -f "$RAW" ]]; then
- "$DYLDEX" -e "$IMAGE" -o "$RAW" "$DSC"
+ "$PYTHON" "$DYLDEX" -e "$IMAGE" -o "$RAW" "$DSC"
fi
VZ_IPSW="$IPSW" "$PYTHON" "$VZ_REPO_ROOT/vz/uncache.py" \
"$DSC" "$IMAGE" "$RAW" "$PROTO" compact
-"$PYTHON" "$VZ_REPO_ROOT/vz/stamp_ios.py" "$PROTO" "$BIN" 16.0
+"$PYTHON" "$VZ_REPO_ROOT/vz/stamp_ios.py" "$PROTO" "$BIN" \
+ "$VZ_IPADOS_MIN_VERSION"
codesign --verify "$BIN"
"$PYTHON" "$ENTITLEMENT_AUDIT" - "$BIN"
otool -l "$BIN" |
awk '/LC_BUILD_VERSION/{show=1; left=7} show && left-- > 0 {print}' |
grep -q "platform 2" || die "vmnet is not stamped for iOS"
-otool -L "$BIN" | grep -Fq "/Netrb.framework/Netrb" ||
+otool -L "$BIN" | grep -Eq "/Netrb\.framework/(Versions/A/)?Netrb" ||
die "vmnet does not use the iPadOS Netrb install name"
# A compact standalone image must not retain ADRP targets in the original
diff --git a/VirtualMac/scripts/build-ipados14-hypervisor.sh b/VirtualMac/scripts/build-ipados14-hypervisor.sh
new file mode 100755
index 0000000..412eff0
--- /dev/null
+++ b/VirtualMac/scripts/build-ipados14-hypervisor.sh
@@ -0,0 +1,108 @@
+#!/bin/bash
+
+# Reconstruct the XNU-20-aligned Hypervisor runtime used only on iPadOS 14.
+# Ventura Virtualization/PVG remain shared with the newer-host configurations.
+
+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)"
+PYTHON="$VZ_BUILD_ROOT/toolchain/venv/bin/python3"
+DYLDEX="$VZ_BUILD_ROOT/toolchain/venv/bin/dyldex"
+IPSW="$VZ_BUILD_ROOT/toolchain/bin/ipsw-a2sb"
+BIG_SUR_DSC="$VZ_BUILD_ROOT/inputs/macos11/20G165__MacOS/dyld_shared_cache_arm64e"
+VENTURA_DSC="$VZ_BUILD_ROOT/inputs/macos/22D68__MacOS/dyld_shared_cache_arm64e"
+OUT="$VZ_BUILD_ROOT/ipados14-hypervisor"
+CACHE="$VZ_BUILD_ROOT/cache/ipados14-hypervisor"
+BIG_SUR_IMAGE=/System/Library/Frameworks/Hypervisor.framework/Versions/A/Hypervisor
+LIBCXX_IMAGE=/usr/lib/libc++.1.dylib
+BIG_SUR_RAW="$CACHE/Hypervisor.raw"
+BIG_SUR_PROTO="$CACHE/Hypervisor.proto"
+BIG_SUR="$OUT/HypervisorBigSur"
+LIBCXX_RAW="$CACHE/libc++.1.dylib.raw"
+LIBCXX_PROTO="$CACHE/libc++.1.dylib.proto"
+LIBCXX="$OUT/LibCxx.dylib"
+LIBSYSTEM14="$OUT/LibSystemCompat.dylib"
+FACADE="$OUT/Hypervisor"
+VMM_ENTS="$VZ_REPO_ROOT/vz/patches/vmm.ents.xml"
+PATCH_CSTRING="$VZ_REPO_ROOT/vz/patches/patch_macho_cstring.py"
+
+for file in "$PYTHON" "$DYLDEX" "$IPSW" "$BIG_SUR_DSC" \
+ "$VENTURA_DSC" "$VMM_ENTS" "$PATCH_CSTRING" \
+ "$VZ_REPO_ROOT/vz/uncache.py" \
+ "$VZ_REPO_ROOT/vz/host/hypervisor14_compat.c" \
+ "$VZ_REPO_ROOT/vz/host/hypervisor14_support.m"; do
+ need_file "$file"
+done
+need_command codesign
+need_command ldid
+need_command xcrun
+mkdir -p "$OUT" "$CACHE"
+
+if [[ ! -f "$BIG_SUR_RAW" ]]; then
+ "$PYTHON" "$DYLDEX" -e "$BIG_SUR_IMAGE" -o "$BIG_SUR_RAW" "$BIG_SUR_DSC"
+fi
+if [[ ! -f "$BIG_SUR" || "$VZ_REPO_ROOT/vz/uncache.py" -nt "$BIG_SUR" ||
+ "$BIG_SUR_RAW" -nt "$BIG_SUR" ]]; then
+ VZ_IPSW="$IPSW" "$PYTHON" "$VZ_REPO_ROOT/vz/uncache.py" \
+ "$BIG_SUR_DSC" "$BIG_SUR_IMAGE" "$BIG_SUR_RAW" \
+ "$BIG_SUR_PROTO" compact
+ "$PYTHON" "$VZ_REPO_ROOT/vz/stamp_ios.py" \
+ "$BIG_SUR_PROTO" "$BIG_SUR" 14.5
+ "$PYTHON" "$PATCH_CSTRING" "$BIG_SUR" \
+ /System/Library/Frameworks/Hypervisor.framework/Hypervisor \
+ @loader_path/HypervisorBigSur
+ codesign --force --sign - "$BIG_SUR"
+fi
+if xcrun dyld_info -imports "$BIG_SUR" | grep -q '__got\.'; then
+ die "Big Sur Hypervisor contains unresolved shared-cache GOT labels"
+fi
+
+# Ventura's VMM uses its matching libc++ ABI. It is selected by the iPadOS 14
+# VMM only and does not alter the iPadOS 15/16 images.
+if [[ ! -f "$LIBCXX_RAW" ]]; then
+ "$PYTHON" "$DYLDEX" -e "$LIBCXX_IMAGE" -o "$LIBCXX_RAW" "$VENTURA_DSC"
+fi
+if [[ ! -f "$LIBCXX" || "$VZ_REPO_ROOT/vz/uncache.py" -nt "$LIBCXX" ||
+ "$LIBCXX_RAW" -nt "$LIBCXX" ]]; then
+ VZ_IPSW="$IPSW" "$PYTHON" "$VZ_REPO_ROOT/vz/uncache.py" \
+ "$VENTURA_DSC" "$LIBCXX_IMAGE" "$LIBCXX_RAW" \
+ "$LIBCXX_PROTO" compact
+ "$PYTHON" "$VZ_REPO_ROOT/vz/stamp_ios.py" \
+ "$LIBCXX_PROTO" "$LIBCXX" 14.5
+ "$PYTHON" "$PATCH_CSTRING" "$LIBCXX" \
+ /usr/lib/libc++.1.dylib @rpath/LibCxx.dylib
+ codesign --force --sign - "$LIBCXX"
+fi
+
+xcrun --sdk iphoneos clang \
+ -arch arm64e -miphoneos-version-min=14.5 -isysroot "$SDK" \
+ -dynamiclib \
+ -Wl,-reexport_library,"$SDK/usr/lib/libSystem.B.tbd" \
+ -lobjc \
+ -install_name @rpath/LibSystem14 \
+ "$VZ_REPO_ROOT/vz/host/libsystem15_compat.c" \
+ "$VZ_REPO_ROOT/vz/host/hypervisor14_support.m" \
+ -o "$LIBSYSTEM14"
+ldid -S"$VMM_ENTS" "$LIBSYSTEM14"
+
+xcrun --sdk iphoneos clang \
+ -arch arm64e -miphoneos-version-min=14.5 -isysroot "$SDK" \
+ -dynamiclib \
+ -Wl,-not_for_dyld_shared_cache \
+ -Wl,-reexport_library,"$BIG_SUR" \
+ -Wl,-reexport_library,"$LIBSYSTEM14" \
+ -Wl,-rpath,@loader_path/../../.. \
+ -install_name /System/Library/Frameworks/Hypervisor.framework/Hypervisor \
+ "$VZ_REPO_ROOT/vz/host/hypervisor14_compat.c" \
+ -o "$FACADE"
+ldid -S"$VMM_ENTS" "$FACADE"
+
+otool -L "$FACADE" | grep -Fq '@loader_path/HypervisorBigSur' ||
+ die "iPadOS 14 Hypervisor facade is missing Big Sur implementation"
+otool -L "$FACADE" | grep -Fq '@rpath/LibSystem14' ||
+ die "iPadOS 14 Hypervisor facade is missing libSystem compatibility"
+
+echo "iPadOS 14 Hypervisor runtime built: $OUT"
diff --git a/VirtualMac/scripts/build-ipados14-network-stack.sh b/VirtualMac/scripts/build-ipados14-network-stack.sh
new file mode 100755
index 0000000..dd53c5f
--- /dev/null
+++ b/VirtualMac/scripts/build-ipados14-network-stack.sh
@@ -0,0 +1,44 @@
+#!/bin/bash
+
+set -euo pipefail
+SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
+# shellcheck source=lib/common.sh
+source "$SCRIPT_DIR/lib/common.sh"
+
+DSC="$VZ_BUILD_ROOT/inputs/macos11/20G165__MacOS/dyld_shared_cache_arm64e"
+VMNET="$VZ_BUILD_ROOT/ipad-vmnet14/vmnet.framework"
+NETRB="$VZ_BUILD_ROOT/ipad-netrb14/Netrb.framework"
+
+need_command codesign
+need_command otool
+need_file "$DSC"
+need_file "$VZ_BUILD_ROOT/toolchain/venv/bin/python3"
+need_file "$VZ_REPO_ROOT/vz/patches/patch_macho_cstring.py"
+
+VZ_MACOS_DSC="$DSC" \
+VZ_VMNET_OUTPUT="$VMNET" \
+VZ_VMNET_WORK_DIR="$VZ_BUILD_ROOT/ipad-vmnet14" \
+VZ_IPADOS_MIN_VERSION=14.5 \
+ "$SCRIPT_DIR/build-ipad-vmnet.sh"
+
+VZ_MACOS_DSC="$DSC" \
+VZ_NETRB_OUTPUT="$NETRB" \
+VZ_NETRB_WORK_DIR="$VZ_BUILD_ROOT/ipad-netrb14" \
+VZ_NETRB_PATCH_LOOKUP=0 \
+VZ_IPADOS_MIN_VERSION=14.5 \
+ "$SCRIPT_DIR/build-ipad-netrb.sh"
+
+# Big Sur uses the system private-framework install name. Keep the extracted
+# framework next to vmnet so the iPad package remains self-contained.
+"$VZ_BUILD_ROOT/toolchain/venv/bin/python3" \
+ "$VZ_REPO_ROOT/vz/patches/patch_macho_cstring.py" "$VMNET/vmnet" \
+ /System/Library/PrivateFrameworks/Netrb.framework/Netrb \
+ @loader_path/../Netrb.framework/Netrb
+codesign --force --sign - "$VMNET/vmnet"
+codesign --verify --strict "$VMNET/vmnet"
+codesign --verify --strict "$NETRB/Netrb"
+otool -L "$VMNET/vmnet" | grep -Fq \
+ '@loader_path/../Netrb.framework/Netrb' ||
+ die "iPadOS 14 vmnet is not linked to its bundled matching Netrb"
+
+echo "iPadOS 14 Big Sur-aligned vmnet stack built"
diff --git a/VirtualMac/scripts/build-springboard-tweak.sh b/VirtualMac/scripts/build-springboard-tweak.sh
index 5f8ef90..fd4a8c1 100755
--- a/VirtualMac/scripts/build-springboard-tweak.sh
+++ b/VirtualMac/scripts/build-springboard-tweak.sh
@@ -16,7 +16,8 @@ need_file "$VZ_REPO_ROOT/vz/tweak/VZKeyboardPassthrough.m"
need_file "$VZ_REPO_ROOT/vz/tweak/VZKeyboardPassthrough.plist"
mkdir -p "$OUT"
-xcrun --sdk iphoneos clang -arch arm64e -miphoneos-version-min=16.0 \
+xcrun --sdk iphoneos clang -arch arm64e \
+ -miphoneos-version-min="$VZ_IPADOS_MIN_VERSION" \
-isysroot "$SDK" -dynamiclib -fblocks -framework Foundation \
-Wl,-undefined,dynamic_lookup \
-install_name /var/jb/Library/MobileSubstrate/DynamicLibraries/VZKeyboardPassthrough.dylib \
diff --git a/VirtualMac/scripts/build-vmm-compat.sh b/VirtualMac/scripts/build-vmm-compat.sh
index 4838d89..7ea8333 100755
--- a/VirtualMac/scripts/build-vmm-compat.sh
+++ b/VirtualMac/scripts/build-vmm-compat.sh
@@ -18,7 +18,7 @@ need_file "$VZ_REPO_ROOT/vz/host/pvg_trace.m"
mkdir -p "$(dirname "$OUTPUT")"
xcrun --sdk iphoneos clang \
- -arch arm64e -miphoneos-version-min=16.0 -isysroot "$SDK" \
+ -arch arm64e -miphoneos-version-min="$VZ_IPADOS_MIN_VERSION" -isysroot "$SDK" \
-dynamiclib -fblocks -Wl,-undefined,dynamic_lookup \
-framework CoreFoundation -framework CoreServices \
-framework Foundation -framework IOKit -framework Metal \
diff --git a/VirtualMac/scripts/development/boot-ipad-vm-bundle.sh b/VirtualMac/scripts/development/boot-ipad-vm-bundle.sh
index 6063e2a..d8e89e2 100755
--- a/VirtualMac/scripts/development/boot-ipad-vm-bundle.sh
+++ b/VirtualMac/scripts/development/boot-ipad-vm-bundle.sh
@@ -32,7 +32,9 @@ chown mobile:mobile /tmp/VirtualMac.log /tmp/vzxpchook.log /tmp/vmmhook.log \
/tmp/vmm.stderr.log /tmp/vmm_ep.txt /tmp/pvg-trace.log
printf '%s\\n' \"\$bundle\" >/tmp/vz-autoboot-path
chown mobile:mobile /tmp/vz-autoboot-path
-/var/jb/usr/bin/uiopen --bundleid com.mac.virtual
+uiopen_path=/var/jb/usr/bin/uiopen
+test -x "\$uiopen_path" || uiopen_path=/usr/bin/uiopen
+"\$uiopen_path" --bundleid com.mac.virtual
"
for ((elapsed = 0; elapsed < TIMEOUT; elapsed++)); do
@@ -50,6 +52,24 @@ fi
")"
case "$result" in
started)
+ # A VMM can publish state=1 and then crash while its first device
+ # queues are coming online. Require a short healthy window so this
+ # harness cannot report that failure as a successful boot.
+ sleep 5
+ health="$(ipad_ssh "
+if grep -q 'VM start failed:\|Virtual Mac stopped:' /tmp/VirtualMac.log; then
+ echo failed
+elif ps ax | grep -F '$REMOTE_APP_PATTERN' | grep -v grep >/dev/null 2>&1 &&
+ ps ax | grep -F '/payload/VirtualMachine.xpc/Contents/MacOS/com.apple.Virtualization.VirtualMachine' | grep -v grep >/dev/null 2>&1; then
+ echo healthy
+else
+ echo stopped
+fi
+")"
+ if [[ "$health" != healthy ]]; then
+ ipad_ssh "tail -n 80 /tmp/VirtualMac.log; tail -n 80 /tmp/vmmhook.log"
+ die "iPad VM $health during post-start stability check"
+ fi
ipad_ssh "tail -n 20 /tmp/VirtualMac.log"
printf 'IPAD_VM_BUNDLE_STARTED\t%s\n' "$BUNDLE"
exit 0
diff --git a/VirtualMac/scripts/development/collect-device-diagnostics.sh b/VirtualMac/scripts/development/collect-device-diagnostics.sh
new file mode 100755
index 0000000..6ac2764
--- /dev/null
+++ b/VirtualMac/scripts/development/collect-device-diagnostics.sh
@@ -0,0 +1,126 @@
+#!/bin/bash
+
+set -euo pipefail
+
+usage() {
+ cat <<'EOF'
+Usage: collect-device-diagnostics.sh [options]
+
+Collects complete CrashReporter archives from connected iPads without deleting
+the device copies. It also captures Virtual Mac settings through AFC and, when
+USB SSH is available, live /tmp traces and an on-device diagnostics ZIP.
+
+Options:
+ --udid UDID collect one device (repeatable; default: every connected device)
+ --output DIR destination (default: ./DeviceCrashLogs/<timestamp>)
+ --ssh-user USER SSH account (default: root)
+ --port-base PORT first local iproxy port (default: 2240)
+ -h, --help show this help
+
+Set IPAD_SSH_PASSWORD in the environment to use password authentication.
+Otherwise existing SSH authentication is used. SSH failure does not prevent
+CrashReporter and AFC collection.
+EOF
+}
+
+udids=()
+output=""
+ssh_user="root"
+port_base=2240
+while (($#)); do
+ case "$1" in
+ --udid) udids+=("$2"); shift 2 ;;
+ --output) output="$2"; shift 2 ;;
+ --ssh-user) ssh_user="$2"; shift 2 ;;
+ --port-base) port_base="$2"; shift 2 ;;
+ -h|--help) usage; exit 0 ;;
+ *) echo "error: unknown argument: $1" >&2; usage >&2; exit 2 ;;
+ esac
+done
+
+for command in idevice_id ideviceinfo idevicecrashreport afcclient iproxy ssh scp; do
+ command -v "$command" >/dev/null || {
+ echo "error: required command not found: $command" >&2
+ exit 1
+ }
+done
+if ((${#udids[@]} == 0)); then
+ while IFS= read -r udid; do
+ [[ -n "$udid" ]] && udids+=("$udid")
+ done < <(idevice_id -l)
+fi
+((${#udids[@]})) || { echo "error: no USB iPads found" >&2; exit 1; }
+
+timestamp="$(date +%Y%m%d-%H%M%S)"
+output="${output:-$PWD/DeviceCrashLogs/$timestamp}"
+mkdir -p "$output"
+proxy_pids=()
+cleanup() {
+ for pid in "${proxy_pids[@]:-}"; do
+ kill "$pid" 2>/dev/null || true
+ done
+}
+trap cleanup EXIT
+
+for index in "${!udids[@]}"; do
+ udid="${udids[$index]}"
+ product="$(ideviceinfo -u "$udid" -k ProductType 2>/dev/null || echo unknown)"
+ version="$(ideviceinfo -u "$udid" -k ProductVersion 2>/dev/null || echo unknown)"
+ build="$(ideviceinfo -u "$udid" -k BuildVersion 2>/dev/null || echo unknown)"
+ destination="$output/${product}-${version}-${build}-${udid}"
+ mkdir -p "$destination/crash-reports" "$destination/virtual-mac" \
+ "$destination/runtime-logs"
+ {
+ printf 'UDID=%s\nProductType=%s\nProductVersion=%s\nBuildVersion=%s\n' \
+ "$udid" "$product" "$version" "$build"
+ ideviceinfo -u "$udid" -k DeviceName 2>/dev/null | sed 's/^/DeviceName=/'
+ } >"$destination/device.txt"
+
+ echo "[$product $version ($build)] copying complete CrashReporter tree..."
+ idevicecrashreport -u "$udid" -e -k "$destination/crash-reports" \
+ >"$destination/crashreport-pull.log" 2>&1
+ printf 'get VirtualMac/Settings.plist %s\nls -l VirtualMac\nquit\n' \
+ "$destination/virtual-mac/Settings.plist" |
+ afcclient -u "$udid" >"$destination/virtual-mac/library-listing.txt" \
+ 2>"$destination/virtual-mac/afc-errors.txt" || true
+
+ port=$((port_base + index))
+ iproxy "$port" 22 -u "$udid" >"$destination/iproxy.log" 2>&1 &
+ proxy_pids+=("$!")
+ sleep 1
+ ssh_options=(-o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null
+ -o ConnectTimeout=4 -o BatchMode=yes -p "$port")
+ scp_options=(-o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null
+ -o ConnectTimeout=4 -o BatchMode=yes -P "$port")
+ ssh_command=(ssh "${ssh_options[@]}")
+ scp_command=(scp "${scp_options[@]}")
+ if [[ -n "${IPAD_SSH_PASSWORD:-}" ]] && command -v sshpass >/dev/null; then
+ ssh_options=(-o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null
+ -o ConnectTimeout=4 -p "$port")
+ scp_options=(-o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null
+ -o ConnectTimeout=4 -P "$port")
+ ssh_command=(sshpass -p "$IPAD_SSH_PASSWORD" ssh "${ssh_options[@]}")
+ scp_command=(sshpass -p "$IPAD_SSH_PASSWORD" scp "${scp_options[@]}")
+ fi
+ if "${ssh_command[@]}" "$target" true >/dev/null 2>&1; then
+ echo "[$product $version ($build)] copying live Virtual Mac traces over USB SSH..."
+ 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
+ "${scp_command[@]}" "$target:$remote" \
+ "$destination/runtime-logs/" >/dev/null 2>&1 || true
+ done
+ archive="$("${ssh_command[@]}" "$target" \
+ '/var/jb/usr/bin/virtualmac-diagnostics 2>/dev/null' || true)"
+ if [[ "$archive" == /var/mobile/Media/VirtualMac/Diagnostics/*.zip ]]; then
+ "${scp_command[@]}" "$target:$archive" \
+ "$destination/" >/dev/null 2>&1 || true
+ fi
+ else
+ echo "[$product $version ($build)] USB SSH unavailable; CrashReporter/AFC collection is still complete."
+ fi
+done
+
+echo "diagnostics collected: $output"
diff --git a/VirtualMac/scripts/development/deploy-ipad-installation.sh b/VirtualMac/scripts/development/deploy-ipad-installation.sh
index fc80efb..2cdebd5 100755
--- a/VirtualMac/scripts/development/deploy-ipad-installation.sh
+++ b/VirtualMac/scripts/development/deploy-ipad-installation.sh
@@ -7,7 +7,7 @@ source "$SCRIPT_DIR/../lib/common.sh"
OUT="$VZ_BUILD_ROOT/ipad-installation"
REMOTE="${VZ_IPAD_WORK:-/var/root/VirtualMac}"
-ARCHIVE="$(mktemp -t VirtualMac-installation.XXXXXX.tar.gz)"
+ARCHIVE="$(mktemp -t VirtualMac-installation.XXXXXX.tar)"
trap 'rm -f "$ARCHIVE"' EXIT
need_command ldid
@@ -19,12 +19,12 @@ need_file "$OUT/install/install-macos"
need_file "$OUT/install/start-install.sh"
need_file "$OUT/install/install-launcher"
need_file "$OUT/install/usb-bridge-probe"
-need_file "$OUT/payload/Frameworks/LaunchServicesCompat.dylib"
need_file "$OUT/trustcache.txt"
-tar -C "$OUT" -czf "$ARCHIVE" payload install trustcache.txt manifest.txt
+tar -C "$OUT" -cf "$ARCHIVE" payload/Installation.xpc install \
+ trustcache.txt manifest.txt
ensure_ipad_usb
-ipad_scp "$ARCHIVE" "$IPAD_TARGET:/tmp/vz-installation.tar.gz"
+ipad_scp "$ARCHIVE" "$IPAD_TARGET:/tmp/vz-installation.tar"
ipad_ssh "
set -eu
@@ -40,13 +40,43 @@ launchctl bootout system/com.mac.virtual.installer 2>/dev/null || true
rm -f /var/jb/Library/LaunchDaemons/com.mac.virtual.installer.plist
rm -rf '$REMOTE/payload/Installation.xpc' '$REMOTE/install'
mkdir -p '$REMOTE'
-tar -xzf /tmp/vz-installation.tar.gz -C '$REMOTE'
-rm -f /tmp/vz-installation.tar.gz
+tar -xf /tmp/vz-installation.tar -C '$REMOTE'
+rm -f /tmp/vz-installation.tar
+replace_file() {
+ source_path="\$1"
+ destination_path="\$2"
+ cp "\$source_path" "\$destination_path.virtualmac-new"
+ chmod 755 "\$destination_path.virtualmac-new"
+ mv -f "\$destination_path.virtualmac-new" "\$destination_path"
+}
+host_version=\$(sw_vers -productVersion)
+installation_macos='$REMOTE/payload/Installation.xpc/Contents/MacOS'
+installation_frameworks='$REMOTE/payload/Installation.xpc/Contents/Frameworks'
+installation_variant="\$installation_macos/com.apple.Virtualization.Installation.ipados16"
+compat_variant="\$installation_frameworks/InstallationCompat.dylib.ipados16"
+mobile_device_dir="\$installation_frameworks/MobileDevice.framework/Versions/A"
+mobile_device_variant="\$mobile_device_dir/MobileDevice.ipados16"
+case "\$host_version" in
+ 14.*)
+ installation_variant="\$installation_macos/com.apple.Virtualization.Installation.ipados14"
+ compat_variant="\$installation_frameworks/InstallationCompat.dylib.ipados14"
+ mobile_device_variant="\$mobile_device_dir/MobileDevice.ipados14"
+ ;;
+ 15.*)
+ installation_variant="\$installation_macos/com.apple.Virtualization.Installation.ipados15"
+ compat_variant="\$installation_frameworks/InstallationCompat.dylib.ipados15"
+ mobile_device_variant="\$mobile_device_dir/MobileDevice.ipados15"
+ ;;
+esac
+replace_file "\$installation_variant" \
+ "\$installation_macos/com.apple.Virtualization.Installation"
+replace_file "\$compat_variant" \
+ "\$installation_frameworks/InstallationCompat.dylib"
+replace_file "\$mobile_device_variant" "\$mobile_device_dir/MobileDevice"
chmod 755 \
'$REMOTE/payload/Installation.xpc/Contents/MacOS/com.apple.Virtualization.Installation' \
'$REMOTE/payload/Installation.xpc/Contents/Frameworks/InstallationCompat.dylib' \
'$REMOTE/payload/Installation.xpc/Contents/Frameworks/MobileDevice.framework/Versions/A/Resources/usbmuxd' \
- '$REMOTE/payload/Frameworks/LaunchServicesCompat.dylib' \
'$REMOTE/install/VZHostCompat.dylib' \
'$REMOTE/install/restore-image-probe' \
'$REMOTE/install/install-macos' \
@@ -59,11 +89,20 @@ export PATH
for utility in cat rm killall grep sleep touch ln; do
command -v "\$utility" >/dev/null
done
-while IFS=\$(printf '\\t') read -r hash file; do
- test -n \"\$hash\"
- test -f '$REMOTE/'\"\$file\"
- jbctl trustcache add \"\$hash\"
-done <'$REMOTE/trustcache.txt'
+if command -v jbctl >/dev/null 2>&1; then
+ while IFS=\$(printf '\\t') read -r hash file; do
+ test -n \"\$hash\"
+ test -f '$REMOTE/'\"\$file\"
+ jbctl trustcache add \"\$hash\"
+ done <'$REMOTE/trustcache.txt'
+elif test -x /taurine/jbexec; then
+ while IFS=\$(printf '\\t') read -r hash file; do
+ target='$REMOTE/'\"\$file\"
+ test -f \"\$target\" || continue
+ PREFLIGHT=1 /bin/bash -c \
+ 'exec -a \"\$1\" /taurine/jbexec' _ \"\$target\" >/dev/null || true
+ done <'$REMOTE/trustcache.txt'
+fi
rm -f /tmp/installation_ep.txt /tmp/installation.stderr.log \
/tmp/restore-vmm.stderr.log \
/tmp/installationhook.log /tmp/restore-image-probe.log
diff --git a/VirtualMac/scripts/development/deploy-ipad-vm.sh b/VirtualMac/scripts/development/deploy-ipad-vm.sh
index ee22792..5949af4 100755
--- a/VirtualMac/scripts/development/deploy-ipad-vm.sh
+++ b/VirtualMac/scripts/development/deploy-ipad-vm.sh
@@ -38,11 +38,27 @@ chmod 755 \
'$REMOTE/payload/bin/VZHostCompat.dylib' \
'$REMOTE/payload/VirtualMachine.xpc/Contents/MacOS/com.apple.Virtualization.VirtualMachine'
-while IFS=\$(printf '\\t') read -r hash file; do
- test -n "\$hash"
- test -f '$REMOTE/payload/'"\$file"
- jbctl trustcache add "\$hash"
-done <'$REMOTE/payload/trustcache.txt'
+if command -v jbctl >/dev/null 2>&1; then
+ while IFS=\$(printf '\\t') read -r hash file; do
+ test -n "\$hash"
+ test -f '$REMOTE/payload/'"\$file"
+ jbctl trustcache add "\$hash"
+ done <'$REMOTE/payload/trustcache.txt'
+elif test -x /taurine/jbexec; then
+ # Taurine has no jbctl. Ask jailbreakd to prepare every shipped Mach-O,
+ # including dylibs selected later through an iPadOS-version symlink/copy.
+ # Preparing only the VMM executable leaves its iPadOS 14 Hypervisor image
+ # untrusted and dyld terminates the child before main().
+ while IFS=\$(printf '\\t') read -r hash file; do
+ target='$REMOTE/payload/'"\$file"
+ test -f "\$target" || continue
+ PREFLIGHT=1 /bin/bash -c \
+ 'exec -a "\$1" /taurine/jbexec' _ "\$target" >/dev/null || true
+ done <'$REMOTE/payload/trustcache.txt'
+else
+ echo 'error: neither jbctl nor Taurine jbexec is available' >&2
+ exit 1
+fi
if test -d '$REMOTE/payload/Installation.xpc'; then
test -x '$REMOTE/payload/Installation.xpc/Contents/Frameworks/MobileDevice.framework/Versions/A/Resources/usbmuxd'
diff --git a/VirtualMac/scripts/development/deploy-springboard-tweak.sh b/VirtualMac/scripts/development/deploy-springboard-tweak.sh
index 9bb7060..33fcf6b 100755
--- a/VirtualMac/scripts/development/deploy-springboard-tweak.sh
+++ b/VirtualMac/scripts/development/deploy-springboard-tweak.sh
@@ -8,8 +8,6 @@ source "$SCRIPT_DIR/../lib/common.sh"
OUT="$VZ_BUILD_ROOT/ipad-tweak"
DYLIB="$OUT/VZKeyboardPassthrough.dylib"
PLIST="$OUT/VZKeyboardPassthrough.plist"
-REMOTE=/var/jb/Library/MobileSubstrate/DynamicLibraries
-
need_command ldid
need_file "$DYLIB"
need_file "$PLIST"
@@ -21,15 +19,31 @@ ipad_scp "$DYLIB" "$IPAD_TARGET:/tmp/VZKeyboardPassthrough.dylib"
ipad_scp "$PLIST" "$IPAD_TARGET:/tmp/VZKeyboardPassthrough.plist"
ipad_ssh "
set -eu
-mkdir -p '$REMOTE'
-install -m 755 /tmp/VZKeyboardPassthrough.dylib '$REMOTE/VZKeyboardPassthrough.dylib'
-install -m 644 /tmp/VZKeyboardPassthrough.plist '$REMOTE/VZKeyboardPassthrough.plist'
-jbctl trustcache add '$hash'
+if test -x /var/jb/usr/bin/jbctl || test -x /var/jb/basebin/jbctl; then
+ remote=/var/jb/Library/MobileSubstrate/DynamicLibraries
+ jbctl=/var/jb/usr/bin/jbctl
+ test -x \"\$jbctl\" || jbctl=/var/jb/basebin/jbctl
+ mkdir -p \"\$remote\"
+ install -m 755 /tmp/VZKeyboardPassthrough.dylib \"\$remote/VZKeyboardPassthrough.dylib\"
+ install -m 644 /tmp/VZKeyboardPassthrough.plist \"\$remote/VZKeyboardPassthrough.plist\"
+ \"\$jbctl\" trustcache add '$hash'
+ reload=/var/jb/usr/bin/sbreload
+else
+ # Taurine/libhooker scans this rootful directory. Preflight the final
+ # inode through jbexec because its trust is path dependent on iPadOS 14.
+ remote=/usr/lib/TweakInject
+ mkdir -p \"\$remote\"
+ install -m 755 /tmp/VZKeyboardPassthrough.dylib \"\$remote/VZKeyboardPassthrough.dylib\"
+ install -m 644 /tmp/VZKeyboardPassthrough.plist \"\$remote/VZKeyboardPassthrough.plist\"
+ PREFLIGHT=1 /bin/bash -c 'exec -a \"\$1\" /taurine/jbexec' _ \
+ \"\$remote/VZKeyboardPassthrough.dylib\" >/dev/null 2>&1 || true
+ reload=/usr/bin/sbreload
+fi
rm -f /tmp/VZKeyboardPassthrough.dylib /tmp/VZKeyboardPassthrough.plist \
/tmp/vz-springboard-shortcuts.log
touch /tmp/virtual-mac-open-after-respring
chown mobile:mobile /tmp/virtual-mac-open-after-respring
-/var/jb/usr/bin/sbreload
+\"\$reload\"
" || true
for _ in {1..30}; do
@@ -40,6 +54,8 @@ for _ in {1..30}; do
sleep 1
done
ipad_ssh "
-/var/jb/usr/bin/uiopen --bundleid com.mac.virtual || true
+uiopen=/var/jb/usr/bin/uiopen
+test -x \"\$uiopen\" || uiopen=/usr/bin/uiopen
+\"\$uiopen\" --bundleid com.mac.virtual || true
cat /tmp/vz-springboard-shortcuts.log 2>/dev/null || true
"
diff --git a/VirtualMac/scripts/development/open-ipad-ui.sh b/VirtualMac/scripts/development/open-ipad-ui.sh
index e79d8c7..526bc86 100755
--- a/VirtualMac/scripts/development/open-ipad-ui.sh
+++ b/VirtualMac/scripts/development/open-ipad-ui.sh
@@ -12,5 +12,5 @@ case "$DESTINATION" in
esac
ensure_ipad_usb
-ipad_ssh "/var/jb/usr/bin/uiopen 'virtualmac://$DESTINATION'"
+ipad_ssh "uiopen=/var/jb/usr/bin/uiopen; test -x \"\$uiopen\" || uiopen=/usr/bin/uiopen; \"\$uiopen\" 'virtualmac://$DESTINATION'"
echo "opened visible Virtual Mac $DESTINATION UI on the iPad"
diff --git a/VirtualMac/scripts/development/start-visible-ipad-install.sh b/VirtualMac/scripts/development/start-visible-ipad-install.sh
index 1890cde..e11057f 100755
--- a/VirtualMac/scripts/development/start-visible-ipad-install.sh
+++ b/VirtualMac/scripts/development/start-visible-ipad-install.sh
@@ -34,7 +34,9 @@ chown mobile:mobile '$REQUEST'
chmod 600 '$REQUEST'
killall VirtualMac 2>/dev/null || true
sleep 1
-/var/jb/usr/bin/uiopen --bundleid com.mac.virtual
+uiopen_path=/var/jb/usr/bin/uiopen
+test -x "\$uiopen_path" || uiopen_path=/usr/bin/uiopen
+"\$uiopen_path" --bundleid com.mac.virtual
"
for _ in {1..20}; do
diff --git a/VirtualMac/scripts/development/stop-ipad-vm.sh b/VirtualMac/scripts/development/stop-ipad-vm.sh
index d26c666..159f107 100755
--- a/VirtualMac/scripts/development/stop-ipad-vm.sh
+++ b/VirtualMac/scripts/development/stop-ipad-vm.sh
@@ -72,6 +72,7 @@ fi
ipad_ssh "
set -eu
app=/var/jb/Applications/VirtualMac.app/VirtualMac
+test -x "\$app" || app=/Applications/VirtualMac.app/VirtualMac
host_pattern=/VirtualMac.app/VirtualMac
vmm_pattern=/payload/VirtualMachine.xpc/Contents/MacOS/com.apple.Virtualization.VirtualMachine
find_pids() {
diff --git a/VirtualMac/scripts/fetch-ipados-compat-cache.sh b/VirtualMac/scripts/fetch-ipados-compat-cache.sh
index 3cd3601..6c7c974 100755
--- a/VirtualMac/scripts/fetch-ipados-compat-cache.sh
+++ b/VirtualMac/scripts/fetch-ipados-compat-cache.sh
@@ -5,30 +5,67 @@ SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
# shellcheck source=lib/common.sh
source "$SCRIPT_DIR/lib/common.sh"
-IPSW="$VZ_BUILD_ROOT/toolchain/bin/ipsw-a2sb"
-need_file "$IPSW"
+IPSW_TOOL="$VZ_BUILD_ROOT/toolchain/bin/ipsw-a2sb"
+need_file "$IPSW_TOOL"
-URL="${VZ_IPADOS_COMPAT_URL:-https://updates.cdn-apple.com/2022FallFCS/fullrestores/012-92967/0A594653-0CC9-40AF-81A9-822C59BE0AC6/iPad14%2C3%2CiPad14%2C4%2CiPad14%2C5%2CiPad14%2C6_16.1_20B82_Restore.ipsw}"
-OUT="${VZ_IPADOS_COMPAT_ROOT:-$VZ_BUILD_ROOT/compat/ipados-16.1}"
-CACHE="$OUT/20B82__iPad14,3_4_5_6/dyld_shared_cache_arm64e"
+version="$VZ_IPADOS_MIN_VERSION"
+local_ipsw="${VZ_IPADOS_COMPAT_IPSW:-}"
+url="${VZ_IPADOS_COMPAT_URL:-}"
+while [[ $# -gt 0 ]]; do
+ case "$1" in
+ --version) version="$2"; shift 2 ;;
+ --ipsw) local_ipsw="$2"; shift 2 ;;
+ --url) url="$2"; shift 2 ;;
+ *) die "unknown compatibility-cache option: $1" ;;
+ esac
+done
-if [[ ! -f "$CACHE" ]]; then
- mkdir -p "$OUT"
- "$IPSW" extract --remote --dyld --dyld-arch arm64e -o "$OUT" "$URL"
+case "$version" in
+ 14.5) build=18E199 ;;
+ 15.0) build=19A346 ;;
+ 16.1)
+ build=20B82
+ url="${url:-https://updates.cdn-apple.com/2022FallFCS/fullrestores/012-92967/0A594653-0CC9-40AF-81A9-822C59BE0AC6/iPad14%2C3%2CiPad14%2C4%2CiPad14%2C5%2CiPad14%2C6_16.1_20B82_Restore.ipsw}"
+ ;;
+ 16.3.1)
+ build=20D67
+ url="${url:-https://updates.cdn-apple.com/2023WinterFCS/fullrestores/032-50028/ACF197BE-D22C-49EC-94C5-C1B58D7708AC/iPad14%2C3%2CiPad14%2C4%2CiPad14%2C5%2CiPad14%2C6_16.3.1_20D67_Restore.ipsw}"
+ ;;
+ *) die "unsupported compatibility-cache version: $version" ;;
+esac
+
+OUT="${VZ_IPADOS_COMPAT_ROOT:-$VZ_BUILD_ROOT/compat/ipados-$version}"
+mkdir -p "$OUT"
+CACHE="$(find "$OUT" -type f -path "*/${build}__*/dyld_shared_cache_arm64e" \
+ -print -quit 2>/dev/null || true)"
+if [[ -z "$CACHE" ]]; then
+ if [[ -n "$local_ipsw" ]]; then
+ need_file "$local_ipsw"
+ "$IPSW_TOOL" extract --dyld --dyld-arch arm64e \
+ -o "$OUT" "$local_ipsw"
+ elif [[ -n "$url" ]]; then
+ "$IPSW_TOOL" extract --remote --dyld --dyld-arch arm64e \
+ -o "$OUT" "$url"
+ else
+ die "pass --ipsw for iPadOS $version (or set VZ_IPADOS_COMPAT_IPSW)"
+ fi
+ CACHE="$(find "$OUT" -type f -path "*/${build}__*/dyld_shared_cache_arm64e" \
+ -print -quit 2>/dev/null || true)"
fi
need_file "$CACHE"
-info="$("$IPSW" dyld info --no-color "$CACHE")"
+info="$("$IPSW_TOOL" dyld info --no-color "$CACHE")"
grep -Fq 'Platform = iOS' <<<"$info" ||
die "compatibility cache is not an iOS cache: $CACHE"
-grep -Fq 'OS Version = 16.1' <<<"$info" ||
- die "compatibility cache is not iPadOS 16.1: $CACHE"
-cat >"$OUT/source.txt" <<EOF
-Build: 20B82
-Product: iPad14,3,iPad14,4,iPad14,5,iPad14,6
-URL: $URL
-IPSW SHA-256: 61bc8a8683bc27bc154bf9e9d3a694f6d6b78f55e9e134af839ed5750f4b14a9
-EOF
+{
+ echo "Build: $build"
+ echo "iPadOS: $version"
+ [[ -n "$local_ipsw" ]] && echo "IPSW: $local_ipsw"
+ [[ -n "$url" ]] && echo "URL: $url"
+ if [[ -n "$local_ipsw" ]]; then
+ echo "IPSW SHA-256: $(shasum -a 256 "$local_ipsw" | awk '{print $1}')"
+ fi
+} >"$OUT/source.txt"
-echo "oldest supported iPadOS shared cache ready: $CACHE"
+echo "iPadOS $version shared cache ready: $CACHE"
diff --git a/VirtualMac/scripts/install-ipad-deb.sh b/VirtualMac/scripts/install-ipad-deb.sh
index b46d5be..d608f5a 100755
--- a/VirtualMac/scripts/install-ipad-deb.sh
+++ b/VirtualMac/scripts/install-ipad-deb.sh
@@ -7,6 +7,7 @@ source "$SCRIPT_DIR/lib/common.sh"
need_command scp
need_command sshpass
+need_command dpkg-deb
ensure_ipad_usb
if [[ -n "${VZ_IPAD_DEB:-}" ]]; then
@@ -19,6 +20,22 @@ fi
[[ -n "$DEB" && -f "$DEB" ]] ||
die "standalone package not found; run scripts/build-ipad-deb.sh first"
+# Refuse an unsafe development package before it reaches a rootful jailbreak.
+# Apple system files are outside Virtual Mac's ownership; all Taurine helpers
+# must live below /var/root/VirtualMac/rootful.
+archive_paths="$(dpkg-deb --fsys-tarfile "$DEB" | tar -tf -)"
+for forbidden in \
+ ./usr/libexec/bootpd \
+ ./usr/libexec/InternetSharing \
+ ./Library/LaunchDaemons/com.apple.bootpd.plist; do
+ if printf '%s\n' "$archive_paths" | grep -Fxq "$forbidden"; then
+ die "refusing package that replaces an Apple system path: $forbidden"
+ fi
+done
+
+rootless="$(ipad_ssh 'test -x /var/jb/usr/bin/jbctl && echo 1 || echo 0')"
+system_bootpd_before="$(ipad_ssh 'sha256sum /usr/libexec/bootpd | cut -d" " -f1')"
+
REMOTE_DEB="/tmp/$(basename "$DEB")"
echo "copying standalone package to iPad: $DEB"
sshpass -p "$VZ_IPAD_PASSWORD" scp \
@@ -43,14 +60,40 @@ status="$(ipad_ssh "dpkg-query -W -f='\${db:Status-Status}' \
ipad_ssh "
set -eu
-test -x /var/jb/Applications/VirtualMac.app/VirtualMac
test -u /var/root/VirtualMac/install/install-launcher
test -d /var/mobile/Media/VirtualMac
-test -f /var/jb/Library/MobileSubstrate/DynamicLibraries/VZKeyboardPassthrough.dylib
+"
+
+if [[ "$rootless" == 1 ]]; then
+ ipad_ssh "
+set -eu
+test -x /var/jb/Applications/VirtualMac.app/VirtualMac
+test -f /var/jb/usr/lib/TweakInject/VZKeyboardPassthrough.dylib
+test -f /var/jb/usr/lib/TweakInject/VZKeyboardPassthrough.plist
+if test -L /var/jb/Library/MobileSubstrate/DynamicLibraries; then
+ test -f /var/jb/Library/MobileSubstrate/DynamicLibraries/VZKeyboardPassthrough.dylib
+fi
launchctl print user/501/vzi.apple.bootpd >/dev/null
launchctl print user/501/com.apple.NetworkSharing >/dev/null
/var/jb/usr/bin/uicache -l | grep -F 'com.mac.virtual' >/dev/null
-rm -f '$REMOTE_DEB'
"
+else
+ ipad_ssh "
+set -eu
+test -x /Applications/VirtualMac.app/VirtualMac
+test -x /usr/libexec/VirtualMac/bootpd
+test -f /usr/lib/TweakInject/VZKeyboardPassthrough.dylib
+# iPadOS 14 DHCP is deliberately absent until InternetSharing has produced
+# its config; an install-time socket job is a launchd retry-loop hazard.
+test -f /var/root/VirtualMac/rootful/Library/LaunchDaemons/com.apple.bootpd.plist
+! launchctl print system/vzi.apple.bootpd >/dev/null 2>&1
+launchctl print system/com.apple.NetworkSharing >/dev/null
+"
+fi
+
+system_bootpd_after="$(ipad_ssh 'sha256sum /usr/libexec/bootpd | cut -d" " -f1')"
+[[ "$system_bootpd_after" == "$system_bootpd_before" ]] ||
+ die "Apple /usr/libexec/bootpd changed during package installation"
+ipad_ssh "rm -f '$REMOTE_DEB'"
echo "standalone package installed and registered on iPad"
diff --git a/VirtualMac/scripts/launch-ipad-app.sh b/VirtualMac/scripts/launch-ipad-app.sh
index 7c6f65d..1e54c27 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}"
-REMOTE_APP="/var/jb/Applications/VirtualMac.app"
+BUNDLE="${VZ_IPAD_VM_BUNDLE:-/var/mobile/Media/VirtualMac/VM_Sequoia.bundle}"
[[ "$ATTEMPTS" =~ ^[1-9][0-9]*$ ]] ||
die "attempt count must be a positive integer"
@@ -28,7 +28,17 @@ for ((attempt = 1; attempt <= ATTEMPTS; attempt++)); do
VZ_STOP_HOST=1 "$SCRIPT_DIR/development/stop-ipad-vm.sh"
ipad_ssh "
set -eu
-test -x '$REMOTE_APP/VirtualMac'
+app=/var/jb/Applications/VirtualMac.app
+uiopen=/var/jb/usr/bin/uiopen
+if test ! -x \"\$app/VirtualMac\"; then
+ app=/Applications/VirtualMac.app
+ uiopen=/usr/bin/uiopen
+fi
+test -x \"\$app/VirtualMac\"
+test -x \"\$uiopen\"
+test -d '$BUNDLE'
+printf '%s\n' '$BUNDLE' >/tmp/vz-autoboot-path
+chown mobile:mobile /tmp/vz-autoboot-path
rm -f /tmp/VirtualMac.log /tmp/vzxpchook.log /tmp/vmmhook.log \
/tmp/vmm.stderr.log /tmp/vmm_ep.txt /tmp/pvg-trace.log
touch /tmp/VirtualMac.log /tmp/vzxpchook.log /tmp/vmmhook.log \
@@ -47,7 +57,7 @@ if test '$DISMISS_RESTART_ALERT' = 1; then
else
rm -f /tmp/vz-dismiss-restart-alert
fi
-/var/jb/usr/bin/uiopen --bundleid com.mac.virtual
+\"\$uiopen\" --bundleid com.mac.virtual
"
sleep "$START_WAIT"
result="$(ipad_ssh "
diff --git a/VirtualMac/scripts/lib/common.sh b/VirtualMac/scripts/lib/common.sh
index 7a106d8..a447c16 100755
--- a/VirtualMac/scripts/lib/common.sh
+++ b/VirtualMac/scripts/lib/common.sh
@@ -4,6 +4,21 @@ set -euo pipefail
VZ_REPO_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd)"
VZ_BUILD_ROOT="${VZ_BUILD_ROOT:-$VZ_REPO_ROOT/build}"
+# Every shipped binary uses the oldest currently supported deployment target.
+# A single package therefore runs on iPadOS 14.5 through 16.3.1; runtime
+# compatibility decisions must be made from the actual host OS instead of by
+# producing OS-specific packages. The override exists only for bring-up of
+# host-specific diagnostic builds.
+VZ_IPADOS_MIN_VERSION="${VZ_IPADOS_MIN_VERSION:-14.5}"
+
+case "$VZ_IPADOS_MIN_VERSION" in
+ 14.5|15.0) ;;
+ *)
+ echo "error: VZ_IPADOS_MIN_VERSION must be 14.5 or 15.0" >&2
+ exit 1
+ ;;
+esac
+export VZ_IPADOS_MIN_VERSION
if [[ "${VZ_IGNORE_ENV_FILE:-0}" != 1 && -f "$VZ_REPO_ROOT/.env" ]]; then
set -a
diff --git a/VirtualMac/scripts/prepare-inputs.sh b/VirtualMac/scripts/prepare-inputs.sh
index f8e309b..072b286 100755
--- a/VirtualMac/scripts/prepare-inputs.sh
+++ b/VirtualMac/scripts/prepare-inputs.sh
@@ -6,6 +6,8 @@ SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
source "$SCRIPT_DIR/lib/common.sh"
: "${VZ_MACOS_IPSW:?set VZ_MACOS_IPSW to the 13.2.1 22D68 restore image}"
+: "${VZ_BIG_SUR_IPSW:?set VZ_BIG_SUR_IPSW to the 11.6 20G165 restore image}"
+: "${VZ_IPADOS14_IPSW:?set VZ_IPADOS14_IPSW to the 14.5 18E199 restore image}"
INCLUDE_IPADOS_AUDIT="${VZ_INCLUDE_IPADOS_AUDIT:-0}"
if [[ -n "${VZ_IPADOS_IPSW:-}" ]]; then
INCLUDE_IPADOS_AUDIT=1
@@ -18,8 +20,17 @@ fi
IPSW="$VZ_BUILD_ROOT/toolchain/bin/ipsw-a2sb"
MAC_OUT="$VZ_BUILD_ROOT/inputs/macos"
IPAD_OUT="$VZ_BUILD_ROOT/inputs/ipados"
+IPAD14_OUT="$VZ_BUILD_ROOT/inputs/ipados14"
MAC_ROOT="$MAC_OUT/22D68__MacOS"
+BIG_SUR_ROOT="$VZ_BUILD_ROOT/inputs/macos11/20G165__MacOS"
DSC="$MAC_ROOT/dyld_shared_cache_arm64e"
+BIG_SUR_DSC="$BIG_SUR_ROOT/dyld_shared_cache_arm64e"
+BIG_SUR_INTERNET_SHARING="$BIG_SUR_ROOT/usr/libexec/InternetSharing"
+BIG_SUR_RTADVD="$BIG_SUR_ROOT/usr/sbin/rtadvd"
+BIG_SUR_NETWORK_SHARING_PLIST="$BIG_SUR_ROOT/System/Library/LaunchDaemons/com.apple.NetworkSharing.plist"
+BIG_SUR_BOOTPD_PLIST="$BIG_SUR_ROOT/System/Library/LaunchDaemons/bootps.plist"
+IPAD14_ROOT="$IPAD14_OUT/18E199__iPad13,4_5_6_7"
+IPAD14_BOOTPD="$IPAD14_ROOT/usr/libexec/bootpd"
IPAD_DSC="$IPAD_OUT/20D67__iPad14,3_4_5_6/dyld_shared_cache_arm64e"
VZ_ROOT="$MAC_ROOT/System/Library/Frameworks/Virtualization.framework/Versions/A"
VMM="$VZ_ROOT/XPCServices/com.apple.Virtualization.VirtualMachine.xpc/Contents/MacOS/com.apple.Virtualization.VirtualMachine"
@@ -28,6 +39,7 @@ RES="$VZ_ROOT/Resources"
HV_INFO="$MAC_ROOT/System/Library/Frameworks/Hypervisor.framework/Versions/A/Resources/Info.plist"
PVG_INFO="$MAC_ROOT/System/Library/Frameworks/ParavirtualizedGraphics.framework/Versions/A/Resources/Info.plist"
METAL_SERIALIZER_INFO="$MAC_ROOT/System/Library/PrivateFrameworks/MetalSerializer.framework/Versions/A/Resources/Info.plist"
+DISKIMAGES2_INFO="$MAC_ROOT/System/Library/PrivateFrameworks/DiskImages2.framework/Versions/A/Resources/Info.plist"
VZ_LOCALIZABLE="$RES/Localizable.loctable"
THIN="$MAC_OUT/VirtualMachine.arm64e"
MANIFEST="$VZ_BUILD_ROOT/inputs/manifest.txt"
@@ -38,6 +50,8 @@ NETWORK_SHARING_PLIST="$MAC_ROOT/System/Library/LaunchDaemons/com.apple.NetworkS
BOOTPD_PLIST="$MAC_ROOT/System/Library/LaunchDaemons/bootps.plist"
need_file "$VZ_MACOS_IPSW"
+need_file "$VZ_BIG_SUR_IPSW"
+need_file "$VZ_IPADOS14_IPSW"
if [[ "$INCLUDE_IPADOS_AUDIT" == 1 ]]; then
need_file "$VZ_IPADOS_IPSW"
fi
@@ -47,17 +61,42 @@ need_command lipo
need_command shasum
mkdir -p "$MAC_OUT" "$IPAD_OUT"
+mkdir -p "$IPAD14_OUT"
if [[ ! -f "$DSC" || ! -f "$DSC.01" ]]; then
"$IPSW" extract --dyld --dyld-arch arm64e \
--output "$MAC_OUT" "$VZ_MACOS_IPSW"
fi
+# XNU 20 on iPadOS 14 uses the matching Big Sur Hypervisor userspace ABI.
+# Only its dyld cache is needed; Ventura remains authoritative on iPadOS 15/16.
+if [[ ! -f "$BIG_SUR_DSC" ]]; then
+ "$IPSW" extract --dyld --dyld-arch arm64e \
+ --output "$VZ_BUILD_ROOT/inputs/macos11" "$VZ_BIG_SUR_IPSW"
+fi
+
+if [[ ! -f "$BIG_SUR_INTERNET_SHARING" || ! -f "$BIG_SUR_RTADVD" ||
+ ! -f "$BIG_SUR_NETWORK_SHARING_PLIST" ||
+ ! -f "$BIG_SUR_BOOTPD_PLIST" ]]; then
+ "$IPSW" extract --files \
+ --pattern '^(usr/libexec/InternetSharing|usr/sbin/rtadvd|System/Library/LaunchDaemons/(com\.apple\.NetworkSharing\.plist|bootps\.plist))$' \
+ --output "$VZ_BUILD_ROOT/inputs/macos11" "$VZ_BIG_SUR_IPSW"
+fi
+
+# The iPadOS 14 DHCP executable has authenticated pointers and socket-launch
+# behavior specific to that release. Extract it from the matching restore
+# image, but deploy it only under Virtual Mac's private runtime directory.
+if [[ ! -f "$IPAD14_BOOTPD" ]]; then
+ "$IPSW" extract --files \
+ --pattern '^usr/libexec/bootpd$' \
+ --output "$IPAD14_OUT" "$VZ_IPADOS14_IPSW"
+fi
+
if [[ ! -f "$VMM" || ! -f "$EVENT_TAP" || ! -f "$VZ_LOCALIZABLE" ||
! -f "$HV_INFO" || ! -f "$PVG_INFO" ||
- ! -f "$METAL_SERIALIZER_INFO" ]]; then
+ ! -f "$METAL_SERIALIZER_INFO" || ! -f "$DISKIMAGES2_INFO" ]]; then
"$IPSW" extract --files \
- --pattern '^(System/Library/Frameworks/(Hypervisor|ParavirtualizedGraphics|Virtualization)\.framework/Versions/A/(Resources/.*|XPCServices/.*)|System/Library/PrivateFrameworks/MetalSerializer\.framework/Versions/A/Resources/.*)$' \
+ --pattern '^(System/Library/Frameworks/(Hypervisor|ParavirtualizedGraphics|Virtualization)\.framework/Versions/A/(Resources/.*|XPCServices/.*)|System/Library/PrivateFrameworks/(MetalSerializer|DiskImages2)\.framework/Versions/A/Resources/.*)$' \
--output "$MAC_OUT" "$VZ_MACOS_IPSW"
fi
@@ -140,6 +179,9 @@ hash_line() {
printf 'python\t%s\n' "$("$VZ_BUILD_ROOT/toolchain/venv/bin/python3" --version 2>&1)"
printf 'dyldextractor\t2.2.2+VirtualMac-arm64e\n'
hash_line macos_ipsw "$VZ_MACOS_IPSW"
+ hash_line big_sur_ipsw "$VZ_BIG_SUR_IPSW"
+ hash_line ipados14_ipsw "$VZ_IPADOS14_IPSW"
+ hash_line big_sur_dsc "$BIG_SUR_DSC"
hash_line macos_dsc "$DSC"
hash_line macos_dsc_01 "$DSC.01"
if [[ "$INCLUDE_IPADOS_AUDIT" == 1 ]]; then
@@ -159,6 +201,7 @@ hash_line() {
fi
hash_line internet_sharing "$INTERNET_SHARING"
hash_line bootpd "$BOOTPD"
+ hash_line ipados14_bootpd "$IPAD14_BOOTPD"
hash_line rtadvd "$RTADVD"
hash_line metal_serializer_info "$METAL_SERIALIZER_INFO"
printf 'macos_kernel_version\t%s\n' \
diff --git a/VirtualMac/scripts/update-localizations.py b/VirtualMac/scripts/update-localizations.py
new file mode 100644
index 0000000..5dc46f1
--- /dev/null
+++ b/VirtualMac/scripts/update-localizations.py
@@ -0,0 +1,50 @@
+#!/usr/bin/env python3
+"""Synchronize checked-in Localizable.strings files with Objective-C keys.
+
+This maintenance command never translates or replaces reviewed text. It adds
+an explicit English fallback for missing keys, then rewrites every catalog in
+one deterministic alphabetical sequence. Translators can replace fallbacks
+without losing format placeholders or key coverage.
+"""
+
+from pathlib import Path
+import re
+
+ROOT = Path(__file__).resolve().parents[1]
+RESOURCE_ROOT = ROOT / "resources" / "Localizations"
+SOURCE_PATTERN = re.compile(r'VZL\(@"((?:[^"\\]|\\.)*)"\)')
+STRINGS_PATTERN = re.compile(
+ r'^"((?:[^"\\]|\\.)*)"\s*=\s*"((?:[^"\\]|\\.)*)";', re.M
+)
+
+
+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()))
+ return sorted(keys, key=str.casefold)
+
+
+def quote(value: str) -> str:
+ # Captured source keys already use Objective-C/.strings escaping. Preserve
+ # those sequences byte-for-byte and escape only literal newlines.
+ return value.replace("\n", r"\n")
+
+
+keys = source_keys()
+for path in sorted(RESOURCE_ROOT.glob("*.lproj/Localizable.strings")):
+ contents = path.read_text()
+ entries = dict(STRINGS_PATTERN.findall(contents))
+ missing = [key for key in keys if key not in entries]
+ for key in missing:
+ entries[key] = key
+ lines = ["/* Virtual Mac 1.1 localization. */"]
+ lines.extend(
+ f'"{quote(key)}" = "{quote(entries[key])}";'
+ for key in keys
+ )
+ path.write_text("\n".join(lines) + "\n")
+ print(
+ f"{path.relative_to(ROOT)}: sorted {len(keys)} keys"
+ + (f", added {len(missing)}" if missing else "")
+ )
diff --git a/VirtualMac/scripts/validate-localizations.py b/VirtualMac/scripts/validate-localizations.py
new file mode 100644
index 0000000..30b0e95
--- /dev/null
+++ b/VirtualMac/scripts/validate-localizations.py
@@ -0,0 +1,91 @@
+#!/usr/bin/env python3
+"""Validate the checked-in, human-reviewed iPadOS 16 language resources."""
+
+from pathlib import Path
+import re
+import sys
+
+ROOT = Path(__file__).resolve().parents[1]
+RESOURCE_ROOT = ROOT / "resources" / "Localizations"
+EXPECTED = {
+ "cs", "da", "de", "el", "en", "es", "es_419", "es_US", "fi", "fr",
+ "fr_CA", "he", "hi", "hr", "hu", "id", "it", "ja", "ko", "ms",
+ "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\(@"((?:[^"\\]|\\.)*)"\)')
+STRINGS_PATTERN = re.compile(r'^"((?:[^"\\]|\\.)*)"\s*=\s*"((?:[^"\\]|\\.)*)";', re.M)
+FORMAT_PATTERN = re.compile(
+ r'%(?:%|(?:\d+\$)?[-+ #0\']*(?:\d+|\*)?(?:\.(?:\d+|\*))?'
+ r'(?:hh|h|ll|l|j|z|t|L)?[diuoxXfFeEgGaAcsp@])'
+)
+RAW_UI_PATTERNS = (
+ re.compile(r'(?:actionWithTitle|alertControllerWithTitle|initWithTitle):@"'),
+ re.compile(r'menuWithTitle:@"(?=[^"])'),
+ re.compile(r'\.(?:title|text|placeholder|accessibilityLabel)\s*=\s*@"'),
+ re.compile(r'(?:message|headerText|footerText):@"'),
+ re.compile(r'setTitle:@"'),
+)
+TECHNICAL_IDENTICAL_VALUES = {
+ "%@ CPU · %@ GB RAM · %llu GB · %@%@",
+ "Build %@ · %@ · %@",
+ "Ethernet (%@)",
+ "MAC Address",
+ "Mac Keyboard",
+ "Mac Trackpad",
+ "NAT: Share %@",
+ "Start %@",
+ "USB Keyboard",
+ "USB Mouse",
+ "Virtual Mac",
+ "VPN",
+ "Wi-Fi",
+}
+
+
+def fail(message: str) -> None:
+ raise SystemExit(f"localization audit failed: {message}")
+
+
+source_keys = set()
+for source in (ROOT / "vz" / "host").glob("*.m"):
+ contents = source.read_text()
+ source_keys.update(SOURCE_PATTERN.findall(contents))
+ for pattern in RAW_UI_PATTERNS:
+ match = pattern.search(contents)
+ if match:
+ line = contents.count("\n", 0, match.start()) + 1
+ fail(f"raw user-facing string in {source.name}:{line}; wrap it in VZL()")
+
+actual = {path.name.removesuffix(".lproj") for path in RESOURCE_ROOT.glob("*.lproj")}
+if actual != EXPECTED:
+ fail(f"language list mismatch; missing={sorted(EXPECTED-actual)}, extra={sorted(actual-EXPECTED)}")
+
+for locale in sorted(EXPECTED):
+ path = RESOURCE_ROOT / f"{locale}.lproj" / "Localizable.strings"
+ ordered_entries = STRINGS_PATTERN.findall(path.read_text())
+ entries = dict(ordered_entries)
+ ordered_keys = [key for key, _ in ordered_entries]
+ expected_order = sorted(source_keys, key=str.casefold)
+ if ordered_keys != expected_order:
+ fail(f"{locale} keys are not in one alphabetical sequence")
+ missing = source_keys - entries.keys()
+ if missing:
+ fail(f"{locale} is missing keys: {sorted(missing)}")
+ for key in source_keys:
+ if sorted(FORMAT_PATTERN.findall(key)) != sorted(FORMAT_PATTERN.findall(entries[key])):
+ fail(f"{locale} changed format placeholders for {key!r}")
+ if (locale != "en" and entries[key] == key and " " in key and
+ key not in TECHNICAL_IDENTICAL_VALUES):
+ fail(f"{locale} retains an untranslated phrase: {key!r}")
+ info_path = RESOURCE_ROOT / f"{locale}.lproj" / "InfoPlist.strings"
+ if not info_path.is_file():
+ fail(f"{locale} is missing InfoPlist.strings")
+ info_entries = dict(STRINGS_PATTERN.findall(info_path.read_text()))
+ if set(info_entries) != {"CFBundleDisplayName", "CFBundleName"}:
+ fail(f"{locale} has invalid InfoPlist.strings keys")
+ if not info_entries["CFBundleDisplayName"] or (
+ info_entries["CFBundleDisplayName"] != info_entries["CFBundleName"]):
+ fail(f"{locale} has inconsistent localized app names")
+
+print(f"localization audit passed: {len(EXPECTED)} language variants, {len(source_keys)} UI strings")
diff --git a/VirtualMac/setup.sh b/VirtualMac/setup.sh
index da0577e..2588fee 100755
--- a/VirtualMac/setup.sh
+++ b/VirtualMac/setup.sh
@@ -8,11 +8,20 @@ set -euo pipefail
REPO_ROOT="$(cd "$(dirname "$0")" && pwd)"
MACOS_NAME="UniversalMac_13.2.1_22D68_Restore.ipsw"
+BIG_SUR_NAME="UniversalMac_11.6_20G165_Restore.ipsw"
IPADOS_NAME="iPad14,3,iPad14,4,iPad14,5,iPad14,6_16.3.1_20D67_Restore.ipsw"
+IPADOS14_NAME="iPad_Spring_2021_14.5_18E199_Restore.ipsw"
+IPADOS15_NAME="iPad_Pro_Spring_2021_15.0_19A346_Restore.ipsw"
MACOS_URL="https://updates.cdn-apple.com/2023WinterFCS/fullrestores/032-48346/EFF99C1E-C408-4E7A-A448-12E1468AF06C/$MACOS_NAME"
+BIG_SUR_URL="https://updates.cdn-apple.com/2021FallFCS/fullrestores/071-97388/C361BF5E-0E01-47E5-8D30-5990BC3C9E29/$BIG_SUR_NAME"
IPADOS_URL="https://updates.cdn-apple.com/2023WinterFCS/fullrestores/032-50028/ACF197BE-D22C-49EC-94C5-C1B58D7708AC/$IPADOS_NAME"
+IPADOS14_URL="https://updates.cdn-apple.com/2021SpringFCS/fullrestores/071-17692/4BB409F6-D860-416B-A0EF-BDC941C74F3E/$IPADOS14_NAME"
+IPADOS15_URL="https://updates.cdn-apple.com/2021FallFCS/fullrestores/002-02897/6B63FC96-3F0A-4DC4-B065-BFA88F2EF7AF/$IPADOS15_NAME"
MACOS_SHA256="0310220c8a540dc53a92ec9f9e0894db627d8f97fd18c3275eb96865a6e5fe04"
+BIG_SUR_SHA256="9bc6b9e0d42bb892ee139a8d88fc5e8ce2931d57743d8e3ed1ce45aa5da8add6"
IPADOS_SHA256="a4d922f3fdc960fd5714b5d46c13b928c1249e072cb93301bd1f7bb66ec29cc0"
+IPADOS14_SHA256="11023b65bc2f08eabbb141fa494873d41a1d4a43fca09904480d8e55e8065dc4"
+IPADOS15_SHA256="f678d0c061c1dd8a3afdf4a3aee12123b95c47607a2fe5a8accc4b608ccf7344"
DEVICE_SUPPORT_NAME="DeviceSupport_macOS_27_beta.dmg"
DEVICE_SUPPORT_URL="https://github.com/nfzerox/DeviceSupportMirror/releases/download/1.0/$DEVICE_SUPPORT_NAME"
DEVICE_SUPPORT_SHA256="d02e14429a02a78d8bf9d84df8ae55f5a03f2a00dbf58767f451b68eda417ca1"
@@ -20,7 +29,10 @@ DEVICE_SUPPORT_SHA256="d02e14429a02a78d8bf9d84df8ae55f5a03f2a00dbf58767f451b68ed
BUILD_ROOT="${VZ_BUILD_ROOT:-$REPO_ROOT/build}"
DOWNLOAD_ROOT="${VZ_DOWNLOAD_ROOT:-$BUILD_ROOT/downloads}"
MACOS_IPSW="${VZ_MACOS_IPSW:-}"
+BIG_SUR_IPSW="${VZ_BIG_SUR_IPSW:-}"
IPADOS_IPSW="${VZ_IPADOS_IPSW:-}"
+IPADOS14_IPSW="${VZ_IPADOS14_IPSW:-}"
+IPADOS15_IPSW="${VZ_IPADOS15_IPSW:-}"
DEVICE_SUPPORT_DMG="${VZ_DEVICE_SUPPORT_DMG:-}"
XCODE_PATH="${DEVELOPER_DIR:-${VZ_XCODE_PATH:-}}"
IPAD_UDID="${VZ_IPAD_UDID:-}"
@@ -40,8 +52,11 @@ Build options:
--build-dir PATH Generated files (default: ./build)
--download-dir PATH Downloaded restore images (default: BUILD/downloads)
--macos-ipsw PATH Reuse macOS 13.2.1 (22D68) restore image
- --full-ipados-audit Extract 16.3.1 and 16.1 iPadOS caches and audit ABIs
+ --big-sur-ipsw PATH Reuse macOS 11.6 (20G165) restore image for iPadOS 14
+ --ipados14-ipsw PATH Reuse iPadOS 14.5 (18E199) matching helper image
+ --full-ipados-audit Audit the built payload against iPadOS 14, 15, and 16
--ipados-ipsw PATH Reuse 16.3.1 image for --full-ipados-audit
+ --ipados15-ipsw PATH Reuse 15.0 image for --full-ipados-audit
--device-support-dmg P Reuse the macOS 27 DeviceSupport disk image
--xcode PATH Xcode.app or its Contents/Developer directory
--skip-dependencies Do not install Homebrew or Brewfile dependencies
@@ -69,6 +84,9 @@ while (($#)); do
--build-dir) BUILD_ROOT="${2:?missing path}"; shift 2 ;;
--download-dir) DOWNLOAD_ROOT="${2:?missing path}"; shift 2 ;;
--macos-ipsw) MACOS_IPSW="${2:?missing path}"; shift 2 ;;
+ --big-sur-ipsw) BIG_SUR_IPSW="${2:?missing path}"; shift 2 ;;
+ --ipados14-ipsw) IPADOS14_IPSW="${2:?missing path}"; shift 2 ;;
+ --ipados15-ipsw) IPADOS15_IPSW="${2:?missing path}"; FULL_IPADOS_AUDIT=1; shift 2 ;;
--ipados-ipsw) IPADOS_IPSW="${2:?missing path}"; FULL_IPADOS_AUDIT=1; shift 2 ;;
--device-support-dmg) DEVICE_SUPPORT_DMG="${2:?missing path}"; shift 2 ;;
--full-ipados-audit) FULL_IPADOS_AUDIT=1; shift ;;
@@ -221,24 +239,39 @@ command -v shasum >/dev/null 2>&1 || die "missing command: shasum"
select_xcode
MACOS_IPSW="$(obtain_verified_file macOS "$MACOS_IPSW" "$MACOS_NAME" "$MACOS_URL" "$MACOS_SHA256")"
+BIG_SUR_IPSW="$(obtain_verified_file 'macOS Big Sur' "$BIG_SUR_IPSW" \
+ "$BIG_SUR_NAME" "$BIG_SUR_URL" "$BIG_SUR_SHA256")"
+IPADOS14_IPSW="$(obtain_verified_file 'iPadOS 14.5' "$IPADOS14_IPSW" \
+ "$IPADOS14_NAME" "$IPADOS14_URL" "$IPADOS14_SHA256")"
DEVICE_SUPPORT_DMG="$(obtain_verified_file DeviceSupport "$DEVICE_SUPPORT_DMG" \
"$DEVICE_SUPPORT_NAME" "$DEVICE_SUPPORT_URL" "$DEVICE_SUPPORT_SHA256")"
if [[ "$FULL_IPADOS_AUDIT" == 1 ]]; then
+ IPADOS15_IPSW="$(obtain_verified_file 'iPadOS 15.0' "$IPADOS15_IPSW" \
+ "$IPADOS15_NAME" "$IPADOS15_URL" "$IPADOS15_SHA256")"
IPADOS_IPSW="$(obtain_verified_file iPadOS "$IPADOS_IPSW" "$IPADOS_NAME" "$IPADOS_URL" "$IPADOS_SHA256")"
fi
export VZ_BUILD_ROOT="$BUILD_ROOT"
export VZ_MACOS_IPSW="$MACOS_IPSW"
+export VZ_BIG_SUR_IPSW="$BIG_SUR_IPSW"
+export VZ_IPADOS14_IPSW="$IPADOS14_IPSW"
+export VZ_IPADOS15_IPSW="$IPADOS15_IPSW"
export VZ_IPADOS_IPSW="$IPADOS_IPSW"
export VZ_DEVICE_SUPPORT_DMG="$DEVICE_SUPPORT_DMG"
export VZ_INCLUDE_IPADOS_AUDIT="$FULL_IPADOS_AUDIT"
export VZ_REQUIRE_IPADOS_COMPAT_DSC="$FULL_IPADOS_AUDIT"
+if [[ "$FULL_IPADOS_AUDIT" == 1 ]]; then
+ export VZ_AUDIT_HOST_VERSIONS="14.5 15.0 16.3.1"
+fi
export VZ_IGNORE_ENV_FILE=1
"$REPO_ROOT/scripts/bootstrap.sh"
"$REPO_ROOT/scripts/prepare-inputs.sh"
if [[ "$FULL_IPADOS_AUDIT" == 1 ]]; then
- "$REPO_ROOT/scripts/fetch-ipados-compat-cache.sh"
+ VZ_IPADOS_COMPAT_IPSW="$IPADOS14_IPSW" \
+ "$REPO_ROOT/scripts/fetch-ipados-compat-cache.sh" --version 14.5
+ VZ_IPADOS_COMPAT_IPSW="$IPADOS15_IPSW" \
+ "$REPO_ROOT/scripts/fetch-ipados-compat-cache.sh" --version 15.0
fi
"$REPO_ROOT/scripts/build-frameworks.sh"
"$REPO_ROOT/scripts/build-ipad-deb.sh"
diff --git a/VirtualMac/vendor/VirtualBuddy/ipsws_v2.json b/VirtualMac/vendor/VirtualBuddy/ipsws_v2.json
index 292d38c..07a499a 100644
--- a/VirtualMac/vendor/VirtualBuddy/ipsws_v2.json
+++ b/VirtualMac/vendor/VirtualBuddy/ipsws_v2.json
@@ -241,7 +241,7 @@
"maxGuestVersion" : "12.99.99",
"minGuestVersion" : "12.3.0",
"sha384" : "8b4797ad33b40fc939a532c28d121c63bebcd7bb36c0fdd0de1db54174652c18fb3da4a2cea298a2efd1984ead37ac77",
- "url" : "https://raw.githubusercontent.com/insidegui/VirtualBuddy/refs/heads/legacy-guest-support/data/LegacyGuestApp/VirtualBuddyGuest_minOS_12.3.dmg"
+ "url" : "https:\/\/raw.githubusercontent.com\/insidegui\/VirtualBuddy\/refs\/heads\/legacy-guest-support\/data\/LegacyGuestApp\/VirtualBuddyGuest_minOS_12.3.dmg"
},
{
"guestAppVersion" : "2.1.0",
@@ -249,7 +249,7 @@
"maxGuestVersion" : "13.99.99",
"minGuestVersion" : "13.0.0",
"sha384" : "ccb6c968eff880dd2e2a1b91d9d1be373b95cfb3bb2072042c0af3be0fc0962fb22d56516d2ca2b05a51935ad5a63f8c",
- "url" : "https://raw.githubusercontent.com/insidegui/VirtualBuddy/refs/heads/legacy-guest-support/data/LegacyGuestApp/VirtualBuddyGuest_minOS_13.0.dmg"
+ "url" : "https:\/\/raw.githubusercontent.com\/insidegui\/VirtualBuddy\/refs\/heads\/legacy-guest-support\/data\/LegacyGuestApp\/VirtualBuddyGuest_minOS_13.0.dmg"
},
{
"guestAppVersion" : "2.2.0",
@@ -257,7 +257,7 @@
"maxGuestVersion" : "14.99.99",
"minGuestVersion" : "14.0.0",
"sha384" : "ccb6c968eff880dd2e2a1b91d9d1be373b95cfb3bb2072042c0af3be0fc0962fb22d56516d2ca2b05a51935ad5a63f8c",
- "url" : "https://raw.githubusercontent.com/insidegui/VirtualBuddy/refs/heads/legacy-guest-support/data/LegacyGuestApp/VirtualBuddyGuest_minOS_14.0.dmg"
+ "url" : "https:\/\/raw.githubusercontent.com\/insidegui\/VirtualBuddy\/refs\/heads\/legacy-guest-support\/data\/LegacyGuestApp\/VirtualBuddyGuest_minOS_14.0.dmg"
}
],
"minAppVersion" : "2.0.0",
@@ -359,6 +359,18 @@
"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" : "25G76",
+ "channel" : "regular",
+ "downloadSize" : 19772153977,
+ "group" : "tahoe",
+ "id" : "25G76",
+ "mobileDeviceMinVersion" : "1827.100.14",
+ "name" : "macOS 26.6.1",
+ "requirements" : "min_host_13",
+ "url" : "https:\/\/updates.cdn-apple.com\/2026SummerFCS\/fullrestores\/140-83079\/25315EF6-AEAB-4588-9774-A3723774C47F\/UniversalMac_26.6.1_25G76_Restore.ipsw",
+ "version" : "26.6.1"
+ },
{
"build" : "25G72",
"channel" : "regular",
diff --git a/VirtualMac/vz/development/ghidra/DumpTargetFunctions.java b/VirtualMac/vz/development/ghidra/DumpTargetFunctions.java
index 3f53501..3a9e294 100644
--- a/VirtualMac/vz/development/ghidra/DumpTargetFunctions.java
+++ b/VirtualMac/vz/development/ghidra/DumpTargetFunctions.java
@@ -56,11 +56,18 @@ public class DumpTargetFunctions extends GhidraScript {
targets.put("pvg_map_memory_callback", 0x10011e8c0L);
targets.put("pvg_read_memory_callback", 0x10011eac8L);
targets.put("pvg_destroy_task_callback", 0x10011eba0L);
+ targets.put("vm_event_send", 0x100005f14L);
+ targets.put("vm_reset_enqueue", 0x1000d5e70L);
+ targets.put("vm_reset_dispatch", 0x1000d5ed8L);
+ targets.put("vm_reset", 0x1000d5f74L);
return targets;
}
private Map<String, Long> pvgTargets() {
Map<String, Long> targets = new LinkedHashMap<>();
+ targets.put("PGNewDeviceWithDescriptor", 0x1000137a4L);
+ targets.put("PGDevice_initWithDescriptor", 0x10000e94cL);
+ targets.put("PGDevice_setupBlitPipelines", 0x10000ecd4L);
// The first address is the helper which raises "Invalid task". The
// second is the recovered NSException catch site observed in the VMM.
targets.put("invalid_task_throw", 0x100010a00L);
diff --git a/VirtualMac/vz/host/VZAppSettings.h b/VirtualMac/vz/host/VZAppSettings.h
index 2425302..094b7c1 100644
--- a/VirtualMac/vz/host/VZAppSettings.h
+++ b/VirtualMac/vz/host/VZAppSettings.h
@@ -15,6 +15,14 @@ FOUNDATION_EXPORT NSString * const VZAutoDeleteRestoreImageKey;
FOUNDATION_EXPORT NSString * const VZHUDVisibilityKey;
FOUNDATION_EXPORT NSString * const VZHUDCornerKey;
FOUNDATION_EXPORT NSString * const VZDisplayScalingKey;
+FOUNDATION_EXPORT NSString * const VZTouchDoubleTapAccommodationKey;
+FOUNDATION_EXPORT NSString * const VZTouchTwoFingerScrollingKey;
+FOUNDATION_EXPORT NSString * const VZTouchTwoFingerRightClickKey;
+FOUNDATION_EXPORT NSString * const VZTouchLongPressRightClickKey;
+FOUNDATION_EXPORT NSString * const VZIPadOS162KeyboardWorkaroundKey;
+FOUNDATION_EXPORT NSString * const VZNetworkResumeRecoveryKey;
+FOUNDATION_EXPORT NSString * const VZHUDOpacityKey;
+FOUNDATION_EXPORT NSString * const VZDebugLoggingKey;
@interface VZAppSettings : NSObject
+ (instancetype)sharedSettings;
@@ -22,6 +30,7 @@ FOUNDATION_EXPORT NSString * const VZDisplayScalingKey;
- (nullable NSString *)stringForKey:(NSString *)key;
- (void)setBool:(BOOL)value forKey:(NSString *)key;
- (void)setString:(nullable NSString *)value forKey:(NSString *)key;
+- (void)resetToDefaults;
- (NSDictionary *)dictionaryRepresentation;
@end
diff --git a/VirtualMac/vz/host/VZAppSettings.m b/VirtualMac/vz/host/VZAppSettings.m
index 3053f0f..20e4b9b 100644
--- a/VirtualMac/vz/host/VZAppSettings.m
+++ b/VirtualMac/vz/host/VZAppSettings.m
@@ -13,6 +13,14 @@ NSString * const VZAutoDeleteRestoreImageKey = @"AutoDeleteRestoreImage";
NSString * const VZHUDVisibilityKey = @"HUDVisibility";
NSString * const VZHUDCornerKey = @"HUDCorner";
NSString * const VZDisplayScalingKey = @"DisplayScaling";
+NSString * const VZTouchDoubleTapAccommodationKey = @"TouchDoubleTapAccommodation";
+NSString * const VZTouchTwoFingerScrollingKey = @"TouchTwoFingerScrolling";
+NSString * const VZTouchTwoFingerRightClickKey = @"TouchTwoFingerRightClick";
+NSString * const VZTouchLongPressRightClickKey = @"TouchLongPressRightClick";
+NSString * const VZIPadOS162KeyboardWorkaroundKey = @"IPadOS162KeyboardWorkaround";
+NSString * const VZNetworkResumeRecoveryKey = @"NetworkResumeRecovery";
+NSString * const VZHUDOpacityKey = @"HUDOpacity";
+NSString * const VZDebugLoggingKey = @"DebugLogging";
static NSString * const VZSettingsPath = @"/var/mobile/Media/VirtualMac/Settings.plist";
static CFStringRef const VZSettingsDarwinNotification =
@@ -55,6 +63,14 @@ static CFStringRef const VZSettingsDarwinNotification =
VZHUDVisibilityKey: @"automatic",
VZHUDCornerKey: @"top-right",
VZDisplayScalingKey: @"fit",
+ VZTouchDoubleTapAccommodationKey: @YES,
+ VZTouchTwoFingerScrollingKey: @YES,
+ VZTouchTwoFingerRightClickKey: @YES,
+ VZTouchLongPressRightClickKey: @NO,
+ VZIPadOS162KeyboardWorkaroundKey: @NO,
+ VZNetworkResumeRecoveryKey: @NO,
+ VZHUDOpacityKey: @"0.55",
+ VZDebugLoggingKey: @NO,
};
}
@@ -102,6 +118,12 @@ static CFStringRef const VZSettingsDarwinNotification =
[self save];
}
+- (void)resetToDefaults
+{
+ [self.values removeAllObjects];
+ [self save];
+}
+
- (NSDictionary *)dictionaryRepresentation
{
NSMutableDictionary *result = [NSMutableDictionary dictionaryWithDictionary:[self defaults]];
diff --git a/VirtualMac/vz/host/VZDiagnostics.h b/VirtualMac/vz/host/VZDiagnostics.h
new file mode 100644
index 0000000..15ed063
--- /dev/null
+++ b/VirtualMac/vz/host/VZDiagnostics.h
@@ -0,0 +1,11 @@
+#import <Foundation/Foundation.h>
+
+NS_ASSUME_NONNULL_BEGIN
+
+// Creates a self-contained ZIP containing bounded Virtual Mac logs,
+// configuration, and device metadata. Guest disks and shared files are never
+// included. The caller may present the returned URL with a share sheet.
+FOUNDATION_EXPORT NSURL * _Nullable VZCreateDiagnosticsArchive(
+ NSError **error);
+
+NS_ASSUME_NONNULL_END
diff --git a/VirtualMac/vz/host/VZDiagnostics.m b/VirtualMac/vz/host/VZDiagnostics.m
new file mode 100644
index 0000000..6746fb6
--- /dev/null
+++ b/VirtualMac/vz/host/VZDiagnostics.m
@@ -0,0 +1,294 @@
+#import "VZDiagnostics.h"
+#import "VZAppSettings.h"
+#import <errno.h>
+#import <sys/stat.h>
+#import <sys/sysctl.h>
+#import <sys/utsname.h>
+#import <pwd.h>
+#import <unistd.h>
+
+static uint32_t VZCRC32(NSData *data)
+{
+ uint32_t crc = UINT32_MAX;
+ const uint8_t *bytes = data.bytes;
+ for (NSUInteger index = 0; index < data.length; index++) {
+ crc ^= bytes[index];
+ for (NSUInteger bit = 0; bit < 8; bit++)
+ crc = (crc >> 1) ^ (0xedb88320U & -(int32_t)(crc & 1));
+ }
+ return ~crc;
+}
+
+static NSString *VZDiagnosticsLibraryPath(void)
+{
+ return @"/var/mobile/Media/VirtualMac";
+}
+
+static NSArray *VZDiagnosticsInstallationPaths(void)
+{
+ NSString *directory = [VZDiagnosticsLibraryPath()
+ stringByAppendingPathComponent:@"Installations"];
+ NSMutableArray *paths = [NSMutableArray array];
+ for (NSString *name in [NSFileManager.defaultManager
+ contentsOfDirectoryAtPath:directory error:nil])
+ [paths addObject:[directory stringByAppendingPathComponent:name]];
+ return paths;
+}
+
+static void VZAppend16(NSMutableData *data, uint16_t value)
+{
+ [data appendBytes:&value length:sizeof(value)];
+}
+
+static void VZAppend32(NSMutableData *data, uint32_t value)
+{
+ [data appendBytes:&value length:sizeof(value)];
+}
+
+static NSData *VZBoundedFileData(NSString *path)
+{
+ NSFileHandle *handle = [NSFileHandle fileHandleForReadingAtPath:path];
+ if (!handle)
+ return nil;
+ unsigned long long size = [handle seekToEndOfFile];
+ const unsigned long long limit = 8ULL << 20;
+ if (size > limit)
+ [handle seekToFileOffset:size - limit];
+ NSData *data = [handle readDataToEndOfFile];
+ [handle closeFile];
+ return data;
+}
+
+typedef void (^VZDiagnosticEntryHandler)(NSString *name, NSData *data);
+
+static void VZAddEntry(VZDiagnosticEntryHandler handler,
+ NSString *name, NSData *data)
+{
+ if (!name.length || !data.length)
+ return;
+ handler(name, data);
+}
+
+static void VZEnumerateDiagnosticEntries(VZDiagnosticEntryHandler handler)
+{
+ struct utsname systemInfo = {0};
+ uname(&systemInfo);
+ size_t buildLength = 0;
+ sysctlbyname("kern.osversion", NULL, &buildLength, NULL, 0);
+ NSMutableData *buildData = [NSMutableData dataWithLength:buildLength ?: 1];
+ if (buildLength)
+ sysctlbyname("kern.osversion", buildData.mutableBytes,
+ &buildLength, NULL, 0);
+ NSString *osBuild = buildLength
+ ? [NSString stringWithUTF8String:buildData.bytes] : @"unknown";
+ NSDictionary *fileSystem = [NSFileManager.defaultManager
+ attributesOfFileSystemForPath:VZDiagnosticsLibraryPath() error:nil] ?: @{};
+ NSDictionary *bundleInfo = NSBundle.mainBundle.infoDictionary ?: @{};
+ NSString *manifest = [NSString stringWithFormat:
+ @"Virtual Mac diagnostics\n"
+ "Created: %@\nApp version: %@ (%@)\nDevice: %s\n"
+ "iPadOS: %@ (%@)\nPhysical memory: %llu\nFree storage: %@\n",
+ NSDate.date, bundleInfo[@"CFBundleShortVersionString"] ?: @"unknown",
+ bundleInfo[@"CFBundleVersion"] ?: @"unknown", systemInfo.machine,
+ NSProcessInfo.processInfo.operatingSystemVersionString, osBuild,
+ (unsigned long long)NSProcessInfo.processInfo.physicalMemory,
+ fileSystem[NSFileSystemFreeSize] ?: @"unknown"];
+ VZAddEntry(handler, @"manifest.txt",
+ [manifest dataUsingEncoding:NSUTF8StringEncoding]);
+
+ NSData *settings = [NSPropertyListSerialization dataWithPropertyList:
+ VZAppSettings.sharedSettings.dictionaryRepresentation
+ format:NSPropertyListXMLFormat_v1_0 options:0 error:nil];
+ VZAddEntry(handler, @"Settings.plist", settings);
+
+ 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"];
+ for (NSString *name in logNames)
+ VZAddEntry(handler, [@"logs" stringByAppendingPathComponent:name],
+ VZBoundedFileData([@"/tmp" stringByAppendingPathComponent:name]));
+
+ NSArray *temporary = [NSFileManager.defaultManager
+ contentsOfDirectoryAtPath:@"/tmp" error:nil];
+ for (NSString *name in temporary) {
+ if (![name hasPrefix:@"VirtualMac-install"] &&
+ ![name hasPrefix:@"vz-usbmuxd"] &&
+ ![name hasPrefix:@"installation"])
+ continue;
+ VZAddEntry(handler, [@"restore" stringByAppendingPathComponent:name],
+ VZBoundedFileData([@"/tmp" stringByAppendingPathComponent:name]));
+ }
+
+ NSMutableArray *inventory = [NSMutableArray array];
+ NSArray *bundles = [NSFileManager.defaultManager
+ contentsOfDirectoryAtPath:VZDiagnosticsLibraryPath() error:nil];
+ for (NSString *name in bundles) {
+ if (![name.pathExtension.lowercaseString isEqualToString:@"bundle"])
+ continue;
+ NSString *bundlePath = [VZDiagnosticsLibraryPath()
+ stringByAppendingPathComponent:name];
+ NSMutableDictionary *item = [NSMutableDictionary dictionary];
+ item[@"Name"] = name;
+ for (NSString *fileName in @[@"Disk.img", @"MachineIdentifier",
+ @"AuxiliaryStorage", @"HardwareModel"]) {
+ NSDictionary *attributes = [NSFileManager.defaultManager
+ attributesOfItemAtPath:[bundlePath
+ stringByAppendingPathComponent:fileName] error:nil];
+ if (attributes[NSFileSize])
+ item[fileName] = attributes[NSFileSize];
+ }
+ [inventory addObject:item];
+ NSString *configuration = [bundlePath
+ stringByAppendingPathComponent:@"VirtualMac.plist"];
+ VZAddEntry(handler,
+ [NSString stringWithFormat:@"virtual-machines/%@/VirtualMac.plist",
+ name],
+ VZBoundedFileData(configuration));
+ }
+ NSData *inventoryData = [NSJSONSerialization dataWithJSONObject:inventory
+ options:NSJSONWritingPrettyPrinted error:nil];
+ VZAddEntry(handler, @"virtual-machines/inventory.json", inventoryData);
+
+ NSString *crashRoot = @"/var/mobile/Library/Logs/CrashReporter";
+ NSDirectoryEnumerator *crashEnumerator = [NSFileManager.defaultManager
+ enumeratorAtPath:crashRoot];
+ NSUInteger crashFileCount = 0;
+ NSUInteger unreadableCrashFileCount = 0;
+ for (NSString *relativePath in crashEnumerator) {
+ NSString *path = [crashRoot stringByAppendingPathComponent:relativePath];
+ BOOL directory = NO;
+ if (![NSFileManager.defaultManager fileExistsAtPath:path
+ isDirectory:&directory] || directory)
+ continue;
+ NSData *contents = [[NSData alloc] initWithContentsOfFile:path];
+ if (!contents) {
+ unreadableCrashFileCount++;
+ continue;
+ }
+ crashFileCount++;
+ VZAddEntry(handler, [@"crash-reports"
+ stringByAppendingPathComponent:relativePath], contents);
+ [contents release];
+ }
+ NSString *crashSummary = [NSString stringWithFormat:
+ @"Included files: %lu\nUnreadable files: %lu\nSource: %@\n",
+ (unsigned long)crashFileCount,
+ (unsigned long)unreadableCrashFileCount, crashRoot];
+ VZAddEntry(handler, @"crash-reports/summary.txt",
+ [crashSummary dataUsingEncoding:NSUTF8StringEncoding]);
+
+ for (NSString *artifactPath in VZDiagnosticsInstallationPaths()) {
+ NSDirectoryEnumerator *enumerator = [NSFileManager.defaultManager
+ enumeratorAtPath:artifactPath];
+ for (NSString *relativePath in enumerator) {
+ NSString *extension = relativePath.pathExtension.lowercaseString;
+ if (![@[@"plist", @"log", @"txt"] containsObject:extension])
+ continue;
+ NSString *path = [artifactPath stringByAppendingPathComponent:
+ relativePath];
+ NSString *archiveName = [NSString stringWithFormat:
+ @"restore/attempts/%@/%@", artifactPath.lastPathComponent,
+ relativePath];
+ VZAddEntry(handler, archiveName, VZBoundedFileData(path));
+ }
+ }
+}
+
+NSURL *VZCreateDiagnosticsArchive(NSError **error)
+{
+ NSString *directory = [@"/var/mobile/Media/VirtualMac"
+ stringByAppendingPathComponent:@"Diagnostics"];
+ if (![NSFileManager.defaultManager createDirectoryAtPath:directory
+ withIntermediateDirectories:YES attributes:nil error:error])
+ return nil;
+ NSDateFormatter *formatter = [[[NSDateFormatter alloc] init] autorelease];
+ formatter.dateFormat = @"yyyyMMdd-HHmmss";
+ NSString *path = [directory stringByAppendingPathComponent:
+ [NSString stringWithFormat:@"VirtualMac-Diagnostics-%@.zip",
+ [formatter stringFromDate:NSDate.date]]];
+
+ [NSFileManager.defaultManager createFileAtPath:path contents:nil
+ attributes:nil];
+ NSFileHandle *archive = [NSFileHandle fileHandleForWritingAtPath:path];
+ if (!archive) {
+ if (error) *error = [NSError errorWithDomain:NSPOSIXErrorDomain
+ code:EIO userInfo:@{NSLocalizedDescriptionKey:
+ @"The diagnostics archive could not be opened."}];
+ return nil;
+ }
+ NSMutableArray *central = [NSMutableArray array];
+ __block uint64_t archiveLength = 0;
+ @try {
+ VZEnumerateDiagnosticEntries(^(NSString *entryName, NSData *contents) {
+ NSData *name = [entryName dataUsingEncoding:NSUTF8StringEncoding];
+ uint64_t resultingLength = archiveLength + 30 + name.length +
+ contents.length;
+ if (name.length > UINT16_MAX || contents.length > UINT32_MAX ||
+ resultingLength > UINT32_MAX || central.count >= UINT16_MAX)
+ return;
+ uint32_t offset = (uint32_t)archiveLength;
+ uint32_t crc = VZCRC32(contents);
+ NSMutableData *header = [NSMutableData data];
+ VZAppend32(header, 0x04034b50);
+ VZAppend16(header, 20); VZAppend16(header, 0);
+ VZAppend16(header, 0); VZAppend16(header, 0);
+ VZAppend16(header, 0); VZAppend32(header, crc);
+ VZAppend32(header, (uint32_t)contents.length);
+ VZAppend32(header, (uint32_t)contents.length);
+ VZAppend16(header, (uint16_t)name.length); VZAppend16(header, 0);
+ [archive writeData:header];
+ [archive writeData:name];
+ [archive writeData:contents];
+ archiveLength = resultingLength;
+ [central addObject:@{ @"name": name, @"size": @(contents.length),
+ @"crc": @(crc), @"offset": @(offset) }];
+ });
+ } @catch (NSException *exception) {
+ [archive closeFile];
+ [NSFileManager.defaultManager removeItemAtPath:path error:nil];
+ if (error) *error = [NSError errorWithDomain:NSCocoaErrorDomain
+ code:NSFileWriteUnknownError userInfo:@{NSLocalizedDescriptionKey:
+ exception.reason ?: @"The diagnostics archive could not be written."}];
+ return nil;
+ }
+ uint32_t centralOffset = (uint32_t)archiveLength;
+ NSMutableData *centralData = [NSMutableData data];
+ for (NSDictionary *entry in central) {
+ NSData *name = entry[@"name"];
+ VZAppend32(centralData, 0x02014b50);
+ VZAppend16(centralData, 20); VZAppend16(centralData, 20);
+ VZAppend16(centralData, 0); VZAppend16(centralData, 0);
+ VZAppend16(centralData, 0); VZAppend16(centralData, 0);
+ VZAppend32(centralData, [entry[@"crc"] unsignedIntValue]);
+ VZAppend32(centralData, [entry[@"size"] unsignedIntValue]);
+ VZAppend32(centralData, [entry[@"size"] unsignedIntValue]);
+ VZAppend16(centralData, (uint16_t)name.length);
+ VZAppend16(centralData, 0); VZAppend16(centralData, 0);
+ VZAppend16(centralData, 0); VZAppend16(centralData, 0);
+ VZAppend32(centralData, 0);
+ VZAppend32(centralData, [entry[@"offset"] unsignedIntValue]);
+ [centralData appendData:name];
+ }
+ uint32_t centralSize = (uint32_t)centralData.length;
+ VZAppend32(centralData, 0x06054b50);
+ VZAppend16(centralData, 0); VZAppend16(centralData, 0);
+ VZAppend16(centralData, (uint16_t)central.count);
+ VZAppend16(centralData, (uint16_t)central.count);
+ VZAppend32(centralData, centralSize); VZAppend32(centralData, centralOffset);
+ VZAppend16(centralData, 0);
+ [archive writeData:centralData];
+ [archive synchronizeFile];
+ [archive closeFile];
+ chmod(path.fileSystemRepresentation, 0644);
+ if (geteuid() == 0) {
+ struct passwd *mobile = getpwnam("mobile");
+ if (mobile) {
+ chown(directory.fileSystemRepresentation,
+ mobile->pw_uid, mobile->pw_gid);
+ chown(path.fileSystemRepresentation,
+ mobile->pw_uid, mobile->pw_gid);
+ }
+ }
+ return [NSURL fileURLWithPath:path];
+}
diff --git a/VirtualMac/vz/host/VZFailureDetailsViewController.h b/VirtualMac/vz/host/VZFailureDetailsViewController.h
new file mode 100644
index 0000000..c3e8593
--- /dev/null
+++ b/VirtualMac/vz/host/VZFailureDetailsViewController.h
@@ -0,0 +1,9 @@
+#import <UIKit/UIKit.h>
+
+NS_ASSUME_NONNULL_BEGIN
+
+@interface VZFailureDetailsViewController : UIViewController
+- (instancetype)initWithTitle:(NSString *)title details:(NSString *)details;
+@end
+
+NS_ASSUME_NONNULL_END
diff --git a/VirtualMac/vz/host/VZFailureDetailsViewController.m b/VirtualMac/vz/host/VZFailureDetailsViewController.m
new file mode 100644
index 0000000..eef7c85
--- /dev/null
+++ b/VirtualMac/vz/host/VZFailureDetailsViewController.m
@@ -0,0 +1,136 @@
+#import "VZFailureDetailsViewController.h"
+#import "VZDiagnostics.h"
+#import "VZLocalization.h"
+#import "VZSupport.h"
+
+@interface VZFailureDetailsViewController ()
+@property(nonatomic, copy) NSString *details;
+@end
+
+@implementation VZFailureDetailsViewController
+
+- (instancetype)initWithTitle:(NSString *)title details:(NSString *)details
+{
+ if ((self = [super init])) {
+ self.title = title;
+ self.details = details;
+ }
+ return self;
+}
+
+- (UIButton *)actionButtonWithTitle:(NSString *)title action:(SEL)action
+{
+ UIButton *button = [UIButton buttonWithType:UIButtonTypeSystem];
+ button.titleLabel.font = [UIFont preferredFontForTextStyle:
+ UIFontTextStyleHeadline];
+ button.backgroundColor = UIColor.secondarySystemBackgroundColor;
+ button.layer.cornerRadius = 10.0;
+ button.layer.cornerCurve = kCACornerCurveContinuous;
+ [button setTitle:title forState:UIControlStateNormal];
+ [button addTarget:self action:action
+ forControlEvents:UIControlEventTouchUpInside];
+ return button;
+}
+
+- (void)viewDidLoad
+{
+ [super viewDidLoad];
+ self.view.backgroundColor = UIColor.systemBackgroundColor;
+ self.navigationItem.rightBarButtonItem = [[[UIBarButtonItem alloc]
+ initWithBarButtonSystemItem:UIBarButtonSystemItemDone target:self
+ action:@selector(done:)] autorelease];
+
+ UITextView *detailsView = [[[UITextView alloc] init] autorelease];
+ detailsView.translatesAutoresizingMaskIntoConstraints = NO;
+ detailsView.editable = NO;
+ detailsView.selectable = YES;
+ detailsView.alwaysBounceVertical = YES;
+ detailsView.backgroundColor = UIColor.secondarySystemBackgroundColor;
+ detailsView.font = [UIFont monospacedSystemFontOfSize:11.0
+ weight:UIFontWeightRegular];
+ detailsView.text = self.details;
+ detailsView.layer.cornerRadius = 12.0;
+ detailsView.layer.cornerCurve = kCACornerCurveContinuous;
+ detailsView.textContainerInset = UIEdgeInsetsMake(14, 14, 14, 14);
+ [self.view addSubview:detailsView];
+
+ UIButton *export = [self actionButtonWithTitle:VZL(@"Export Diagnostics")
+ action:@selector(exportDiagnostics:)];
+ UIButton *help = [self actionButtonWithTitle:VZL(@"Get Help")
+ action:@selector(getHelp:)];
+ UIButton *report = [self actionButtonWithTitle:VZL(@"Report Issue")
+ action:@selector(reportIssue:)];
+ UIStackView *actions = [[[UIStackView alloc]
+ initWithArrangedSubviews:@[export, help, report]] autorelease];
+ actions.translatesAutoresizingMaskIntoConstraints = NO;
+ actions.axis = UILayoutConstraintAxisVertical;
+ actions.alignment = UIStackViewAlignmentFill;
+ actions.distribution = UIStackViewDistributionFillEqually;
+ actions.spacing = 10.0;
+ [self.view addSubview:actions];
+
+ UILayoutGuide *guide = self.view.safeAreaLayoutGuide;
+ [NSLayoutConstraint activateConstraints:@[
+ [detailsView.leadingAnchor constraintEqualToAnchor:guide.leadingAnchor
+ constant:20.0],
+ [detailsView.trailingAnchor constraintEqualToAnchor:guide.trailingAnchor
+ constant:-20.0],
+ [detailsView.topAnchor constraintEqualToAnchor:guide.topAnchor
+ constant:16.0],
+ [detailsView.bottomAnchor constraintEqualToAnchor:actions.topAnchor
+ constant:-16.0],
+ [actions.leadingAnchor constraintEqualToAnchor:detailsView.leadingAnchor],
+ [actions.trailingAnchor constraintEqualToAnchor:detailsView.trailingAnchor],
+ [actions.bottomAnchor constraintEqualToAnchor:guide.bottomAnchor
+ constant:-20.0],
+ [actions.heightAnchor constraintEqualToConstant:158.0],
+ ]];
+ self.preferredContentSize = CGSizeMake(640, 620);
+}
+
+- (void)done:(id)sender
+{
+ (void)sender;
+ [self dismissViewControllerAnimated:YES completion:nil];
+}
+
+- (void)exportDiagnostics:(id)sender
+{
+ (void)sender;
+ NSError *error = nil;
+ NSURL *archive = VZCreateDiagnosticsArchive(&error);
+ if (!archive) {
+ UIAlertController *alert = [UIAlertController
+ alertControllerWithTitle:VZL(@"Couldn’t Export Diagnostics")
+ message:error.localizedDescription
+ preferredStyle:UIAlertControllerStyleAlert];
+ [alert addAction:[UIAlertAction actionWithTitle:VZL(@"OK")
+ style:UIAlertActionStyleDefault handler:nil]];
+ [self presentViewController:alert animated:YES completion:nil];
+ return;
+ }
+ UIDocumentPickerViewController *picker =
+ [[[UIDocumentPickerViewController alloc]
+ initForExportingURLs:@[archive] asCopy:YES] autorelease];
+ [self presentViewController:picker animated:YES completion:nil];
+}
+
+- (void)getHelp:(id)sender
+{
+ (void)sender;
+ VZOpenSupportURL(VZGetHelpURLString);
+}
+
+- (void)reportIssue:(id)sender
+{
+ (void)sender;
+ VZOpenSupportURL(VZReportIssueURLString);
+}
+
+- (void)dealloc
+{
+ [_details release];
+ [super dealloc];
+}
+
+@end
diff --git a/VirtualMac/vz/host/VZLocalization.h b/VirtualMac/vz/host/VZLocalization.h
new file mode 100644
index 0000000..2c57a36
--- /dev/null
+++ b/VirtualMac/vz/host/VZLocalization.h
@@ -0,0 +1,5 @@
+#import <Foundation/Foundation.h>
+
+// Keep localization at the thin UIKit layer. Framework and compatibility
+// code must never depend on the user's language or mutate host behavior.
+#define VZL(key) NSLocalizedString((key), nil)
diff --git a/VirtualMac/vz/host/VZNewVMViewController.m b/VirtualMac/vz/host/VZNewVMViewController.m
index 1e8d095..c370af9 100644
--- a/VirtualMac/vz/host/VZNewVMViewController.m
+++ b/VirtualMac/vz/host/VZNewVMViewController.m
@@ -1,170 +1,395 @@
#import "VZNewVMViewController.h"
+#import "VZLocalization.h"
#import "VZRestoreCatalog.h"
-@interface VZRestoreCatalogViewController : UITableViewController
-@property(nonatomic, retain) NSArray<NSDictionary *> *images;
-@property(nonatomic, retain) NSArray<NSString *> *groups;
-@property(nonatomic, copy) void (^selection)(NSDictionary *image);
+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];
+ static NSMutableDictionary *cache;
+ static dispatch_once_t once;
+ dispatch_once(&once, ^{ cache = [[NSMutableDictionary alloc] init]; });
+ UIImage *cached = cache[name];
+ if (cached)
+ return cached;
+ NSString *path = [NSBundle.mainBundle pathForResource:name ofType:@"png"
+ inDirectory:@"Installers"];
+ UIImage *source = [UIImage imageWithContentsOfFile:path];
+ if (!source)
+ return nil;
+ CGSize size = CGSizeMake(48, 48);
+ UIGraphicsBeginImageContextWithOptions(size, NO, UIScreen.mainScreen.scale);
+ [source drawInRect:(CGRect){CGPointZero, size}];
+ UIImage *scaled = UIGraphicsGetImageFromCurrentImageContext();
+ UIGraphicsEndImageContext();
+ if (scaled)
+ cache[name] = scaled;
+ return scaled;
+}
+
+@interface VZNewVMViewController ()
+@property(nonatomic, retain) NSArray<NSDictionary *> *catalog;
+@property(nonatomic, retain) UIActivityIndicatorView *activity;
@property(nonatomic, assign) BOOL showMinorReleases;
@property(nonatomic, assign) BOOL showDeveloperBetas;
+@property(nonatomic, assign) BOOL showVersionDetails;
+@property(nonatomic, assign) BOOL versionDetailsBeforeDeveloperBetas;
@end
-@implementation VZRestoreCatalogViewController
-- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView { (void)tableView; return self.groups.count; }
-- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
- (void)tableView; NSString *group = self.groups[section];
- return [[self imagesForGroup:group] count];
-}
-- (void)viewDidLoad {
+@implementation VZNewVMViewController
+
+- (instancetype)init { return [super initWithStyle:UITableViewStyleInsetGrouped]; }
+
+- (void)viewDidLoad
+{
[super viewDidLoad];
+ self.title = VZL(@"New Virtual Mac");
+ self.tableView.rowHeight = 54.0;
+ self.tableView.estimatedRowHeight = 54.0;
+ self.tableView.contentInset = UIEdgeInsetsMake(0, 0, 24, 0);
+ self.tableView.verticalScrollIndicatorInsets = UIEdgeInsetsMake(0, 0, 24, 0);
+ self.navigationItem.leftBarButtonItem = [[[UIBarButtonItem alloc]
+ initWithBarButtonSystemItem:UIBarButtonSystemItemCancel target:self
+ action:@selector(cancel:)] autorelease];
+ self.activity = [[[UIActivityIndicatorView alloc]
+ initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleMedium]
+ autorelease];
+ [self.activity startAnimating];
self.navigationItem.rightBarButtonItem = [[[UIBarButtonItem alloc]
- initWithImage:[UIImage systemImageNamed:@"ellipsis.circle"]
- menu:[self filterMenu]] autorelease];
+ initWithCustomView:self.activity] autorelease];
+ [VZRestoreCatalog loadWithCompletion:^(NSArray<NSDictionary *> *images,
+ NSError *error) {
+ self.catalog = images;
+ [self.activity stopAnimating];
+ self.navigationItem.rightBarButtonItem = [[[UIBarButtonItem alloc]
+ initWithImage:[UIImage systemImageNamed:@"ellipsis.circle"]
+ menu:[self filterMenu]] autorelease];
+ [self.tableView reloadData];
+ if (error)
+ NSLog(@"Virtual Mac restore catalog fallback failed: %@", error);
+ }];
+}
+
+- (void)cancel:(id)sender
+{
+ (void)sender;
+ [self dismissViewControllerAnimated:YES completion:nil];
}
-- (UIMenu *)filterMenu {
- UIAction *minor = [UIAction actionWithTitle:@"Show Minor Releases"
+
+- (UIMenu *)filterMenu
+{
+ UIAction *minor = [UIAction actionWithTitle:VZL(@"Show Minor Releases")
image:nil identifier:nil handler:^(__kindof UIAction *action) {
- (void)action; self.showMinorReleases = !self.showMinorReleases;
+ (void)action;
+ self.showMinorReleases = !self.showMinorReleases;
self.navigationItem.rightBarButtonItem.menu = [self filterMenu];
[self.tableView reloadData];
}];
- minor.state = self.showMinorReleases ? UIMenuElementStateOn : UIMenuElementStateOff;
- UIAction *betas = [UIAction actionWithTitle:@"Show Developer Betas"
+ minor.state = self.showMinorReleases ? UIMenuElementStateOn
+ : UIMenuElementStateOff;
+ UIAction *betas = [UIAction actionWithTitle:VZL(@"Show Developer Betas")
image:nil identifier:nil handler:^(__kindof UIAction *action) {
- (void)action; self.showDeveloperBetas = !self.showDeveloperBetas;
+ (void)action;
+ if (!self.showDeveloperBetas) {
+ self.versionDetailsBeforeDeveloperBetas = self.showVersionDetails;
+ self.showDeveloperBetas = YES;
+ self.showVersionDetails = YES;
+ } else {
+ self.showDeveloperBetas = NO;
+ self.showVersionDetails = self.versionDetailsBeforeDeveloperBetas;
+ }
self.navigationItem.rightBarButtonItem.menu = [self filterMenu];
[self.tableView reloadData];
}];
- betas.state = self.showDeveloperBetas ? UIMenuElementStateOn : UIMenuElementStateOff;
- return [UIMenu menuWithTitle:@"Available Restore Images"
- children:@[minor, betas]];
-}
-- (NSArray *)imagesForGroup:(NSString *)group {
- if ([group isEqualToString:@"recommended"]) {
- NSDictionary *recommended = [VZRestoreCatalog
- recommendedImageFromImages:self.images];
- return recommended ? @[recommended] : @[];
+ betas.state = self.showDeveloperBetas ? UIMenuElementStateOn
+ : UIMenuElementStateOff;
+ UIAction *details = [UIAction actionWithTitle:VZL(@"Show Version Details")
+ image:nil identifier:nil handler:^(__kindof UIAction *action) {
+ (void)action;
+ self.showVersionDetails = !self.showVersionDetails;
+ self.navigationItem.rightBarButtonItem.menu = [self filterMenu];
+ [self.tableView reloadData];
+ }];
+ details.state = self.showVersionDetails ? UIMenuElementStateOn
+ : UIMenuElementStateOff;
+ details.attributes = self.showDeveloperBetas
+ ? UIMenuElementAttributesDisabled : 0;
+ return [UIMenu menuWithTitle:VZL(@"Available macOS Versions")
+ children:@[minor, betas, details]];
+}
+
+- (NSArray<NSDictionary *> *)versionImages
+{
+ NSMutableArray *result = [NSMutableArray array];
+ BOOL showsAdvancedVersions = self.showMinorReleases ||
+ self.showDeveloperBetas || self.showVersionDetails;
+ for (NSString *group in [VZRestoreCatalog orderedGroupsForImages:self.catalog]) {
+ NSArray *matches = [self.catalog filteredArrayUsingPredicate:
+ [NSPredicate predicateWithBlock:^BOOL(NSDictionary *image,
+ NSDictionary *bindings) {
+ (void)bindings;
+ return [VZCatalogString(image[@"group"]) isEqualToString:group];
+ }]];
+ NSArray *sorted = [matches sortedArrayUsingComparator:
+ ^NSComparisonResult(NSDictionary *left, NSDictionary *right) {
+ return [VZCatalogString(right[@"version"])
+ compare:VZCatalogString(left[@"version"])
+ options:NSNumericSearch];
+ }];
+ NSMutableArray *releases = [NSMutableArray array];
+ NSMutableArray *betas = [NSMutableArray array];
+ for (NSDictionary *image in sorted) {
+ if (!showsAdvancedVersions &&
+ [VZRestoreCatalog isUnsupportedImage:image])
+ continue;
+ if ([VZCatalogString(image[@"channel"]) isEqualToString:@"devbeta"])
+ [betas addObject:image];
+ else
+ [releases addObject:image];
+ }
+ if (self.showMinorReleases)
+ [result addObjectsFromArray:releases];
+ else if (releases.count)
+ [result addObject:releases.firstObject];
+ if (self.showDeveloperBetas)
+ [result addObjectsFromArray:betas];
+ else if (!releases.count && betas.count)
+ [result addObject:betas.firstObject];
}
- NSArray *matches = [self.images filteredArrayUsingPredicate:[NSPredicate predicateWithBlock:
- ^BOOL(NSDictionary *image, NSDictionary *bindings) {
+ return result;
+}
+
+- (NSDictionary *)recommendedImage
+{
+ BOOL showsAdvancedVersions = self.showMinorReleases ||
+ self.showDeveloperBetas || self.showVersionDetails;
+ NSArray *eligible = self.catalog;
+ if (!showsAdvancedVersions) {
+ eligible = [self.catalog filteredArrayUsingPredicate:
+ [NSPredicate predicateWithBlock:^BOOL(NSDictionary *image,
+ NSDictionary *bindings) {
(void)bindings;
- NSDictionary *recommended = [VZRestoreCatalog
- recommendedImageFromImages:self.images];
- return [image[@"group"] isEqualToString:group] &&
- ![image[@"url"] isEqualToString:recommended[@"url"]];
+ return ![VZRestoreCatalog isUnsupportedImage:image];
}]];
- NSArray *sorted = [matches sortedArrayUsingComparator:^NSComparisonResult(NSDictionary *left, NSDictionary *right) {
- BOOL leftRelease = [left[@"channel"] isEqualToString:@"regular"];
- BOOL rightRelease = [right[@"channel"] isEqualToString:@"regular"];
- if (leftRelease != rightRelease) return leftRelease ? NSOrderedAscending : NSOrderedDescending;
- return [right[@"version"] compare:left[@"version"] options:NSNumericSearch];
- }];
- NSMutableArray *releases = [NSMutableArray array];
- NSMutableArray *betas = [NSMutableArray array];
- for (NSDictionary *image in sorted) {
- NSMutableArray *bucket = [image[@"channel"] isEqualToString:@"regular"] ? releases : betas;
- [bucket addObject:image];
}
- NSMutableArray *visible = [NSMutableArray array];
- if (self.showMinorReleases)
- [visible addObjectsFromArray:releases];
- else if (releases.count)
- [visible addObject:releases.firstObject];
- if (self.showDeveloperBetas)
- [visible addObjectsFromArray:betas];
- else if (!releases.count && betas.count)
- [visible addObject:betas.firstObject];
- return visible;
-}
-- (NSString *)tableView:(UITableView *)tableView titleForHeaderInSection:(NSInteger)section {
- (void)tableView; NSString *group = self.groups[section];
- if ([group isEqualToString:@"recommended"])
- return @"Recommended";
- NSDictionary *names = @{@"sequoia":@"macOS Sequoia", @"sonoma":@"macOS Sonoma",
- @"ventura":@"macOS Ventura", @"monterey":@"macOS Monterey",
- @"tahoe":@"macOS Tahoe — Experimental", @"goldengate":@"macOS Golden Gate — Experimental"};
- return names[group] ?: group.capitalizedString;
-}
-- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
- UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"image"];
- if (!cell) cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleSubtitle reuseIdentifier:@"image"] autorelease];
- NSDictionary *image = [self imagesForGroup:self.groups[indexPath.section]][indexPath.row];
- cell.imageView.image = nil;
- cell.textLabel.text = image[@"name"];
- NSByteCountFormatter *formatter = [[[NSByteCountFormatter alloc] init] autorelease];
- formatter.countStyle = NSByteCountFormatterCountStyleFile;
- NSString *channel = [image[@"channel"] isEqualToString:@"regular"] ? @"Release" : @"Developer Beta";
- cell.detailTextLabel.text = [NSString stringWithFormat:@"Build %@ · %@ · %@", image[@"build"], channel,
- [formatter stringFromByteCount:[image[@"downloadSize"] longLongValue]]];
- cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator;
- return cell;
+ return [VZRestoreCatalog recommendedImageFromImages:eligible];
}
-- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
- [tableView deselectRowAtIndexPath:indexPath animated:YES];
- NSDictionary *image = [self imagesForGroup:self.groups[indexPath.section]][indexPath.row];
- if (self.selection) self.selection(image);
+
+- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView
+{
+ (void)tableView;
+ return 3;
}
-- (void)dealloc { [_images release]; [_groups release]; [_selection release]; [super dealloc]; }
-@end
-@interface VZNewVMViewController ()
-@property(nonatomic, retain) NSArray<NSDictionary *> *catalog;
-@property(nonatomic, retain) UIActivityIndicatorView *activity;
-@end
+- (NSInteger)tableView:(UITableView *)tableView
+ numberOfRowsInSection:(NSInteger)section
+{
+ (void)tableView;
+ if (section == 0)
+ return self.recommendedImage ? 1 : 0;
+ if (section == 1)
+ return self.versionImages.count;
+ return 1;
+}
-@implementation VZNewVMViewController
-- (instancetype)init { return [super initWithStyle:UITableViewStyleInsetGrouped]; }
-- (void)viewDidLoad {
- [super viewDidLoad];
- self.title = @"New Virtual Mac";
- self.navigationItem.leftBarButtonItem = [[[UIBarButtonItem alloc] initWithBarButtonSystemItem:
- UIBarButtonSystemItemCancel target:self action:@selector(cancel:)] autorelease];
- self.activity = [[[UIActivityIndicatorView alloc] initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleMedium] autorelease];
- [self.activity startAnimating];
- self.navigationItem.rightBarButtonItem = [[[UIBarButtonItem alloc] initWithCustomView:self.activity] autorelease];
- [VZRestoreCatalog loadWithCompletion:^(NSArray<NSDictionary *> *images, NSError *error) {
- self.catalog = images;
- [self.activity stopAnimating];
- self.navigationItem.rightBarButtonItem = nil;
- [self.tableView reloadData];
- if (error) NSLog(@"Virtual Mac restore catalog fallback failed: %@", error);
- }];
+- (NSString *)tableView:(UITableView *)tableView
+ titleForHeaderInSection:(NSInteger)section
+{
+ (void)tableView;
+ if (section == 0)
+ return VZL(@"Recommended macOS Release");
+ if (section == 1)
+ return VZL(@"Available macOS Releases");
+ return VZL(@"Advanced");
+}
+
+- (NSString *)tableView:(UITableView *)tableView
+ titleForFooterInSection:(NSInteger)section
+{
+ (void)tableView;
+ return section == 2
+ ? VZL(@"You can also copy an existing Virtual Mac bundle to /var/mobile/Media/VirtualMac using an app such as iMazing or Filza.")
+ : nil;
+}
+
+- (CGFloat)tableView:(UITableView *)tableView
+ heightForRowAtIndexPath:(NSIndexPath *)indexPath
+{
+ (void)tableView;
+ if (indexPath.section == 2)
+ return self.showVersionDetails ? 68.0 : 54.0;
+ return self.showVersionDetails ? 68.0 : 54.0;
}
-- (void)cancel:(id)sender { (void)sender; [self dismissViewControllerAnimated:YES completion:nil]; }
-- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView { (void)tableView; return 1; }
-- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section { (void)tableView;(void)section; return 3; }
-- (NSString *)tableView:(UITableView *)tableView titleForFooterInSection:(NSInteger)section {
- (void)tableView; (void)section;
- return @"You can also copy an existing Virtual Mac bundle to /var/mobile/Media/VirtualMac using an app such as iMazing or Filza.";
-}
-- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
- UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"choice"];
- if (!cell) cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleSubtitle reuseIdentifier:@"choice"] autorelease];
- NSArray *titles = @[@"Install Recommended macOS", @"Install macOS", @"Choose an IPSW"];
- NSArray *details = @[@"Download and install the latest macOS Sequoia release",
- @"Choose a macOS release or developer beta", @"Use an IPSW on this iPad"];
- NSArray *icons = @[@"checkmark.seal.fill", @"arrow.down.circle", @"doc.badge.plus"];
- cell.textLabel.text = titles[indexPath.row]; cell.detailTextLabel.text = details[indexPath.row];
- cell.imageView.image = [UIImage systemImageNamed:icons[indexPath.row]];
+
+- (void)setAccessoryForImage:(NSDictionary *)image
+ cell:(UITableViewCell *)cell
+{
+ cell.accessoryView = nil;
+ if (![VZRestoreCatalog isExperimentalImage:image]) {
+ cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator;
+ return;
+ }
+ cell.accessoryType = UITableViewCellAccessoryNone;
+ UIView *accessory = [[[UIView alloc] initWithFrame:CGRectMake(0, 0, 44, 24)]
+ autorelease];
+ UIImageView *warning = [[[UIImageView alloc] initWithFrame:
+ CGRectMake(0, 2, 20, 20)] autorelease];
+ warning.image = [UIImage systemImageNamed:@"exclamationmark.triangle.fill"];
+ warning.contentMode = UIViewContentModeScaleAspectFit;
+ warning.tintColor = UIColor.quaternaryLabelColor;
+ warning.isAccessibilityElement = YES;
+ warning.accessibilityLabel = VZL(@"Experimental");
+ UIImageView *chevron = [[[UIImageView alloc] initWithFrame:
+ CGRectMake(32, 5, 8, 14)] autorelease];
+ chevron.image = [UIImage systemImageNamed:@"chevron.right"];
+ chevron.tintColor = UIColor.tertiaryLabelColor;
+ [accessory addSubview:warning];
+ [accessory addSubview:chevron];
+ cell.accessoryView = accessory;
+}
+
+- (UITableViewCell *)tableView:(UITableView *)tableView
+ cellForRowAtIndexPath:(NSIndexPath *)indexPath
+{
+ UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"image"];
+ if (!cell)
+ cell = [[[UITableViewCell alloc]
+ initWithStyle:UITableViewCellStyleSubtitle reuseIdentifier:@"image"]
+ autorelease];
+ cell.accessoryView = nil;
cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator;
- cell.selectionStyle = (indexPath.row < 2 && !self.catalog.count) ? UITableViewCellSelectionStyleNone : UITableViewCellSelectionStyleDefault;
- cell.textLabel.enabled = cell.selectionStyle != UITableViewCellSelectionStyleNone;
+ cell.imageView.layer.cornerRadius = 9.0;
+ cell.imageView.layer.cornerCurve = kCACornerCurveContinuous;
+ cell.imageView.layer.masksToBounds = YES;
+ cell.imageView.contentMode = UIViewContentModeScaleAspectFill;
+ if (indexPath.section == 2) {
+ cell.textLabel.text = VZL(@"Choose Custom IPSW");
+ cell.detailTextLabel.text = self.showVersionDetails
+ ? VZL(@"Use an IPSW on your iPad") : nil;
+ cell.imageView.layer.cornerRadius = 9.0;
+ cell.imageView.contentMode = UIViewContentModeScaleAspectFill;
+ cell.imageView.tintColor = nil;
+ cell.imageView.image = VZCatalogIcon(@{});
+ return cell;
+ }
+ NSDictionary *image = indexPath.section == 0
+ ? self.recommendedImage
+ : self.versionImages[indexPath.row];
+ BOOL compactName = !self.showMinorReleases &&
+ !self.showDeveloperBetas && !self.showVersionDetails;
+ NSString *displayName = VZCatalogDisplayName(image, compactName);
+ cell.textLabel.text = compactName
+ ? [NSString stringWithFormat:VZL(@"Install %@"), displayName]
+ : displayName;
+ cell.imageView.image = VZCatalogIcon(image);
+ NSMutableArray *details = [NSMutableArray array];
+ if (self.showVersionDetails) {
+ NSString *build = VZCatalogString(image[@"build"]);
+ if (build.length)
+ [details addObject:[NSString stringWithFormat:VZL(@"Build %@"), build]];
+ NSString *channel = VZCatalogString(image[@"channel"]);
+ if ([channel isEqualToString:@"devbeta"])
+ [details addObject:VZL(@"Developer Beta")];
+ else if ([channel isEqualToString:@"regular"])
+ [details addObject:VZL(@"Release")];
+ long long size = [image[@"downloadSize"] longLongValue];
+ if (size > 0) {
+ NSByteCountFormatter *formatter = [[[NSByteCountFormatter alloc]
+ init] autorelease];
+ formatter.countStyle = NSByteCountFormatterCountStyleFile;
+ [details addObject:[formatter stringFromByteCount:size]];
+ }
+ }
+ cell.detailTextLabel.text = self.showVersionDetails
+ ? [details componentsJoinedByString:@" · "] : nil;
+ [self setAccessoryForImage:image cell:cell];
return cell;
}
-- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
+
+- (void)tableView:(UITableView *)tableView
+ didSelectRowAtIndexPath:(NSIndexPath *)indexPath
+{
[tableView deselectRowAtIndexPath:indexPath animated:YES];
- if (indexPath.row == 0) {
- NSDictionary *recommended = [VZRestoreCatalog recommendedImageFromImages:self.catalog];
- if (recommended) [self.delegate newVMController:self downloadRestoreImage:recommended];
- } else if (indexPath.row == 1 && self.catalog.count) {
- VZRestoreCatalogViewController *catalog = [[[VZRestoreCatalogViewController alloc] initWithStyle:UITableViewStyleInsetGrouped] autorelease];
- catalog.title = @"Install macOS"; catalog.images = self.catalog;
- NSMutableArray *groups = [NSMutableArray arrayWithObject:@"recommended"];
- [groups addObjectsFromArray:[VZRestoreCatalog orderedGroupsForImages:self.catalog]];
- catalog.groups = groups;
- catalog.selection = ^(NSDictionary *image) { [self.delegate newVMController:self downloadRestoreImage:image]; };
- [self.navigationController pushViewController:catalog animated:YES];
- } else if (indexPath.row == 2) [self.delegate newVMControllerChooseLocalRestoreImage:self];
-}
-- (void)dealloc { [_catalog release]; [_activity release]; [super dealloc]; }
+ if (indexPath.section == 2) {
+ [self.delegate newVMControllerChooseLocalRestoreImage:self];
+ return;
+ }
+ NSDictionary *image = indexPath.section == 0
+ ? self.recommendedImage
+ : self.versionImages[indexPath.row];
+ if (image)
+ [self.delegate newVMController:self downloadRestoreImage:image];
+}
+
+- (void)dealloc
+{
+ [_catalog release];
+ [_activity release];
+ [super dealloc];
+}
+
@end
diff --git a/VirtualMac/vz/host/VZProgressViewController.h b/VirtualMac/vz/host/VZProgressViewController.h
index a60a6f3..d104751 100644
--- a/VirtualMac/vz/host/VZProgressViewController.h
+++ b/VirtualMac/vz/host/VZProgressViewController.h
@@ -10,6 +10,9 @@ NS_ASSUME_NONNULL_BEGIN
@property(nonatomic, assign) float progress;
@property(nonatomic, assign, getter=isIndeterminate) BOOL indeterminate;
@property(nonatomic, assign) BOOL consoleHidden;
+@property(nonatomic, retain, nullable) UIImage *heroImage;
+@property(nonatomic, copy, nullable) NSString *heroTitleText;
+@property(nonatomic, copy, nullable) NSString *tipText;
- (instancetype)initWithTitle:(NSString *)title;
@end
diff --git a/VirtualMac/vz/host/VZProgressViewController.m b/VirtualMac/vz/host/VZProgressViewController.m
index 6392d56..7a21e3c 100644
--- a/VirtualMac/vz/host/VZProgressViewController.m
+++ b/VirtualMac/vz/host/VZProgressViewController.m
@@ -1,4 +1,5 @@
#import "VZProgressViewController.h"
+#import "VZLocalization.h"
@interface VZProgressViewController ()
@property(nonatomic, retain) UILabel *statusLabel;
@@ -6,6 +7,10 @@
@property(nonatomic, retain) UIProgressView *progressView;
@property(nonatomic, retain) UIActivityIndicatorView *activity;
@property(nonatomic, retain) UITextView *consoleView;
+@property(nonatomic, retain) UIImageView *heroImageView;
+@property(nonatomic, retain) UILabel *heroTitleLabel;
+@property(nonatomic, retain) UIView *tipContainer;
+@property(nonatomic, retain) UILabel *tipLabel;
@end
@implementation VZProgressViewController
@@ -14,7 +19,7 @@
{
if ((self = [super init])) {
self.title = title;
- _statusText = [@"Preparing…" copy];
+ _statusText = [VZL(@"Preparing…") copy];
_indeterminate = YES;
}
return self;
@@ -29,11 +34,17 @@
action:@selector(cancel:)] autorelease];
self.statusLabel = [[[UILabel alloc] init] autorelease];
- self.statusLabel.font = [UIFont preferredFontForTextStyle:UIFontTextStyleHeadline];
+ UIFont *headlineFont = [UIFont preferredFontForTextStyle:
+ UIFontTextStyleHeadline];
+ self.statusLabel.font = [UIFont monospacedDigitSystemFontOfSize:
+ headlineFont.pointSize weight:UIFontWeightSemibold];
self.statusLabel.numberOfLines = 0;
self.statusLabel.translatesAutoresizingMaskIntoConstraints = NO;
self.detailLabel = [[[UILabel alloc] init] autorelease];
- self.detailLabel.font = [UIFont preferredFontForTextStyle:UIFontTextStyleSubheadline];
+ UIFont *subheadlineFont = [UIFont preferredFontForTextStyle:
+ UIFontTextStyleSubheadline];
+ self.detailLabel.font = [UIFont monospacedDigitSystemFontOfSize:
+ subheadlineFont.pointSize weight:UIFontWeightRegular];
self.detailLabel.textColor = UIColor.secondaryLabelColor;
self.detailLabel.numberOfLines = 0;
self.detailLabel.translatesAutoresizingMaskIntoConstraints = NO;
@@ -53,28 +64,111 @@
self.consoleView.font = [UIFont monospacedSystemFontOfSize:10
weight:UIFontWeightRegular];
self.consoleView.layer.cornerRadius = 10;
+ self.consoleView.layer.cornerCurve = kCACornerCurveContinuous;
self.consoleView.textContainerInset = UIEdgeInsetsMake(10, 10, 10, 10);
+ self.heroImageView = [[[UIImageView alloc] initWithImage:self.heroImage]
+ autorelease];
+ self.heroImageView.translatesAutoresizingMaskIntoConstraints = NO;
+ self.heroImageView.contentMode = UIViewContentModeScaleAspectFit;
+ self.heroTitleLabel = [[[UILabel alloc] init] autorelease];
+ self.heroTitleLabel.translatesAutoresizingMaskIntoConstraints = NO;
+ UIFont *heroTitleFont = [UIFont preferredFontForTextStyle:
+ UIFontTextStyleTitle3];
+ self.heroTitleLabel.font = [UIFont systemFontOfSize:heroTitleFont.pointSize
+ weight:UIFontWeightSemibold];
+ self.heroTitleLabel.textAlignment = NSTextAlignmentCenter;
+ self.heroTitleLabel.numberOfLines = 2;
for (UIView *view in @[self.statusLabel, self.detailLabel, self.progressView,
self.activity, self.consoleView])
[self.view addSubview:view];
UILayoutGuide *guide = self.view.safeAreaLayoutGuide;
- [NSLayoutConstraint activateConstraints:@[
- [self.statusLabel.leadingAnchor constraintEqualToAnchor:guide.leadingAnchor constant:24],
- [self.statusLabel.trailingAnchor constraintEqualToAnchor:guide.trailingAnchor constant:-24],
- [self.statusLabel.topAnchor constraintEqualToAnchor:guide.topAnchor constant:24],
- [self.detailLabel.leadingAnchor constraintEqualToAnchor:self.statusLabel.leadingAnchor],
- [self.detailLabel.trailingAnchor constraintEqualToAnchor:self.statusLabel.trailingAnchor],
- [self.detailLabel.topAnchor constraintEqualToAnchor:self.statusLabel.bottomAnchor constant:8],
- [self.progressView.leadingAnchor constraintEqualToAnchor:self.statusLabel.leadingAnchor],
- [self.progressView.trailingAnchor constraintEqualToAnchor:self.statusLabel.trailingAnchor],
- [self.progressView.topAnchor constraintEqualToAnchor:self.detailLabel.bottomAnchor constant:18],
- [self.activity.centerXAnchor constraintEqualToAnchor:self.progressView.centerXAnchor],
- [self.activity.centerYAnchor constraintEqualToAnchor:self.progressView.centerYAnchor],
- [self.consoleView.leadingAnchor constraintEqualToAnchor:self.statusLabel.leadingAnchor],
- [self.consoleView.trailingAnchor constraintEqualToAnchor:self.statusLabel.trailingAnchor],
- [self.consoleView.topAnchor constraintEqualToAnchor:self.progressView.bottomAnchor constant:18],
- [self.consoleView.bottomAnchor constraintEqualToAnchor:guide.bottomAnchor constant:-20],
- ]];
+ if (self.heroImage) {
+ self.statusLabel.hidden = YES;
+ UIFont *detailFont = [UIFont preferredFontForTextStyle:
+ UIFontTextStyleSubheadline];
+ self.detailLabel.font = [UIFont monospacedDigitSystemFontOfSize:
+ detailFont.pointSize weight:UIFontWeightRegular];
+ UIView *artworkContainer = [[[UIView alloc] init] autorelease];
+ artworkContainer.translatesAutoresizingMaskIntoConstraints = NO;
+ [artworkContainer addSubview:self.heroImageView];
+ self.tipContainer = [[[UIView alloc] init] autorelease];
+ self.tipContainer.translatesAutoresizingMaskIntoConstraints = NO;
+ self.tipContainer.backgroundColor = UIColor.quaternarySystemFillColor;
+ self.tipContainer.layer.cornerRadius = 10.0;
+ self.tipContainer.layer.cornerCurve = kCACornerCurveContinuous;
+ self.tipLabel = [[[UILabel alloc] init] autorelease];
+ self.tipLabel.translatesAutoresizingMaskIntoConstraints = NO;
+ self.tipLabel.font = [UIFont preferredFontForTextStyle:
+ UIFontTextStyleFootnote];
+ self.tipLabel.textColor = UIColor.secondaryLabelColor;
+ self.tipLabel.textAlignment = NSTextAlignmentCenter;
+ self.tipLabel.numberOfLines = 0;
+ [self.tipContainer addSubview:self.tipLabel];
+ UIStackView *stack = [[[UIStackView alloc] initWithArrangedSubviews:
+ @[artworkContainer, self.heroTitleLabel, self.progressView,
+ self.detailLabel, self.tipContainer]] autorelease];
+ stack.translatesAutoresizingMaskIntoConstraints = NO;
+ stack.axis = UILayoutConstraintAxisVertical;
+ stack.alignment = UIStackViewAlignmentFill;
+ stack.spacing = 8.0;
+ [stack setCustomSpacing:14.0 afterView:artworkContainer];
+ [stack setCustomSpacing:18.0 afterView:self.heroTitleLabel];
+ [stack setCustomSpacing:16.0 afterView:self.progressView];
+ [stack setCustomSpacing:24.0 afterView:self.detailLabel];
+ [self.view addSubview:stack];
+ self.statusLabel.textAlignment = NSTextAlignmentCenter;
+ self.detailLabel.textAlignment = NSTextAlignmentCenter;
+ self.detailLabel.numberOfLines = 1;
+ self.detailLabel.adjustsFontSizeToFitWidth = YES;
+ self.detailLabel.minimumScaleFactor = 0.75;
+ NSLayoutConstraint *adaptiveWidth = [stack.widthAnchor
+ constraintEqualToAnchor:guide.widthAnchor constant:-48.0];
+ adaptiveWidth.priority = UILayoutPriorityDefaultHigh;
+ [NSLayoutConstraint activateConstraints:@[
+ [stack.centerXAnchor constraintEqualToAnchor:guide.centerXAnchor],
+ [stack.centerYAnchor constraintEqualToAnchor:guide.centerYAnchor constant:-8.0],
+ [stack.leadingAnchor constraintGreaterThanOrEqualToAnchor:guide.leadingAnchor constant:24.0],
+ [stack.trailingAnchor constraintLessThanOrEqualToAnchor:guide.trailingAnchor constant:-24.0],
+ [stack.topAnchor constraintGreaterThanOrEqualToAnchor:guide.topAnchor constant:16.0],
+ [stack.bottomAnchor constraintLessThanOrEqualToAnchor:guide.bottomAnchor constant:-20.0],
+ [stack.widthAnchor constraintLessThanOrEqualToConstant:420.0],
+ adaptiveWidth,
+ [artworkContainer.heightAnchor constraintEqualToConstant:220.0],
+ [self.heroImageView.centerXAnchor constraintEqualToAnchor:artworkContainer.centerXAnchor],
+ [self.heroImageView.centerYAnchor constraintEqualToAnchor:artworkContainer.centerYAnchor
+ constant:-30.0],
+ [self.heroImageView.widthAnchor constraintEqualToConstant:212.0],
+ [self.heroImageView.heightAnchor constraintEqualToConstant:212.0],
+ [self.tipLabel.leadingAnchor constraintEqualToAnchor:self.tipContainer.leadingAnchor
+ constant:14.0],
+ [self.tipLabel.trailingAnchor constraintEqualToAnchor:self.tipContainer.trailingAnchor
+ constant:-14.0],
+ [self.tipLabel.topAnchor constraintEqualToAnchor:self.tipContainer.topAnchor
+ constant:10.0],
+ [self.tipLabel.bottomAnchor constraintEqualToAnchor:self.tipContainer.bottomAnchor
+ constant:-10.0],
+ [self.activity.centerXAnchor constraintEqualToAnchor:self.progressView.centerXAnchor],
+ [self.activity.centerYAnchor constraintEqualToAnchor:self.progressView.centerYAnchor],
+ ]];
+ } else {
+ [NSLayoutConstraint activateConstraints:@[
+ [self.statusLabel.leadingAnchor constraintEqualToAnchor:guide.leadingAnchor constant:24],
+ [self.statusLabel.trailingAnchor constraintEqualToAnchor:guide.trailingAnchor constant:-24],
+ [self.statusLabel.topAnchor constraintEqualToAnchor:guide.topAnchor constant:24],
+ [self.detailLabel.leadingAnchor constraintEqualToAnchor:self.statusLabel.leadingAnchor],
+ [self.detailLabel.trailingAnchor constraintEqualToAnchor:self.statusLabel.trailingAnchor],
+ [self.detailLabel.topAnchor constraintEqualToAnchor:self.statusLabel.bottomAnchor constant:8],
+ [self.progressView.leadingAnchor constraintEqualToAnchor:self.statusLabel.leadingAnchor],
+ [self.progressView.trailingAnchor constraintEqualToAnchor:self.statusLabel.trailingAnchor],
+ [self.progressView.topAnchor constraintEqualToAnchor:self.detailLabel.bottomAnchor constant:18],
+ [self.activity.centerXAnchor constraintEqualToAnchor:self.progressView.centerXAnchor],
+ [self.activity.centerYAnchor constraintEqualToAnchor:self.progressView.centerYAnchor],
+ [self.consoleView.leadingAnchor constraintEqualToAnchor:self.statusLabel.leadingAnchor],
+ [self.consoleView.trailingAnchor constraintEqualToAnchor:self.statusLabel.trailingAnchor],
+ [self.consoleView.topAnchor constraintEqualToAnchor:self.progressView.bottomAnchor constant:18],
+ [self.consoleView.bottomAnchor constraintEqualToAnchor:guide.bottomAnchor constant:-20],
+ ]];
+ }
self.preferredContentSize = CGSizeMake(620, 560);
[self refresh];
}
@@ -89,9 +183,16 @@
{
if (!self.isViewLoaded) return;
self.statusLabel.text = self.statusText;
+ self.heroImageView.image = self.heroImage;
+ self.heroTitleLabel.text = self.heroTitleText;
+ self.tipLabel.text = self.tipText;
+ self.tipContainer.hidden = !self.tipText.length;
self.detailLabel.text = self.detailText;
self.detailLabel.hidden = !self.detailText.length;
- self.progressView.hidden = self.isIndeterminate;
+ // The artwork layout reserves the progress track and metrics row before
+ // the first response arrives, so presenting the sheet never recenters its
+ // content when a determinate download begins.
+ self.progressView.hidden = self.isIndeterminate && !self.heroImage;
self.activity.hidden = !self.isIndeterminate;
if (self.isIndeterminate) [self.activity startAnimating];
else [self.activity stopAnimating];
@@ -113,12 +214,18 @@
- (void)setProgress:(float)value { _progress = value; [self refresh]; }
- (void)setIndeterminate:(BOOL)value { _indeterminate = value; [self refresh]; }
- (void)setConsoleHidden:(BOOL)value { _consoleHidden = value; [self refresh]; }
+- (void)setHeroImage:(UIImage *)value { if (_heroImage != value) { [_heroImage release]; _heroImage = [value retain]; [self refresh]; } }
+- (void)setHeroTitleText:(NSString *)value { if (_heroTitleText != value) { [_heroTitleText release]; _heroTitleText = [value copy]; [self refresh]; } }
+- (void)setTipText:(NSString *)value { if (_tipText != value) { [_tipText release]; _tipText = [value copy]; [self refresh]; } }
- (void)dealloc
{
[_statusText release]; [_detailText release]; [_consoleText release];
[_cancellationHandler release]; [_statusLabel release]; [_detailLabel release];
[_progressView release]; [_activity release]; [_consoleView release];
+ [_heroImage release]; [_heroTitleText release]; [_tipText release];
+ [_heroImageView release]; [_heroTitleLabel release];
+ [_tipContainer release]; [_tipLabel release];
[super dealloc];
}
@end
diff --git a/VirtualMac/vz/host/VZRestoreCatalog.h b/VirtualMac/vz/host/VZRestoreCatalog.h
index 0ad766b..493ee5c 100644
--- a/VirtualMac/vz/host/VZRestoreCatalog.h
+++ b/VirtualMac/vz/host/VZRestoreCatalog.h
@@ -7,6 +7,10 @@ NS_ASSUME_NONNULL_BEGIN
NSError *_Nullable error))completion;
+ (nullable NSDictionary *)recommendedImageFromImages:(NSArray<NSDictionary *> *)images;
+ (NSArray<NSString *> *)orderedGroupsForImages:(NSArray<NSDictionary *> *)images;
++ (BOOL)isExperimentalImage:(NSDictionary *)image;
++ (BOOL)isUnsupportedImage:(NSDictionary *)image;
++ (NSString *)macOSNameForImage:(NSDictionary *)image;
++ (NSString *)artworkNameForImage:(NSDictionary *)image;
@end
NS_ASSUME_NONNULL_END
diff --git a/VirtualMac/vz/host/VZRestoreCatalog.m b/VirtualMac/vz/host/VZRestoreCatalog.m
index f589168..cbc75b5 100644
--- a/VirtualMac/vz/host/VZRestoreCatalog.m
+++ b/VirtualMac/vz/host/VZRestoreCatalog.m
@@ -3,14 +3,78 @@
static NSString * const VZCatalogURL =
@"https://api.virtualbuddy.app/v2/restore/mac?apiKey=15A25D48-4A34-4EE4-A293-C22B0DE1B54E";
+static NSString *VZRestoreString(id value)
+{
+ return [value isKindOfClass:NSString.class] ? value : @"";
+}
+
+static NSString *VZRestoreVersionFromName(NSString *name)
+{
+ 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] : @"";
+}
+
+static NSInteger VZRestoreMajorVersion(NSString *version)
+{
+ NSScanner *scanner = [NSScanner scannerWithString:version];
+ NSInteger major = 0;
+ return [scanner scanInteger:&major] ? major : 0;
+}
+
@implementation VZRestoreCatalog
+ (NSArray *)imagesFromData:(NSData *)data error:(NSError **)error
{
if (!data.length) return nil;
NSDictionary *root = [NSJSONSerialization JSONObjectWithData:data options:0 error:error];
- NSArray *images = [root isKindOfClass:NSDictionary.class] ? root[@"restoreImages"] : nil;
- return [images isKindOfClass:NSArray.class] ? images : nil;
+ NSArray *images = [root isKindOfClass:NSDictionary.class]
+ ? root[@"restoreImages"] : nil;
+ if (![images isKindOfClass:NSArray.class])
+ return nil;
+ NSMutableArray *normalized = [NSMutableArray array];
+ for (id candidate in images) {
+ if (![candidate isKindOfClass:NSDictionary.class])
+ continue;
+ NSMutableDictionary *image = [NSMutableDictionary
+ dictionaryWithDictionary:candidate];
+ NSString *urlString = VZRestoreString(image[@"url"]);
+ NSURL *url = [NSURL URLWithString:urlString];
+ if (!url.host.length ||
+ !([url.scheme.lowercaseString isEqualToString:@"https"] ||
+ [url.scheme.lowercaseString isEqualToString:@"http"]))
+ continue;
+ NSString *name = VZRestoreString(image[@"name"]);
+ NSString *version = VZRestoreString(image[@"version"]);
+ if (!version.length)
+ version = VZRestoreVersionFromName(name);
+ NSString *group = VZRestoreString(image[@"group"]).lowercaseString;
+ if (!group.length) {
+ NSInteger major = VZRestoreMajorVersion(version);
+ group = major > 0
+ ? [NSString stringWithFormat:@"macos-%ld", (long)major]
+ : @"unknown";
+ }
+ NSString *channel = VZRestoreString(image[@"channel"]).lowercaseString;
+ if (![channel isEqualToString:@"regular"] &&
+ ![channel isEqualToString:@"devbeta"])
+ channel = [channel containsString:@"beta"] ? @"devbeta" : @"regular";
+ if (!name.length)
+ name = version.length ? [NSString stringWithFormat:@"macOS %@", version]
+ : url.lastPathComponent;
+ image[@"url"] = url.absoluteString;
+ image[@"name"] = name ?: @"macOS";
+ image[@"version"] = version ?: @"";
+ image[@"group"] = group;
+ image[@"channel"] = channel;
+ image[@"build"] = VZRestoreString(image[@"build"]);
+ image[@"downloadSize"] = @([image[@"downloadSize"] longLongValue]);
+ [normalized addObject:image];
+ }
+ return normalized;
}
+ (void)loadWithCompletion:(void (^)(NSArray<NSDictionary *> *, NSError *))completion
@@ -37,11 +101,20 @@ static NSString * const VZCatalogURL =
NSArray *matches = [images filteredArrayUsingPredicate:[NSPredicate predicateWithBlock:
^BOOL(NSDictionary *image, NSDictionary *bindings) {
(void)bindings;
- return [image[@"group"] isEqualToString:@"sequoia"] &&
- [image[@"channel"] isEqualToString:@"regular"];
+ return [VZRestoreString(image[@"group"]) isEqualToString:@"sequoia"] &&
+ [VZRestoreString(image[@"channel"]) isEqualToString:@"regular"];
+ }]];
+ if (!matches.count)
+ matches = [images filteredArrayUsingPredicate:[NSPredicate
+ predicateWithBlock:^BOOL(NSDictionary *image,
+ NSDictionary *bindings) {
+ (void)bindings;
+ return [VZRestoreString(image[@"channel"])
+ isEqualToString:@"regular"];
}]];
return [matches sortedArrayUsingComparator:^NSComparisonResult(NSDictionary *left, NSDictionary *right) {
- return [right[@"version"] compare:left[@"version"] options:NSNumericSearch];
+ return [VZRestoreString(right[@"version"])
+ compare:VZRestoreString(left[@"version"]) options:NSNumericSearch];
}].firstObject;
}
@@ -50,10 +123,80 @@ static NSString * const VZCatalogURL =
NSArray *preferred = @[@"goldengate", @"tahoe", @"sequoia",
@"sonoma", @"ventura", @"monterey"];
NSMutableArray *result = [NSMutableArray array];
- NSSet *present = [NSSet setWithArray:[images valueForKey:@"group"]];
+ NSMutableSet *present = [NSMutableSet set];
+ for (NSDictionary *image in images) {
+ NSString *group = VZRestoreString(image[@"group"]);
+ if (group.length)
+ [present addObject:group];
+ }
for (NSString *group in preferred) if ([present containsObject:group]) [result addObject:group];
- for (NSString *group in present) if (![result containsObject:group]) [result addObject:group];
+ NSArray *unknown = [[present allObjects]
+ sortedArrayUsingSelector:@selector(localizedCaseInsensitiveCompare:)];
+ for (NSString *group in unknown)
+ if (![result containsObject:group]) [result addObject:group];
return result;
}
++ (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;
+}
+
++ (BOOL)isUnsupportedImage:(NSDictionary *)image
+{
+ NSString *version = VZRestoreString(image[@"version"]);
+ if (!version.length)
+ version = VZRestoreVersionFromName(VZRestoreString(image[@"name"]));
+ return VZRestoreMajorVersion(version) >= 28;
+}
+
++ (NSString *)macOSNameForImage:(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)];
+ }
+ if (marketingName.length)
+ return [@"macOS " stringByAppendingString:marketingName];
+ 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";
+}
+
@end
diff --git a/VirtualMac/vz/host/VZSettingsViewController.m b/VirtualMac/vz/host/VZSettingsViewController.m
index 942c518..d2bf93d 100644
--- a/VirtualMac/vz/host/VZSettingsViewController.m
+++ b/VirtualMac/vz/host/VZSettingsViewController.m
@@ -1,7 +1,58 @@
#import "VZSettingsViewController.h"
#import "VZAppSettings.h"
+#import "VZDiagnostics.h"
+#import "VZLocalization.h"
+#import "VZSupport.h"
#import "VZVMLibraryViewController.h"
+@interface VZContributorChip : UIControl
+@property(nonatomic, copy) NSString *urlString;
+- (instancetype)initWithName:(NSString *)name imageName:(NSString *)imageName
+ url:(NSString *)url;
+@end
+
+@implementation VZContributorChip
+- (instancetype)initWithName:(NSString *)name imageName:(NSString *)imageName
+ url:(NSString *)url
+{
+ if (!(self = [super initWithFrame:CGRectZero])) return nil;
+ self.urlString = url;
+ self.backgroundColor = UIColor.clearColor;
+ NSString *path = [NSBundle.mainBundle pathForResource:
+ imageName.stringByDeletingPathExtension ofType:imageName.pathExtension
+ inDirectory:@"Developers"];
+ UIImageView *avatar = [[[UIImageView alloc] initWithImage:
+ [UIImage imageWithContentsOfFile:path]] autorelease];
+ avatar.translatesAutoresizingMaskIntoConstraints = NO;
+ avatar.contentMode = UIViewContentModeScaleAspectFill;
+ avatar.layer.cornerRadius = 14.0;
+ avatar.layer.masksToBounds = YES;
+ [avatar.widthAnchor constraintEqualToConstant:28].active = YES;
+ [avatar.heightAnchor constraintEqualToConstant:28].active = YES;
+ UILabel *label = [[[UILabel alloc] init] autorelease];
+ label.text = name;
+ label.font = [UIFont preferredFontForTextStyle:UIFontTextStyleSubheadline];
+ UIStackView *stack = [[[UIStackView alloc] initWithArrangedSubviews:
+ @[avatar, label]] autorelease];
+ stack.translatesAutoresizingMaskIntoConstraints = NO;
+ stack.axis = UILayoutConstraintAxisHorizontal;
+ stack.spacing = 7;
+ stack.alignment = UIStackViewAlignmentCenter;
+ stack.userInteractionEnabled = NO;
+ [self addSubview:stack];
+ [NSLayoutConstraint activateConstraints:@[
+ [stack.leadingAnchor constraintEqualToAnchor:self.leadingAnchor],
+ [stack.trailingAnchor constraintEqualToAnchor:self.trailingAnchor],
+ [stack.topAnchor constraintEqualToAnchor:self.topAnchor constant:6],
+ [stack.bottomAnchor constraintEqualToAnchor:self.bottomAnchor constant:-6],
+ ]];
+ [self addTarget:self action:@selector(open:) forControlEvents:UIControlEventTouchUpInside];
+ return self;
+}
+- (void)open:(id)sender { (void)sender; VZOpenSupportURL(self.urlString); }
+- (void)dealloc { [_urlString release]; [super dealloc]; }
+@end
+
@interface VZSettingsViewController ()
@property(nonatomic, retain) NSArray<NSDictionary *> *machines;
@end
@@ -18,7 +69,9 @@
- (void)viewDidLoad
{
[super viewDidLoad];
- self.title = @"Settings";
+ self.title = VZL(@"Settings");
+ self.tableView.rowHeight = UITableViewAutomaticDimension;
+ self.tableView.estimatedRowHeight = 44.0;
self.navigationItem.rightBarButtonItem = [[[UIBarButtonItem alloc]
initWithBarButtonSystemItem:UIBarButtonSystemItemDone target:self
action:@selector(done:)] autorelease];
@@ -33,28 +86,33 @@
- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView
{
(void)tableView;
- return 4;
+ return 7;
}
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
{
(void)tableView;
- return section == 0 ? 3 : section == 1 ? 5 : section == 2 ? 1 : 3;
+ return section == 0 ? 2 : section == 1 ? 10 : section == 2 ? 3 :
+ section == 3 ? 3 : section == 4 ? 2 : section == 5 ? 4 : 1;
}
- (NSString *)tableView:(UITableView *)tableView titleForHeaderInSection:(NSInteger)section
{
(void)tableView;
- return @[@"General", @"Input While a Virtual Mac Is Running", @"Diagnostics", @"Storage"][section];
+ return @[VZL(@"General"), VZL(@"Input While a Virtual Mac Is Running"),
+ VZL(@"Compatibility"), VZL(@"Storage"), VZL(@"About"),
+ VZL(@"Support"), VZL(@"Developers")][section];
}
- (NSString *)tableView:(UITableView *)tableView titleForFooterInSection:(NSInteger)section
{
(void)tableView;
- if (section == 0)
- return [NSString stringWithFormat:@"Virtual Mac devices are stored in %@.", VZVMLibraryPath()];
+ if (section == 5)
+ return [NSString stringWithFormat:VZL(@"Virtual Mac devices are stored in %@."), VZVMLibraryPath()];
if (section == 1)
- return @"These options affect iPadOS only while Virtual Mac is frontmost and a virtual Mac is running.";
+ return VZL(@"These options affect iPadOS only while Virtual Mac is frontmost and a Virtual Mac is running.");
+ if (section == 2)
+ return VZL(@"Keyboard Crash Workaround takes effect the next time Virtual Mac opens. Debug Logging takes effect the next time a Virtual Mac starts.");
return nil;
}
@@ -78,8 +136,40 @@
{
VZAppSettings *settings = VZAppSettings.sharedSettings;
UITableViewCell *cell = [self baseCellForTableView:tableView identifier:@"setting"];
+ if (indexPath.section == 6) {
+ 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"}
+ ];
+ cell = [self baseCellForTableView:tableView identifier:@"contributors"];
+ for (UIView *view in cell.contentView.subviews)
+ if (view.tag == 1101) [view removeFromSuperview];
+ NSMutableArray *chips = [NSMutableArray array];
+ for (NSDictionary *person in people) {
+ VZContributorChip *chip = [[[VZContributorChip alloc]
+ initWithName:person[@"name"] imageName:person[@"image"]
+ url:person[@"url"]] autorelease];
+ [chips addObject:chip];
+ }
+ UIStackView *stack = [[[UIStackView alloc]
+ initWithArrangedSubviews:chips] autorelease];
+ stack.tag = 1101;
+ stack.translatesAutoresizingMaskIntoConstraints = NO;
+ stack.spacing = 12;
+ stack.distribution = UIStackViewDistributionFill;
+ [cell.contentView addSubview:stack];
+ [NSLayoutConstraint activateConstraints:@[
+ [stack.leadingAnchor constraintEqualToAnchor:cell.contentView.layoutMarginsGuide.leadingAnchor],
+ [stack.trailingAnchor constraintLessThanOrEqualToAnchor:cell.contentView.layoutMarginsGuide.trailingAnchor],
+ [stack.topAnchor constraintEqualToAnchor:cell.contentView.topAnchor constant:8],
+ [stack.bottomAnchor constraintEqualToAnchor:cell.contentView.bottomAnchor constant:-8],
+ ]];
+ cell.selectionStyle = UITableViewCellSelectionStyleNone;
+ return cell;
+ }
if (indexPath.section == 0 && indexPath.row == 0) {
- cell.textLabel.text = @"Start on Launch";
+ cell.textLabel.text = VZL(@"Start on Launch");
NSString *path = [settings stringForKey:VZAutoBootVMPathKey];
NSString *identifier = [settings stringForKey:VZAutoBootVMIdentifierKey];
NSDictionary *selected = nil;
@@ -87,21 +177,22 @@
if ([machine[@"path"] isEqualToString:path] ||
(identifier.length && [VZVMStableIdentifier(machine[@"path"])
isEqualToString:identifier])) selected = machine;
- cell.detailTextLabel.text = selected[@"name"] ?: @"Show Library";
+ cell.detailTextLabel.text = selected[@"name"] ?: VZL(@"Show Library");
cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator;
} else if (indexPath.section == 0 && indexPath.row == 1) {
- cell.textLabel.text = @"Virtual Mac Display";
+ cell.textLabel.text = VZL(@"Virtual Mac Display");
cell.detailTextLabel.text = [[settings stringForKey:VZDisplayScalingKey]
- isEqualToString:@"fill"] ? @"Fill Window" : @"Fit in Window";
+ isEqualToString:@"fill"] ? VZL(@"Fill Window") : VZL(@"Fit in Window");
cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator;
- } else if (indexPath.section == 0) {
- cell.textLabel.text = @"Copy Library Path";
- cell.imageView.image = [UIImage systemImageNamed:@"doc.on.doc"];
- } else if (indexPath.section == 1 && indexPath.row < 4) {
- NSArray *titles = @[@"Mac Keyboard Shortcuts", @"Suppress iPadOS System Edge Gestures",
- @"Suppress iPadOS Multitasking Gestures", @"Suppress iPadOS Home Indicator"];
+ } else if (indexPath.section == 1 && indexPath.row < 8) {
+ NSArray *titles = @[VZL(@"Mac Keyboard Shortcuts"), VZL(@"Suppress iPadOS System Edge Gestures"),
+ VZL(@"Suppress iPadOS Multitasking Gestures"), VZL(@"Suppress iPadOS Home Indicator"),
+ VZL(@"Accommodate Finger Double-Taps"), VZL(@"Two-Finger Touch Scrolling"),
+ VZL(@"Two-Finger Tap for Secondary Click"), VZL(@"Touch and Hold for Secondary Click")];
NSArray *keys = @[VZKeyboardShortcutCaptureKey, VZSystemGestureSuppressionKey,
- VZMultitaskingGestureSuppressionKey, VZHomeIndicatorSuppressionKey];
+ VZMultitaskingGestureSuppressionKey, VZHomeIndicatorSuppressionKey,
+ VZTouchDoubleTapAccommodationKey, VZTouchTwoFingerScrollingKey,
+ VZTouchTwoFingerRightClickKey, VZTouchLongPressRightClickKey];
cell.textLabel.text = titles[indexPath.row];
UISwitch *toggle = [[[UISwitch alloc] init] autorelease];
toggle.tag = indexPath.row;
@@ -110,37 +201,75 @@
forControlEvents:UIControlEventValueChanged];
cell.accessoryView = toggle;
cell.selectionStyle = UITableViewCellSelectionStyleNone;
- } else if (indexPath.section == 1) {
- cell.textLabel.text = @"Virtual Mac Controls";
- NSDictionary *names = @{@"automatic": @"Automatic", @"always": @"Always Visible",
- @"hidden": @"Always Hidden"};
- cell.detailTextLabel.text = names[[settings stringForKey:VZHUDVisibilityKey]] ?: @"Automatic";
+ } else if (indexPath.section == 1 && indexPath.row == 8) {
+ cell.textLabel.text = VZL(@"Virtual Mac Controls");
+ NSDictionary *names = @{@"automatic": VZL(@"Automatic"), @"always": VZL(@"Always Visible"),
+ @"hidden": VZL(@"Always Hidden")};
+ cell.detailTextLabel.text = names[[settings stringForKey:VZHUDVisibilityKey]] ?: VZL(@"Automatic");
cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator;
- } else if (indexPath.section == 2) {
- cell.textLabel.text = @"Show Virtual Mac Status Overlay";
+ } else if (indexPath.section == 1) {
+ cell.textLabel.text = VZL(@"Controls Opacity");
+ UISlider *slider = [[[UISlider alloc] initWithFrame:
+ CGRectMake(0, 0, 180, 32)] autorelease];
+ slider.minimumValue = 0.0;
+ slider.maximumValue = 1.0;
+ slider.value = [[settings stringForKey:VZHUDOpacityKey] floatValue];
+ [slider addTarget:self action:@selector(hudOpacityChanged:)
+ forControlEvents:UIControlEventValueChanged];
+ cell.accessoryView = slider;
+ cell.selectionStyle = UITableViewCellSelectionStyleNone;
+ } else if (indexPath.section == 2 && indexPath.row < 3) {
+ NSArray *titles = @[VZL(@"Keyboard Crash Workaround"),
+ VZL(@"Recover Networking After Sleep"),
+ VZL(@"Debug Logging")];
+ NSArray *keys = @[VZIPadOS162KeyboardWorkaroundKey,
+ VZNetworkResumeRecoveryKey,
+ VZDebugLoggingKey];
+ cell.textLabel.text = titles[indexPath.row];
UISwitch *toggle = [[[UISwitch alloc] init] autorelease];
- toggle.on = [settings boolForKey:VZShowStatusLabelKey];
- [toggle addTarget:self action:@selector(statusToggleChanged:)
+ toggle.tag = 100 + indexPath.row;
+ toggle.on = [settings boolForKey:keys[indexPath.row]];
+ [toggle addTarget:self action:@selector(inputToggleChanged:)
forControlEvents:UIControlEventValueChanged];
cell.accessoryView = toggle;
cell.selectionStyle = UITableViewCellSelectionStyleNone;
- } else if (indexPath.row == 0) {
- cell.textLabel.text = @"Delete IPSW After Installation";
+ } else if (indexPath.section == 3 && indexPath.row == 0) {
+ cell.textLabel.text = VZL(@"Delete IPSW After Successful Installation");
UISwitch *toggle = [[[UISwitch alloc] init] autorelease];
toggle.on = [settings boolForKey:VZAutoDeleteRestoreImageKey];
[toggle addTarget:self action:@selector(autoDeleteToggleChanged:)
forControlEvents:UIControlEventValueChanged];
cell.accessoryView = toggle;
cell.selectionStyle = UITableViewCellSelectionStyleNone;
- } else {
+ } else if (indexPath.section == 3) {
NSArray *paths = indexPath.row == 1 ? VZInstallationArtifactPaths()
: VZCachedRestoreImagePaths();
- cell.textLabel.text = indexPath.row == 1 ? @"Delete Installation Artifacts"
- : @"Delete Cached Restore Images";
+ cell.textLabel.text = indexPath.row == 1 ? VZL(@"Delete Temporary Installation Files")
+ : VZL(@"Delete Cached Install Images");
cell.detailTextLabel.text = [NSString stringWithFormat:@"%lu", (unsigned long)paths.count];
cell.textLabel.textColor = paths.count ? UIColor.systemRedColor : UIColor.secondaryLabelColor;
cell.selectionStyle = paths.count ? UITableViewCellSelectionStyleDefault
: UITableViewCellSelectionStyleNone;
+ } else if (indexPath.section == 4 && indexPath.row == 0) {
+ NSDictionary *info = NSBundle.mainBundle.infoDictionary;
+ NSString *version = info[@"CFBundleShortVersionString"] ?: @"—";
+ NSString *build = info[@"CFBundleVersion"] ?: @"—";
+ cell.textLabel.text = VZL(@"Version");
+ cell.detailTextLabel.text = [NSString stringWithFormat:@"%@ (%@)",
+ version, build];
+ cell.selectionStyle = UITableViewCellSelectionStyleNone;
+ } else if (indexPath.section == 4) {
+ cell.textLabel.text = VZL(@"Reset Settings");
+ cell.textLabel.textColor = UIColor.systemRedColor;
+ cell.textLabel.textAlignment = NSTextAlignmentCenter;
+ } else if (indexPath.section == 5) {
+ NSArray *titles = @[VZL(@"Copy Library Path"), VZL(@"Export Diagnostics"),
+ VZL(@"Get Help"), VZL(@"Report Issue")];
+ NSArray *images = @[@"doc.on.doc", @"square.and.arrow.up",
+ @"questionmark.circle", @"exclamationmark.bubble"];
+ cell.textLabel.text = titles[indexPath.row];
+ cell.imageView.image = [UIImage systemImageNamed:images[indexPath.row]];
+ cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator;
}
return cell;
}
@@ -148,17 +277,24 @@
- (void)inputToggleChanged:(UISwitch *)sender
{
NSArray *keys = @[VZKeyboardShortcutCaptureKey, VZSystemGestureSuppressionKey,
- VZMultitaskingGestureSuppressionKey, VZHomeIndicatorSuppressionKey];
- [VZAppSettings.sharedSettings setBool:sender.on forKey:keys[sender.tag]];
+ VZMultitaskingGestureSuppressionKey, VZHomeIndicatorSuppressionKey,
+ VZTouchDoubleTapAccommodationKey, VZTouchTwoFingerScrollingKey,
+ VZTouchTwoFingerRightClickKey, VZTouchLongPressRightClickKey];
+ NSArray *compatibilityKeys = @[VZIPadOS162KeyboardWorkaroundKey,
+ VZNetworkResumeRecoveryKey,
+ VZDebugLoggingKey];
+ NSString *key = sender.tag >= 100 ? compatibilityKeys[sender.tag - 100]
+ : keys[sender.tag];
+ [VZAppSettings.sharedSettings setBool:sender.on forKey:key];
}
- (void)chooseDisplayScalingFrom:(UITableViewCell *)cell
{
UIAlertController *picker = [UIAlertController
- alertControllerWithTitle:@"Virtual Mac Display"
- message:@"Fit in Window shows the entire display. Fill Window crops its edges when the window has a different shape."
+ alertControllerWithTitle:VZL(@"Virtual Mac Display")
+ message:VZL(@"Fit in Window shows the entire display. Fill Window crops its edges when the window has a different shape.")
preferredStyle:UIAlertControllerStyleActionSheet];
- NSArray *titles = @[@"Fit in Window", @"Fill Window"];
+ NSArray *titles = @[VZL(@"Fit in Window"), VZL(@"Fill Window")];
NSArray *values = @[@"fit", @"fill"];
for (NSUInteger index = 0; index < titles.count; index++) {
[picker addAction:[UIAlertAction actionWithTitle:titles[index]
@@ -169,29 +305,31 @@
[self.tableView reloadData];
}]];
}
- [picker addAction:[UIAlertAction actionWithTitle:@"Cancel"
+ [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)statusToggleChanged:(UISwitch *)sender
+- (void)autoDeleteToggleChanged:(UISwitch *)sender
{
- [VZAppSettings.sharedSettings setBool:sender.on forKey:VZShowStatusLabelKey];
+ [VZAppSettings.sharedSettings setBool:sender.on forKey:VZAutoDeleteRestoreImageKey];
}
-- (void)autoDeleteToggleChanged:(UISwitch *)sender
+- (void)hudOpacityChanged:(UISlider *)sender
{
- [VZAppSettings.sharedSettings setBool:sender.on forKey:VZAutoDeleteRestoreImageKey];
+ [VZAppSettings.sharedSettings setString:
+ [NSString stringWithFormat:@"%.2f", sender.value]
+ forKey:VZHUDOpacityKey];
}
- (void)chooseHUDVisibilityFrom:(UITableViewCell *)cell
{
- UIAlertController *picker = [UIAlertController alertControllerWithTitle:@"Virtual Mac Controls"
- message:@"Automatic hides the controls when an external keyboard and pointing device are connected."
+ UIAlertController *picker = [UIAlertController alertControllerWithTitle:VZL(@"Virtual Mac Controls")
+ message:VZL(@"Automatic hides the controls when an external keyboard and pointing device are connected.")
preferredStyle:UIAlertControllerStyleActionSheet];
- NSArray *titles = @[@"Automatic", @"Always Visible", @"Always Hidden"];
+ NSArray *titles = @[VZL(@"Automatic"), VZL(@"Always Visible"), VZL(@"Always Hidden")];
NSArray *values = @[@"automatic", @"always", @"hidden"];
for (NSUInteger index = 0; index < titles.count; index++) {
[picker addAction:[UIAlertAction actionWithTitle:titles[index]
@@ -201,7 +339,7 @@
[self.tableView reloadData];
}]];
}
- [picker addAction:[UIAlertAction actionWithTitle:@"Cancel" style:UIAlertActionStyleCancel handler:nil]];
+ [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];
@@ -209,10 +347,10 @@
- (void)chooseAutoBootFrom:(UITableViewCell *)cell
{
- UIAlertController *picker = [UIAlertController alertControllerWithTitle:@"Start on Launch"
- message:@"Choose whether Virtual Mac opens its library or starts a virtual Mac."
+ UIAlertController *picker = [UIAlertController alertControllerWithTitle:VZL(@"Start on Launch")
+ message:VZL(@"Choose whether Virtual Mac opens its library or starts a Virtual Mac.")
preferredStyle:UIAlertControllerStyleActionSheet];
- [picker addAction:[UIAlertAction actionWithTitle:@"Show Library"
+ [picker addAction:[UIAlertAction actionWithTitle:VZL(@"Show Library")
style:UIAlertActionStyleDefault handler:^(UIAlertAction *action) {
(void)action;
[VZAppSettings.sharedSettings setString:nil forKey:VZAutoBootVMPathKey];
@@ -229,7 +367,7 @@
[self.tableView reloadData];
}]];
}
- [picker addAction:[UIAlertAction actionWithTitle:@"Cancel" style:UIAlertActionStyleCancel handler:nil]];
+ [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];
@@ -239,10 +377,10 @@
{
if (!paths.count) return;
UIAlertController *alert = [UIAlertController alertControllerWithTitle:title
- message:@"Complete virtual Mac devices and restore images outside Virtual Mac are not removed."
+ message:VZL(@"Complete Virtual Mac devices and restore images outside Virtual Mac are not removed.")
preferredStyle:UIAlertControllerStyleAlert];
- [alert addAction:[UIAlertAction actionWithTitle:@"Cancel" style:UIAlertActionStyleCancel handler:nil]];
- [alert addAction:[UIAlertAction actionWithTitle:@"Delete" style:UIAlertActionStyleDestructive
+ [alert addAction:[UIAlertAction actionWithTitle:VZL(@"Cancel") style:UIAlertActionStyleCancel handler:nil]];
+ [alert addAction:[UIAlertAction actionWithTitle:VZL(@"Delete") style:UIAlertActionStyleDestructive
handler:^(UIAlertAction *action) {
(void)action;
VZRemovePaths(paths);
@@ -251,6 +389,62 @@
[self presentViewController:alert animated:YES completion:nil];
}
+- (void)confirmResetSettings
+{
+ UIAlertController *alert = [UIAlertController
+ alertControllerWithTitle:VZL(@"Reset Settings?")
+ message:VZL(@"This restores all Virtual Mac settings to their defaults. Virtual Macs, restore images, and installation files won’t be removed.")
+ preferredStyle:UIAlertControllerStyleAlert];
+ [alert addAction:[UIAlertAction actionWithTitle:VZL(@"Cancel")
+ style:UIAlertActionStyleCancel handler:nil]];
+ [alert addAction:[UIAlertAction actionWithTitle:VZL(@"Reset")
+ style:UIAlertActionStyleDestructive handler:^(UIAlertAction *action) {
+ (void)action;
+ [VZAppSettings.sharedSettings resetToDefaults];
+ [self.tableView reloadData];
+ }]];
+ [self presentViewController:alert animated:YES completion:nil];
+}
+
+- (void)exportDiagnosticsFrom:(UITableViewCell *)cell
+{
+ UIActivityIndicatorView *spinner = [[[UIActivityIndicatorView alloc]
+ initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleMedium]
+ autorelease];
+ cell.accessoryView = spinner;
+ cell.userInteractionEnabled = NO;
+ [spinner startAnimating];
+ dispatch_async(dispatch_get_global_queue(QOS_CLASS_USER_INITIATED, 0), ^{
+ NSError *error = nil;
+ NSURL *archive = VZCreateDiagnosticsArchive(&error);
+ dispatch_async(dispatch_get_main_queue(), ^{
+ cell.accessoryView = nil;
+ cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator;
+ cell.userInteractionEnabled = YES;
+ if (!archive) {
+ UIAlertController *alert = [UIAlertController
+ alertControllerWithTitle:VZL(@"Couldn’t Export Diagnostics")
+ message:error.localizedDescription ?:
+ VZL(@"The diagnostics archive could not be created.")
+ preferredStyle:UIAlertControllerStyleAlert];
+ VZAddFailureSupportActions(alert);
+ [alert addAction:[UIAlertAction actionWithTitle:VZL(@"OK")
+ style:UIAlertActionStyleDefault handler:nil]];
+ [self presentViewController:alert animated:YES completion:nil];
+ return;
+ }
+ // The activity sheet initializes Core Image to draw the AirDrop
+ // activity icon. That crashes on iPadOS 16 while Virtual Mac's
+ // extracted graphics stack is loaded. The Files exporter is the
+ // native file-save UI and does not enter that unsafe code path.
+ UIDocumentPickerViewController *picker =
+ [[[UIDocumentPickerViewController alloc]
+ initForExportingURLs:@[archive] asCopy:YES] autorelease];
+ [self presentViewController:picker animated:YES completion:nil];
+ });
+ });
+}
+
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
UITableViewCell *cell = [tableView cellForRowAtIndexPath:indexPath];
@@ -259,16 +453,22 @@
[self chooseAutoBootFrom:cell];
else if (indexPath.section == 0 && indexPath.row == 1)
[self chooseDisplayScalingFrom:cell];
- else if (indexPath.section == 0 && indexPath.row == 2) {
+ else if (indexPath.section == 5 && indexPath.row == 0) {
UIPasteboard.generalPasteboard.string = VZVMLibraryPath();
UINotificationFeedbackGenerator *feedback = [[[UINotificationFeedbackGenerator alloc] init] autorelease];
[feedback notificationOccurred:UINotificationFeedbackTypeSuccess];
- } else if (indexPath.section == 1 && indexPath.row == 4)
+ } else if (indexPath.section == 1 && indexPath.row == 8)
[self chooseHUDVisibilityFrom:cell];
else if (indexPath.section == 3 && indexPath.row == 1)
- [self confirmDeletePaths:VZInstallationArtifactPaths() title:@"Delete Installation Artifacts?"];
+ [self confirmDeletePaths:VZInstallationArtifactPaths() title:VZL(@"Delete Temporary Installation Files?")];
else if (indexPath.section == 3 && indexPath.row == 2)
- [self confirmDeletePaths:VZCachedRestoreImagePaths() title:@"Delete Cached Restore Images?"];
+ [self confirmDeletePaths:VZCachedRestoreImagePaths() title:VZL(@"Delete Cached Install Images?")];
+ else if (indexPath.section == 5 && indexPath.row == 1)
+ [self exportDiagnosticsFrom:cell];
+ else if (indexPath.section == 4 && indexPath.row == 1)
+ [self confirmResetSettings];
+ else if (indexPath.section == 5 && indexPath.row >= 2)
+ VZOpenSupportURL(indexPath.row == 2 ? VZGetHelpURLString : VZReportIssueURLString);
}
- (void)dealloc
diff --git a/VirtualMac/vz/host/VZSupport.h b/VirtualMac/vz/host/VZSupport.h
new file mode 100644
index 0000000..a904972
--- /dev/null
+++ b/VirtualMac/vz/host/VZSupport.h
@@ -0,0 +1,7 @@
+#import <UIKit/UIKit.h>
+
+FOUNDATION_EXPORT NSString * const VZGetHelpURLString;
+FOUNDATION_EXPORT NSString * const VZReportIssueURLString;
+
+FOUNDATION_EXPORT void VZOpenSupportURL(NSString *urlString);
+FOUNDATION_EXPORT void VZAddFailureSupportActions(UIAlertController *alert);
diff --git a/VirtualMac/vz/host/VZSupport.m b/VirtualMac/vz/host/VZSupport.m
new file mode 100644
index 0000000..2c42695
--- /dev/null
+++ b/VirtualMac/vz/host/VZSupport.m
@@ -0,0 +1,31 @@
+#import "VZSupport.h"
+#import "VZLocalization.h"
+
+NSString * const VZGetHelpURLString =
+ @"https://github.com/nfzerox/VirtualMacOniPad#what-if-i-encounter-crashes-bugs-or-other-issues";
+NSString * const VZReportIssueURLString =
+ @"https://github.com/nfzerox/VirtualMacOniPad/issues?q=is%3Aissue";
+
+void VZOpenSupportURL(NSString *urlString)
+{
+ NSURL *url = [NSURL URLWithString:urlString];
+ if (url)
+ [UIApplication.sharedApplication openURL:url options:@{}
+ completionHandler:nil];
+}
+
+void VZAddFailureSupportActions(UIAlertController *alert)
+{
+ if (!alert)
+ return;
+ [alert addAction:[UIAlertAction actionWithTitle:VZL(@"Get Help")
+ style:UIAlertActionStyleDefault handler:^(UIAlertAction *action) {
+ (void)action;
+ VZOpenSupportURL(VZGetHelpURLString);
+ }]];
+ [alert addAction:[UIAlertAction actionWithTitle:VZL(@"Report Issue")
+ style:UIAlertActionStyleDefault handler:^(UIAlertAction *action) {
+ (void)action;
+ VZOpenSupportURL(VZReportIssueURLString);
+ }]];
+}
diff --git a/VirtualMac/vz/host/VZVMLibraryViewController.m b/VirtualMac/vz/host/VZVMLibraryViewController.m
index 17ac809..3b28f8a 100644
--- a/VirtualMac/vz/host/VZVMLibraryViewController.m
+++ b/VirtualMac/vz/host/VZVMLibraryViewController.m
@@ -3,6 +3,9 @@
#import "VZSettingsViewController.h"
#import "VZNewVMViewController.h"
#import "VZProgressViewController.h"
+#import "VZRestoreCatalog.h"
+#import "VZLocalization.h"
+#import "VZSupport.h"
#import <UniformTypeIdentifiers/UniformTypeIdentifiers.h>
#include <ifaddrs.h>
@@ -66,7 +69,16 @@ NSString *VZInstallationsPath(void)
static uint64_t VZDeviceMemoryLimit(void)
{
uint64_t physical = NSProcessInfo.processInfo.physicalMemory;
- return physical >= GiB(12) ? GiB(8) : GiB(6);
+ // The marketed capacity is larger than the memory iPadOS exposes to this
+ // process.
+ // VZ rejects a rounded-up 16/8 GiB value as greater than its host limit.
+ return MAX(GiB(2), (physical >> 30) << 30);
+}
+
+static uint64_t VZDefaultMemorySize(void)
+{
+ uint64_t physical = NSProcessInfo.processInfo.physicalMemory;
+ return physical >= GiB(12) ? GiB(8) : GiB(4);
}
static uint64_t VZDefaultStorageSize(void)
@@ -84,6 +96,16 @@ static uint64_t VZAvailableStorageSize(void)
return [attributes[NSFileSystemFreeSize] unsignedLongLongValue];
}
+static uint64_t VZVMStorageCapacity(NSString *bundlePath,
+ NSDictionary *options)
+{
+ NSDictionary *attributes = [NSFileManager.defaultManager
+ attributesOfItemAtPath:[bundlePath stringByAppendingPathComponent:
+ @"Disk.img"] error:nil];
+ uint64_t capacity = [attributes[NSFileSize] unsignedLongLongValue];
+ return capacity ?: [options[VZStorageSizeKey] unsignedLongLongValue];
+}
+
static NSString *VZMACStringFromBytes(const uint8_t bytes[6])
{
return [NSString stringWithFormat:@"%02x:%02x:%02x:%02x:%02x:%02x",
@@ -122,8 +144,36 @@ static NSString *VZMACAddressForBundle(NSString *bundlePath)
return VZMACStringFromBytes(bytes);
}
+static BOOL VZHostSupportsBridgedNetworking(void)
+{
+ // iPadOS 14 lacks the private Wi-Fi virtualization integration that lets
+ // a macOS host bridge a guest MAC through a Wi-Fi station. NAT is the
+ // supported network attachment on that host release. Keep the existing
+ // bridged-network UI and behavior unchanged on iPadOS 15 and 16.
+ return NSProcessInfo.processInfo.operatingSystemVersion.majorVersion > 14;
+}
+
+static NSString *VZEffectiveNetworkMode(NSDictionary *options)
+{
+ NSString *mode = options[VZNetworkModeKey] ?: @"NAT";
+ return !VZHostSupportsBridgedNetworking() &&
+ [mode isEqualToString:@"Bridge"] ? @"NAT" : mode;
+}
+
+static NSString *VZNetworkModeDisplayName(NSDictionary *options)
+{
+ NSString *mode = VZEffectiveNetworkMode(options);
+ if ([mode isEqualToString:@"Bridge"])
+ return VZL(@"Bridge");
+ if ([mode isEqualToString:@"Disabled"])
+ return VZL(@"Disabled");
+ return mode;
+}
+
static NSArray *VZBridgeInterfaceNames(void)
{
+ if (!VZHostSupportsBridgedNetworking())
+ return @[];
NSMutableSet *names = [NSMutableSet set];
struct ifaddrs *interfaces = NULL;
if (getifaddrs(&interfaces) == 0) {
@@ -146,13 +196,13 @@ static NSArray *VZBridgeInterfaceNames(void)
static NSString *VZInterfaceDisplayName(NSString *interface)
{
if ([interface isEqualToString:@"en0"])
- return @"Wi-Fi";
+ return VZL(@"Wi-Fi");
if ([interface hasPrefix:@"pdp_ip"])
- return @"Cellular";
+ return VZL(@"Cellular");
if ([interface hasPrefix:@"bridge"])
- return [NSString stringWithFormat:@"Network Bridge (%@)", interface];
+ return [NSString stringWithFormat:VZL(@"Network Bridge (%@)"), interface];
if ([interface hasPrefix:@"en"])
- return [NSString stringWithFormat:@"Ethernet (%@)", interface];
+ return [NSString stringWithFormat:VZL(@"Ethernet (%@)"), interface];
return interface;
}
@@ -179,9 +229,9 @@ static NSString *VZActiveInternetDisplayName(void)
freeifaddrs(interfaces);
}
if ([candidate hasPrefix:@"utun"])
- return @"VPN";
+ return VZL(@"VPN");
return candidate ? VZInterfaceDisplayName(candidate)
- : @"iPad Internet Connection";
+ : VZL(@"iPad Internet Connection");
}
BOOL VZRestoreImageUsesMontereyProfile(NSString *path)
@@ -231,7 +281,7 @@ NSDictionary *VZVMDefaultOptions(void)
MIN((NSUInteger)4, NSProcessInfo.processInfo.activeProcessorCount));
return @{
VZCPUCountKey: @(processors),
- VZMemorySizeKey: @(VZDeviceMemoryLimit()),
+ VZMemorySizeKey: @(VZDefaultMemorySize()),
VZStorageSizeKey: @(VZDefaultStorageSize()),
VZNetworkModeKey: @"NAT",
VZBridgeInterfaceKey: @"en0",
@@ -244,7 +294,7 @@ NSDictionary *VZVMDefaultOptions(void)
VZVideoToolboxEnabledKey: @YES,
VZDisplayModeKey: @"NativeRetina",
VZDisplayWidthKey: @1920,
- VZDisplayHeightKey: @1200,
+ VZDisplayHeightKey: @1080,
VZDisplayPPIKey: @264,
VZMACAddressKey: VZRandomMACAddress(),
};
@@ -332,6 +382,15 @@ NSArray<NSDictionary *> *VZDiscoverVirtualMachines(void)
^(NSString *path, NSString *name) {
if (!VZIsValidVMBundle(path))
return;
+ NSString *manifest = [path stringByAppendingPathComponent:
+ VZVMConfigurationFileName];
+ if (![manager fileExistsAtPath:manifest]) {
+ NSError *manifestError = nil;
+ NSDictionary *defaults = VZVMOptionsForBundle(path);
+ if (!VZWriteVMOptions(defaults, path, &manifestError))
+ NSLog(@"Virtual Mac could not synthesize settings for %@: %@",
+ path, manifestError);
+ }
NSString *identity = path.stringByResolvingSymlinksInPath;
if ([seen containsObject:identity])
return;
@@ -385,6 +444,14 @@ static NSString *VZMarketingNameForRestoreImage(NSURL *url)
return base.length ? base : @"macOS";
}
+static UIImage *VZInstallerArtworkForImage(NSDictionary *image)
+{
+ NSString *name = [VZRestoreCatalog artworkNameForImage:image];
+ NSString *path = [NSBundle.mainBundle pathForResource:name ofType:@"png"
+ inDirectory:@"Installers"];
+ return [UIImage imageWithContentsOfFile:path];
+}
+
static BOOL VZVMNameIsOccupied(NSString *name)
{
NSString *bundleName = [name stringByAppendingPathExtension:@"bundle"];
@@ -491,13 +558,20 @@ void VZRemovePaths(NSArray<NSString *> *paths)
}
@interface VZVMConfigurationViewController : UITableViewController
- <UIDocumentPickerDelegate>
+ <UIDocumentPickerDelegate, UIAdaptivePresentationControllerDelegate>
@property(nonatomic, copy) NSString *bundlePath;
@property(nonatomic, copy) NSString *vmName;
@property(nonatomic, assign) BOOL running;
@property(nonatomic, retain) NSMutableDictionary *options;
+@property(nonatomic, retain) NSDictionary *originalOptions;
+@property(nonatomic, copy) NSString *originalVMName;
@property(nonatomic, copy) void (^completion)(NSDictionary *options);
@property(nonatomic, copy) void (^deletion)(void);
+@property(nonatomic, assign) BOOL showsExperimentalInstallWarning;
+@property(nonatomic, assign) BOOL showsUnsupportedInstallWarning;
+@property(nonatomic, copy) NSString *experimentalMacOSName;
+@property(nonatomic, copy) void (^chooseDifferentVersionHandler)(void);
+@property(nonatomic, retain) UIView *experimentalWarningHeader;
@end
@implementation VZVMConfigurationViewController
@@ -512,7 +586,7 @@ void VZRemovePaths(NSArray<NSString *> *paths)
self.vmName = bundlePath.lastPathComponent.stringByDeletingPathExtension;
self.options = [NSMutableDictionary dictionaryWithDictionary:options];
self.completion = completion;
- self.title = bundlePath ? @"Virtual Mac" : @"New Virtual Mac";
+ self.title = bundlePath ? VZL(@"Virtual Mac") : VZL(@"New Virtual Mac");
}
return self;
}
@@ -520,17 +594,188 @@ void VZRemovePaths(NSArray<NSString *> *paths)
- (void)viewDidLoad
{
[super viewDidLoad];
- self.navigationItem.leftBarButtonItem = [[[UIBarButtonItem alloc]
- initWithBarButtonSystemItem:UIBarButtonSystemItemCancel target:self
- action:@selector(cancel:)] autorelease];
+ self.originalOptions = [NSDictionary dictionaryWithDictionary:self.options];
+ self.originalVMName = self.vmName ?: @"";
+ // A newly created VM is pushed from the version picker, so preserve the
+ // navigation controller's normal Back button. Existing VM settings are
+ // presented as the sheet root and retain Cancel.
+ if (self.bundlePath) {
+ self.navigationItem.leftBarButtonItem = [[[UIBarButtonItem alloc]
+ initWithBarButtonSystemItem:UIBarButtonSystemItemCancel target:self
+ action:@selector(cancel:)] autorelease];
+ }
self.navigationItem.rightBarButtonItem = [[[UIBarButtonItem alloc]
- initWithBarButtonSystemItem:UIBarButtonSystemItemDone target:self
- action:@selector(done:)] autorelease];
+ initWithTitle:self.bundlePath ? VZL(@"Save") : VZL(@"Continue")
+ style:UIBarButtonItemStyleDone target:self action:@selector(done:)]
+ autorelease];
+ if (!self.bundlePath && self.showsExperimentalInstallWarning)
+ [self installExperimentalWarningHeader];
+}
+
+- (void)installExperimentalWarningHeader
+{
+ UIView *header = [[[UIView alloc] initWithFrame:CGRectZero] autorelease];
+ header.backgroundColor = UIColor.clearColor;
+
+ UIView *card = [[[UIView alloc] initWithFrame:CGRectZero] autorelease];
+ card.translatesAutoresizingMaskIntoConstraints = NO;
+ card.backgroundColor = UIColor.secondarySystemGroupedBackgroundColor;
+ card.layer.cornerRadius = 12.0;
+ card.layer.cornerCurve = kCACornerCurveContinuous;
+ [header addSubview:card];
+
+ UIImageView *icon = [[[UIImageView alloc] initWithImage:
+ [UIImage systemImageNamed:@"exclamationmark.triangle.fill"]] autorelease];
+ icon.translatesAutoresizingMaskIntoConstraints = NO;
+ icon.tintColor = self.showsUnsupportedInstallWarning
+ ? UIColor.systemRedColor : UIColor.systemYellowColor;
+ icon.contentMode = UIViewContentModeScaleAspectFit;
+ [card addSubview:icon];
+
+ UILabel *title = [[[UILabel alloc] initWithFrame:CGRectZero] autorelease];
+ title.translatesAutoresizingMaskIntoConstraints = NO;
+ title.font = [UIFont preferredFontForTextStyle:UIFontTextStyleHeadline];
+ title.textColor = UIColor.labelColor;
+ title.numberOfLines = 0;
+ NSString *macOSName = self.experimentalMacOSName ?: @"macOS";
+ title.text = self.showsUnsupportedInstallWarning
+ ? [NSString stringWithFormat:VZL(@"%@ is not supported"), macOSName]
+ : [NSString stringWithFormat:
+ VZL(@"Support for %@ is experimental"), macOSName];
+ [card addSubview:title];
+
+ UILabel *message = [[[UILabel alloc] initWithFrame:CGRectZero] autorelease];
+ message.translatesAutoresizingMaskIntoConstraints = NO;
+ message.font = [UIFont preferredFontForTextStyle:UIFontTextStyleSubheadline];
+ message.textColor = UIColor.secondaryLabelColor;
+ message.numberOfLines = 0;
+ if (self.showsUnsupportedInstallWarning) {
+ NSString *appVersion = NSBundle.mainBundle.infoDictionary[
+ @"CFBundleShortVersionString"] ?: @"";
+ message.text = [NSString stringWithFormat:
+ VZL(@"Virtual Mac %@ does not support %@. Check for updates in Sileo."),
+ appVersion, macOSName];
+ } else {
+ message.text = [NSString stringWithFormat:
+ VZL(@"%@ 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."),
+ macOSName];
+ }
+ [card addSubview:message];
+
+ UIButton *button = [UIButton buttonWithType:UIButtonTypeSystem];
+ button.translatesAutoresizingMaskIntoConstraints = NO;
+ button.contentHorizontalAlignment = UIControlContentHorizontalAlignmentLeading;
+ button.titleLabel.font = [UIFont preferredFontForTextStyle:UIFontTextStyleHeadline];
+ [button setTitle:VZL(@"Choose a Different Version")
+ forState:UIControlStateNormal];
+ [button addTarget:self action:@selector(chooseDifferentVersion:)
+ forControlEvents:UIControlEventTouchUpInside];
+ [card addSubview:button];
+
+ [NSLayoutConstraint activateConstraints:@[
+ [card.leadingAnchor constraintEqualToAnchor:header.leadingAnchor constant:20.0],
+ [card.trailingAnchor constraintEqualToAnchor:header.trailingAnchor constant:-20.0],
+ [card.topAnchor constraintEqualToAnchor:header.topAnchor constant:16.0],
+ [card.bottomAnchor constraintEqualToAnchor:header.bottomAnchor constant:-8.0],
+ [icon.leadingAnchor constraintEqualToAnchor:card.leadingAnchor constant:16.0],
+ [icon.topAnchor constraintEqualToAnchor:card.topAnchor constant:16.0],
+ [icon.widthAnchor constraintEqualToConstant:22.0],
+ [icon.heightAnchor constraintEqualToConstant:22.0],
+ [title.leadingAnchor constraintEqualToAnchor:icon.trailingAnchor constant:10.0],
+ [title.trailingAnchor constraintEqualToAnchor:card.trailingAnchor constant:-16.0],
+ [title.centerYAnchor constraintEqualToAnchor:icon.centerYAnchor],
+ [message.leadingAnchor constraintEqualToAnchor:card.leadingAnchor constant:16.0],
+ [message.trailingAnchor constraintEqualToAnchor:card.trailingAnchor constant:-16.0],
+ [message.topAnchor constraintEqualToAnchor:title.bottomAnchor constant:10.0],
+ [button.leadingAnchor constraintEqualToAnchor:card.leadingAnchor constant:16.0],
+ [button.trailingAnchor constraintEqualToAnchor:card.trailingAnchor constant:-16.0],
+ [button.topAnchor constraintEqualToAnchor:message.bottomAnchor constant:8.0],
+ [button.bottomAnchor constraintEqualToAnchor:card.bottomAnchor constant:-6.0],
+ [button.heightAnchor constraintGreaterThanOrEqualToConstant:44.0]
+ ]];
+ self.experimentalWarningHeader = header;
+ self.tableView.tableHeaderView = header;
+}
+
+- (void)viewDidLayoutSubviews
+{
+ [super viewDidLayoutSubviews];
+ UIView *header = self.experimentalWarningHeader;
+ if (!header)
+ return;
+ CGFloat width = CGRectGetWidth(self.tableView.bounds);
+ if (width <= 0)
+ return;
+ header.bounds = CGRectMake(0, 0, width, CGRectGetHeight(header.bounds));
+ CGFloat height = [header systemLayoutSizeFittingSize:
+ CGSizeMake(width, UILayoutFittingCompressedSize.height)
+ withHorizontalFittingPriority:UILayoutPriorityRequired
+ verticalFittingPriority:UILayoutPriorityFittingSizeLevel].height;
+ if (fabs(CGRectGetHeight(header.frame) - height) > 0.5) {
+ header.frame = CGRectMake(0, 0, width, height);
+ self.tableView.tableHeaderView = header;
+ }
+}
+
+- (void)chooseDifferentVersion:(id)sender
+{
+ (void)sender;
+ if (self.navigationController.viewControllers.firstObject != self) {
+ [self.navigationController popViewControllerAnimated:YES];
+ return;
+ }
+ void (^handler)(void) = [[self.chooseDifferentVersionHandler copy]
+ autorelease];
+ [self dismissViewControllerAnimated:YES completion:handler];
+}
+
+- (void)viewDidAppear:(BOOL)animated
+{
+ [super viewDidAppear:animated];
+ // The configuration can either be the sheet root or be pushed from the
+ // creation flow. In both cases it owns the unsaved-change decision.
+ self.navigationController.presentationController.delegate = self;
+}
+
+- (BOOL)hasUnsavedChanges
+{
+ return ![self.options isEqualToDictionary:self.originalOptions] ||
+ ![(self.vmName ?: @"") isEqualToString:(self.originalVMName ?: @"")];
+}
+
+- (void)confirmDiscardChanges
+{
+ UIAlertController *alert = [UIAlertController
+ alertControllerWithTitle:VZL(@"Discard Changes?")
+ message:VZL(@"Your changes to this Virtual Mac will not be saved.")
+ preferredStyle:UIAlertControllerStyleAlert];
+ [alert addAction:[UIAlertAction actionWithTitle:VZL(@"Keep Editing")
+ style:UIAlertActionStyleCancel handler:nil]];
+ [alert addAction:[UIAlertAction actionWithTitle:VZL(@"Discard Changes")
+ style:UIAlertActionStyleDestructive handler:^(UIAlertAction *action) {
+ (void)action;
+ self.navigationController.presentationController.delegate = nil;
+ [self dismissViewControllerAnimated:YES completion:nil];
+ }]];
+ [self presentViewController:alert animated:YES completion:nil];
+}
+
+- (BOOL)presentationControllerShouldDismiss:(UIPresentationController *)controller
+{
+ (void)controller;
+ return ![self hasUnsavedChanges];
+}
+
+- (void)presentationControllerDidAttemptToDismiss:
+ (UIPresentationController *)controller
+{
+ (void)controller;
+ [self confirmDiscardChanges];
}
- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView
{
- return self.bundlePath ? 6 : 5;
+ return 6;
}
- (NSInteger)tableView:(UITableView *)tableView
@@ -558,9 +803,10 @@ void VZRemovePaths(NSArray<NSString *> *paths)
{
if (section == 5)
return nil;
- return @[@"Resources",
- self.bundlePath ? @"Boot and Network" : @"Network",
- @"Input", @"Display", @"Audio and Acceleration"][section];
+ return @[VZL(@"Resources"),
+ self.bundlePath ? VZL(@"Boot and Network") : VZL(@"Network"),
+ VZL(@"Input"), VZL(@"Display"),
+ VZL(@"Audio and Acceleration")][section];
}
- (NSString *)tableView:(UITableView *)tableView
@@ -568,7 +814,7 @@ void VZRemovePaths(NSArray<NSString *> *paths)
{
(void)tableView;
if (self.running && section == 0)
- return @"Configuration changes take effect after the virtual Mac is shut down and started again. Renaming and deletion are unavailable while it is running.";
+ return VZL(@"Configuration changes take effect after the Virtual Mac is shut down and started again. Renaming and deletion are unavailable while it is running.");
return nil;
}
@@ -594,7 +840,7 @@ void VZRemovePaths(NSArray<NSString *> *paths)
if (indexPath.section == 0) {
NSInteger resourceRows = self.bundlePath ? 2 : 3;
if (indexPath.row == 0) {
- cell.textLabel.text = @"Name";
+ cell.textLabel.text = VZL(@"Name");
cell.detailTextLabel.text = self.vmName;
if (self.running) {
cell.accessoryType = UITableViewCellAccessoryNone;
@@ -605,7 +851,7 @@ void VZRemovePaths(NSArray<NSString *> *paths)
}
NSInteger resourceIndex = indexPath.row - 1;
if (resourceIndex == resourceRows) {
- cell.textLabel.text = @"Add Shared Folder";
+ cell.textLabel.text = VZL(@"Add Shared Folder");
cell.detailTextLabel.text = nil;
return cell;
}
@@ -614,11 +860,11 @@ void VZRemovePaths(NSArray<NSString *> *paths)
[resourceIndex - resourceRows - 1];
cell.textLabel.text = [share[@"Path"] lastPathComponent];
cell.detailTextLabel.text = [share[@"ReadOnly"] boolValue]
- ? @"Read Only" : @"Read & Write";
+ ? VZL(@"Read Only") : VZL(@"Read & Write");
return cell;
}
- NSArray *names = self.bundlePath ? @[@"Processors", @"Memory"]
- : @[@"Processors", @"Memory", @"Storage"];
+ NSArray *names = self.bundlePath ? @[VZL(@"Processors"), VZL(@"Memory")]
+ : @[VZL(@"Processors"), VZL(@"Memory"), VZL(@"Storage")];
NSString *key = @[VZCPUCountKey, VZMemorySizeKey,
VZStorageSizeKey][resourceIndex];
cell.textLabel.text = names[resourceIndex];
@@ -628,7 +874,7 @@ void VZRemovePaths(NSArray<NSString *> *paths)
: [NSString stringWithFormat:@"%llu GB", value >> 30];
} else if (indexPath.section == 1 && self.bundlePath &&
indexPath.row == 0) {
- cell.textLabel.text = @"Start in Recovery";
+ cell.textLabel.text = VZL(@"Start in Recovery");
UISwitch *toggle = [[[UISwitch alloc] init] autorelease];
toggle.on = [self.options[VZBootRecoveryKey] boolValue];
[toggle addTarget:self action:@selector(recoveryChanged:)
@@ -638,43 +884,47 @@ void VZRemovePaths(NSArray<NSString *> *paths)
cell.detailTextLabel.text = nil;
} else if (indexPath.section == 1 &&
indexPath.row == (self.bundlePath ? 1 : 0)) {
- cell.textLabel.text = @"Network";
- NSString *mode = self.options[VZNetworkModeKey];
+ cell.textLabel.text = VZL(@"Network");
+ NSString *mode = VZEffectiveNetworkMode(self.options);
NSString *interface = self.options[VZBridgeInterfaceKey];
cell.detailTextLabel.text = [mode isEqualToString:@"Bridge"]
- ? [NSString stringWithFormat:@"Bridge via %@",
+ ? [NSString stringWithFormat:VZL(@"Bridge via %@"),
VZInterfaceDisplayName(interface)]
: [mode isEqualToString:@"NAT"]
- ? [NSString stringWithFormat:@"Shared via %@",
- VZActiveInternetDisplayName()] : mode;
+ ? [NSString stringWithFormat:VZL(@"Shared via %@"),
+ VZActiveInternetDisplayName()]
+ : [mode isEqualToString:@"Disabled"] ? VZL(@"Disabled")
+ : mode;
} else if (indexPath.section == 1) {
- cell.textLabel.text = @"MAC Address";
+ cell.textLabel.text = VZL(@"MAC Address");
cell.detailTextLabel.text = self.options[VZMACAddressKey];
} else if (indexPath.section == 2 && indexPath.row == 0) {
- cell.textLabel.text = @"Keyboard";
+ cell.textLabel.text = VZL(@"Keyboard");
cell.detailTextLabel.text =
[self.options[VZKeyboardDeviceKey] isEqualToString:@"USBKeyboard"]
- ? @"USB Keyboard" : @"Mac Keyboard";
+ ? VZL(@"USB Keyboard") : VZL(@"Mac Keyboard");
} else if (indexPath.section == 2) {
- cell.textLabel.text = @"Pointing Device";
+ cell.textLabel.text = VZL(@"Pointing Device");
cell.detailTextLabel.text =
[self.options[VZPointingDeviceKey] isEqualToString:@"USBMouse"]
- ? @"USB Mouse" : @"Mac Trackpad";
+ ? VZL(@"USB Mouse") : VZL(@"Mac Trackpad");
} else if (indexPath.section == 3 && indexPath.row == 0) {
- cell.textLabel.text = @"Resolution";
- cell.detailTextLabel.text =
- [self.options[VZDisplayModeKey] isEqualToString:@"Custom"]
- ? @"Custom" : @"Native Retina";
+ cell.textLabel.text = VZL(@"Resolution");
+ NSString *displayMode = self.options[VZDisplayModeKey];
+ cell.detailTextLabel.text = [displayMode isEqualToString:@"Custom"]
+ ? VZL(@"Custom")
+ : [displayMode isEqualToString:@"PortraitNativeRetina"]
+ ? VZL(@"Portrait Full Screen") : VZL(@"Full Screen");
} else if (indexPath.section == 3) {
- NSArray *names = @[@"Width", @"Height", @"Pixels Per Inch"];
+ NSArray *names = @[VZL(@"Width"), VZL(@"Height"), VZL(@"Pixels Per Inch")];
NSArray *keys = @[VZDisplayWidthKey, VZDisplayHeightKey,
VZDisplayPPIKey];
cell.textLabel.text = names[indexPath.row - 1];
cell.detailTextLabel.text = [self.options[keys[indexPath.row - 1]]
stringValue];
} else if (indexPath.section == 4) {
- NSArray *names = @[@"Audio Output", @"Microphone Input",
- @"VideoToolbox Acceleration"];
+ NSArray *names = @[VZL(@"Audio Output"), VZL(@"Microphone Input"),
+ VZL(@"Video Encoding and Decoding Acceleration")];
NSArray *keys = @[VZAudioOutputEnabledKey, VZAudioInputEnabledKey,
VZVideoToolboxEnabledKey];
cell.textLabel.text = names[indexPath.row];
@@ -686,8 +936,13 @@ void VZRemovePaths(NSArray<NSString *> *paths)
cell.accessoryView = toggle;
cell.accessoryType = UITableViewCellAccessoryNone;
cell.detailTextLabel.text = nil;
+ } else if (!self.bundlePath) {
+ cell.textLabel.text = VZL(@"Continue");
+ cell.textLabel.textAlignment = NSTextAlignmentCenter;
+ cell.textLabel.textColor = UIColor.systemBlueColor;
+ cell.accessoryType = UITableViewCellAccessoryNone;
} else {
- cell.textLabel.text = @"Delete Virtual Mac";
+ cell.textLabel.text = VZL(@"Delete Virtual Mac");
cell.textLabel.textAlignment = NSTextAlignmentCenter;
cell.textLabel.textColor = self.running
? UIColor.secondaryLabelColor : UIColor.systemRedColor;
@@ -713,7 +968,7 @@ void VZRemovePaths(NSArray<NSString *> *paths)
[self.tableView reloadData];
}]];
}
- [sheet addAction:[UIAlertAction actionWithTitle:@"Cancel"
+ [sheet addAction:[UIAlertAction actionWithTitle:VZL(@"Cancel")
style:UIAlertActionStyleCancel handler:nil]];
sheet.popoverPresentationController.sourceView = cell;
[self presentViewController:sheet animated:YES completion:nil];
@@ -722,17 +977,17 @@ void VZRemovePaths(NSArray<NSString *> *paths)
- (void)editMACAddress
{
UIAlertController *alert = [UIAlertController
- alertControllerWithTitle:@"MAC Address"
- message:@"Enter six hexadecimal octets separated by colons."
+ alertControllerWithTitle:VZL(@"MAC Address")
+ message:VZL(@"Enter six hexadecimal octets separated by colons.")
preferredStyle:UIAlertControllerStyleAlert];
[alert addTextFieldWithConfigurationHandler:^(UITextField *field) {
field.text = self.options[VZMACAddressKey];
field.autocapitalizationType = UITextAutocapitalizationTypeNone;
field.autocorrectionType = UITextAutocorrectionTypeNo;
}];
- [alert addAction:[UIAlertAction actionWithTitle:@"Cancel"
+ [alert addAction:[UIAlertAction actionWithTitle:VZL(@"Cancel")
style:UIAlertActionStyleCancel handler:nil]];
- [alert addAction:[UIAlertAction actionWithTitle:@"Save"
+ [alert addAction:[UIAlertAction actionWithTitle:VZL(@"OK")
style:UIAlertActionStyleDefault handler:^(UIAlertAction *action) {
(void)action;
NSString *value = alert.textFields.firstObject.text.lowercaseString;
@@ -752,11 +1007,11 @@ void VZRemovePaths(NSArray<NSString *> *paths)
bytes:(BOOL)bytes
{
NSString *range = maximum
- ? [NSString stringWithFormat:@"Allowed: %llu–%llu%@",
+ ? [NSString stringWithFormat:VZL(@"Allowed: %llu–%llu%@"),
bytes ? minimum >> 30 : minimum,
bytes ? maximum >> 30 : maximum, bytes ? @" GB" : @""]
: [NSString stringWithFormat:
- @"Minimum: %llu GB. The upper limit is determined by the filesystem.",
+ VZL(@"Minimum: %llu GB. The upper limit is determined by the filesystem."),
minimum >> 30];
UIAlertController *alert = [UIAlertController
alertControllerWithTitle:title
@@ -768,9 +1023,9 @@ void VZRemovePaths(NSArray<NSString *> *paths)
bytes ? value >> 30 : value];
field.keyboardType = UIKeyboardTypeNumberPad;
}];
- [alert addAction:[UIAlertAction actionWithTitle:@"Cancel"
+ [alert addAction:[UIAlertAction actionWithTitle:VZL(@"Cancel")
style:UIAlertActionStyleCancel handler:nil]];
- [alert addAction:[UIAlertAction actionWithTitle:@"Save"
+ [alert addAction:[UIAlertAction actionWithTitle:VZL(@"OK")
style:UIAlertActionStyleDefault handler:^(UIAlertAction *action) {
(void)action;
uint64_t entered = strtoull(
@@ -790,12 +1045,12 @@ void VZRemovePaths(NSArray<NSString *> *paths)
250 * NSEC_PER_MSEC),
dispatch_get_main_queue(), ^{
UIAlertController *warning = [UIAlertController
- alertControllerWithTitle:@"Disk Exceeds Available Storage"
+ alertControllerWithTitle:VZL(@"Disk Exceeds Available Storage")
message:[NSString stringWithFormat:
- @"Only about %llu GB is currently available. The disk image is sparse, but installation or later use can fail when storage fills up.",
+ VZL(@"Only about %llu GB is currently available. The disk image is sparse, but installation or later use can fail when storage fills up."),
available]
preferredStyle:UIAlertControllerStyleAlert];
- [warning addAction:[UIAlertAction actionWithTitle:@"OK"
+ [warning addAction:[UIAlertAction actionWithTitle:VZL(@"OK")
style:UIAlertActionStyleDefault handler:nil]];
[self presentViewController:warning animated:YES completion:nil];
});
@@ -813,17 +1068,17 @@ void VZRemovePaths(NSArray<NSString *> *paths)
if (self.running)
return;
UIAlertController *alert = [UIAlertController
- alertControllerWithTitle:@"Name"
- message:@"Choose a name for this virtual Mac."
+ alertControllerWithTitle:VZL(@"Name")
+ message:VZL(@"Choose a name for this Virtual Mac.")
preferredStyle:UIAlertControllerStyleAlert];
[alert addTextFieldWithConfigurationHandler:^(UITextField *field) {
field.text = self.vmName;
field.clearButtonMode = UITextFieldViewModeWhileEditing;
field.autocapitalizationType = UITextAutocapitalizationTypeWords;
}];
- [alert addAction:[UIAlertAction actionWithTitle:@"Cancel"
+ [alert addAction:[UIAlertAction actionWithTitle:VZL(@"Cancel")
style:UIAlertActionStyleCancel handler:nil]];
- [alert addAction:[UIAlertAction actionWithTitle:@"Save"
+ [alert addAction:[UIAlertAction actionWithTitle:VZL(@"OK")
style:UIAlertActionStyleDefault handler:^(UIAlertAction *action) {
(void)action;
self.vmName = VZUniqueVMNameExcludingPath(
@@ -840,16 +1095,16 @@ void VZRemovePaths(NSArray<NSString *> *paths)
{
if (!self.bundlePath.length || self.running)
return;
- NSString *name = self.vmName.length ? self.vmName : @"this virtual Mac";
+ NSString *name = self.vmName.length ? self.vmName : VZL(@"this Virtual Mac");
UIAlertController *alert = [UIAlertController
- alertControllerWithTitle:@"Delete Virtual Mac?"
+ alertControllerWithTitle:VZL(@"Delete Virtual Mac?")
message:[NSString stringWithFormat:
- @"“%@” and all files stored in it will be permanently deleted.",
+ VZL(@"“%@” and all files stored in it will be permanently deleted."),
name]
preferredStyle:UIAlertControllerStyleAlert];
- [alert addAction:[UIAlertAction actionWithTitle:@"Cancel"
+ [alert addAction:[UIAlertAction actionWithTitle:VZL(@"Cancel")
style:UIAlertActionStyleCancel handler:nil]];
- [alert addAction:[UIAlertAction actionWithTitle:@"Delete"
+ [alert addAction:[UIAlertAction actionWithTitle:VZL(@"Delete")
style:UIAlertActionStyleDestructive handler:^(UIAlertAction *action) {
(void)action;
NSString *path = [[self.bundlePath copy] autorelease];
@@ -897,7 +1152,7 @@ void VZRemovePaths(NSArray<NSString *> *paths)
preferredStyle:UIAlertControllerStyleActionSheet];
for (NSNumber *readOnly in @[@NO, @YES]) {
NSString *title = readOnly.boolValue
- ? @"Read Only" : @"Read & Write";
+ ? VZL(@"Read Only") : VZL(@"Read & Write");
[sheet addAction:[UIAlertAction actionWithTitle:title
style:UIAlertActionStyleDefault
handler:^(UIAlertAction *action) {
@@ -910,7 +1165,7 @@ void VZRemovePaths(NSArray<NSString *> *paths)
[self.tableView reloadData];
}]];
}
- [sheet addAction:[UIAlertAction actionWithTitle:@"Remove"
+ [sheet addAction:[UIAlertAction actionWithTitle:VZL(@"Remove")
style:UIAlertActionStyleDestructive
handler:^(UIAlertAction *action) {
(void)action;
@@ -920,7 +1175,7 @@ void VZRemovePaths(NSArray<NSString *> *paths)
self.options[VZSharedDirectoriesKey] = shares;
[self.tableView reloadData];
}]];
- [sheet addAction:[UIAlertAction actionWithTitle:@"Cancel"
+ [sheet addAction:[UIAlertAction actionWithTitle:VZL(@"Cancel")
style:UIAlertActionStyleCancel handler:nil]];
sheet.popoverPresentationController.sourceView =
[tableView cellForRowAtIndexPath:indexPath];
@@ -928,24 +1183,24 @@ void VZRemovePaths(NSArray<NSString *> *paths)
} else if (resourceIndex == 0) {
NSUInteger maxCPU = MAX((NSUInteger)2,
MIN((NSUInteger)8, NSProcessInfo.processInfo.activeProcessorCount));
- [self editNumberForKey:VZCPUCountKey title:@"Processors"
+ [self editNumberForKey:VZCPUCountKey title:VZL(@"Processors")
min:2 max:maxCPU bytes:NO];
} else if (resourceIndex == 1) {
- [self editNumberForKey:VZMemorySizeKey title:@"Memory"
+ [self editNumberForKey:VZMemorySizeKey title:VZL(@"Memory")
min:GiB(2) max:VZDeviceMemoryLimit() bytes:YES];
} else if (resourceIndex == 2) {
- [self editNumberForKey:VZStorageSizeKey title:@"Storage"
+ [self editNumberForKey:VZStorageSizeKey title:VZL(@"Storage")
min:GiB(32) max:0 bytes:YES];
}
} else if (indexPath.section == 1 &&
indexPath.row == (self.bundlePath ? 1 : 0)) {
UIAlertController *sheet = [UIAlertController
- alertControllerWithTitle:@"Network Attachment" message:nil
+ alertControllerWithTitle:VZL(@"Network Attachment") message:nil
preferredStyle:UIAlertControllerStyleActionSheet];
for (NSString *mode in @[@"NAT", @"Disabled"]) {
NSString *title = [mode isEqualToString:@"NAT"]
- ? [NSString stringWithFormat:@"NAT: Share %@",
- VZActiveInternetDisplayName()] : mode;
+ ? [NSString stringWithFormat:VZL(@"NAT: Share %@"),
+ VZActiveInternetDisplayName()] : VZL(@"Disabled");
[sheet addAction:[UIAlertAction actionWithTitle:title
style:UIAlertActionStyleDefault handler:^(UIAlertAction *action) {
(void)action;
@@ -954,7 +1209,7 @@ void VZRemovePaths(NSArray<NSString *> *paths)
}]];
}
for (NSString *interface in VZBridgeInterfaceNames()) {
- NSString *title = [NSString stringWithFormat:@"Bridge: %@",
+ NSString *title = [NSString stringWithFormat:VZL(@"Bridge: %@"),
VZInterfaceDisplayName(interface)];
[sheet addAction:[UIAlertAction actionWithTitle:title
style:UIAlertActionStyleDefault handler:^(UIAlertAction *action) {
@@ -964,7 +1219,7 @@ void VZRemovePaths(NSArray<NSString *> *paths)
[self.tableView reloadData];
}]];
}
- [sheet addAction:[UIAlertAction actionWithTitle:@"Cancel"
+ [sheet addAction:[UIAlertAction actionWithTitle:VZL(@"Cancel")
style:UIAlertActionStyleCancel handler:nil]];
sheet.popoverPresentationController.sourceView =
[tableView cellForRowAtIndexPath:indexPath];
@@ -973,39 +1228,44 @@ void VZRemovePaths(NSArray<NSString *> *paths)
indexPath.row == (self.bundlePath ? 2 : 1)) {
[self editMACAddress];
} else if (indexPath.section == 2 && indexPath.row == 0) {
- [self chooseTitle:@"Keyboard" message:
- @"Use USB Keyboard for macOS Monterey. Newer guests support the Mac keyboard device."
+ [self chooseTitle:VZL(@"Keyboard") message:
+ VZL(@"Use USB Keyboard for macOS Monterey. Newer guests support the Mac keyboard device.")
choices:@[
- @{@"title": @"Mac Keyboard", @"value": @"MacKeyboard"},
- @{@"title": @"USB Keyboard", @"value": @"USBKeyboard"},
+ @{@"title": VZL(@"Mac Keyboard"), @"value": @"MacKeyboard"},
+ @{@"title": VZL(@"USB Keyboard"), @"value": @"USBKeyboard"},
] key:VZKeyboardDeviceKey
fromCell:[tableView cellForRowAtIndexPath:indexPath]];
} else if (indexPath.section == 2 && indexPath.row == 1) {
- [self chooseTitle:@"Pointing Device" message:
- @"Use USB Mouse for macOS Monterey. Newer guests support the Mac trackpad device."
+ [self chooseTitle:VZL(@"Pointing Device") message:
+ VZL(@"Use USB Mouse for macOS Monterey. Newer guests support the Mac trackpad device.")
choices:@[
- @{@"title": @"Mac Trackpad", @"value": @"MacTrackpad"},
- @{@"title": @"USB Mouse", @"value": @"USBMouse"},
+ @{@"title": VZL(@"Mac Trackpad"), @"value": @"MacTrackpad"},
+ @{@"title": VZL(@"USB Mouse"), @"value": @"USBMouse"},
] key:VZPointingDeviceKey
fromCell:[tableView cellForRowAtIndexPath:indexPath]];
} else if (indexPath.section == 3 && indexPath.row == 0) {
- [self chooseTitle:@"Display Resolution" message:nil choices:@[
- @{@"title": @"Native Retina", @"value": @"NativeRetina"},
- @{@"title": @"Custom", @"value": @"Custom"},
+ [self chooseTitle:VZL(@"Display Resolution") message:nil choices:@[
+ @{@"title": VZL(@"Full Screen"), @"value": @"NativeRetina"},
+ @{@"title": VZL(@"Portrait Full Screen"),
+ @"value": @"PortraitNativeRetina"},
+ @{@"title": VZL(@"Custom"), @"value": @"Custom"},
] key:VZDisplayModeKey
fromCell:[tableView cellForRowAtIndexPath:indexPath]];
} else if (indexPath.section == 3 && indexPath.row > 0) {
NSArray *keys = @[VZDisplayWidthKey, VZDisplayHeightKey,
VZDisplayPPIKey];
- NSArray *titles = @[@"Display Width", @"Display Height",
- @"Pixels Per Inch"];
+ NSArray *titles = @[VZL(@"Display Width"), VZL(@"Display Height"),
+ VZL(@"Pixels Per Inch")];
uint64_t minimum = indexPath.row == 3 ? 72 : 800;
uint64_t maximum = indexPath.row == 3 ? 600 : 7680;
[self editNumberForKey:keys[indexPath.row - 1]
title:titles[indexPath.row - 1]
min:minimum max:maximum bytes:NO];
} else if (indexPath.section == 5) {
- [self confirmDeleteVirtualMac];
+ if (self.bundlePath)
+ [self confirmDeleteVirtualMac];
+ else
+ [self done:nil];
}
}
@@ -1039,6 +1299,9 @@ void VZRemovePaths(NSArray<NSString *> *paths)
- (void)done:(id)sender
{
(void)sender;
+ if (!VZHostSupportsBridgedNetworking() &&
+ [self.options[VZNetworkModeKey] isEqualToString:@"Bridge"])
+ self.options[VZNetworkModeKey] = @"NAT";
if (self.bundlePath) {
NSError *error = nil;
NSString *newName = VZUniqueVMNameExcludingPath(
@@ -1052,11 +1315,12 @@ void VZRemovePaths(NSArray<NSString *> *paths)
if (![NSFileManager.defaultManager moveItemAtPath:self.bundlePath
toPath:destination error:&error]) {
UIAlertController *alert = [UIAlertController
- alertControllerWithTitle:@"Could Not Rename Virtual Mac"
+ alertControllerWithTitle:VZL(@"Could Not Rename Virtual Mac")
message:error.localizedDescription
preferredStyle:UIAlertControllerStyleAlert];
- [alert addAction:[UIAlertAction actionWithTitle:@"OK"
+ [alert addAction:[UIAlertAction actionWithTitle:VZL(@"OK")
style:UIAlertActionStyleDefault handler:nil]];
+ VZAddFailureSupportActions(alert);
[self presentViewController:alert animated:YES completion:nil];
return;
}
@@ -1070,11 +1334,12 @@ void VZRemovePaths(NSArray<NSString *> *paths)
}
if (!VZWriteVMOptions(self.options, self.bundlePath, &error)) {
UIAlertController *alert = [UIAlertController
- alertControllerWithTitle:@"Could Not Save"
+ alertControllerWithTitle:VZL(@"Could Not Save")
message:error.localizedDescription
preferredStyle:UIAlertControllerStyleAlert];
- [alert addAction:[UIAlertAction actionWithTitle:@"OK"
+ [alert addAction:[UIAlertAction actionWithTitle:VZL(@"OK")
style:UIAlertActionStyleDefault handler:nil]];
+ VZAddFailureSupportActions(alert);
[self presentViewController:alert animated:YES completion:nil];
return;
}
@@ -1093,7 +1358,11 @@ void VZRemovePaths(NSArray<NSString *> *paths)
- (void)cancel:(id)sender
{
(void)sender;
- [self dismissViewControllerAnimated:YES completion:nil];
+ if (![self hasUnsavedChanges]) {
+ [self dismissViewControllerAnimated:YES completion:nil];
+ return;
+ }
+ [self confirmDiscardChanges];
}
- (void)dealloc
@@ -1101,50 +1370,98 @@ void VZRemovePaths(NSArray<NSString *> *paths)
[_bundlePath release];
[_vmName release];
[_options release];
+ [_originalOptions release];
+ [_originalVMName release];
[_completion release];
[_deletion release];
+ [_experimentalMacOSName release];
+ [_chooseDifferentVersionHandler release];
+ [_experimentalWarningHeader release];
[super dealloc];
}
@end
-@interface VZLibraryControlsView : UICollectionReusableView
+static const CGFloat VZLibraryHorizontalInset = 24.0;
+
+@interface VZLibraryControlsView : UIView
@property(nonatomic, retain) UISearchBar *searchBar;
@property(nonatomic, retain) UISegmentedControl *layoutControl;
+@property(nonatomic, retain) NSLayoutConstraint *searchLeadingConstraint;
+@property(nonatomic, assign) BOOL alignmentPassScheduled;
@end
@implementation VZLibraryControlsView
+- (void)scheduleAlignmentPass
+{
+ if (!self.window || self.alignmentPassScheduled)
+ return;
+ self.alignmentPassScheduled = YES;
+ dispatch_async(dispatch_get_main_queue(), ^{
+ self.alignmentPassScheduled = NO;
+ [self setNeedsLayout];
+ });
+}
+
+- (void)didMoveToWindow
+{
+ [super didMoveToWindow];
+ // Perform one settled-frame pass after the controls join the window.
+ [self scheduleAlignmentPass];
+}
+
- (instancetype)initWithFrame:(CGRect)frame
{
if ((self = [super initWithFrame:frame])) {
self.searchBar = [[[UISearchBar alloc] initWithFrame:CGRectZero]
autorelease];
self.searchBar.translatesAutoresizingMaskIntoConstraints = NO;
- self.searchBar.placeholder = @"Search Virtual Mac";
+ self.searchBar.placeholder = VZL(@"Search Virtual Mac");
self.searchBar.searchBarStyle = UISearchBarStyleMinimal;
[self addSubview:self.searchBar];
self.layoutControl = [[[UISegmentedControl alloc] initWithItems:@[
[UIImage systemImageNamed:@"square.grid.2x2"],
[UIImage systemImageNamed:@"list.bullet"]]] autorelease];
self.layoutControl.translatesAutoresizingMaskIntoConstraints = NO;
- self.layoutControl.accessibilityLabel = @"Library Appearance";
+ self.layoutControl.accessibilityLabel = VZL(@"Library Appearance");
[self addSubview:self.layoutControl];
+ self.searchLeadingConstraint = [self.searchBar.leadingAnchor
+ constraintEqualToAnchor:self.leadingAnchor
+ constant:VZLibraryHorizontalInset];
[NSLayoutConstraint activateConstraints:@[
- [self.searchBar.leadingAnchor constraintEqualToAnchor:self.leadingAnchor constant:24],
+ self.searchLeadingConstraint,
[self.searchBar.topAnchor constraintEqualToAnchor:self.topAnchor constant:4],
[self.searchBar.bottomAnchor constraintEqualToAnchor:self.bottomAnchor constant:-4],
[self.layoutControl.leadingAnchor constraintEqualToAnchor:
self.searchBar.trailingAnchor constant:12],
- [self.layoutControl.trailingAnchor constraintEqualToAnchor:self.trailingAnchor constant:-24],
+ [self.layoutControl.trailingAnchor constraintEqualToAnchor:self.trailingAnchor
+ constant:-VZLibraryHorizontalInset],
[self.layoutControl.centerYAnchor constraintEqualToAnchor:self.centerYAnchor],
[self.layoutControl.widthAnchor constraintEqualToConstant:112],
]];
}
return self;
}
+- (void)layoutSubviews
+{
+ [super layoutSubviews];
+ UITextField *field = self.searchBar.searchTextField;
+ CGRect fieldFrame = [field convertRect:field.bounds toView:self];
+ if (fieldFrame.size.width > 0) {
+ // Align the rendered field, rather than UISearchBar's outer bounds,
+ // with the first library card.
+ CGFloat targetX = VZLibraryHorizontalInset;
+ CGFloat adjustment = targetX - CGRectGetMinX(fieldFrame);
+ if (ABS(adjustment) > 0.5) {
+ self.searchLeadingConstraint.constant += adjustment;
+ [self scheduleAlignmentPass];
+ }
+ }
+}
- (void)dealloc
{
[_searchBar release];
[_layoutControl release];
+ [_searchLeadingConstraint release];
[super dealloc];
}
@end
@@ -1156,16 +1473,21 @@ void VZRemovePaths(NSArray<NSString *> *paths)
@property(nonatomic, retain) NSArray *filteredMachines;
@property(nonatomic, copy) NSString *searchText;
@property(nonatomic, retain) NSURL *pendingIPSWURL;
+@property(nonatomic, retain) VZLibraryControlsView *controlsView;
@property(nonatomic, retain) UICollectionView *collectionView;
@property(nonatomic, retain) UIView *emptyView;
+@property(nonatomic, retain) UIView *noResultsView;
+@property(nonatomic, retain) NSLayoutConstraint *noResultsBottomConstraint;
@property(nonatomic, assign) CGFloat lastCollectionWidth;
@property(nonatomic, retain) NSURLSessionDownloadTask *downloadTask;
@property(nonatomic, retain) NSTimer *downloadTimer;
@property(nonatomic, retain) VZProgressViewController *downloadController;
+@property(nonatomic, retain) VZProgressViewController *restoreCopyController;
@property(nonatomic, copy) NSString *downloadDestination;
@property(nonatomic, copy) NSString *downloadMarkerPath;
@property(nonatomic, assign) int64_t downloadLastBytes;
@property(nonatomic, retain) NSDate *downloadLastSample;
+@property(nonatomic, retain) NSDate *downloadStartedAt;
@property(nonatomic, assign) BOOL downloadCancelled;
@property(nonatomic, assign) BOOL didCheckInterruptedDownloads;
@end
@@ -1202,7 +1524,7 @@ void VZRemovePaths(NSArray<NSString *> *paths)
{
self = [super init];
if (self) {
- self.title = @"Virtual Mac";
+ self.title = VZL(@"Virtual Mac");
self.navigationItem.leftBarButtonItem = [[[UIBarButtonItem alloc]
initWithImage:[UIImage systemImageNamed:@"gearshape"]
style:UIBarButtonItemStylePlain target:self
@@ -1219,51 +1541,95 @@ void VZRemovePaths(NSArray<NSString *> *paths)
[super viewDidLoad];
self.view.backgroundColor = UIColor.systemBackgroundColor;
UICollectionViewFlowLayout *layout = [[[UICollectionViewFlowLayout alloc] init] autorelease];
- layout.sectionInset = UIEdgeInsetsMake(22, 24, 30, 24);
+ layout.sectionInset = UIEdgeInsetsMake(22, VZLibraryHorizontalInset,
+ 30, VZLibraryHorizontalInset);
layout.minimumInteritemSpacing = 18;
layout.minimumLineSpacing = 18;
self.collectionView = [[[UICollectionView alloc] initWithFrame:self.view.bounds
collectionViewLayout:layout] autorelease];
- self.collectionView.autoresizingMask = UIViewAutoresizingFlexibleWidth |
- UIViewAutoresizingFlexibleHeight;
+ self.collectionView.translatesAutoresizingMaskIntoConstraints = NO;
self.collectionView.backgroundColor = UIColor.systemBackgroundColor;
self.collectionView.dataSource = self;
self.collectionView.delegate = self;
self.collectionView.alwaysBounceVertical = YES;
[self.collectionView registerClass:UICollectionViewCell.class
forCellWithReuseIdentifier:@"item"];
- [self.collectionView registerClass:VZLibraryControlsView.class
- forSupplementaryViewOfKind:UICollectionElementKindSectionHeader
- withReuseIdentifier:@"controls"];
UIRefreshControl *refresh = [[[UIRefreshControl alloc] init] autorelease];
[refresh addTarget:self action:@selector(reloadLibrary)
forControlEvents:UIControlEventValueChanged];
self.collectionView.refreshControl = refresh;
[self.view addSubview:self.collectionView];
+ self.controlsView = [[[VZLibraryControlsView alloc] initWithFrame:CGRectZero]
+ autorelease];
+ self.controlsView.translatesAutoresizingMaskIntoConstraints = NO;
+ self.controlsView.searchBar.delegate = self;
+ self.controlsView.searchBar.text = self.searchText;
+ self.controlsView.layoutControl.selectedSegmentIndex =
+ [[VZAppSettings.sharedSettings stringForKey:VZLibraryLayoutKey]
+ isEqualToString:@"list"] ? 1 : 0;
+ [self.controlsView.layoutControl addTarget:self
+ action:@selector(libraryLayoutChanged:)
+ forControlEvents:UIControlEventValueChanged];
+ [self.view addSubview:self.controlsView];
+ [NSLayoutConstraint activateConstraints:@[
+ [self.controlsView.topAnchor constraintEqualToAnchor:
+ self.view.safeAreaLayoutGuide.topAnchor],
+ [self.controlsView.leadingAnchor constraintEqualToAnchor:self.view.leadingAnchor],
+ [self.controlsView.trailingAnchor constraintEqualToAnchor:self.view.trailingAnchor],
+ [self.controlsView.heightAnchor constraintEqualToConstant:58.0],
+ [self.collectionView.topAnchor constraintEqualToAnchor:
+ self.controlsView.bottomAnchor],
+ [self.collectionView.leadingAnchor constraintEqualToAnchor:self.view.leadingAnchor],
+ [self.collectionView.trailingAnchor constraintEqualToAnchor:self.view.trailingAnchor],
+ [self.collectionView.bottomAnchor constraintEqualToAnchor:self.view.bottomAnchor],
+ ]];
UIView *empty = [[[UIView alloc] initWithFrame:CGRectZero] autorelease];
empty.translatesAutoresizingMaskIntoConstraints = NO;
+ NSString *onboardingImagePath = [NSBundle.mainBundle
+ pathForResource:@"VirtualMacTemplate" ofType:@"png"];
+ UIImage *onboardingImage = [[UIImage
+ imageWithContentsOfFile:onboardingImagePath]
+ imageWithRenderingMode:UIImageRenderingModeAlwaysTemplate];
UIImageView *icon = [[[UIImageView alloc] initWithImage:
- [UIImage systemImageNamed:@"macbook.and.ipad"]] autorelease];
+ onboardingImage] autorelease];
icon.tintColor = UIColor.secondaryLabelColor;
icon.contentMode = UIViewContentModeScaleAspectFit;
icon.translatesAutoresizingMaskIntoConstraints = NO;
UILabel *title = [[[UILabel alloc] init] autorelease];
- title.text = @"No Virtual Mac";
- title.font = [UIFont preferredFontForTextStyle:UIFontTextStyleTitle2];
+ title.text = VZL(@"Welcome to Virtual Mac");
+ UIFont *preferredTitleFont =
+ [UIFont preferredFontForTextStyle:UIFontTextStyleTitle2];
+ UIFontDescriptor *boldTitleDescriptor = [preferredTitleFont.fontDescriptor
+ fontDescriptorWithSymbolicTraits:UIFontDescriptorTraitBold];
+ title.font = boldTitleDescriptor
+ ? [UIFont fontWithDescriptor:boldTitleDescriptor size:0]
+ : preferredTitleFont;
title.textAlignment = NSTextAlignmentCenter;
title.translatesAutoresizingMaskIntoConstraints = NO;
UILabel *message = [[[UILabel alloc] init] autorelease];
- message.text = @"Install macOS from an Apple restore image.";
+ message.text = VZL(@"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.");
message.font = [UIFont preferredFontForTextStyle:UIFontTextStyleBody];
message.textColor = UIColor.secondaryLabelColor;
message.textAlignment = NSTextAlignmentCenter;
message.numberOfLines = 0;
message.translatesAutoresizingMaskIntoConstraints = NO;
UIButton *create = [UIButton buttonWithType:UIButtonTypeSystem];
- [create setTitle:@"Create Virtual Mac" forState:UIControlStateNormal];
+ [create setTitle:VZL(@"Create Virtual Mac") forState:UIControlStateNormal];
create.titleLabel.font = [UIFont preferredFontForTextStyle:UIFontTextStyleHeadline];
- create.configuration = [UIButtonConfiguration filledButtonConfiguration];
+ if (@available(iOS 15.0, *)) {
+ UIButtonConfiguration *createConfiguration =
+ [UIButtonConfiguration filledButtonConfiguration];
+ createConfiguration.contentInsets =
+ NSDirectionalEdgeInsetsMake(10, 28, 10, 28);
+ create.configuration = createConfiguration;
+ } else {
+ create.backgroundColor = UIColor.systemBlueColor;
+ create.tintColor = UIColor.whiteColor;
+ create.layer.cornerRadius = 10;
+ create.layer.cornerCurve = kCACornerCurveContinuous;
+ create.contentEdgeInsets = UIEdgeInsetsMake(10, 28, 10, 28);
+ }
[create addTarget:self action:@selector(addVM:) forControlEvents:UIControlEventTouchUpInside];
create.translatesAutoresizingMaskIntoConstraints = NO;
for (UIView *view in @[icon, title, message, create]) [empty addSubview:view];
@@ -1274,9 +1640,9 @@ void VZRemovePaths(NSArray<NSString *> *paths)
[empty.widthAnchor constraintLessThanOrEqualToConstant:430],
[icon.topAnchor constraintEqualToAnchor:empty.topAnchor],
[icon.centerXAnchor constraintEqualToAnchor:empty.centerXAnchor],
- [icon.widthAnchor constraintEqualToConstant:76],
- [icon.heightAnchor constraintEqualToConstant:62],
- [title.topAnchor constraintEqualToAnchor:icon.bottomAnchor constant:18],
+ [icon.widthAnchor constraintEqualToConstant:160],
+ [icon.heightAnchor constraintEqualToConstant:118],
+ [title.topAnchor constraintEqualToAnchor:icon.bottomAnchor constant:10],
[title.leadingAnchor constraintEqualToAnchor:empty.leadingAnchor],
[title.trailingAnchor constraintEqualToAnchor:empty.trailingAnchor],
[message.topAnchor constraintEqualToAnchor:title.bottomAnchor constant:8],
@@ -1284,11 +1650,137 @@ void VZRemovePaths(NSArray<NSString *> *paths)
[message.trailingAnchor constraintEqualToAnchor:empty.trailingAnchor],
[create.topAnchor constraintEqualToAnchor:message.bottomAnchor constant:22],
[create.centerXAnchor constraintEqualToAnchor:empty.centerXAnchor],
+ [create.heightAnchor constraintGreaterThanOrEqualToConstant:44],
[create.bottomAnchor constraintEqualToAnchor:empty.bottomAnchor],
]];
self.emptyView = empty;
+
+ UIView *noResults = [[[UIView alloc] initWithFrame:CGRectZero] autorelease];
+ noResults.translatesAutoresizingMaskIntoConstraints = NO;
+ noResults.userInteractionEnabled = NO;
+ noResults.hidden = YES;
+ UIImageView *noResultsIcon = [[[UIImageView alloc] initWithImage:
+ [UIImage systemImageNamed:@"magnifyingglass"]] autorelease];
+ noResultsIcon.tintColor = UIColor.secondaryLabelColor;
+ noResultsIcon.translatesAutoresizingMaskIntoConstraints = NO;
+ UILabel *noResultsTitle = [[[UILabel alloc] init] autorelease];
+ noResultsTitle.text = VZL(@"No Results");
+ UIFont *preferredNoResultsFont =
+ [UIFont preferredFontForTextStyle:UIFontTextStyleTitle2];
+ UIFontDescriptor *boldNoResultsDescriptor =
+ [preferredNoResultsFont.fontDescriptor
+ fontDescriptorWithSymbolicTraits:UIFontDescriptorTraitBold];
+ noResultsTitle.font = boldNoResultsDescriptor
+ ? [UIFont fontWithDescriptor:boldNoResultsDescriptor size:0]
+ : preferredNoResultsFont;
+ noResultsTitle.textAlignment = NSTextAlignmentCenter;
+ noResultsTitle.translatesAutoresizingMaskIntoConstraints = NO;
+ UILabel *noResultsMessage = [[[UILabel alloc] init] autorelease];
+ noResultsMessage.text = VZL(@"No Virtual Macs match your search.");
+ noResultsMessage.font = [UIFont preferredFontForTextStyle:UIFontTextStyleBody];
+ noResultsMessage.textColor = UIColor.secondaryLabelColor;
+ noResultsMessage.textAlignment = NSTextAlignmentCenter;
+ noResultsMessage.translatesAutoresizingMaskIntoConstraints = NO;
+ [noResults addSubview:noResultsIcon];
+ [noResults addSubview:noResultsTitle];
+ [noResults addSubview:noResultsMessage];
+ [self.view addSubview:noResults];
+ self.noResultsBottomConstraint = [noResults.bottomAnchor
+ constraintEqualToAnchor:self.view.bottomAnchor];
+ [NSLayoutConstraint activateConstraints:@[
+ [noResults.topAnchor constraintEqualToAnchor:
+ self.controlsView.bottomAnchor],
+ [noResults.leadingAnchor constraintEqualToAnchor:self.view.leadingAnchor],
+ [noResults.trailingAnchor constraintEqualToAnchor:self.view.trailingAnchor],
+ self.noResultsBottomConstraint,
+ [noResultsIcon.centerXAnchor constraintEqualToAnchor:noResults.centerXAnchor],
+ [noResultsIcon.centerYAnchor constraintEqualToAnchor:noResults.centerYAnchor constant:-42],
+ [noResultsIcon.widthAnchor constraintEqualToConstant:44],
+ [noResultsIcon.heightAnchor constraintEqualToConstant:44],
+ [noResultsTitle.topAnchor constraintEqualToAnchor:noResultsIcon.bottomAnchor constant:14],
+ [noResultsTitle.leadingAnchor constraintEqualToAnchor:noResults.leadingAnchor constant:24],
+ [noResultsTitle.trailingAnchor constraintEqualToAnchor:noResults.trailingAnchor constant:-24],
+ [noResultsMessage.topAnchor constraintEqualToAnchor:noResultsTitle.bottomAnchor constant:6],
+ [noResultsMessage.leadingAnchor constraintEqualToAnchor:noResults.leadingAnchor constant:24],
+ [noResultsMessage.trailingAnchor constraintEqualToAnchor:noResults.trailingAnchor constant:-24],
+ ]];
+ self.noResultsView = noResults;
[NSNotificationCenter.defaultCenter addObserver:self
selector:@selector(settingsChanged:) name:VZSettingsDidChangeNotification object:nil];
+ [NSNotificationCenter.defaultCenter addObserver:self
+ selector:@selector(keyboardFrameChanged:)
+ name:UIKeyboardWillChangeFrameNotification object:nil];
+ [NSNotificationCenter.defaultCenter addObserver:self
+ selector:@selector(applicationDidBecomeActive:)
+ name:UIApplicationDidBecomeActiveNotification object:nil];
+}
+
+- (void)refreshCollectionLayout
+{
+ // UIKit may restore a scene snapshot while a form sheet covers this view
+ // without laying out the underlying collection at the intermediate size.
+ // Resolve our constraints first, then discard every cached item size. Do
+ // not reload data here: that would replace cells and can end an active
+ // search session.
+ [self.view setNeedsLayout];
+ [self.view layoutIfNeeded];
+ self.lastCollectionWidth = self.collectionView.bounds.size.width;
+ [self.controlsView setNeedsLayout];
+ [self.collectionView.collectionViewLayout invalidateLayout];
+ [self.collectionView setNeedsLayout];
+ [self.collectionView layoutIfNeeded];
+}
+
+- (void)applicationDidBecomeActive:(NSNotification *)notification
+{
+ (void)notification;
+ // The first active notification can arrive before UIKit has restored the
+ // final scene geometry. Run after that transaction has drained.
+ dispatch_async(dispatch_get_main_queue(), ^{
+ if (self.view.window)
+ [self refreshCollectionLayout];
+ });
+}
+
+- (void)viewWillTransitionToSize:(CGSize)size
+ withTransitionCoordinator:(id<UIViewControllerTransitionCoordinator>)coordinator
+{
+ [super viewWillTransitionToSize:size withTransitionCoordinator:coordinator];
+ [coordinator animateAlongsideTransition:nil completion:
+ ^(id<UIViewControllerTransitionCoordinatorContext> context) {
+ (void)context;
+ [self refreshCollectionLayout];
+ }];
+}
+
+- (void)keyboardFrameChanged:(NSNotification *)notification
+{
+ CGRect screenFrame = [notification.userInfo[UIKeyboardFrameEndUserInfoKey]
+ CGRectValue];
+ CGRect keyboardFrame = [self.view convertRect:screenFrame fromView:nil];
+ CGRect overlap = CGRectIntersection(self.view.bounds, keyboardFrame);
+ CGFloat coveredHeight = CGRectIsNull(overlap) ? 0.0 :
+ MAX(0.0, CGRectGetMaxY(self.view.bounds) - CGRectGetMinY(overlap));
+ CGFloat bottomConstant = -coveredHeight;
+ // Reloading the search header can produce duplicate keyboard-frame
+ // notifications even though the keyboard did not move. Reanimating the
+ // same constraint makes the No Results content appear to enter again on
+ // every character.
+ if (ABS(self.noResultsBottomConstraint.constant - bottomConstant) < 0.5)
+ return;
+ self.noResultsBottomConstraint.constant = bottomConstant;
+
+ NSTimeInterval duration =
+ [notification.userInfo[UIKeyboardAnimationDurationUserInfoKey]
+ doubleValue];
+ UIViewAnimationCurve curve =
+ [notification.userInfo[UIKeyboardAnimationCurveUserInfoKey]
+ integerValue];
+ UIViewAnimationOptions options = UIViewAnimationOptionBeginFromCurrentState |
+ ((UIViewAnimationOptions)curve << 16);
+ [UIView animateWithDuration:duration delay:0 options:options animations:^{
+ [self.view layoutIfNeeded];
+ } completion:nil];
}
- (void)viewDidLayoutSubviews
@@ -1307,25 +1799,32 @@ void VZRemovePaths(NSArray<NSString *> *paths)
[self reloadLibrary];
if (!self.didCheckInterruptedDownloads) {
self.didCheckInterruptedDownloads = YES;
- NSMutableArray *markers = [NSMutableArray array];
- for (NSString *name in [NSFileManager.defaultManager
- contentsOfDirectoryAtPath:VZRestoreImagesPath() error:nil])
- if ([name hasSuffix:@".download.plist"])
- [markers addObject:[VZRestoreImagesPath() stringByAppendingPathComponent:name]];
- if (markers.count) dispatch_after(dispatch_time(DISPATCH_TIME_NOW,
- 350 * NSEC_PER_MSEC), dispatch_get_main_queue(), ^{
- UIAlertController *alert = [UIAlertController
- alertControllerWithTitle:markers.count == 1 ? @"Incomplete Download" : @"Incomplete Downloads"
- message:@"A previous restore-image download did not finish. You can delete its marker and download it again."
- preferredStyle:UIAlertControllerStyleAlert];
- [alert addAction:[UIAlertAction actionWithTitle:@"Keep"
- style:UIAlertActionStyleCancel handler:nil]];
- [alert addAction:[UIAlertAction actionWithTitle:@"Delete"
- style:UIAlertActionStyleDestructive handler:^(UIAlertAction *action) {
- (void)action; VZRemovePaths(markers);
- }]];
- [self presentViewController:alert animated:YES completion:nil];
- });
+ NSFileManager *manager = NSFileManager.defaultManager;
+ NSString *restoreDirectory =
+ VZRestoreImagesPath().stringByStandardizingPath;
+ NSString *restorePrefix = [restoreDirectory stringByAppendingString:@"/"];
+ for (NSString *name in [manager
+ contentsOfDirectoryAtPath:restoreDirectory error:nil]) {
+ if (![name hasSuffix:@".download.plist"])
+ continue;
+ NSString *marker = [restoreDirectory
+ stringByAppendingPathComponent:name];
+ NSDictionary *metadata = [NSDictionary
+ dictionaryWithContentsOfFile:marker];
+ NSString *destination = [metadata[@"Destination"]
+ isKindOfClass:NSString.class]
+ ? [metadata[@"Destination"] stringByStandardizingPath] : nil;
+ unsigned long long expected =
+ [metadata[@"ExpectedSize"] unsignedLongLongValue];
+ unsigned long long actual = destination.length ? [[manager
+ attributesOfItemAtPath:destination error:nil][NSFileSize]
+ unsignedLongLongValue] : 0;
+ BOOL complete = expected > 0 && actual == expected;
+ NSMutableArray *cleanup = [NSMutableArray arrayWithObject:marker];
+ if (!complete && [destination hasPrefix:restorePrefix])
+ [cleanup addObject:destination];
+ VZRemovePaths(cleanup);
+ }
}
}
@@ -1335,8 +1834,10 @@ void VZRemovePaths(NSArray<NSString *> *paths)
[self applySearchFilter];
self.emptyView.hidden = self.machines.count > 0;
self.collectionView.hidden = self.machines.count == 0;
+ self.controlsView.hidden = self.machines.count == 0;
[self.collectionView.collectionViewLayout invalidateLayout];
[self.collectionView reloadData];
+ [self updateSearchBackground];
[self.collectionView.refreshControl endRefreshing];
}
@@ -1355,9 +1856,44 @@ void VZRemovePaths(NSArray<NSString *> *paths)
}]];
}
+- (BOOL)showsCreateCard
+{
+ return self.searchText.length == 0;
+}
+
+- (NSArray *)searchItemIdentifiers
+{
+ NSMutableArray *identifiers = [NSMutableArray array];
+ if ([self showsCreateCard])
+ [identifiers addObject:@"__VirtualMacCreateCard__"];
+ for (NSDictionary *machine in self.filteredMachines)
+ [identifiers addObject:machine[@"path"] ?: machine];
+ return identifiers;
+}
+
+- (NSUInteger)machineIndexForItem:(NSInteger)item
+{
+ NSInteger index = item - ([self showsCreateCard] ? 1 : 0);
+ return index >= 0 && index < (NSInteger)self.filteredMachines.count
+ ? (NSUInteger)index : NSNotFound;
+}
+
+- (void)updateSearchBackground
+{
+ BOOL visible = self.searchText.length && !self.filteredMachines.count;
+ if (self.noResultsView.hidden == !visible)
+ return;
+ self.noResultsView.hidden = !visible;
+ if (visible)
+ [self.view bringSubviewToFront:self.noResultsView];
+}
+
- (void)settingsChanged:(NSNotification *)notification
{
(void)notification;
+ self.controlsView.layoutControl.selectedSegmentIndex =
+ [[VZAppSettings.sharedSettings stringForKey:VZLibraryLayoutKey]
+ isEqualToString:@"list"] ? 1 : 0;
[self.collectionView.collectionViewLayout invalidateLayout];
[self.collectionView reloadData];
}
@@ -1366,9 +1902,48 @@ void VZRemovePaths(NSArray<NSString *> *paths)
textDidChange:(NSString *)searchText
{
(void)searchBar;
+ NSArray *oldIdentifiers = [self searchItemIdentifiers];
self.searchText = searchText;
[self applySearchFilter];
- [self.collectionView reloadData];
+ NSArray *newIdentifiers = [self searchItemIdentifiers];
+ NSSet *oldSet = [NSSet setWithArray:oldIdentifiers];
+ NSSet *newSet = [NSSet setWithArray:newIdentifiers];
+ NSMutableArray *deletions = [NSMutableArray array];
+ NSMutableArray *insertions = [NSMutableArray array];
+ [oldIdentifiers enumerateObjectsUsingBlock:
+ ^(id identifier, NSUInteger index, BOOL *stop) {
+ (void)stop;
+ if (![newSet containsObject:identifier])
+ [deletions addObject:[NSIndexPath indexPathForItem:index
+ inSection:0]];
+ }];
+ [newIdentifiers enumerateObjectsUsingBlock:
+ ^(id identifier, NSUInteger index, BOOL *stop) {
+ (void)stop;
+ if (![oldSet containsObject:identifier])
+ [insertions addObject:[NSIndexPath indexPathForItem:index
+ inSection:0]];
+ }];
+ [self updateSearchBackground];
+ if (!deletions.count && !insertions.count)
+ return;
+ // Filtering preserves machine order, so unchanged cells naturally shift
+ // around the small set of inserted/deleted identities. Search controls
+ // live outside the collection, so these updates cannot replace or resign
+ // the active text field.
+ [UIView performWithoutAnimation:^{
+ [self.collectionView performBatchUpdates:^{
+ if (deletions.count)
+ [self.collectionView deleteItemsAtIndexPaths:deletions];
+ if (insertions.count)
+ [self.collectionView insertItemsAtIndexPaths:insertions];
+ } completion:nil];
+ }];
+}
+
+- (void)searchBarSearchButtonClicked:(UISearchBar *)searchBar
+{
+ [searchBar resignFirstResponder];
}
- (void)libraryLayoutChanged:(UISegmentedControl *)sender
@@ -1378,38 +1953,10 @@ void VZRemovePaths(NSArray<NSString *> *paths)
forKey:VZLibraryLayoutKey];
}
-- (UICollectionReusableView *)collectionView:(UICollectionView *)collectionView
- viewForSupplementaryElementOfKind:(NSString *)kind
- atIndexPath:(NSIndexPath *)indexPath
-{
- (void)indexPath;
- VZLibraryControlsView *controls = (id)[collectionView
- dequeueReusableSupplementaryViewOfKind:kind
- withReuseIdentifier:@"controls" forIndexPath:indexPath];
- controls.searchBar.delegate = self;
- controls.searchBar.text = self.searchText;
- controls.layoutControl.selectedSegmentIndex =
- [[VZAppSettings.sharedSettings stringForKey:VZLibraryLayoutKey]
- isEqualToString:@"list"] ? 1 : 0;
- [controls.layoutControl removeTarget:nil action:NULL
- forControlEvents:UIControlEventValueChanged];
- [controls.layoutControl addTarget:self action:@selector(libraryLayoutChanged:)
- forControlEvents:UIControlEventValueChanged];
- return controls;
-}
-
-- (CGSize)collectionView:(UICollectionView *)collectionView
- layout:(UICollectionViewLayout *)layout
- referenceSizeForHeaderInSection:(NSInteger)section
-{
- (void)layout; (void)section;
- return CGSizeMake(collectionView.bounds.size.width, 58);
-}
-
- (NSInteger)collectionView:(UICollectionView *)collectionView numberOfItemsInSection:(NSInteger)section
{
(void)collectionView; (void)section;
- return self.filteredMachines.count + 1;
+ return self.filteredMachines.count + ([self showsCreateCard] ? 1 : 0);
}
- (NSString *)activeVMBundlePath
@@ -1437,13 +1984,13 @@ void VZRemovePaths(NSArray<NSString *> *paths)
return;
}
UIAlertController *alert = [UIAlertController
- alertControllerWithTitle:@"Another Virtual Mac Is Running"
- message:@"Switch to the running virtual Mac and shut it down before starting another one."
+ alertControllerWithTitle:VZL(@"Another Virtual Mac Is Running")
+ message:VZL(@"Switch to the running Virtual Mac and shut it down before starting another one.")
preferredStyle:UIAlertControllerStyleAlert];
- [alert addAction:[UIAlertAction actionWithTitle:@"OK"
+ [alert addAction:[UIAlertAction actionWithTitle:VZL(@"OK")
style:UIAlertActionStyleCancel handler:nil]];
[alert addAction:[UIAlertAction
- actionWithTitle:@"Switch to Running Virtual Mac"
+ actionWithTitle:VZL(@"Switch to Running Virtual Mac")
style:UIAlertActionStyleDefault handler:^(UIAlertAction *action) {
(void)action;
if ([self.delegate respondsToSelector:
@@ -1464,14 +2011,14 @@ void VZRemovePaths(NSArray<NSString *> *paths)
if ([self isMachineActive:machine])
return;
UIAlertController *alert = [UIAlertController
- alertControllerWithTitle:@"Delete Virtual Mac?"
+ alertControllerWithTitle:VZL(@"Delete Virtual Mac?")
message:[NSString stringWithFormat:
- @"“%@” and all files stored in it will be permanently deleted.",
+ VZL(@"“%@” and all files stored in it will be permanently deleted."),
machine[@"name"]]
preferredStyle:UIAlertControllerStyleAlert];
- [alert addAction:[UIAlertAction actionWithTitle:@"Cancel"
+ [alert addAction:[UIAlertAction actionWithTitle:VZL(@"Cancel")
style:UIAlertActionStyleCancel handler:nil]];
- [alert addAction:[UIAlertAction actionWithTitle:@"Delete"
+ [alert addAction:[UIAlertAction actionWithTitle:VZL(@"Delete")
style:UIAlertActionStyleDestructive handler:^(UIAlertAction *action) {
(void)action;
VZRemovePaths(@[machine[@"path"]]);
@@ -1515,12 +2062,12 @@ void VZRemovePaths(NSArray<NSString *> *paths)
@selector(vmLibraryForceShutdownActiveVM:)])
return;
UIAlertController *alert = [UIAlertController
- alertControllerWithTitle:@"Force Shut Down Virtual Mac?"
- message:@"Unsaved changes in macOS may be lost."
+ alertControllerWithTitle:VZL(@"Force Shut Down Virtual Mac?")
+ message:VZL(@"Unsaved changes in macOS may be lost.")
preferredStyle:UIAlertControllerStyleAlert];
- [alert addAction:[UIAlertAction actionWithTitle:@"Cancel"
+ [alert addAction:[UIAlertAction actionWithTitle:VZL(@"Cancel")
style:UIAlertActionStyleCancel handler:nil]];
- [alert addAction:[UIAlertAction actionWithTitle:@"Force Shut Down"
+ [alert addAction:[UIAlertAction actionWithTitle:VZL(@"Force Shut Down")
style:UIAlertActionStyleDestructive handler:^(UIAlertAction *action) {
(void)action;
[self.delegate vmLibraryForceShutdownActiveVM:self];
@@ -1535,27 +2082,27 @@ void VZRemovePaths(NSArray<NSString *> *paths)
UIAlertController *sheet = [UIAlertController
alertControllerWithTitle:machine[@"name"] message:nil
preferredStyle:UIAlertControllerStyleActionSheet];
- [sheet addAction:[UIAlertAction actionWithTitle:active ? @"Resume" : @"Start"
+ [sheet addAction:[UIAlertAction actionWithTitle:active ? VZL(@"Resume") : VZL(@"Start")
style:UIAlertActionStyleDefault handler:^(UIAlertAction *action) {
(void)action; [self startMachine:machine];
}]];
- [sheet addAction:[UIAlertAction actionWithTitle:@"Options"
+ [sheet addAction:[UIAlertAction actionWithTitle:VZL(@"Options")
style:UIAlertActionStyleDefault handler:^(UIAlertAction *action) {
(void)action;
NSUInteger index = [self.filteredMachines indexOfObject:machine];
if (index != NSNotFound) [self configureMachineAtIndex:index];
}]];
if (active)
- [sheet addAction:[UIAlertAction actionWithTitle:@"Force Shut Down"
+ [sheet addAction:[UIAlertAction actionWithTitle:VZL(@"Force Shut Down")
style:UIAlertActionStyleDestructive handler:^(UIAlertAction *action) {
(void)action; [self forceShutdownMachine:machine];
}]];
else
- [sheet addAction:[UIAlertAction actionWithTitle:@"Delete"
+ [sheet addAction:[UIAlertAction actionWithTitle:VZL(@"Delete")
style:UIAlertActionStyleDestructive handler:^(UIAlertAction *action) {
(void)action; [self confirmDeleteMachine:machine];
}]];
- [sheet addAction:[UIAlertAction actionWithTitle:@"Cancel"
+ [sheet addAction:[UIAlertAction actionWithTitle:VZL(@"Cancel")
style:UIAlertActionStyleCancel handler:nil]];
sheet.popoverPresentationController.sourceView = source ?: self.view;
sheet.popoverPresentationController.sourceRect = source ? source.bounds :
@@ -1575,6 +2122,7 @@ void VZRemovePaths(NSArray<NSString *> *paths)
[cell removeGestureRecognizer:gesture];
cell.contentView.backgroundColor = UIColor.secondarySystemGroupedBackgroundColor;
cell.contentView.layer.cornerRadius = 14;
+ cell.contentView.layer.cornerCurve = kCACornerCurveContinuous;
cell.contentView.layer.borderWidth = 0.5;
cell.contentView.layer.borderColor = UIColor.separatorColor.CGColor;
cell.contentView.clipsToBounds = YES;
@@ -1582,6 +2130,7 @@ void VZRemovePaths(NSArray<NSString *> *paths)
UIView *selected = [[[UIView alloc] initWithFrame:cell.bounds] autorelease];
selected.backgroundColor = UIColor.tertiarySystemFillColor;
selected.layer.cornerRadius = 14;
+ selected.layer.cornerCurve = kCACornerCurveContinuous;
cell.selectedBackgroundView = selected;
UIImageView *image = [[[UIImageView alloc] init] autorelease];
image.translatesAutoresizingMaskIntoConstraints = NO;
@@ -1591,6 +2140,7 @@ void VZRemovePaths(NSArray<NSString *> *paths)
// image mask leaves a visible seam above solid-color artwork such as the
// Create card; only standalone list thumbnails need their own rounding.
image.layer.cornerRadius = list ? 10 : 0;
+ image.layer.cornerCurve = kCACornerCurveContinuous;
image.layer.maskedCorners = list ?
(kCALayerMinXMinYCorner | kCALayerMaxXMinYCorner |
kCALayerMinXMaxYCorner | kCALayerMaxXMaxYCorner) :
@@ -1610,55 +2160,66 @@ void VZRemovePaths(NSArray<NSString *> *paths)
[cell.contentView addSubview:detail];
UIButton *more = [UIButton buttonWithType:UIButtonTypeSystem];
more.translatesAutoresizingMaskIntoConstraints = NO;
- more.tag = indexPath.item;
+ NSUInteger machineIndex = [self machineIndexForItem:indexPath.item];
+ BOOL createCard = machineIndex == NSNotFound && [self showsCreateCard] && indexPath.item == 0;
+ more.tag = machineIndex == NSNotFound ? 0 : machineIndex + 1;
[more addTarget:self action:@selector(moreButton:)
forControlEvents:UIControlEventTouchUpInside];
[cell.contentView addSubview:more];
- if (indexPath.item == 0) {
+ if (createCard) {
NSString *art = [[NSBundle mainBundle] pathForResource:@"new"
ofType:@"png" inDirectory:@"Wallpapers"];
image.image = [UIImage imageWithContentsOfFile:art];
- title.text = @"Create Virtual Mac";
- detail.text = @"Install macOS";
+ title.text = VZL(@"Create Virtual Mac");
+ detail.text = VZL(@"Install macOS");
more.hidden = YES;
} else {
- NSDictionary *machine = self.filteredMachines[indexPath.item - 1];
+ NSDictionary *machine = self.filteredMachines[machineIndex];
NSDictionary *options = VZVMOptionsForBundle(machine[@"path"]);
title.text = machine[@"name"];
- detail.text = [NSString stringWithFormat:@"%@ CPUs · %@ GB · %@%@",
+ uint64_t storage = VZVMStorageCapacity(machine[@"path"], options);
+ detail.text = [NSString stringWithFormat:
+ VZL(@"%@ CPU · %@ GB RAM · %llu GB · %@%@"),
options[VZCPUCountKey], @([options[VZMemorySizeKey] unsignedLongLongValue] >> 30),
- options[VZNetworkModeKey], [machine[@"legacy"] boolValue] ? @" · Legacy" : @""];
+ (unsigned long long)(storage >> 30), VZNetworkModeDisplayName(options),
+ [machine[@"legacy"] boolValue] ? VZL(@" · Legacy") : @""];
NSString *wallpaperName = [self wallpaperNameForMachineName:machine[@"name"]];
NSString *art = [[NSBundle mainBundle] pathForResource:wallpaperName
ofType:@"jpg" inDirectory:@"Wallpapers"];
image.image = [UIImage imageWithContentsOfFile:art];
- image.tag = indexPath.item;
+ image.tag = machineIndex + 1;
image.userInteractionEnabled = YES;
UITapGestureRecognizer *start = [[[UITapGestureRecognizer alloc]
initWithTarget:self action:@selector(machineArtworkTapped:)] autorelease];
[image addGestureRecognizer:start];
image.isAccessibilityElement = YES;
- image.accessibilityLabel = [NSString stringWithFormat:@"Start %@", machine[@"name"]];
+ image.accessibilityLabel = [NSString stringWithFormat:VZL(@"Start %@"), machine[@"name"]];
image.accessibilityTraits = UIAccessibilityTraitButton;
[more setImage:[UIImage systemImageNamed:@"ellipsis.circle"] forState:UIControlStateNormal];
- more.accessibilityLabel = [NSString stringWithFormat:@"Configure %@", machine[@"name"]];
- if (!list) {
+ more.accessibilityLabel = [NSString stringWithFormat:VZL(@"Configure %@"), machine[@"name"]];
+ {
UIVisualEffectView *playBackground = [[[UIVisualEffectView alloc]
initWithEffect:[UIBlurEffect effectWithStyle:
UIBlurEffectStyleSystemUltraThinMaterialDark]] autorelease];
playBackground.translatesAutoresizingMaskIntoConstraints = NO;
playBackground.userInteractionEnabled = YES;
- playBackground.layer.cornerRadius = 36;
+ CGFloat playDiameter = list ? 36 : 72;
+ playBackground.layer.cornerRadius = playDiameter / 2.0;
playBackground.clipsToBounds = YES;
UIButton *play = [UIButton buttonWithType:UIButtonTypeSystem];
play.translatesAutoresizingMaskIntoConstraints = NO;
- play.tag = indexPath.item;
+ play.tag = machineIndex + 1;
play.tintColor = UIColor.whiteColor;
+ NSString *resumeSymbol = [UIImage systemImageNamed:
+ @"rectangle.portrait.and.arrow.right"]
+ ? @"rectangle.portrait.and.arrow.right"
+ : @"arrow.right";
NSString *symbolName = [self isMachineActive:machine]
- ? @"rectangle.portrait.and.arrow.right" : @"play.fill";
+ ? resumeSymbol : @"play.fill";
UIImage *playImage = [[UIImage systemImageNamed:symbolName]
imageByApplyingSymbolConfiguration:[UIImageSymbolConfiguration
- configurationWithPointSize:24 weight:UIImageSymbolWeightSemibold]];
+ configurationWithPointSize:list ? 14 : 24
+ weight:UIImageSymbolWeightSemibold]];
[play setImage:playImage forState:UIControlStateNormal];
[play addTarget:self action:@selector(startButton:)
forControlEvents:UIControlEventTouchUpInside];
@@ -1667,8 +2228,8 @@ void VZRemovePaths(NSArray<NSString *> *paths)
[NSLayoutConstraint activateConstraints:@[
[playBackground.centerXAnchor constraintEqualToAnchor:image.centerXAnchor],
[playBackground.centerYAnchor constraintEqualToAnchor:image.centerYAnchor],
- [playBackground.widthAnchor constraintEqualToConstant:72],
- [playBackground.heightAnchor constraintEqualToConstant:72],
+ [playBackground.widthAnchor constraintEqualToConstant:playDiameter],
+ [playBackground.heightAnchor constraintEqualToConstant:playDiameter],
[play.centerXAnchor constraintEqualToAnchor:playBackground.contentView.centerXAnchor],
[play.centerYAnchor constraintEqualToAnchor:playBackground.contentView.centerYAnchor],
[play.widthAnchor constraintEqualToAnchor:playBackground.widthAnchor],
@@ -1677,7 +2238,7 @@ void VZRemovePaths(NSArray<NSString *> *paths)
}
}
if (list) {
- cell.tag = indexPath.item;
+ cell.tag = machineIndex == NSNotFound ? 0 : machineIndex + 1;
UISwipeGestureRecognizer *swipe = [[[UISwipeGestureRecognizer alloc]
initWithTarget:self action:@selector(handleMachineSwipe:)] autorelease];
swipe.direction = UISwipeGestureRecognizerDirectionRight;
@@ -1747,9 +2308,12 @@ void VZRemovePaths(NSArray<NSString *> *paths)
- (void)collectionView:(UICollectionView *)collectionView didSelectItemAtIndexPath:(NSIndexPath *)indexPath
{
[collectionView deselectItemAtIndexPath:indexPath animated:YES];
- if (indexPath.item == 0) { [self presentNewVMFlow]; return; }
- if (indexPath.item > self.filteredMachines.count) return;
- NSDictionary *machine = self.filteredMachines[indexPath.item - 1];
+ NSUInteger index = [self machineIndexForItem:indexPath.item];
+ if (index == NSNotFound) {
+ if ([self showsCreateCard] && indexPath.item == 0) [self presentNewVMFlow];
+ return;
+ }
+ NSDictionary *machine = self.filteredMachines[index];
UICollectionViewCell *cell = [collectionView cellForItemAtIndexPath:indexPath];
[self presentActionsForMachine:machine fromView:cell];
}
@@ -1782,16 +2346,16 @@ void VZRemovePaths(NSArray<NSString *> *paths)
UIAlertController *sheet = [UIAlertController
alertControllerWithTitle:machine[@"name"] message:nil
preferredStyle:UIAlertControllerStyleActionSheet];
- [sheet addAction:[UIAlertAction actionWithTitle:@"Options"
+ [sheet addAction:[UIAlertAction actionWithTitle:VZL(@"Options")
style:UIAlertActionStyleDefault handler:^(UIAlertAction *action) {
(void)action; [self configureMachineAtIndex:cell.tag - 1];
}]];
if (![self isMachineActive:machine])
- [sheet addAction:[UIAlertAction actionWithTitle:@"Delete"
+ [sheet addAction:[UIAlertAction actionWithTitle:VZL(@"Delete")
style:UIAlertActionStyleDestructive handler:^(UIAlertAction *action) {
(void)action; [self confirmDeleteMachine:machine];
}]];
- [sheet addAction:[UIAlertAction actionWithTitle:@"Cancel"
+ [sheet addAction:[UIAlertAction actionWithTitle:VZL(@"Cancel")
style:UIAlertActionStyleCancel handler:nil]];
sheet.popoverPresentationController.sourceView = cell;
sheet.popoverPresentationController.sourceRect = cell.bounds;
@@ -1803,19 +2367,21 @@ void VZRemovePaths(NSArray<NSString *> *paths)
point:(CGPoint)point
{
(void)collectionView; (void)point;
- if (indexPath.item == 0 || indexPath.item > self.filteredMachines.count)
- return nil;
- NSDictionary *machine = self.filteredMachines[indexPath.item - 1];
+ NSUInteger index = [self machineIndexForItem:indexPath.item];
+ if (index == NSNotFound) return nil;
+ NSDictionary *machine = self.filteredMachines[index];
BOOL active = [self isMachineActive:machine];
return [UIContextMenuConfiguration configurationWithIdentifier:nil
previewProvider:nil actionProvider:^UIMenu *(NSArray<UIMenuElement *> *suggested) {
(void)suggested;
- UIAction *start = [UIAction actionWithTitle:active ? @"Resume" : @"Start"
- image:[UIImage systemImageNamed:active ? @"rectangle.portrait.and.arrow.right" : @"play.fill"]
+ UIImage *resumeImage = [UIImage systemImageNamed:
+ @"rectangle.portrait.and.arrow.right"] ?: [UIImage systemImageNamed:@"play.fill"];
+ UIAction *start = [UIAction actionWithTitle:active ? VZL(@"Resume") : VZL(@"Start")
+ image:active ? resumeImage : [UIImage systemImageNamed:@"play.fill"]
identifier:nil handler:^(__kindof UIAction *action) {
(void)action; [self startMachine:machine];
}];
- UIAction *options = [UIAction actionWithTitle:@"Options"
+ UIAction *options = [UIAction actionWithTitle:VZL(@"Options")
image:[UIImage systemImageNamed:@"gearshape"] identifier:nil
handler:^(__kindof UIAction *action) {
(void)action;
@@ -1823,7 +2389,7 @@ void VZRemovePaths(NSArray<NSString *> *paths)
if (index != NSNotFound) [self configureMachineAtIndex:index];
}];
UIAction *power = [UIAction actionWithTitle:
- active ? @"Force Shut Down" : @"Delete"
+ active ? VZL(@"Force Shut Down") : VZL(@"Delete")
image:[UIImage systemImageNamed:active ? @"power" : @"trash"]
identifier:nil handler:^(__kindof UIAction *action) {
(void)action;
@@ -1855,11 +2421,129 @@ void VZRemovePaths(NSArray<NSString *> *paths)
- (void)presentRestoreImagePicker
{
UIDocumentPickerViewController *picker = [[[UIDocumentPickerViewController alloc]
- initForOpeningContentTypes:@[UTTypeItem] asCopy:NO] autorelease];
+ initForOpeningContentTypes:@[UTTypeItem] asCopy:YES] autorelease];
picker.delegate = self;
[self presentViewController:picker animated:YES completion:nil];
}
+- (void)configureRestoreImageAtURL:(NSURL *)url
+{
+ self.pendingIPSWURL = url;
+ NSString *suggested = VZUniqueVMName(
+ VZMarketingNameForRestoreImage(url));
+ NSMutableDictionary *defaults = [NSMutableDictionary
+ dictionaryWithDictionary:VZVMDefaultOptions()];
+ defaults[VZPointingDeviceKey] = VZDefaultPointingDeviceForPath(url.path);
+ defaults[VZKeyboardDeviceKey] = VZDefaultKeyboardDeviceForPath(url.path);
+ VZVMConfigurationViewController *configuration =
+ [[[VZVMConfigurationViewController alloc]
+ initWithBundlePath:nil options:defaults
+ completion:^(NSDictionary *result) {
+ NSMutableDictionary *options = [NSMutableDictionary
+ dictionaryWithDictionary:result];
+ NSString *name = VZUniqueVMName(options[VZVMNameKey]);
+ [options removeObjectForKey:VZVMNameKey];
+ [self.delegate vmLibrary:self installRestoreImageAtURL:url
+ name:name options:options];
+ }] autorelease];
+ configuration.vmName = suggested;
+ NSDictionary *localImage = @{ @"name": url.lastPathComponent ?: @"" };
+ configuration.showsExperimentalInstallWarning =
+ [VZRestoreCatalog isExperimentalImage:localImage];
+ configuration.showsUnsupportedInstallWarning =
+ [VZRestoreCatalog isUnsupportedImage:localImage];
+ if (configuration.showsExperimentalInstallWarning) {
+ configuration.experimentalMacOSName =
+ [VZRestoreCatalog macOSNameForImage:localImage];
+ configuration.chooseDifferentVersionHandler = ^{
+ [self presentNewVMFlow];
+ };
+ }
+ [self presentConfiguration:configuration];
+}
+
+- (void)copySelectedRestoreImageAtURL:(NSURL *)source
+{
+ NSString *restoreDirectory = VZRestoreImagesPath();
+ NSString *standardSource = source.path.stringByStandardizingPath;
+ if ([standardSource.stringByDeletingLastPathComponent
+ isEqualToString:restoreDirectory.stringByStandardizingPath]) {
+ [source stopAccessingSecurityScopedResource];
+ [self configureRestoreImageAtURL:[NSURL fileURLWithPath:standardSource]];
+ return;
+ }
+ [NSFileManager.defaultManager createDirectoryAtPath:restoreDirectory
+ withIntermediateDirectories:YES attributes:nil error:nil];
+ NSString *base = source.lastPathComponent.stringByDeletingPathExtension;
+ NSString *extension = source.pathExtension.lowercaseString;
+ NSString *destination = [restoreDirectory stringByAppendingPathComponent:
+ [base stringByAppendingPathExtension:extension]];
+ for (NSUInteger suffix = 2;
+ [NSFileManager.defaultManager fileExistsAtPath:destination]; suffix++)
+ destination = [restoreDirectory stringByAppendingPathComponent:
+ [[NSString stringWithFormat:@"%@ %lu", base, (unsigned long)suffix]
+ stringByAppendingPathExtension:extension]];
+
+ UIApplication.sharedApplication.idleTimerDisabled = YES;
+ self.restoreCopyController = [[[VZProgressViewController alloc]
+ initWithTitle:VZL(@"Copying Restore Image")] autorelease];
+ self.restoreCopyController.statusText = source.lastPathComponent;
+ self.restoreCopyController.detailText =
+ VZL(@"Preparing the IPSW for installation. Your iPad will remain awake.");
+ self.restoreCopyController.consoleHidden = YES;
+ self.restoreCopyController.indeterminate = YES;
+ UINavigationController *navigation = [[[UINavigationController alloc]
+ initWithRootViewController:self.restoreCopyController] autorelease];
+ navigation.modalPresentationStyle = UIModalPresentationPageSheet;
+ navigation.modalInPresentation = YES;
+ navigation.preferredContentSize = CGSizeMake(620, 280);
+ // A security-scoped file selected with asCopy:YES is commonly an APFS
+ // clone on the same data volume, so this second durable copy completes
+ // almost immediately. Presenting and then immediately dismissing a modal
+ // progress sheet causes a distracting flash between the document picker
+ // and configuration screen. Delay the progress UI; genuinely slow copies
+ // still receive feedback without adding latency to the normal path.
+ __block BOOL copyFinished = NO;
+ dispatch_after(dispatch_time(DISPATCH_TIME_NOW,
+ (int64_t)(1.0 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
+ if (!copyFinished && self.restoreCopyController &&
+ !navigation.presentingViewController &&
+ !self.presentedViewController)
+ [self presentViewController:navigation animated:YES completion:nil];
+ });
+ dispatch_async(dispatch_get_global_queue(QOS_CLASS_USER_INITIATED, 0), ^{
+ NSError *copyError = nil;
+ BOOL copied = [NSFileManager.defaultManager copyItemAtPath:source.path
+ toPath:destination error:&copyError];
+ [source stopAccessingSecurityScopedResource];
+ dispatch_async(dispatch_get_main_queue(), ^{
+ copyFinished = YES;
+ UIApplication.sharedApplication.idleTimerDisabled = NO;
+ void (^finished)(void) = ^{
+ self.restoreCopyController = nil;
+ if (copied) {
+ [self configureRestoreImageAtURL:
+ [NSURL fileURLWithPath:destination]];
+ } else {
+ UIAlertController *alert = [UIAlertController
+ alertControllerWithTitle:VZL(@"Could Not Copy IPSW")
+ message:copyError.localizedDescription
+ preferredStyle:UIAlertControllerStyleAlert];
+ [alert addAction:[UIAlertAction actionWithTitle:VZL(@"OK")
+ style:UIAlertActionStyleDefault handler:nil]];
+ VZAddFailureSupportActions(alert);
+ [self presentViewController:alert animated:YES completion:nil];
+ }
+ };
+ if (navigation.presentingViewController)
+ [navigation dismissViewControllerAnimated:YES
+ completion:finished];
+ else
+ finished();
+ });
+ });
+}
+
- (void)newVMControllerChooseLocalRestoreImage:(VZNewVMViewController *)controller
{
[controller dismissViewControllerAnimated:YES completion:^{
@@ -1870,12 +2554,12 @@ void VZRemovePaths(NSArray<NSString *> *paths)
- (void)cancelDownload
{
UIAlertController *alert = [UIAlertController
- alertControllerWithTitle:@"Cancel Download?"
- message:@"The partial restore image will be deleted."
+ alertControllerWithTitle:VZL(@"Cancel Download?")
+ message:VZL(@"The partial restore image will be deleted.")
preferredStyle:UIAlertControllerStyleAlert];
- [alert addAction:[UIAlertAction actionWithTitle:@"Keep Downloading"
+ [alert addAction:[UIAlertAction actionWithTitle:VZL(@"Keep Downloading")
style:UIAlertActionStyleCancel handler:nil]];
- [alert addAction:[UIAlertAction actionWithTitle:@"Cancel Download"
+ [alert addAction:[UIAlertAction actionWithTitle:VZL(@"Cancel Download")
style:UIAlertActionStyleDestructive handler:^(UIAlertAction *action) {
(void)action;
self.downloadCancelled = YES;
@@ -1903,133 +2587,14 @@ void VZRemovePaths(NSArray<NSString *> *paths)
downloadRestoreImage:(NSDictionary *)image
{
NSURL *remoteURL = [NSURL URLWithString:image[@"url"]];
- if (!remoteURL) return;
- [controller dismissViewControllerAnimated:YES completion:^{
- NSString *destination = [VZRestoreImagesPath() stringByAppendingPathComponent:
- remoteURL.lastPathComponent ?: @"Restore.ipsw"];
- NSDictionary *attributes = [NSFileManager.defaultManager attributesOfItemAtPath:destination error:nil];
- uint64_t expected = [image[@"downloadSize"] unsignedLongLongValue];
- if (attributes && (!expected || [attributes[NSFileSize] unsignedLongLongValue] == expected)) {
- [self documentPicker:(id)self didPickDocumentsAtURLs:@[[NSURL fileURLWithPath:destination]]];
- return;
- }
- [NSFileManager.defaultManager createDirectoryAtPath:VZRestoreImagesPath()
- withIntermediateDirectories:YES attributes:nil error:nil];
- UIApplication.sharedApplication.idleTimerDisabled = YES;
- self.downloadCancelled = NO;
- self.downloadDestination = destination;
- self.downloadMarkerPath = [VZRestoreImagesPath() stringByAppendingPathComponent:
- [NSString stringWithFormat:@".%@.download.plist", destination.lastPathComponent]];
- [@{ @"Name": image[@"name"] ?: destination.lastPathComponent,
- @"URL": remoteURL.absoluteString ?: @"",
- @"Destination": destination,
- @"StartedAt": NSDate.date }
- writeToFile:self.downloadMarkerPath atomically:YES];
- self.downloadController = [[[VZProgressViewController alloc]
- initWithTitle:@"Downloading macOS"] autorelease];
- self.downloadController.statusText = image[@"name"] ?: @"Downloading restore image";
- self.downloadController.detailText = @"Keep Virtual Mac open. The iPad will remain awake until the download finishes.";
- self.downloadController.consoleHidden = YES;
- self.downloadController.indeterminate = expected == 0;
- self.downloadController.cancellationHandler = ^{ [self cancelDownload]; };
- UINavigationController *navigation = [[[UINavigationController alloc]
- initWithRootViewController:self.downloadController] autorelease];
- navigation.modalPresentationStyle = UIModalPresentationPageSheet;
- navigation.modalInPresentation = YES;
- navigation.preferredContentSize = CGSizeMake(620, 300);
- [self presentViewController:navigation animated:YES completion:nil];
- self.downloadTask = [NSURLSession.sharedSession downloadTaskWithURL:remoteURL
- completionHandler:^(NSURL *temporaryURL, NSURLResponse *response, NSError *error) {
- (void)response;
- NSError *moveError = nil;
- if (temporaryURL && !self.downloadCancelled) {
- [NSFileManager.defaultManager removeItemAtPath:destination error:nil];
- [NSFileManager.defaultManager moveItemAtURL:temporaryURL
- toURL:[NSURL fileURLWithPath:destination] error:&moveError];
- }
- dispatch_async(dispatch_get_main_queue(), ^{
- [self.downloadTimer invalidate]; self.downloadTimer = nil;
- self.downloadTask = nil;
- UIApplication.sharedApplication.idleTimerDisabled = NO;
- NSError *failure = error ?: moveError;
- BOOL cancelled = self.downloadCancelled;
- if (!failure)
- [NSFileManager.defaultManager removeItemAtPath:self.downloadMarkerPath error:nil];
- if (!self.downloadController) return;
- [self.downloadController.navigationController dismissViewControllerAnimated:YES completion:^{
- self.downloadController.cancellationHandler = nil;
- self.downloadController = nil;
- self.downloadDestination = nil;
- self.downloadMarkerPath = nil;
- if (failure && !cancelled) {
- UIAlertController *alert = [UIAlertController alertControllerWithTitle:@"Download Failed"
- message:failure.localizedDescription preferredStyle:UIAlertControllerStyleAlert];
- [alert addAction:[UIAlertAction actionWithTitle:@"OK" style:UIAlertActionStyleDefault handler:nil]];
- [self presentViewController:alert animated:YES completion:nil];
- } else {
- [self documentPicker:(id)self didPickDocumentsAtURLs:@[[NSURL fileURLWithPath:destination]]];
- }
- }];
- });
- }];
- [self.downloadTask resume];
- self.downloadLastBytes = 0;
- self.downloadLastSample = NSDate.date;
- self.downloadTimer = [NSTimer scheduledTimerWithTimeInterval:0.5 repeats:YES block:^(NSTimer *timer) {
- (void)timer;
- int64_t total = self.downloadTask.countOfBytesExpectedToReceive;
- int64_t received = self.downloadTask.countOfBytesReceived;
- if (total > 0) {
- float progress = (float)received / (float)total;
- self.downloadController.indeterminate = NO;
- self.downloadController.progress = progress;
- NSByteCountFormatter *formatter = [[[NSByteCountFormatter alloc] init] autorelease];
- formatter.countStyle = NSByteCountFormatterCountStyleFile;
- NSTimeInterval elapsed = -[self.downloadLastSample timeIntervalSinceNow];
- int64_t delta = received - self.downloadLastBytes;
- NSString *speed = elapsed > 0.05 && delta >= 0
- ? [NSString stringWithFormat:@"%@/s",
- [formatter stringFromByteCount:(int64_t)(delta / elapsed)]] : @"Calculating speed…";
- self.downloadController.statusText = [NSString stringWithFormat:
- @"%.1f%% complete", progress * 100.0];
- self.downloadController.detailText = [NSString stringWithFormat:
- @"%@ of %@ · %@\nKeep Virtual Mac open. The iPad will remain awake until the download finishes.",
- [formatter stringFromByteCount:received],
- [formatter stringFromByteCount:total], speed];
- self.downloadLastBytes = received;
- self.downloadLastSample = NSDate.date;
- }
- }];
- }];
-}
-
-- (void)documentPicker:(UIDocumentPickerViewController *)controller
- didPickDocumentsAtURLs:(NSArray<NSURL *> *)urls
-{
- NSURL *url = urls.firstObject;
- if (!url)
- return;
- NSString *extension = url.pathExtension.lowercaseString;
- if (![extension isEqualToString:@"ipsw"]) {
- UIAlertController *invalid = [UIAlertController
- alertControllerWithTitle:@"Unsupported Restore Image"
- message:@"Choose a macOS IPSW restore image."
- preferredStyle:UIAlertControllerStyleAlert];
- [invalid addAction:[UIAlertAction actionWithTitle:@"OK"
- style:UIAlertActionStyleDefault handler:nil]];
- [self presentViewController:invalid animated:YES completion:nil];
+ if (!remoteURL)
return;
- }
- [url startAccessingSecurityScopedResource];
- self.pendingIPSWURL = url;
- NSString *suggested = VZUniqueVMName(
- VZMarketingNameForRestoreImage(url));
NSMutableDictionary *defaults = [NSMutableDictionary
dictionaryWithDictionary:VZVMDefaultOptions()];
defaults[VZPointingDeviceKey] =
- VZDefaultPointingDeviceForPath(self.pendingIPSWURL.path);
+ VZDefaultPointingDeviceForPath(remoteURL.path);
defaults[VZKeyboardDeviceKey] =
- VZDefaultKeyboardDeviceForPath(self.pendingIPSWURL.path);
+ VZDefaultKeyboardDeviceForPath(remoteURL.path);
VZVMConfigurationViewController *configuration =
[[[VZVMConfigurationViewController alloc]
initWithBundlePath:nil options:defaults
@@ -2038,12 +2603,266 @@ void VZRemovePaths(NSArray<NSString *> *paths)
dictionaryWithDictionary:result];
NSString *name = VZUniqueVMName(options[VZVMNameKey]);
[options removeObjectForKey:VZVMNameKey];
- [self.delegate vmLibrary:self
- installRestoreImageAtURL:self.pendingIPSWURL
- name:name options:options];
+ [controller.navigationController
+ dismissViewControllerAnimated:YES completion:^{
+ [self beginDownloadRestoreImage:image name:name
+ options:options];
+ }];
}] autorelease];
- configuration.vmName = suggested;
- [self presentConfiguration:configuration];
+ // 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"]);
+ configuration.showsExperimentalInstallWarning =
+ [VZRestoreCatalog isExperimentalImage:image];
+ configuration.showsUnsupportedInstallWarning =
+ [VZRestoreCatalog isUnsupportedImage:image];
+ configuration.experimentalMacOSName =
+ [VZRestoreCatalog macOSNameForImage:image];
+ [controller.navigationController pushViewController:configuration
+ animated:YES];
+}
+
+- (void)beginDownloadRestoreImage:(NSDictionary *)image
+ name:(NSString *)name
+ options:(NSDictionary *)options
+{
+ NSURL *remoteURL = [NSURL URLWithString:image[@"url"]];
+ if (!remoteURL)
+ return;
+ NSString *destination = [VZRestoreImagesPath()
+ stringByAppendingPathComponent:remoteURL.lastPathComponent ?: @"Restore.ipsw"];
+ NSDictionary *attributes = [NSFileManager.defaultManager attributesOfItemAtPath:destination
+ error:nil];
+ uint64_t expected = [image[@"downloadSize"] unsignedLongLongValue];
+ if (attributes && (!expected || [attributes[NSFileSize] unsignedLongLongValue] == expected)) {
+ [self.delegate vmLibrary:self
+ installRestoreImageAtURL:[NSURL fileURLWithPath:destination]
+ name:name
+ options:options];
+ return;
+ }
+ [NSFileManager.defaultManager createDirectoryAtPath:VZRestoreImagesPath()
+ withIntermediateDirectories:YES
+ attributes:nil
+ error:nil];
+ UIApplication.sharedApplication.idleTimerDisabled = YES;
+ self.downloadCancelled = NO;
+ self.downloadDestination = destination;
+ self.downloadMarkerPath = [VZRestoreImagesPath()
+ stringByAppendingPathComponent:[NSString stringWithFormat:@".%@.download.plist",
+ destination.lastPathComponent]];
+ [@{
+ @"Name" : image[@"name"] ?: destination.lastPathComponent,
+ @"URL" : remoteURL.absoluteString ?: @"",
+ @"Destination" : destination,
+ @"ExpectedSize" : @(expected),
+ @"StartedAt" : NSDate.date
+ } writeToFile:self.downloadMarkerPath
+ atomically:YES];
+ self.downloadController =
+ [[[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"] : @"";
+ if ([version hasSuffix:@".0"])
+ version = [version substringToIndex:version.length - 2];
+ BOOL hasKnownArtwork = ![[VZRestoreCatalog artworkNameForImage:image]
+ isEqualToString:@"ipsw"];
+ self.downloadController.heroTitleText = hasKnownArtwork && version.length
+ ? [NSString stringWithFormat:@"%@ %@", macOSName, version]
+ : ([image[@"name"] isKindOfClass:NSString.class]
+ ? image[@"name"] : macOSName);
+ NSByteCountFormatter *initialFormatter =
+ [[[NSByteCountFormatter alloc] init] autorelease];
+ initialFormatter.countStyle = NSByteCountFormatterCountStyleFile;
+ initialFormatter.zeroPadsFractionDigits = YES;
+ self.downloadController.detailText = [NSString stringWithFormat:
+ @"%@ / %@ · — · —",
+ [initialFormatter stringFromByteCount:0],
+ expected > 0 ? [initialFormatter stringFromByteCount:expected] : @"—"];
+ self.downloadController.tipText =
+ VZL(@"Keep Virtual Mac open. Your iPad will remain awake until the download finishes.");
+ self.downloadController.consoleHidden = YES;
+ self.downloadController.indeterminate = expected == 0;
+ self.downloadController.cancellationHandler = ^{
+ [self cancelDownload];
+ };
+ UINavigationController *navigation = [[[UINavigationController alloc]
+ initWithRootViewController:self.downloadController] autorelease];
+ navigation.modalPresentationStyle = UIModalPresentationPageSheet;
+ navigation.modalInPresentation = YES;
+ navigation.preferredContentSize = CGSizeMake(620, 560);
+ [self presentViewController:navigation animated:YES completion:nil];
+ self.downloadTask = [NSURLSession.sharedSession
+ downloadTaskWithURL:remoteURL
+ completionHandler:^(NSURL *temporaryURL, NSURLResponse *response, NSError *error) {
+ (void)response;
+ NSError *moveError = nil;
+ if (temporaryURL && !self.downloadCancelled) {
+ [NSFileManager.defaultManager removeItemAtPath:destination error:nil];
+ [NSFileManager.defaultManager moveItemAtURL:temporaryURL
+ toURL:[NSURL fileURLWithPath:destination]
+ error:&moveError];
+ }
+ dispatch_async(dispatch_get_main_queue(), ^{
+ [self.downloadTimer invalidate];
+ self.downloadTimer = nil;
+ self.downloadTask = nil;
+ UIApplication.sharedApplication.idleTimerDisabled = NO;
+ NSError *failure = error ?: moveError;
+ BOOL cancelled = self.downloadCancelled;
+ if (!failure) {
+ [NSFileManager.defaultManager removeItemAtPath:self.downloadMarkerPath
+ error:nil];
+ } else if (!cancelled) {
+ // Downloads cannot be resumed. Avoid retaining a stale
+ // IPSW or marker after an ordinary network failure;
+ // launch-time cleanup covers abrupt process exits.
+ [NSFileManager.defaultManager removeItemAtPath:destination
+ error:nil];
+ [NSFileManager.defaultManager removeItemAtPath:self.downloadMarkerPath
+ error:nil];
+ }
+ if (!self.downloadController)
+ return;
+ [self.downloadController.navigationController
+ dismissViewControllerAnimated:YES
+ completion:^{
+ self.downloadController.cancellationHandler = nil;
+ self.downloadController = nil;
+ self.downloadDestination = nil;
+ self.downloadMarkerPath = nil;
+ if (cancelled) {
+ // Cancellation is terminal.
+ // NSURLSession normally
+ // completes with
+ // NSURLErrorCancelled, but
+ // the completion can race
+ // the confirmation UI. Never
+ // turn either outcome into a
+ // restore request.
+ return;
+ } else if (failure) {
+ UIAlertController *alert = [UIAlertController
+ alertControllerWithTitle:VZL(@"Download Failed")
+ message:
+ failure
+ .localizedDescription
+ preferredStyle:
+ UIAlertControllerStyleAlert];
+ [alert
+ addAction:
+ [UIAlertAction
+ actionWithTitle:VZL(@"OK")
+ style:
+ UIAlertActionStyleDefault
+ handler:nil]];
+ VZAddFailureSupportActions(alert);
+ [self presentViewController:alert
+ animated:YES
+ completion:nil];
+ } else {
+ [self.delegate vmLibrary:self
+ installRestoreImageAtURL:
+ [NSURL fileURLWithPath:destination]
+ name:name
+ options:options];
+ }
+ }];
+ });
+ }];
+ [self.downloadTask resume];
+ self.downloadLastBytes = 0;
+ self.downloadLastSample = NSDate.date;
+ self.downloadStartedAt = self.downloadLastSample;
+ self.downloadTimer = [NSTimer
+ scheduledTimerWithTimeInterval:0.5
+ repeats:YES
+ block:^(NSTimer *timer) {
+ (void)timer;
+ int64_t total =
+ self.downloadTask.countOfBytesExpectedToReceive;
+ int64_t received = self.downloadTask.countOfBytesReceived;
+ if (total > 0) {
+ float progress = (float)received / (float)total;
+ self.downloadController.indeterminate = NO;
+ self.downloadController.progress = progress;
+ NSByteCountFormatter *formatter =
+ [[[NSByteCountFormatter alloc] init] autorelease];
+ formatter.countStyle = NSByteCountFormatterCountStyleFile;
+ formatter.zeroPadsFractionDigits = YES;
+ NSTimeInterval elapsed =
+ -[self.downloadLastSample timeIntervalSinceNow];
+ int64_t delta = received - self.downloadLastBytes;
+ NSString *speed =
+ elapsed > 0.05 && delta >= 0
+ ? [NSString
+ stringWithFormat:@"%@/s",
+ [formatter
+ stringFromByteCount:
+ (int64_t)(delta /
+ elapsed)]]
+ : VZL(@"Calculating speed…");
+ NSTimeInterval averageElapsed =
+ -[self.downloadStartedAt timeIntervalSinceNow];
+ double averageSpeed = averageElapsed > 1.0
+ ? received / averageElapsed : 0.0;
+ NSString *remaining = nil;
+ if (averageSpeed > 0.0 && received < total) {
+ NSTimeInterval seconds =
+ (total - received) / averageSpeed;
+ seconds = MAX(60.0,
+ ceil(seconds / 60.0) * 60.0);
+ NSDateComponentsFormatter *duration =
+ [[[NSDateComponentsFormatter alloc] init]
+ autorelease];
+ duration.allowedUnits =
+ NSCalendarUnitHour | NSCalendarUnitMinute;
+ duration.unitsStyle =
+ NSDateComponentsFormatterUnitsStyleFull;
+ duration.maximumUnitCount = 2;
+ remaining = [duration
+ stringFromTimeInterval:seconds];
+ if (remaining.length)
+ remaining = [NSString stringWithFormat:
+ VZL(@"%@ remaining"), remaining];
+ }
+ self.downloadController.detailText = [NSString
+ stringWithFormat:remaining.length
+ ? @"%@ / %@ · %@ · %@"
+ : @"%@ / %@ · %@",
+ [formatter
+ stringFromByteCount:received],
+ [formatter stringFromByteCount:total],
+ speed, remaining];
+ self.downloadLastBytes = received;
+ self.downloadLastSample = NSDate.date;
+ }
+ }];
+}
+
+- (void)documentPicker:(UIDocumentPickerViewController *)controller
+ didPickDocumentsAtURLs:(NSArray<NSURL *> *)urls {
+ NSURL *url = urls.firstObject;
+ if (!url)
+ return;
+ NSString *extension = url.pathExtension.lowercaseString;
+ if (![extension isEqualToString:@"ipsw"]) {
+ UIAlertController *invalid = [UIAlertController
+ alertControllerWithTitle:VZL(@"Unsupported Restore Image")
+ message:VZL(@"Choose a macOS IPSW restore image.")
+ preferredStyle:UIAlertControllerStyleAlert];
+ [invalid addAction:[UIAlertAction actionWithTitle:VZL(@"OK")
+ style:UIAlertActionStyleDefault
+ handler:nil]];
+ VZAddFailureSupportActions(invalid);
+ [self presentViewController:invalid animated:YES completion:nil];
+ return;
+ }
+ [url startAccessingSecurityScopedResource];
+ [self copySelectedRestoreImageAtURL:url];
}
- (void)dealloc
@@ -2053,17 +2872,22 @@ void VZRemovePaths(NSArray<NSString *> *paths)
[_filteredMachines release];
[_searchText release];
[_pendingIPSWURL release];
+ [_controlsView release];
[_collectionView release];
[_emptyView release];
+ [_noResultsView release];
+ [_noResultsBottomConstraint release];
[_downloadTask cancel];
[_downloadTask release];
[_downloadTimer invalidate];
[_downloadTimer release];
_downloadController.cancellationHandler = nil;
[_downloadController release];
+ [_restoreCopyController release];
[_downloadDestination release];
[_downloadMarkerPath release];
[_downloadLastSample release];
+ [_downloadStartedAt release];
[super dealloc];
}
@end
diff --git a/VirtualMac/vz/host/VirtualMac-Info.plist b/VirtualMac/vz/host/VirtualMac-Info.plist
index dfd8573..13f25da 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.0</string>
+ <string>1.1</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 ad17cb1..147b4d8 100644
--- a/VirtualMac/vz/host/VirtualMacApp.m
+++ b/VirtualMac/vz/host/VirtualMacApp.m
@@ -2,15 +2,22 @@
#import <GameController/GameController.h>
#import <UIKit/UIKit.h>
#import <AVFAudio/AVFAudio.h>
+#import <CoreImage/CoreImage.h>
+#import <Metal/Metal.h>
#import "NSViewShim.h"
#import "VZVMLibraryViewController.h"
#import "VZAppSettings.h"
+#import "VZDiagnostics.h"
+#import "VZFailureDetailsViewController.h"
#import "VZProgressViewController.h"
+#import "VZLocalization.h"
+#import "VZSupport.h"
#include <dlfcn.h>
#include <objc/runtime.h>
#include <objc/message.h>
#include <mach-o/loader.h>
#include <errno.h>
+#include <pthread.h>
#include <spawn.h>
#include <sys/wait.h>
#include <unistd.h>
@@ -29,6 +36,10 @@ static CALayer *gDisplayLayer;
static UIImageView *gCursorView;
static UILabel *gStatusLabel;
static UIView *gHUDView;
+static UIPanGestureRecognizer *gTouchScrollRecognizer;
+static UIPinchGestureRecognizer *gPinchRecognizer;
+static UIRotationGestureRecognizer *gRotationRecognizer;
+static UITapGestureRecognizer *gSmartMagnifyRecognizer;
static BOOL gSoftwareKeyboardRequested;
static BOOL gHUDHiddenForBoot;
static BOOL gHUDForcedVisibleForBoot;
@@ -42,6 +53,7 @@ static uint64_t gPointerEventCount;
static uint64_t gPointerButtonEventCount;
static uint64_t gScrollEventCount;
static uint64_t gKeyEventCount;
+static BOOL gDebugLogging;
// 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
// globe+<key> chords at the HID layer and relays the translated key; this flag
@@ -75,6 +87,7 @@ static CGPoint gCursorHotspot;
static CFTimeInterval gLastPredictedCursorTime;
static void (*gHostVMStarted)(void);
static SEL S(const char *name);
+static void setObj(id object, const char *selector, id value);
static void sendKey(UIKeyboardHIDUsage usage, BOOL pressed);
static void sendPointer(CGPoint point, CGRect bounds, NSUInteger pressedButtons);
static void setStatus(NSString *status);
@@ -84,6 +97,54 @@ static void startVirtualMachine(UIView *container, id delegate,
NSString *bundlePath,
NSDictionary *options);
+static NSString *VZInstallationFailureExplanation(NSString *failure)
+{
+ if ([failure containsString:@"Unexpected device state 'DFU'"] ||
+ [failure containsString:@"Code=4014"] ||
+ [failure containsString:@"error: 4014"]) {
+ return VZL(@"Another usbmuxd service took control of the virtual DFU device before it entered RestoreOS. Uninstall usbmuxd from Sileo and try again.");
+ }
+ if ([failure containsString:@"AMRestorePerformRestoreModeRestoreWithError failed with error: 100"] ||
+ [failure containsString:@"error: 100"]) {
+ return VZL(@"Verify your iPad has sufficient free storage and try again.");
+ }
+ return VZL(@"The install image and temporary installation files were kept so the failure can be diagnosed. You can export diagnostics from Settings.");
+}
+
+// On iPadOS 16.2, CoreUI's candidate bar artwork asks CoreImage for its legacy
+// EAGL backend. Platform/unsandboxed apps receive a null GL entry point and
+// crash in CI::GLContext before Virtual Mac code runs. CoreUI only requires
+// an ordinary CIContext here, so use the supported Metal backend.
+static id VZCoreUISharedMetalContext(id object, SEL selector) {
+ (void)object; (void)selector;
+ static CIContext *context;
+ static dispatch_once_t once;
+ dispatch_once(&once, ^{
+ id<MTLDevice> device = MTLCreateSystemDefaultDevice();
+ context = [[CIContext contextWithMTLDevice:device] retain];
+ });
+ return context;
+}
+
+static void installIPadOS162KeyboardRenderingFix(void) {
+ if (![UIDevice.currentDevice.systemVersion hasPrefix:@"16.2"])
+ return;
+ if (![VZAppSettings.sharedSettings
+ boolForKey:VZIPadOS162KeyboardWorkaroundKey])
+ return;
+ dlopen("/System/Library/PrivateFrameworks/CoreUI.framework/CoreUI",
+ RTLD_LAZY | RTLD_LOCAL);
+ Class shapeEffects = objc_getClass("CUIShapeEffectStack");
+ Method method = class_getClassMethod(shapeEffects,
+ sel_registerName("sharedCIContext"));
+ if (!method)
+ return;
+ class_replaceMethod(object_getClass(shapeEffects),
+ method_getName(method), (IMP)VZCoreUISharedMetalContext,
+ method_getTypeEncoding(method));
+ printf("[VirtualMac] installed iPadOS 16.2 Metal keyboard-rendering fix\n");
+}
+
static NSUInteger activePointerButtons(void) {
return gHardwareMouseButtons | gTouchButtons;
}
@@ -124,18 +185,20 @@ static void startHealthMonitor(void) {
&gPointerButtonEventCount, __ATOMIC_RELAXED) +
__atomic_load_n(&gScrollEventCount, __ATOMIC_RELAXED) +
__atomic_load_n(&gKeyEventCount, __ATOMIC_RELAXED);
- printf("[VirtualMac] health state=%ld frames=%llu cursors=%llu "
- "pointer=%llu scroll=%llu keys=%llu\n",
- (long)state,
- (unsigned long long)frames,
- (unsigned long long)__atomic_load_n(
- &gCursorUpdateCount, __ATOMIC_RELAXED),
- (unsigned long long)__atomic_load_n(
- &gPointerEventCount, __ATOMIC_RELAXED),
- (unsigned long long)__atomic_load_n(
- &gScrollEventCount, __ATOMIC_RELAXED),
- (unsigned long long)__atomic_load_n(
- &gKeyEventCount, __ATOMIC_RELAXED));
+ if (gDebugLogging) {
+ printf("[VirtualMac] health state=%ld frames=%llu cursors=%llu "
+ "pointer=%llu scroll=%llu keys=%llu\n",
+ (long)state,
+ (unsigned long long)frames,
+ (unsigned long long)__atomic_load_n(
+ &gCursorUpdateCount, __ATOMIC_RELAXED),
+ (unsigned long long)__atomic_load_n(
+ &gPointerEventCount, __ATOMIC_RELAXED),
+ (unsigned long long)__atomic_load_n(
+ &gScrollEventCount, __ATOMIC_RELAXED),
+ (unsigned long long)__atomic_load_n(
+ &gKeyEventCount, __ATOMIC_RELAXED));
+ }
if (state == 1 && frames != 0 && frames == gLastHealthFrameCount &&
interactions != gLastHealthInteractionCount) {
gFrameStallIntervals++;
@@ -245,8 +308,9 @@ static void sendMagnification(double magnification, NSUInteger phase) {
((void(*)(id, SEL, id))objc_msgSend)(
gPointingDevice, S("sendMagnifyEvents:"), @[event]);
[event release];
- printf("[VirtualMac] input magnify delta=%.4f phase=0x%lx\n",
- magnification, (unsigned long)phase);
+ if (gDebugLogging)
+ printf("[VirtualMac] input magnify delta=%.4f phase=0x%lx\n",
+ magnification, (unsigned long)phase);
}
static void sendRotation(double rotation, NSUInteger phase) {
@@ -260,8 +324,9 @@ static void sendRotation(double rotation, NSUInteger phase) {
((void(*)(id, SEL, id))objc_msgSend)(
gPointingDevice, S("sendRotationEvents:"), @[event]);
[event release];
- printf("[VirtualMac] input rotate delta=%.4f phase=0x%lx\n",
- rotation, (unsigned long)phase);
+ if (gDebugLogging)
+ printf("[VirtualMac] input rotate delta=%.4f phase=0x%lx\n",
+ rotation, (unsigned long)phase);
}
static void sendSmartMagnification(void) {
@@ -273,7 +338,8 @@ static void sendSmartMagnification(void) {
((void(*)(id, SEL, id))objc_msgSend)(
gPointingDevice, S("sendSmartMagnifyEvents:"), @[event]);
[event release];
- printf("[VirtualMac] input smart magnify\n");
+ if (gDebugLogging)
+ printf("[VirtualMac] input smart magnify\n");
}
static void sendMouseDelta(float deltaX, float deltaY) {
@@ -320,7 +386,7 @@ static void sendScrollWheel(CGVector rawDelta, CGVector acceleratedDelta,
gPointingDevice, S("sendScrollWheelEvents:"), @[event]);
[event release];
uint64_t count = __sync_add_and_fetch(&gScrollEventCount, 1);
- if (count <= 12 || phase != 4)
+ if (count <= 12 || (gDebugLogging && phase != 4))
printf("[VirtualMac] input scroll=%llu raw=%.3f,%.3f "
"accelerated=%.3f,%.3f inverted=%d device=%lu "
"phase=0x%lx\n",
@@ -366,6 +432,37 @@ static void installGCMouse(void) {
};
}
+static void recoverNetworkingAfterResume(void)
+{
+ if (!gVirtualMachine || ![VZAppSettings.sharedSettings
+ boolForKey:VZNetworkResumeRecoveryKey])
+ return;
+ NSInteger hostMajor =
+ NSProcessInfo.processInfo.operatingSystemVersion.majorVersion;
+ const char *launchctl = hostMajor == 14
+ ? "/usr/bin/launchctl"
+ : (access("/var/jb/usr/bin/launchctl", X_OK) == 0
+ ? "/var/jb/usr/bin/launchctl" : "/var/jb/bin/launchctl");
+ if (access(launchctl, X_OK) != 0)
+ return;
+ const char *labels[] = {
+ hostMajor <= 15 ? "system/com.apple.NetworkSharing"
+ : "user/501/com.apple.NetworkSharing",
+ hostMajor <= 15 ? "system/vzi.apple.bootpd"
+ : "user/501/vzi.apple.bootpd",
+ NULL};
+ for (NSUInteger index = 0; labels[index]; index++) {
+ const char *label = labels[index];
+ char *arguments[] = {(char *)launchctl, "kickstart",
+ (char *)label, NULL};
+ pid_t process = 0;
+ int result = posix_spawn(&process, launchctl, NULL, NULL,
+ arguments, environ);
+ printf("[VirtualMac] network resume kickstart label=%s result=%d pid=%d\n",
+ label, result, process);
+ }
+}
+
static void scheduleInputSelfTest(void) {
if (unlink("/tmp/vz-input-self-test") != 0)
return;
@@ -819,6 +916,20 @@ static void sendSoftwareKey(UIKeyboardHIDUsage usage, BOOL shifted);
UIInputView *_vzAccessoryView;
UIStackView *_vzAccessoryStack;
NSMutableSet<NSNumber *> *_vzHeldSoftwareModifiers;
+ CGPoint _vzDirectTouchStart;
+ CGPoint _vzLastDirectTap;
+ NSTimeInterval _vzLastDirectTapTime;
+ BOOL _vzDirectTouchActive;
+ BOOL _vzDirectTouchDragging;
+ NSMutableDictionary<NSValue *, NSValue *> *_vzDirectTouchOrigins;
+ NSMutableDictionary<NSValue *, NSValue *> *_vzDirectTouchPositions;
+ NSMutableSet<NSValue *> *_vzActiveDirectTouchKeys;
+ NSTimeInterval _vzDirectGestureStartTime;
+ CGFloat _vzDirectGestureMaximumMovement;
+ NSUInteger _vzDirectGestureGeneration;
+ BOOL _vzTwoFingerCandidate;
+ BOOL _vzLongPressConsumed;
+ BOOL _vzDirectPrimaryPressed;
}
@end
@@ -854,6 +965,7 @@ static void sendSoftwareKey(UIKeyboardHIDUsage usage, BOOL shifted);
stack.spacing = 6;
NSArray *keys = @[
@[@"esc", @0x29, @NO],
+ @[@"tab", @0x2b, @NO],
@[@"⇧", @0xe1, @YES], @[@"⌃", @0xe0, @YES],
@[@"⌥", @0xe2, @YES], @[@"⌘", @0xe3, @YES],
@[@"←", @0x50, @NO], @[@"↓", @0x51, @NO],
@@ -875,10 +987,11 @@ static void sendSoftwareKey(UIKeyboardHIDUsage usage, BOOL shifted);
weight:UIFontWeightSemibold];
button.tag = [key[1] integerValue];
button.accessibilityHint = [key[2] boolValue]
- ? @"Double-tap to hold or release this modifier" : nil;
+ ? VZL(@"Double-tap to hold or release this modifier") : nil;
[button addTarget:self action:@selector(accessoryKeyPressed:)
forControlEvents:UIControlEventTouchUpInside];
button.layer.cornerRadius = 7;
+ button.layer.cornerCurve = kCACornerCurveContinuous;
button.layer.borderWidth = 0.5;
button.layer.borderColor = UIColor.separatorColor.CGColor;
button.backgroundColor = UIColor.secondarySystemBackgroundColor;
@@ -1030,6 +1143,9 @@ static void sendSoftwareChord(UIKeyboardHIDUsage usage, BOOL shifted,
[_vzAccessoryView release];
[_vzAccessoryStack release];
[_vzHeldSoftwareModifiers release];
+ [_vzDirectTouchOrigins release];
+ [_vzDirectTouchPositions release];
+ [_vzActiveDirectTouchKeys release];
[super dealloc];
}
@@ -1143,6 +1259,37 @@ static void sendSoftwareChord(UIKeyboardHIDUsage usage, BOOL shifted,
phase);
}
+- (void)handleTouchScroll:(UIPanGestureRecognizer *)recognizer
+{
+ NSUInteger phase = 0;
+ CGPoint delta = CGPointZero;
+ switch (recognizer.state) {
+ case UIGestureRecognizerStateBegan:
+ phase = 1;
+ break;
+ case UIGestureRecognizerStateChanged:
+ phase = 4;
+ delta = [recognizer translationInView:self];
+ [recognizer setTranslation:CGPointZero inView:self];
+ break;
+ case UIGestureRecognizerStateEnded:
+ phase = 8;
+ break;
+ case UIGestureRecognizerStateCancelled:
+ case UIGestureRecognizerStateFailed:
+ phase = 16;
+ break;
+ default:
+ return;
+ }
+ // A direct two-finger pan follows the content under the fingers (natural
+ // scrolling), while captured hardware-wheel deltas describe wheel
+ // rotation. Rotate and invert the UIKit translation before entering the
+ // shared VZ event mapping. This intentionally affects direct touch only.
+ CGVector raw = CGVectorMake(-delta.y, delta.x);
+ sendScrollWheel(raw, raw, YES, 1, phase);
+}
+
- (UIPointerRegion *)pointerInteraction:(UIPointerInteraction *)interaction
regionForRequest:(UIPointerRegionRequest *)request
defaultRegion:(UIPointerRegion *)defaultRegion
@@ -1163,10 +1310,285 @@ static void sendSoftwareChord(UIKeyboardHIDUsage usage, BOOL shifted,
return [UIPointerStyle hiddenPointerStyle];
}
+- (BOOL)usesDeferredDirectTouchClicks
+{
+ VZAppSettings *settings = VZAppSettings.sharedSettings;
+ return [settings boolForKey:VZTouchTwoFingerRightClickKey] ||
+ [settings boolForKey:VZTouchLongPressRightClickKey];
+}
+
+- (NSValue *)directTouchKey:(UITouch *)touch
+{
+ return [NSValue valueWithNonretainedObject:touch];
+}
+
+- (void)ensureDirectTouchTracking
+{
+ if (!_vzDirectTouchOrigins)
+ _vzDirectTouchOrigins = [[NSMutableDictionary alloc] init];
+ if (!_vzDirectTouchPositions)
+ _vzDirectTouchPositions = [[NSMutableDictionary alloc] init];
+ if (!_vzActiveDirectTouchKeys)
+ _vzActiveDirectTouchKeys = [[NSMutableSet alloc] init];
+}
+
+- (CGPoint)directTouchMidpoint
+{
+ if (!_vzDirectTouchPositions.count)
+ return _vzDirectTouchStart;
+ CGFloat x = 0;
+ CGFloat y = 0;
+ for (NSValue *value in _vzDirectTouchPositions.allValues) {
+ CGPoint point = value.CGPointValue;
+ x += point.x;
+ y += point.y;
+ }
+ return CGPointMake(x / _vzDirectTouchPositions.count,
+ y / _vzDirectTouchPositions.count);
+}
+
+- (void)emitDirectClickAtPoint:(CGPoint)point button:(NSUInteger)button
+{
+ // Move first, matching the native indirect-pointer path. The down/up pair
+ // is emitted together only after the direct-touch gesture is known, so a
+ // two-finger tap never leaks a primary click into the guest.
+ gTouchButtons = 0;
+ sendPointer(point, self.bounds, activePointerButtons());
+ gTouchButtons = button;
+ sendPointer(point, self.bounds, activePointerButtons());
+ gTouchButtons = 0;
+ sendPointer(point, self.bounds, activePointerButtons());
+}
+
+- (void)resetDeferredDirectTouch
+{
+ _vzDirectGestureGeneration++;
+ _vzDirectTouchActive = NO;
+ _vzDirectTouchDragging = NO;
+ _vzTwoFingerCandidate = NO;
+ _vzLongPressConsumed = NO;
+ _vzDirectPrimaryPressed = NO;
+ _vzDirectGestureMaximumMovement = 0;
+ [_vzDirectTouchOrigins removeAllObjects];
+ [_vzDirectTouchPositions removeAllObjects];
+ [_vzActiveDirectTouchKeys removeAllObjects];
+}
+
+- (void)beginDeferredDirectTouches:(NSSet<UITouch *> *)touches
+ withEvent:(UIEvent *)event
+{
+ (void)event;
+ [self ensureDirectTouchTracking];
+ for (UITouch *touch in touches) {
+ if (touch.type != UITouchTypeDirect)
+ continue;
+ NSValue *key = [self directTouchKey:touch];
+ CGPoint point = [touch locationInView:self];
+ if (!_vzDirectTouchOrigins[key])
+ _vzDirectTouchOrigins[key] = [NSValue valueWithCGPoint:point];
+ _vzDirectTouchPositions[key] = [NSValue valueWithCGPoint:point];
+ [_vzActiveDirectTouchKeys addObject:key];
+ if (!_vzDirectTouchActive) {
+ _vzDirectTouchActive = YES;
+ _vzDirectTouchDragging = NO;
+ _vzTwoFingerCandidate = NO;
+ _vzLongPressConsumed = NO;
+ // Preserve the original fast-path double-tap semantics: decide
+ // the accommodated guest coordinate at touch-down, before the
+ // guest observes any pointer movement. Applying it at touch-up
+ // made the pointer visit the second physical coordinate between
+ // clicks, which defeats AppKit's double-click hit testing.
+ BOOL accommodate = [VZAppSettings.sharedSettings
+ boolForKey:VZTouchDoubleTapAccommodationKey];
+ if (accommodate &&
+ touch.timestamp - _vzLastDirectTapTime <= 0.20) {
+ CGFloat dx = point.x - _vzLastDirectTap.x;
+ CGFloat dy = point.y - _vzLastDirectTap.y;
+ if (hypot(dx, dy) <= 30.0)
+ point = _vzLastDirectTap;
+ }
+ _vzDirectTouchStart = point;
+ _vzDirectGestureStartTime = touch.timestamp;
+ _vzDirectGestureMaximumMovement = 0;
+ _vzDirectGestureGeneration++;
+ }
+ }
+
+ NSUInteger count = _vzActiveDirectTouchKeys.count;
+ if (count == 2) {
+ if (_vzDirectPrimaryPressed) {
+ gTouchButtons = 0;
+ sendPointer(_vzDirectTouchStart, self.bounds,
+ activePointerButtons());
+ _vzDirectPrimaryPressed = NO;
+ }
+ _vzTwoFingerCandidate = YES;
+ // Invalidate a pending one-finger long press as soon as the second
+ // finger arrives. Two-finger scrolling remains owned by its pan
+ // recognizer and cancels this candidate after actual movement.
+ _vzDirectGestureGeneration++;
+ } else if (count > 2) {
+ _vzTwoFingerCandidate = NO;
+ _vzDirectGestureGeneration++;
+ }
+
+ CGPoint point = count > 1 ? [self directTouchMidpoint]
+ : _vzDirectTouchStart;
+ gTouchButtons = 0;
+ sendPointer(point, self.bounds, activePointerButtons());
+
+ if (count == 1 && [VZAppSettings.sharedSettings
+ boolForKey:VZTouchLongPressRightClickKey]) {
+ NSUInteger generation = _vzDirectGestureGeneration;
+ dispatch_after(dispatch_time(DISPATCH_TIME_NOW,
+ (int64_t)(0.55 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
+ if (!_vzDirectTouchActive || _vzDirectTouchDragging ||
+ _vzTwoFingerCandidate || _vzLongPressConsumed ||
+ _vzActiveDirectTouchKeys.count != 1 ||
+ generation != _vzDirectGestureGeneration)
+ return;
+ _vzLongPressConsumed = YES;
+ [self emitDirectClickAtPoint:[self directTouchMidpoint] button:2];
+ });
+ } else if (count == 1) {
+ // Waiting until touch-up made every tap feel laggy and changed drag
+ // timing. Keep only a very short arbitration window for a second
+ // finger, then restore the normal touch-down press while the finger
+ // is still held.
+ NSUInteger generation = _vzDirectGestureGeneration;
+ dispatch_after(dispatch_time(DISPATCH_TIME_NOW,
+ (int64_t)(0.03 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
+ if (!_vzDirectTouchActive || _vzDirectTouchDragging ||
+ _vzTwoFingerCandidate || _vzLongPressConsumed ||
+ _vzActiveDirectTouchKeys.count != 1 ||
+ generation != _vzDirectGestureGeneration)
+ return;
+ _vzDirectPrimaryPressed = YES;
+ gTouchButtons = 1;
+ sendPointer(_vzDirectTouchStart, self.bounds,
+ activePointerButtons());
+ });
+ }
+}
+
+- (void)moveDeferredDirectTouches:(NSSet<UITouch *> *)touches
+ withEvent:(UIEvent *)event
+{
+ (void)event;
+ for (UITouch *touch in touches) {
+ if (touch.type != UITouchTypeDirect)
+ continue;
+ NSValue *key = [self directTouchKey:touch];
+ CGPoint point = [touch locationInView:self];
+ _vzDirectTouchPositions[key] = [NSValue valueWithCGPoint:point];
+ CGPoint origin = [_vzDirectTouchOrigins[key] CGPointValue];
+ _vzDirectGestureMaximumMovement = MAX(
+ _vzDirectGestureMaximumMovement,
+ hypot(point.x - origin.x, point.y - origin.y));
+ }
+
+ if (_vzActiveDirectTouchKeys.count != 1) {
+ if (_vzActiveDirectTouchKeys.count > 2)
+ _vzTwoFingerCandidate = NO;
+ return;
+ }
+ if (_vzLongPressConsumed)
+ return;
+
+ CGPoint point = [self directTouchMidpoint];
+ if (!_vzDirectTouchDragging) {
+ CGFloat dx = point.x - _vzDirectTouchStart.x;
+ CGFloat dy = point.y - _vzDirectTouchStart.y;
+ if (hypot(dx, dy) <= 8.0)
+ return;
+ _vzDirectTouchDragging = YES;
+ _vzTwoFingerCandidate = NO;
+ _vzDirectGestureGeneration++;
+ if (!_vzDirectPrimaryPressed) {
+ _vzDirectPrimaryPressed = YES;
+ gTouchButtons = 1;
+ sendPointer(_vzDirectTouchStart, self.bounds,
+ activePointerButtons());
+ }
+ }
+ gTouchButtons = 1;
+ sendPointer(point, self.bounds, activePointerButtons());
+}
+
+- (void)endDeferredDirectTouches:(NSSet<UITouch *> *)touches
+ withEvent:(UIEvent *)event
+{
+ CGPoint finalPoint = [self directTouchMidpoint];
+ NSTimeInterval endTime = _vzDirectGestureStartTime;
+ for (UITouch *touch in touches) {
+ if (touch.type != UITouchTypeDirect)
+ continue;
+ NSValue *key = [self directTouchKey:touch];
+ CGPoint point = [touch locationInView:self];
+ _vzDirectTouchPositions[key] = [NSValue valueWithCGPoint:point];
+ CGPoint origin = [_vzDirectTouchOrigins[key] CGPointValue];
+ _vzDirectGestureMaximumMovement = MAX(
+ _vzDirectGestureMaximumMovement,
+ hypot(point.x - origin.x, point.y - origin.y));
+ [_vzActiveDirectTouchKeys removeObject:key];
+ endTime = MAX(endTime, touch.timestamp);
+ }
+ finalPoint = [self directTouchMidpoint];
+ if (_vzActiveDirectTouchKeys.count)
+ return;
+
+ NSTimeInterval duration = endTime - _vzDirectGestureStartTime;
+ if (_vzLongPressConsumed) {
+ // The long-press click has already completed.
+ } else if (_vzTwoFingerCandidate &&
+ _vzDirectTouchOrigins.count == 2 &&
+ duration <= 0.35 &&
+ _vzDirectGestureMaximumMovement <= 10.0) {
+ [self emitDirectClickAtPoint:finalPoint button:2];
+ } else if (_vzDirectTouchOrigins.count == 1 &&
+ !_vzDirectTouchDragging) {
+ // A tap lands where it began, not wherever the finger happened to
+ // drift before lifting. This matches the pre-381c140 path and keeps
+ // small targets accurate.
+ finalPoint = _vzDirectTouchStart;
+ if (_vzDirectPrimaryPressed) {
+ gTouchButtons = 0;
+ sendPointer(finalPoint, self.bounds, activePointerButtons());
+ } else {
+ [self emitDirectClickAtPoint:finalPoint button:1];
+ }
+ _vzLastDirectTap = _vzDirectTouchStart;
+ _vzLastDirectTapTime = endTime;
+ } else if (_vzDirectTouchDragging) {
+ gTouchButtons = 0;
+ sendPointer(finalPoint, self.bounds, activePointerButtons());
+ _vzLastDirectTapTime = 0;
+ }
+ (void)event;
+ [self resetDeferredDirectTouch];
+}
+
+- (void)cancelDeferredDirectTouches:(NSSet<UITouch *> *)touches
+ withEvent:(UIEvent *)event
+{
+ (void)event;
+ CGPoint point = [self directTouchMidpoint];
+ for (UITouch *touch in touches)
+ if (touch.type == UITouchTypeDirect)
+ point = [touch locationInView:self];
+ gTouchButtons = 0;
+ sendPointer(point, self.bounds, activePointerButtons());
+ [self resetDeferredDirectTouch];
+}
+
- (void)touchesBegan:(NSSet<UITouch *> *)touches
withEvent:(UIEvent *)event
{
UITouch *touch = [touches anyObject];
+ if (touch.type == UITouchTypeDirect && [self usesDeferredDirectTouchClicks]) {
+ [self beginDeferredDirectTouches:touches withEvent:event];
+ return;
+ }
if (touch) {
// Hardware trackpad clicks reach a UIKit view as indirect-pointer
// touches even when GameController exposes no GCMouse. Preserve
@@ -1179,8 +1601,30 @@ static void sendSoftwareChord(UIKeyboardHIDUsage usage, BOOL shifted,
// the indirect UITouch continues to report every live drag position.
// Treat it as authoritative or the guest only sees the final point.
CGPoint point = [touch locationInView:self];
- sendPointer(point, self.bounds,
- activePointerButtons());
+ if (touch.type == UITouchTypeDirect) {
+ NSTimeInterval now = touch.timestamp;
+ BOOL accommodate = [VZAppSettings.sharedSettings
+ boolForKey:VZTouchDoubleTapAccommodationKey];
+ if (accommodate) {
+ CGFloat dx = point.x - _vzLastDirectTap.x;
+ CGFloat dy = point.y - _vzLastDirectTap.y;
+ // Only coalesce a deliberate, quick double-tap. A broad
+ // interval makes two ordinary taps on nearby controls land
+ // on the first control instead.
+ if (now - _vzLastDirectTapTime <= 0.20 &&
+ hypot(dx, dy) <= 30.0)
+ point = _vzLastDirectTap;
+ _vzDirectTouchStart = point;
+ _vzDirectTouchActive = YES;
+ _vzDirectTouchDragging = NO;
+ }
+ }
+ // Match the working hardware-trackpad path: establish the guest
+ // pointer location before pressing. Modern AppKit menu tracking needs
+ // this hover/move transition before a direct tap on a menu item.
+ if (touch.type == UITouchTypeDirect)
+ sendPointer(point, self.bounds, gHardwareMouseButtons);
+ sendPointer(point, self.bounds, activePointerButtons());
printf("[VirtualMac] touch began type=%ld buttons=0x%lx\n",
(long)touch.type, (unsigned long)gTouchButtons);
}
@@ -1190,11 +1634,26 @@ static void sendSoftwareChord(UIKeyboardHIDUsage usage, BOOL shifted,
withEvent:(UIEvent *)event
{
UITouch *touch = [touches anyObject];
+ if (touch.type == UITouchTypeDirect && [self usesDeferredDirectTouchClicks]) {
+ [self moveDeferredDirectTouches:touches withEvent:event];
+ return;
+ }
if (touch) {
NSUInteger eventButtons = (NSUInteger)event.buttonMask & 0x7U;
if (eventButtons)
gTouchButtons = eventButtons;
CGPoint point = [touch locationInView:self];
+ if (touch.type == UITouchTypeDirect && _vzDirectTouchActive &&
+ !_vzDirectTouchDragging) {
+ CGFloat dx = point.x - _vzDirectTouchStart.x;
+ CGFloat dy = point.y - _vzDirectTouchStart.y;
+ // Ignore finger jitter during an ordinary click. Modern AppKit
+ // menus interpret tiny held movement as a drag-and-dismiss. An
+ // intentional drag becomes live immediately outside tap slop.
+ if (hypot(dx, dy) <= 8.0)
+ return;
+ _vzDirectTouchDragging = YES;
+ }
sendPointer(point, self.bounds,
activePointerButtons());
}
@@ -1204,10 +1663,25 @@ static void sendSoftwareChord(UIKeyboardHIDUsage usage, BOOL shifted,
withEvent:(UIEvent *)event
{
UITouch *touch = [touches anyObject];
+ if (touch.type == UITouchTypeDirect && [self usesDeferredDirectTouchClicks]) {
+ [self endDeferredDirectTouches:touches withEvent:event];
+ return;
+ }
if (touch) {
(void)event;
gTouchButtons = 0;
CGPoint point = [touch locationInView:self];
+ if (touch.type == UITouchTypeDirect && _vzDirectTouchActive) {
+ if (!_vzDirectTouchDragging) {
+ point = _vzDirectTouchStart;
+ _vzLastDirectTap = point;
+ _vzLastDirectTapTime = touch.timestamp;
+ } else {
+ _vzLastDirectTapTime = 0;
+ }
+ _vzDirectTouchActive = NO;
+ _vzDirectTouchDragging = NO;
+ }
sendPointer(point, self.bounds,
activePointerButtons());
}
@@ -1216,6 +1690,11 @@ static void sendSoftwareChord(UIKeyboardHIDUsage usage, BOOL shifted,
- (void)touchesCancelled:(NSSet<UITouch *> *)touches
withEvent:(UIEvent *)event
{
+ UITouch *touch = [touches anyObject];
+ if (touch.type == UITouchTypeDirect && [self usesDeferredDirectTouchClicks]) {
+ [self cancelDeferredDirectTouches:touches withEvent:event];
+ return;
+ }
[self touchesEnded:touches withEvent:event];
}
@@ -1241,19 +1720,40 @@ static void sendSoftwareChord(UIKeyboardHIDUsage usage, BOOL shifted,
@end
-@interface VZHUDView : UIVisualEffectView
+@interface VZHUDView : UIView
- (instancetype)initWithTarget:(id)target;
+- (void)setContentOpacity:(CGFloat)opacity;
@end
@implementation VZHUDView
+
+- (void)setContentOpacity:(CGFloat)opacity
+{
+ opacity = MAX(0.0, MIN(1.0, opacity));
+ // Keep the container and buttons at alpha 1 so UIKit continues hit
+ // testing them when the user chooses zero visual opacity. Only the cheap
+ // solid background and symbol tint become transparent; no effect view or
+ // offscreen pass is introduced.
+ self.alpha = 1.0;
+ self.backgroundColor = [UIColor colorWithWhite:0.08 alpha:0.86 * opacity];
+ UIStackView *stack = (UIStackView *)[self viewWithTag:1701];
+ for (UIButton *button in stack.arrangedSubviews)
+ button.tintColor = [UIColor.whiteColor colorWithAlphaComponent:opacity];
+}
+
- (instancetype)initWithTarget:(id)target
{
- if ((self = [super initWithEffect:[UIBlurEffect effectWithStyle:
- UIBlurEffectStyleSystemUltraThinMaterialDark]])) {
+ if ((self = [super initWithFrame:CGRectZero])) {
+ // A small, solid translucent layer is considerably cheaper than a
+ // UIVisualEffectView: no backdrop capture, blur, or offscreen effect
+ // pass is introduced above the continuously updating PVG surface.
+ self.backgroundColor = [UIColor colorWithWhite:0.08 alpha:0.86];
self.layer.cornerRadius = 18;
+ self.layer.cornerCurve = kCACornerCurveContinuous;
self.clipsToBounds = YES;
self.translatesAutoresizingMaskIntoConstraints = NO;
UIStackView *stack = [[[UIStackView alloc] init] autorelease];
+ stack.tag = 1701;
stack.translatesAutoresizingMaskIntoConstraints = NO;
stack.axis = UILayoutConstraintAxisHorizontal;
stack.spacing = 2;
@@ -1269,7 +1769,7 @@ static void sendSoftwareChord(UIKeyboardHIDUsage usage, BOOL shifted,
button.menu = ((id(*)(id, SEL))objc_msgSend)(
target, NSSelectorFromString(@"hudMenu"));
button.showsMenuAsPrimaryAction = YES;
- button.accessibilityLabel = @"Virtual Mac Controls";
+ button.accessibilityLabel = VZL(@"Virtual Mac Controls");
} else {
[button addTarget:target action:NSSelectorFromString(item[@"selector"])
forControlEvents:UIControlEventTouchUpInside];
@@ -1278,12 +1778,12 @@ static void sendSoftwareChord(UIKeyboardHIDUsage usage, BOOL shifted,
[button.heightAnchor constraintEqualToConstant:46].active = YES;
[stack addArrangedSubview:button];
}
- [self.contentView addSubview:stack];
+ [self addSubview:stack];
[NSLayoutConstraint activateConstraints:@[
- [stack.leadingAnchor constraintEqualToAnchor:self.contentView.leadingAnchor constant:4],
- [stack.trailingAnchor constraintEqualToAnchor:self.contentView.trailingAnchor constant:-4],
- [stack.topAnchor constraintEqualToAnchor:self.contentView.topAnchor constant:4],
- [stack.bottomAnchor constraintEqualToAnchor:self.contentView.bottomAnchor constant:-4],
+ [stack.leadingAnchor constraintEqualToAnchor:self.leadingAnchor constant:4],
+ [stack.trailingAnchor constraintEqualToAnchor:self.trailingAnchor constant:-4],
+ [stack.topAnchor constraintEqualToAnchor:self.topAnchor constant:4],
+ [stack.bottomAnchor constraintEqualToAnchor:self.bottomAnchor constant:-4],
]];
}
return self;
@@ -1358,6 +1858,17 @@ static void sendSoftwareChord(UIKeyboardHIDUsage usage, BOOL shifted,
[self updateHUDPosition];
[self updateHUDVisibility];
updateDisplayGeometry();
+ if (gTouchScrollRecognizer) {
+ BOOL enabled = [VZAppSettings.sharedSettings
+ boolForKey:VZTouchTwoFingerScrollingKey];
+ gTouchScrollRecognizer.enabled = enabled;
+ NSArray *allowed = enabled ? @[@(UITouchTypeIndirectPointer)]
+ : @[@(UITouchTypeDirect),
+ @(UITouchTypeIndirectPointer)];
+ gPinchRecognizer.allowedTouchTypes = allowed;
+ gRotationRecognizer.allowedTouchTypes = allowed;
+ gSmartMagnifyRecognizer.allowedTouchTypes = allowed;
+ }
}
- (void)updateHUDPosition
@@ -1391,6 +1902,9 @@ static void sendSoftwareChord(UIKeyboardHIDUsage usage, BOOL shifted,
(gHUDHiddenForBoot || [choice isEqualToString:@"hidden"]));
if (!gHUDForcedVisibleForBoot && [choice isEqualToString:@"automatic"])
hidden = hidden || (GCKeyboard.coalescedKeyboard != nil && GCMouse.current != nil);
+ CGFloat opacity = [[VZAppSettings.sharedSettings
+ stringForKey:VZHUDOpacityKey] doubleValue];
+ [(VZHUDView *)gHUDView setContentOpacity:opacity];
gHUDView.hidden = hidden;
}
@@ -1409,25 +1923,36 @@ static void sendSoftwareChord(UIKeyboardHIDUsage usage, BOOL shifted,
- (UIMenu *)hudMenu
{
- UIAction *library = [UIAction actionWithTitle:@"Show Library"
+ UIAction *library = [UIAction actionWithTitle:VZL(@"Show Library")
image:[UIImage systemImageNamed:@"square.grid.2x2"] identifier:nil
handler:^(UIAction *action) { (void)action; [self presentVMLibrary]; }];
- UIAction *shutdown = [UIAction actionWithTitle:@"Force Shut Down"
+ UIAction *shutdown = [UIAction actionWithTitle:VZL(@"Force Shut Down")
image:[UIImage systemImageNamed:@"power"] identifier:nil
handler:^(UIAction *action) { (void)action; [self confirmForceShutdown]; }];
shutdown.attributes = UIMenuElementAttributesDestructive;
- UIAction *hide = [UIAction actionWithTitle:@"Hide for This Boot"
+ UIAction *hide = [UIAction actionWithTitle:VZL(@"Hide for This Boot")
image:[UIImage systemImageNamed:@"eye.slash"] identifier:nil
handler:^(UIAction *action) { (void)action;
gHUDHiddenForBoot = YES;
[self updateHUDVisibility];
+ NSString *noticeKey = @"HUDHideRecoveryNoticeShown";
+ if (![VZAppSettings.sharedSettings boolForKey:noticeKey]) {
+ [VZAppSettings.sharedSettings setBool:YES forKey:noticeKey];
+ UIAlertController *notice = [UIAlertController
+ alertControllerWithTitle:VZL(@"Controls Hidden")
+ message:VZL(@"To show the controls again during this boot, touch and hold the Virtual Mac icon on the Home Screen, then choose Show Virtual Mac Controls.")
+ preferredStyle:UIAlertControllerStyleAlert];
+ [notice addAction:[UIAlertAction actionWithTitle:VZL(@"OK")
+ style:UIAlertActionStyleDefault handler:nil]];
+ [self presentViewController:notice animated:YES completion:nil];
+ }
}];
NSMutableArray *placements = [NSMutableArray array];
NSString *current = [VZAppSettings.sharedSettings stringForKey:VZHUDCornerKey]
?: @"top-right";
for (NSArray *placement in @[
- @[@"Top Left", @"top-left"], @[@"Top Right", @"top-right"],
- @[@"Bottom Left", @"bottom-left"], @[@"Bottom Right", @"bottom-right"],
+ @[VZL(@"Top Left"), @"top-left"], @[VZL(@"Top Right"), @"top-right"],
+ @[VZL(@"Bottom Left"), @"bottom-left"], @[VZL(@"Bottom Right"), @"bottom-right"],
]) {
UIAction *move = [UIAction actionWithTitle:placement[0] image:nil
identifier:nil handler:^(UIAction *action) {
@@ -1440,7 +1965,7 @@ static void sendSoftwareChord(UIKeyboardHIDUsage usage, BOOL shifted,
? UIMenuElementStateOn : UIMenuElementStateOff;
[placements addObject:move];
}
- UIMenu *moveMenu = [UIMenu menuWithTitle:@"Move Controls" children:placements];
+ UIMenu *moveMenu = [UIMenu menuWithTitle:VZL(@"Move Controls") children:placements];
return [UIMenu menuWithTitle:@""
children:@[library, shutdown, hide, moveMenu]];
}
@@ -1450,12 +1975,12 @@ static void sendSoftwareChord(UIKeyboardHIDUsage usage, BOOL shifted,
if (!gVirtualMachine)
return;
UIAlertController *alert = [UIAlertController
- alertControllerWithTitle:@"Force Shut Down Virtual Mac?"
- message:@"Unsaved changes in macOS may be lost."
+ alertControllerWithTitle:VZL(@"Force Shut Down Virtual Mac?")
+ message:VZL(@"Unsaved changes in macOS may be lost.")
preferredStyle:UIAlertControllerStyleAlert];
- [alert addAction:[UIAlertAction actionWithTitle:@"Cancel"
+ [alert addAction:[UIAlertAction actionWithTitle:VZL(@"Cancel")
style:UIAlertActionStyleCancel handler:nil]];
- [alert addAction:[UIAlertAction actionWithTitle:@"Force Shut Down"
+ [alert addAction:[UIAlertAction actionWithTitle:VZL(@"Force Shut Down")
style:UIAlertActionStyleDestructive handler:^(UIAlertAction *action) {
(void)action;
forceStopVirtualMachine();
@@ -1554,7 +2079,7 @@ static NSString *VZInstallationConsoleText(NSString *installLogPath)
[console appendString:@"\n\n"];
[console appendFormat:@"── %@ ──\n%@", source[0], tail];
}
- return console.length ? console : @"Waiting for restore output…";
+ return console.length ? console : VZL(@"Waiting for installation output…");
}
static void VZWriteInstallationAttempt(NSString *attemptPath, NSString *state,
@@ -1673,33 +2198,35 @@ static void VZWriteInstallationAttempt(NSString *attemptPath, NSString *state,
if (interrupted.count) dispatch_after(dispatch_time(DISPATCH_TIME_NOW,
400 * NSEC_PER_MSEC), dispatch_get_main_queue(), ^{
UIAlertController *alert = [UIAlertController alertControllerWithTitle:
- interrupted.count == 1 ? @"Incomplete Installation" : @"Incomplete Installations"
- message:@"A previous macOS installation did not finish. You can review its details, keep it for debugging, or delete it."
+ interrupted.count == 1 ? VZL(@"Incomplete Installation") : VZL(@"Incomplete Installations")
+ message:VZL(@"A previous macOS installation did not finish. You can review its details, keep it for debugging, or delete it.")
preferredStyle:UIAlertControllerStyleAlert];
- [alert addAction:[UIAlertAction actionWithTitle:@"Keep" style:UIAlertActionStyleCancel handler:nil]];
- [alert addAction:[UIAlertAction actionWithTitle:@"View Details" style:UIAlertActionStyleDefault
+ [alert addAction:[UIAlertAction actionWithTitle:VZL(@"Done")
+ style:UIAlertActionStyleCancel handler:nil]];
+ [alert addAction:[UIAlertAction actionWithTitle:VZL(@"View Details") style:UIAlertActionStyleDefault
handler:^(UIAlertAction *action) {
(void)action;
NSMutableString *details = [NSMutableString string];
for (NSDictionary *item in interrupted) {
NSDictionary *record = item[@"record"];
- [details appendFormat:@"%@\nState: %@\n%@\n\n",
+ [details appendFormat:VZL(@"%@\nState: %@\n%@\n\n"),
record[@"Name"] ?: [item[@"path"] lastPathComponent],
- record[@"State"] ?: @"Unknown", item[@"path"]];
+ record[@"State"] ?: VZL(@"Unknown"), item[@"path"]];
}
- UIAlertController *info = [UIAlertController alertControllerWithTitle:@"Installation Details"
- message:details preferredStyle:UIAlertControllerStyleAlert];
- [info addAction:[UIAlertAction actionWithTitle:@"Keep Files" style:UIAlertActionStyleCancel handler:nil]];
- [info addAction:[UIAlertAction actionWithTitle:@"Delete All"
- style:UIAlertActionStyleDestructive handler:^(UIAlertAction *innerAction) {
- (void)innerAction;
- NSMutableArray *paths = [NSMutableArray array];
- for (NSDictionary *item in interrupted) [paths addObject:item[@"path"]];
- VZRemovePaths(paths);
- }]];
- [self presentViewController:info animated:YES completion:nil];
+ VZFailureDetailsViewController *controller =
+ [[[VZFailureDetailsViewController alloc]
+ initWithTitle:VZL(@"Installation Details")
+ details:details] autorelease];
+ UINavigationController *navigation =
+ [[[UINavigationController alloc]
+ initWithRootViewController:controller] autorelease];
+ navigation.modalPresentationStyle =
+ UIModalPresentationPageSheet;
+ navigation.preferredContentSize = CGSizeMake(640, 620);
+ [self presentViewController:navigation animated:YES
+ completion:nil];
}]];
- [alert addAction:[UIAlertAction actionWithTitle:@"Delete All" style:UIAlertActionStyleDestructive
+ [alert addAction:[UIAlertAction actionWithTitle:VZL(@"Delete All") style:UIAlertActionStyleDestructive
handler:^(UIAlertAction *action) {
(void)action;
NSMutableArray *paths = [NSMutableArray array];
@@ -1782,11 +2309,12 @@ static void VZWriteInstallationAttempt(NSString *attemptPath, NSString *state,
[url stopAccessingSecurityScopedResource];
if (!persistentURL) {
UIAlertController *failure = [UIAlertController
- alertControllerWithTitle:@"Could Not Prepare Restore Image"
+ alertControllerWithTitle:VZL(@"Could Not Prepare Restore Image")
message:imageError.localizedDescription
preferredStyle:UIAlertControllerStyleAlert];
- [failure addAction:[UIAlertAction actionWithTitle:@"OK"
+ [failure addAction:[UIAlertAction actionWithTitle:VZL(@"OK")
style:UIAlertActionStyleDefault handler:nil]];
+ VZAddFailureSupportActions(failure);
[self presentViewController:failure animated:YES completion:nil];
return;
}
@@ -1805,11 +2333,12 @@ static void VZWriteInstallationAttempt(NSString *attemptPath, NSString *state,
withIntermediateDirectories:YES attributes:nil error:nil];
if ([NSFileManager.defaultManager fileExistsAtPath:bundlePath]) {
UIAlertController *exists = [UIAlertController
- alertControllerWithTitle:@"Name Already Used"
- message:@"Delete or rename the existing virtual Mac first."
+ alertControllerWithTitle:VZL(@"Name Already Used")
+ message:VZL(@"Delete or rename the existing Virtual Mac first.")
preferredStyle:UIAlertControllerStyleAlert];
- [exists addAction:[UIAlertAction actionWithTitle:@"OK"
+ [exists addAction:[UIAlertAction actionWithTitle:VZL(@"OK")
style:UIAlertActionStyleDefault handler:nil]];
+ VZAddFailureSupportActions(exists);
[self presentViewController:exists animated:YES completion:nil];
return;
}
@@ -1850,12 +2379,13 @@ static void VZWriteInstallationAttempt(NSString *attemptPath, NSString *state,
@"Failure": [NSString stringWithFormat:@"Could not start installer: %s", strerror(result)]
});
UIAlertController *failure = [UIAlertController
- alertControllerWithTitle:@"Could Not Start Installer"
+ alertControllerWithTitle:VZL(@"Could Not Start Installer")
message:[NSString stringWithFormat:
- @"install-launcher failed: %s", strerror(result)]
+ VZL(@"The installer could not be started: %s"), strerror(result)]
preferredStyle:UIAlertControllerStyleAlert];
- [failure addAction:[UIAlertAction actionWithTitle:@"OK"
+ [failure addAction:[UIAlertAction actionWithTitle:VZL(@"OK")
style:UIAlertActionStyleDefault handler:nil]];
+ VZAddFailureSupportActions(failure);
[self presentViewController:failure animated:YES completion:nil];
return;
}
@@ -1899,20 +2429,20 @@ static void VZWriteInstallationAttempt(NSString *attemptPath, NSString *state,
self.installationStagingPath = stagingPath;
self.installationOptions = options;
self.installationController = [[[VZProgressViewController alloc]
- initWithTitle:@"Installing macOS"] autorelease];
- self.installationController.statusText = @"Preparing restore…";
+ initWithTitle:VZL(@"Installing macOS")] autorelease];
+ self.installationController.statusText = VZL(@"Preparing installation…");
self.installationController.detailText =
- @"Progress may pause for several minutes while the virtual Mac starts the Restore Environment. The iPad will remain awake.";
- self.installationController.consoleText = @"Waiting for restore output…";
+ VZL(@"Installation progress may pause for several minutes while the Virtual Mac starts the installation environment. Your iPad will remain awake.");
+ self.installationController.consoleText = VZL(@"Waiting for installation output…");
self.installationController.indeterminate = YES;
self.installationController.cancellationHandler = ^{
UIAlertController *confirmation = [UIAlertController
- alertControllerWithTitle:@"Cancel Installation?"
- message:@"The incomplete virtual Mac and its installation files will be deleted."
+ alertControllerWithTitle:VZL(@"Cancel Installation?")
+ message:VZL(@"The incomplete Virtual Mac and its installation files will be deleted.")
preferredStyle:UIAlertControllerStyleAlert];
- [confirmation addAction:[UIAlertAction actionWithTitle:@"Keep Installing"
+ [confirmation addAction:[UIAlertAction actionWithTitle:VZL(@"Keep Installing")
style:UIAlertActionStyleCancel handler:nil]];
- [confirmation addAction:[UIAlertAction actionWithTitle:@"Cancel Installation"
+ [confirmation addAction:[UIAlertAction actionWithTitle:VZL(@"Cancel Installation")
style:UIAlertActionStyleDestructive handler:^(UIAlertAction *action) {
(void)action;
[self.installationTimer invalidate];
@@ -1971,14 +2501,14 @@ static void VZWriteInstallationAttempt(NSString *attemptPath, NSString *state,
[self presentVMLibrary];
if (writeError)
setStatus([NSString stringWithFormat:
- @"Installed, but settings save failed: %@", writeError]);
+ VZL(@"Installed, but settings save failed: %@"), writeError]);
UIAlertController *success = [UIAlertController
- alertControllerWithTitle:@"macOS Installed"
- message:@"The new virtual Mac is ready to use."
+ alertControllerWithTitle:VZL(@"macOS Installed")
+ message:VZL(@"The new Virtual Mac is ready to use.")
preferredStyle:UIAlertControllerStyleAlert];
- [success addAction:[UIAlertAction actionWithTitle:@"OK"
+ [success addAction:[UIAlertAction actionWithTitle:VZL(@"OK")
style:UIAlertActionStyleCancel handler:nil]];
- [success addAction:[UIAlertAction actionWithTitle:@"Start"
+ [success addAction:[UIAlertAction actionWithTitle:VZL(@"Start")
style:UIAlertActionStyleDefault handler:^(UIAlertAction *action) {
(void)action;
VZVMLibraryViewController *library = (id)
@@ -2017,11 +2547,12 @@ static void VZWriteInstallationAttempt(NSString *attemptPath, NSString *state,
archivePath = nil;
}
}
- NSString *message = archivePath
+ NSString *explanation = VZInstallationFailureExplanation(tail);
+ NSString *details = archivePath
? [NSString stringWithFormat:
- @"%@\n\nThe incomplete bundle was retained in Installation Artifacts as %@. It can be deleted from Settings.",
- tail, archivePath.lastPathComponent]
- : tail;
+ VZL(@"%@\n\n%@\n\nThe incomplete Virtual Mac was retained in Temporary Installation Files as %@. It can be deleted from Settings."),
+ tail, explanation, archivePath.lastPathComponent]
+ : [NSString stringWithFormat:@"%@\n\n%@", tail, explanation];
NSString *failedAttempt = [[self.installationAttemptPath copy] autorelease];
self.installationController.cancellationHandler = nil;
[self.installationController.navigationController dismissViewControllerAnimated:YES completion:^{
@@ -2029,11 +2560,29 @@ static void VZWriteInstallationAttempt(NSString *attemptPath, NSString *state,
self.installationTimer = nil;
self.installationProcess = 0;
UIAlertController *failureAlert = [UIAlertController
- alertControllerWithTitle:@"Installation Failed" message:message
+ alertControllerWithTitle:VZL(@"Installation Failed")
+ message:explanation
preferredStyle:UIAlertControllerStyleAlert];
- [failureAlert addAction:[UIAlertAction actionWithTitle:@"Keep Files"
+ [failureAlert addAction:[UIAlertAction actionWithTitle:VZL(@"Done")
style:UIAlertActionStyleCancel handler:nil]];
- [failureAlert addAction:[UIAlertAction actionWithTitle:@"Delete Incomplete Installation"
+ [failureAlert addAction:[UIAlertAction actionWithTitle:VZL(@"View Details")
+ style:UIAlertActionStyleDefault handler:^(UIAlertAction *action) {
+ (void)action;
+ VZFailureDetailsViewController *controller =
+ [[[VZFailureDetailsViewController alloc]
+ initWithTitle:VZL(@"Installation Details")
+ details:details] autorelease];
+ UINavigationController *navigation =
+ [[[UINavigationController alloc]
+ initWithRootViewController:controller]
+ autorelease];
+ navigation.modalPresentationStyle =
+ UIModalPresentationPageSheet;
+ navigation.preferredContentSize = CGSizeMake(640, 620);
+ [self presentViewController:navigation animated:YES
+ completion:nil];
+ }]];
+ [failureAlert addAction:[UIAlertAction actionWithTitle:VZL(@"Delete Incomplete Installation")
style:UIAlertActionStyleDestructive handler:^(UIAlertAction *action) {
(void)action; VZRemovePaths(@[failedAttempt]);
}]];
@@ -2048,23 +2597,23 @@ static void VZWriteInstallationAttempt(NSString *attemptPath, NSString *state,
double fraction = tail.doubleValue;
if (fraction <= 0.0) {
self.installationController.indeterminate = YES;
- self.installationController.statusText = @"Booting Restore Environment…";
- self.installationController.detailText = @"The first progress value can take several minutes while the virtual Mac changes from DFU to RestoreOS. The iPad will remain awake.";
+ self.installationController.statusText = VZL(@"Starting installation environment…");
+ self.installationController.detailText = VZL(@"The first progress value can take several minutes while the Virtual Mac changes from DFU to RestoreOS. Your iPad will remain awake.");
return;
}
self.installationController.indeterminate = NO;
self.installationController.progress = MAX(0, MIN(1, fraction));
self.installationController.statusText = [NSString stringWithFormat:
- @"%.1f%% complete", fraction * 100.0];
- self.installationController.detailText = @"Installation can pause at some stages while macOS prepares the next restore phase. The iPad will remain awake.";
+ VZL(@"%.0f%% complete"), fraction * 100.0];
+ self.installationController.detailText = VZL(@"Installation progress may remain unchanged while macOS prepares the next installation stage. Your iPad will remain awake.");
} else if ([log containsString:@"INSTALL_BEGIN"]) {
- self.installationController.statusText = @"Starting restore…";
+ self.installationController.statusText = VZL(@"Starting installation…");
} else if ([log containsString:@"RESTORE_LOAD_OK"]) {
- self.installationController.statusText = @"Preparing virtual hardware…";
+ self.installationController.statusText = VZL(@"Preparing virtual hardware…");
} else if ([log containsString:@"RESTORE_LOAD_BEGIN"]) {
- self.installationController.statusText = @"Reading restore image…";
+ self.installationController.statusText = VZL(@"Reading restore image…");
} else if ([log containsString:@"INSTALL_PREPARE_BEGIN"]) {
- self.installationController.statusText = @"Starting restoration services…";
+ self.installationController.statusText = VZL(@"Starting installation services…");
}
}];
}
@@ -2107,7 +2656,7 @@ static void VZWriteInstallationAttempt(NSString *attemptPath, NSString *state,
(void)virtualMachine;
printf("[VirtualMac] VM delegate didStopWithError=%s\n",
error ? [[error description] UTF8String] : "(none)");
- setStatus([NSString stringWithFormat:@"Virtual Mac stopped: %@",
+ setStatus([NSString stringWithFormat:VZL(@"Virtual Mac stopped: %@"),
error.localizedDescription]);
[self finishVMAndShowLibraryWithError:error];
}
@@ -2139,15 +2688,20 @@ static void VZWriteInstallationAttempt(NSString *attemptPath, NSString *state,
gCursorView.image = nil;
gCursorView.hidden = YES;
gInputView.hidden = YES;
+ gTouchScrollRecognizer = nil;
+ gPinchRecognizer = nil;
+ gRotationRecognizer = nil;
+ gSmartMagnifyRecognizer = nil;
self.activeVMBundlePath = nil;
[self presentVMLibrary];
if (error) {
UIAlertController *alert = [UIAlertController
- alertControllerWithTitle:@"Virtual Mac Stopped"
+ alertControllerWithTitle:VZL(@"Virtual Mac Stopped")
message:error.localizedDescription
preferredStyle:UIAlertControllerStyleAlert];
- [alert addAction:[UIAlertAction actionWithTitle:@"OK"
+ [alert addAction:[UIAlertAction actionWithTitle:VZL(@"OK")
style:UIAlertActionStyleDefault handler:nil]];
+ VZAddFailureSupportActions(alert);
[self presentViewController:alert animated:YES completion:nil];
}
}
@@ -2233,15 +2787,20 @@ static void updateDisplayGeometry(void) {
static void setStatus(NSString *status) {
printf("[VirtualMac] %s\n", [status UTF8String]);
- if (gStatusLabel)
- gStatusLabel.text = status;
+ if (!gStatusLabel)
+ return;
+ // Boot status is diagnostic-only and hidden by default. Avoid crossing
+ // UIKit objects between the iPadOS 14 VZ worker and the main thread.
+ if (!pthread_main_np())
+ return;
+ gStatusLabel.text = status;
}
static void traceFrameUpdate(id self, SEL selector, id framebuffer,
VZFrameUpdateSharedPtr update) {
uint64_t count = __sync_add_and_fetch(&gFrameUpdateCount, 1);
const VZFrameUpdateSharedPtr *shared = update.object;
- if (count <= 3 || count % 300 == 0)
+ if (count <= 3 || (gDebugLogging && count % 300 == 0))
printf("[VirtualMac] PVG frame=%llu framebuffer=%p update=%p control=%p\n",
(unsigned long long)count, framebuffer,
shared ? shared->object : NULL,
@@ -2333,7 +2892,7 @@ static void updateCursorOverlay(VZFrameUpdateSharedPtr update) {
static void traceCursorUpdate(id self, SEL selector, id framebuffer,
VZFrameUpdateSharedPtr update) {
uint64_t count = __sync_add_and_fetch(&gCursorUpdateCount, 1);
- if (count <= 8 || count % 300 == 0) {
+ if (count <= 8 || (gDebugLogging && count % 300 == 0)) {
const VZFrameUpdateSharedPtr *shared = update.object;
const uint8_t *cursor = shared ? shared->object : NULL;
printf("[VirtualMac] PVG cursor=%llu pos=%u,%u image-change=%d "
@@ -2640,6 +3199,14 @@ static void requestMicrophoneAccess(dispatch_block_t continuation) {
static void configureNetwork(id configuration, NSDictionary *options) {
NSString *mode = options[@"NetworkMode"] ?: @"NAT";
+ if (NSProcessInfo.processInfo.operatingSystemVersion.majorVersion == 14 &&
+ [mode isEqualToString:@"Bridge"]) {
+ // The iPadOS 14 Wi-Fi stack cannot register a second station MAC for
+ // a guest. Treat legacy configurations as NAT; newer hosts retain the
+ // existing bridged-network implementation unchanged.
+ printf("[VirtualMac] bridged networking is unavailable on iPadOS 14; using NAT\n");
+ mode = @"NAT";
+ }
if ([mode isEqualToString:@"Disabled"] ||
[NSUserDefaults.standardUserDefaults boolForKey:@"VZDisableNetwork"]) {
printf("[VirtualMac] network disabled\n");
@@ -2713,7 +3280,7 @@ static void configureDirectorySharing(id configuration,
if (!directory)
continue;
NSString *baseName = path.lastPathComponent.length
- ? path.lastPathComponent : @"Shared Folder";
+ ? path.lastPathComponent : VZL(@"Shared Folder");
NSString *name = baseName;
for (NSUInteger suffix = 2; directories[name]; suffix++)
name = [NSString stringWithFormat:@"%@ %lu", baseName,
@@ -2771,8 +3338,9 @@ static id makeConfiguration(NSString *bundlePath, NSDictionary *options,
NSUInteger hostCPUCount = NSProcessInfo.processInfo.activeProcessorCount;
NSUInteger cpuCount = [options[@"CPUCount"] unsignedIntegerValue];
cpuCount = MAX((NSUInteger)2, MIN(cpuCount, hostCPUCount));
- uint64_t memoryLimit = NSProcessInfo.processInfo.physicalMemory >=
- (12ULL << 30) ? (8ULL << 30) : (6ULL << 30);
+ uint64_t physicalMemory = NSProcessInfo.processInfo.physicalMemory;
+ uint64_t memoryLimit = MAX((2ULL << 30),
+ (physicalMemory >> 30) << 30);
uint64_t memorySize = [options[@"MemorySize"] unsignedLongLongValue];
memorySize = MAX((2ULL << 30), MIN(memorySize, memoryLimit));
((void(*)(id, SEL, NSUInteger))objc_msgSend)(
@@ -2794,13 +3362,23 @@ static id makeConfiguration(NSString *bundlePath, NSDictionary *options,
// (2388x1668 on the connected 11-inch iPad Pro). A Retina-density PPI
// makes macOS expose this as a 2x logical desktop instead of a scaled
// low-density monitor.
- BOOL customDisplay = [options[@"DisplayMode"] isEqualToString:@"Custom"];
+ NSString *displayMode = options[@"DisplayMode"];
+ BOOL customDisplay = [displayMode isEqualToString:@"Custom"];
+ BOOL portraitDisplay = [displayMode isEqualToString:
+ @"PortraitNativeRetina"];
+ CGSize nativePixelSize = screen.nativeBounds.size;
NSInteger displayWidth = customDisplay
? [options[@"DisplayWidth"] integerValue]
- : (NSInteger)llround(hostSize.width * nativeScale);
+ : portraitDisplay
+ ? (NSInteger)llround(MIN(nativePixelSize.width,
+ nativePixelSize.height))
+ : (NSInteger)llround(hostSize.width * nativeScale);
NSInteger displayHeight = customDisplay
? [options[@"DisplayHeight"] integerValue]
- : (NSInteger)llround(hostSize.height * nativeScale);
+ : portraitDisplay
+ ? (NSInteger)llround(MAX(nativePixelSize.width,
+ nativePixelSize.height))
+ : (NSInteger)llround(hostSize.height * nativeScale);
NSInteger pixelsPerInch = customDisplay
? [options[@"DisplayPixelsPerInch"] integerValue] : 264;
displayWidth = MAX(800, MIN(7680, displayWidth));
@@ -2869,13 +3447,13 @@ static BOOL prepareFramebuffer(UIView *container) {
[[graphicsDevices description] UTF8String],
[[framebuffers description] UTF8String]);
if (!framebuffer) {
- setStatus(@"Virtual Mac has no published framebuffer");
+ setStatus(VZL(@"Virtual Mac has no published framebuffer"));
return NO;
}
Class framebufferViewClass = objc_getClass("_VZFramebufferView");
if (!framebufferViewClass) {
- setStatus(@"_VZFramebufferView is unavailable");
+ setStatus(VZL(@"The Virtual Mac display view is unavailable"));
return NO;
}
VZSetNSViewFrameRequestsSuppressed(NO);
@@ -2908,6 +3486,49 @@ static BOOL prepareFramebuffer(UIView *container) {
return YES;
}
+typedef struct {
+ UIView *container;
+ BOOL result;
+} VZPrepareFramebufferContext;
+
+static void prepareFramebufferOnMain(void *opaque) {
+ VZPrepareFramebufferContext *context = opaque;
+ context->result = prepareFramebuffer(context->container);
+}
+
+static BOOL prepareFramebufferThreadSafe(UIView *container) {
+ if (pthread_main_np())
+ return prepareFramebuffer(container);
+ VZPrepareFramebufferContext context = { container, NO };
+ dispatch_sync_f(dispatch_get_main_queue(), &context,
+ prepareFramebufferOnMain);
+ return context.result;
+}
+
+typedef struct {
+ id delegate;
+ NSError *error;
+} VZFinishContext;
+
+static void finishVMOnMain(void *opaque) {
+ VZFinishContext *context = opaque;
+ [context->delegate finishVMAndShowLibraryWithError:context->error];
+ [context->delegate release];
+ [context->error release];
+ free(context);
+}
+
+static void finishVMThreadSafe(id delegate, NSError *error) {
+ if (pthread_main_np()) {
+ [delegate finishVMAndShowLibraryWithError:error];
+ return;
+ }
+ VZFinishContext *context = calloc(1, sizeof(*context));
+ context->delegate = [delegate retain];
+ context->error = [error retain];
+ dispatch_async_f(dispatch_get_main_queue(), context, finishVMOnMain);
+}
+
static void activateFramebuffer(void) {
id view = gFramebufferView;
id framebuffer = gFramebuffer;
@@ -2930,12 +3551,36 @@ static void activateFramebuffer(void) {
dispatch_get_main_queue(), ^{
logFramebufferState(view, framebuffer, "after-2s");
});
- setStatus(@"Virtual Mac running — native PVG framebuffer attached");
+ setStatus(VZL(@"Virtual Mac running — native PVG framebuffer attached"));
}
-static void startVirtualMachine(UIView *container, id delegate,
- NSString *bundlePath,
- NSDictionary *options) {
+typedef struct {
+ id virtualMachine;
+ id startOptions;
+ void (^completion)(NSError *);
+} VZInvokeStartContext;
+
+static void invokeVirtualMachineStartOnMain(void *opaque) {
+ VZInvokeStartContext *context = opaque;
+ if (context->startOptions) {
+ ((void(*)(id, SEL, id, id))objc_msgSend)(
+ context->virtualMachine,
+ S("startWithOptions:completionHandler:"),
+ context->startOptions, context->completion);
+ } else {
+ ((void(*)(id, SEL, id))objc_msgSend)(
+ context->virtualMachine, S("startWithCompletionHandler:"),
+ context->completion);
+ }
+ [context->virtualMachine release];
+ [context->startOptions release];
+ [context->completion release];
+ free(context);
+}
+
+static void startVirtualMachineWorker(UIView *container, id delegate,
+ NSString *bundlePath,
+ NSDictionary *options) {
unlink("/tmp/vzxpchook.log");
unlink("/tmp/vmmhook.log");
unlink("/tmp/vmm.stderr.log");
@@ -2945,8 +3590,10 @@ static void startVirtualMachine(UIView *container, id delegate,
setenv("VZ_AVP_BOOTER",
"/var/root/VirtualMac/payload/Frameworks/Virtualization.framework/Resources/AVPBooter.vmapple2.bin",
1);
- setenv("VMMHOOK_TRACE_VCPU_LIMIT", "8", 1);
- setenv("VMMHOOK_TRACE_XPC_LIMIT", "8", 1);
+ gDebugLogging = [VZAppSettings.sharedSettings boolForKey:VZDebugLoggingKey];
+ 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);
setenv("VMM_FACTORY_SETTLE_USEC", "100000", 1);
// Timestamp correlation places PGIOSurfaceHostDevice finalization just
// before serialized factory boundary 6. Pause only that boundary long
@@ -2954,7 +3601,12 @@ static void startVirtualMachine(UIView *container, id delegate,
setenv("VMM_FACTORY_LONG_STOP", "6", 1);
setenv("VMM_FACTORY_LONG_SETTLE_USEC", "5000000", 1);
setenv("PVG_TRACE", "1", 1);
- setenv("PVG_TRACE_METHODS", "1", 1);
+ // Functional PVG task compatibility remains installed in every build;
+ // this flag enables only the additional diagnostic method wrappers.
+ if (gDebugLogging)
+ 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
@@ -2964,13 +3616,13 @@ static void startVirtualMachine(UIView *container, id delegate,
setenv("PVG_LARGE_TASK_COUNT", "3", 1);
setenv("PVG_METALLIB_FALLBACK", "1", 1);
- setStatus(@"Loading extracted Apple virtualization frameworks…");
+ setStatus(VZL(@"Loading extracted Apple virtualization frameworks…"));
if (!loadExtractedFrameworks()) {
- setStatus(@"Failed to load extracted frameworks");
+ setStatus(VZL(@"Failed to load extracted frameworks"));
NSError *loadError = [NSError errorWithDomain:@"VirtualMac" code:1
userInfo:@{NSLocalizedDescriptionKey:
- @"Failed to load the extracted Apple virtualization frameworks."}];
- [delegate finishVMAndShowLibraryWithError:loadError];
+ VZL(@"Failed to load the extracted Apple virtualization frameworks.")}];
+ finishVMThreadSafe(delegate, loadError);
return;
}
@@ -2978,21 +3630,21 @@ static void startVirtualMachine(UIView *container, id delegate,
NSError *error = nil;
id configuration = makeConfiguration(bundlePath, options, &error);
if (!configuration) {
- setStatus([NSString stringWithFormat:@"Configuration failed: %@",
+ setStatus([NSString stringWithFormat:VZL(@"Configuration failed: %@"),
error.localizedDescription]);
if (!error)
error = [NSError errorWithDomain:@"VirtualMac" code:2
userInfo:@{NSLocalizedDescriptionKey:
- @"The virtual Mac configuration could not be created."}];
- [delegate finishVMAndShowLibraryWithError:error];
+ VZL(@"The Virtual Mac configuration could not be created.")}];
+ finishVMThreadSafe(delegate, error);
return;
}
BOOL valid = ((BOOL(*)(id, SEL, NSError **))objc_msgSend)(
configuration, S("validateWithError:"), &error);
if (!valid) {
- setStatus([NSString stringWithFormat:@"Validation failed: %@",
+ setStatus([NSString stringWithFormat:VZL(@"Validation failed: %@"),
error.localizedDescription]);
- [delegate finishVMAndShowLibraryWithError:error];
+ finishVMThreadSafe(delegate, error);
return;
}
@@ -3015,26 +3667,26 @@ static void startVirtualMachine(UIView *container, id delegate,
dumpRPCHandlers(gVirtualMachine, "after-init");
// setFramebuffer: installs the process_frame_update handler needed by the
// VMM. The host hook holds its set_frame_rate message until start succeeds.
- if (!prepareFramebuffer(container)) {
+ if (!prepareFramebufferThreadSafe(container)) {
NSError *framebufferError = [NSError errorWithDomain:@"VirtualMac"
code:3 userInfo:@{NSLocalizedDescriptionKey:
- @"The virtual Mac did not publish a display framebuffer."}];
- [delegate finishVMAndShowLibraryWithError:framebufferError];
+ VZL(@"The Virtual Mac did not publish a display framebuffer.")}];
+ finishVMThreadSafe(delegate, framebufferError);
return;
}
- setStatus(@"Starting virtual Mac…");
+ setStatus(VZL(@"Starting Virtual Mac…"));
void (^completion)(NSError *) = ^(NSError *startError) {
if (startError) {
- setStatus([NSString stringWithFormat:@"Virtual Mac start failed: %@",
+ setStatus([NSString stringWithFormat:VZL(@"Virtual Mac start failed: %@"),
startError.localizedDescription]);
- [delegate finishVMAndShowLibraryWithError:startError];
+ finishVMThreadSafe(delegate, startError);
return;
}
printf("[VirtualMac] VM STARTED state=%ld\n",
(long)((NSInteger(*)(id, SEL))objc_msgSend)(
gVirtualMachine, S("state")));
dumpRPCHandlers(gVirtualMachine, "after-start");
- setStatus(@"Virtual Mac running — preparing native PVG display");
+ setStatus(VZL(@"Virtual Mac running — preparing native PVG display"));
gHostVMStarted();
// Let the start reply return before exposing the registered display.
dispatch_after(
@@ -3043,21 +3695,73 @@ static void startVirtualMachine(UIView *container, id delegate,
activateFramebuffer();
});
};
+ id startOptions = nil;
if ([options[@"BootRecovery"] boolValue] &&
[gVirtualMachine respondsToSelector:
S("startWithOptions:completionHandler:")]) {
- id startOptions = NEW("VZMacOSVirtualMachineStartOptions");
+ startOptions = NEW("VZMacOSVirtualMachineStartOptions");
((void(*)(id, SEL, BOOL))objc_msgSend)(
startOptions, S("setStartUpFromMacOSRecovery:"), YES);
printf("[VirtualMac] configured recovery start\n");
+ }
+ if (NSProcessInfo.processInfo.operatingSystemVersion.majorVersion == 14 &&
+ !pthread_main_np()) {
+ VZInvokeStartContext *context = calloc(1, sizeof(*context));
+ context->virtualMachine = [gVirtualMachine retain];
+ context->startOptions = [startOptions retain];
+ context->completion = [completion copy];
+ dispatch_async_f(dispatch_get_main_queue(), context,
+ invokeVirtualMachineStartOnMain);
+ } else if (startOptions) {
((void(*)(id, SEL, id, id))objc_msgSend)(
gVirtualMachine, S("startWithOptions:completionHandler:"),
startOptions, completion);
- [startOptions release];
} else {
((void(*)(id, SEL, id))objc_msgSend)(
gVirtualMachine, S("startWithCompletionHandler:"), completion);
}
+ [startOptions release];
+}
+
+typedef struct {
+ UIView *container;
+ id delegate;
+ NSString *bundlePath;
+ NSDictionary *options;
+} VZStartContext;
+
+static void startVirtualMachineOnBackgroundQueue(void *opaque) {
+ VZStartContext *context = opaque;
+ NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
+ startVirtualMachineWorker(context->container, context->delegate,
+ context->bundlePath, context->options);
+ [context->container release];
+ [context->delegate release];
+ [context->bundlePath release];
+ [context->options release];
+ free(context);
+ [pool drain];
+}
+
+static void startVirtualMachine(UIView *container, id delegate,
+ NSString *bundlePath,
+ NSDictionary *options) {
+ // Ventura's VZ startup performs synchronous XPC and device construction.
+ // On iPadOS 14, doing that from a tap blocks UIKit long enough to trip the
+ // 10-second scene-update watchdog. Keep iPadOS 15/16 on their proven path.
+ if (NSProcessInfo.processInfo.operatingSystemVersion.majorVersion == 14 &&
+ pthread_main_np()) {
+ VZStartContext *context = calloc(1, sizeof(*context));
+ context->container = [container retain];
+ context->delegate = [delegate retain];
+ context->bundlePath = [bundlePath copy];
+ context->options = [options copy];
+ dispatch_async_f(
+ dispatch_get_global_queue(QOS_CLASS_USER_INITIATED, 0), context,
+ startVirtualMachineOnBackgroundQueue);
+ return;
+ }
+ startVirtualMachineWorker(container, delegate, bundlePath, options);
}
@interface VirtualMacAppDelegate : UIResponder <UIApplicationDelegate>
@@ -3083,6 +3787,7 @@ static void startVirtualMachine(UIView *container, id delegate,
freopen("/tmp/VirtualMac.log", "a", stdout);
freopen("/tmp/VirtualMac.log", "a", stderr);
setvbuf(stdout, NULL, _IONBF, 0);
+ installIPadOS162KeyboardRenderingFix();
installShellShortcutRelay();
self.window = [[[UIWindow alloc] initWithFrame:UIScreen.mainScreen.bounds]
@@ -3104,6 +3809,7 @@ static void startVirtualMachine(UIView *container, id delegate,
gStatusLabel.numberOfLines = 2;
gStatusLabel.userInteractionEnabled = NO;
gStatusLabel.layer.cornerRadius = 10;
+ gStatusLabel.layer.cornerCurve = kCACornerCurveContinuous;
gStatusLabel.clipsToBounds = YES;
[controller.view addSubview:gStatusLabel];
[NSLayoutConstraint activateConstraints:@[
@@ -3141,20 +3847,43 @@ static void startVirtualMachine(UIView *container, id delegate,
scrollRecognizer.allowedTouchTypes = @[];
scrollRecognizer.cancelsTouchesInView = NO;
[inputView addGestureRecognizer:scrollRecognizer];
+ UIPanGestureRecognizer *touchScroll = [[[UIPanGestureRecognizer alloc]
+ initWithTarget:inputView action:@selector(handleTouchScroll:)]
+ autorelease];
+ touchScroll.minimumNumberOfTouches = 2;
+ touchScroll.maximumNumberOfTouches = 2;
+ touchScroll.allowedTouchTypes = @[@(UITouchTypeDirect)];
+ touchScroll.cancelsTouchesInView = YES;
+ touchScroll.enabled = [VZAppSettings.sharedSettings
+ boolForKey:VZTouchTwoFingerScrollingKey];
+ [inputView addGestureRecognizer:touchScroll];
+ gTouchScrollRecognizer = touchScroll;
UIPinchGestureRecognizer *pinch = [[[UIPinchGestureRecognizer alloc]
initWithTarget:inputView action:@selector(handlePinch:)] autorelease];
pinch.cancelsTouchesInView = NO;
[inputView addGestureRecognizer:pinch];
+ gPinchRecognizer = pinch;
UIRotationGestureRecognizer *rotation = [[[UIRotationGestureRecognizer alloc]
initWithTarget:inputView action:@selector(handleRotation:)] autorelease];
rotation.cancelsTouchesInView = NO;
[inputView addGestureRecognizer:rotation];
+ gRotationRecognizer = rotation;
UITapGestureRecognizer *smartMagnify = [[[UITapGestureRecognizer alloc]
initWithTarget:inputView action:@selector(handleSmartMagnify:)]
autorelease];
smartMagnify.numberOfTouchesRequired = 2;
smartMagnify.numberOfTapsRequired = 2;
smartMagnify.cancelsTouchesInView = NO;
+ gSmartMagnifyRecognizer = smartMagnify;
+ if ([VZAppSettings.sharedSettings
+ boolForKey:VZTouchTwoFingerScrollingKey]) {
+ // Direct two-finger motion otherwise begins UIKit's pinch/rotation
+ // recognizers first and the pan never emits a scroll event. Those
+ // recognizers remain available for a hardware trackpad.
+ pinch.allowedTouchTypes = @[@(UITouchTypeIndirectPointer)];
+ rotation.allowedTouchTypes = @[@(UITouchTypeIndirectPointer)];
+ smartMagnify.allowedTouchTypes = @[@(UITouchTypeIndirectPointer)];
+ }
[inputView addGestureRecognizer:smartMagnify];
[controller.view addSubview:inputView];
@@ -3179,11 +3908,11 @@ static void startVirtualMachine(UIView *container, id delegate,
iconWithSystemImageName:@"slider.horizontal.3"];
application.shortcutItems = @[[[[UIApplicationShortcutItem alloc]
initWithType:@"com.mac.virtual.show-library"
- localizedTitle:@"Show Library" localizedSubtitle:nil
+ localizedTitle:VZL(@"Show Library") localizedSubtitle:nil
icon:libraryIcon userInfo:nil] autorelease],
[[[UIApplicationShortcutItem alloc]
initWithType:@"com.mac.virtual.show-controls"
- localizedTitle:@"Show Virtual Mac Controls" localizedSubtitle:nil
+ localizedTitle:VZL(@"Show Virtual Mac Controls") localizedSubtitle:nil
icon:controlsIcon userInfo:nil] autorelease]];
unlink("/tmp/virtual-mac-vm-active");
gMouseLocation = CGPointMake(CGRectGetMidX(inputView.bounds),
@@ -3301,6 +4030,7 @@ static void startVirtualMachine(UIView *container, id delegate,
{
(void)application;
resetPointerSession(YES);
+ recoverNetworkingAfterResume();
if (gInputView) {
for (id interaction in gInputView.interactions)
if ([interaction respondsToSelector:@selector(invalidate)])
diff --git a/VirtualMac/vz/host/VirtualMacControl-Info.plist b/VirtualMac/vz/host/VirtualMacControl-Info.plist
index 620ca69..fc13ccd 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.0</string>
+ <string>1.1</string>
<key>CFBundleVersion</key>
<string>1</string>
<key>LSMinimumSystemVersion</key>
diff --git a/VirtualMac/vz/host/authorization_compat.c b/VirtualMac/vz/host/authorization_compat.c
index 14b4b2f..737e4bb 100644
--- a/VirtualMac/vz/host/authorization_compat.c
+++ b/VirtualMac/vz/host/authorization_compat.c
@@ -1,8 +1,17 @@
#include <stdint.h>
+#include <stdbool.h>
+#include <errno.h>
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <dlfcn.h>
+#include <stdlib.h>
+#include <sys/sysctl.h>
+#include <sys/socket.h>
+#include <sys/time.h>
+#include <arpa/inet.h>
+#include <netinet/in.h>
+#include <pthread.h>
#include <CoreFoundation/CoreFoundation.h>
typedef int32_t OSStatus;
@@ -26,17 +35,151 @@ extern int memorystatus_control(uint32_t command, int32_t pid,
uint32_t flags, void *buffer,
size_t buffer_size);
+typedef struct {
+ int listener;
+ struct sockaddr_storage client;
+ socklen_t clientLength;
+ size_t length;
+ unsigned char packet[4096];
+} DNSRequest;
+
+static struct sockaddr_in upstreamDNS;
+
+static void chooseUpstreamDNS(void) {
+ const char *selected = NULL;
+ typedef CFPropertyListRef (*SCDynamicStoreCopyValueFn)(void *, CFStringRef);
+ SCDynamicStoreCopyValueFn copyValue =
+ (SCDynamicStoreCopyValueFn)dlsym(RTLD_DEFAULT,
+ "SCDynamicStoreCopyValue");
+ CFDictionaryRef state = copyValue ? (CFDictionaryRef)copyValue(
+ NULL, CFSTR("State:/Network/Global/DNS")) : NULL;
+ if (state && CFGetTypeID(state) == CFDictionaryGetTypeID()) {
+ CFArrayRef addresses = (CFArrayRef)CFDictionaryGetValue(
+ state, CFSTR("ServerAddresses"));
+ if (addresses && CFGetTypeID(addresses) == CFArrayGetTypeID()) {
+ for (CFIndex index = 0; index < CFArrayGetCount(addresses); index++) {
+ CFStringRef value = (CFStringRef)CFArrayGetValueAtIndex(
+ addresses, index);
+ static char address[INET_ADDRSTRLEN];
+ struct in_addr parsed;
+ if (value && CFGetTypeID(value) == CFStringGetTypeID() &&
+ CFStringGetCString(value, address, sizeof(address),
+ kCFStringEncodingUTF8) &&
+ strcmp(address, "192.168.64.1") != 0 &&
+ inet_pton(AF_INET, address, &parsed) == 1) {
+ selected = address;
+ break;
+ }
+ }
+ }
+ }
+ memset(&upstreamDNS, 0, sizeof(upstreamDNS));
+ upstreamDNS.sin_family = AF_INET;
+ upstreamDNS.sin_port = htons(53);
+ inet_pton(AF_INET, selected ?: "1.1.1.1", &upstreamDNS.sin_addr);
+ dprintf(STDERR_FILENO,
+ "AuthorizationCompat: iPadOS 15 DNS relay upstream=%s\n",
+ selected ?: "1.1.1.1");
+ if (state)
+ CFRelease(state);
+}
+
+static void *relayDNSRequest(void *context) {
+ DNSRequest *request = context;
+ int upstream = socket(AF_INET, SOCK_DGRAM, 0);
+ if (upstream >= 0) {
+ struct timeval timeout = {.tv_sec = 3, .tv_usec = 0};
+ setsockopt(upstream, SOL_SOCKET, SO_RCVTIMEO, &timeout,
+ sizeof(timeout));
+ if (sendto(upstream, request->packet, request->length, 0,
+ (const struct sockaddr *)&upstreamDNS,
+ sizeof(upstreamDNS)) >= 0) {
+ unsigned char response[4096];
+ ssize_t length = recvfrom(upstream, response, sizeof(response),
+ 0, NULL, NULL);
+ if (length > 0) {
+ sendto(request->listener, response, (size_t)length, 0,
+ (const struct sockaddr *)&request->client,
+ request->clientLength);
+ }
+ }
+ close(upstream);
+ }
+ free(request);
+ return NULL;
+}
+
+static void *runDNSRelay(void *unused) {
+ (void)unused;
+ int listener = socket(AF_INET, SOCK_DGRAM, 0);
+ int yes = 1;
+ if (listener < 0 ||
+ setsockopt(listener, SOL_SOCKET, SO_REUSEADDR, &yes, sizeof(yes)) ||
+ bind(listener, (const struct sockaddr *)&(struct sockaddr_in){
+ .sin_family = AF_INET,
+ .sin_port = htons(53),
+ .sin_addr.s_addr = htonl(INADDR_ANY)},
+ sizeof(struct sockaddr_in))) {
+ dprintf(STDERR_FILENO,
+ "AuthorizationCompat: iPadOS 15 DNS relay bind failed=%d\n",
+ errno);
+ if (listener >= 0)
+ close(listener);
+ return NULL;
+ }
+ dprintf(STDERR_FILENO,
+ "AuthorizationCompat: iPadOS 15 DNS relay listening\n");
+ for (;;) {
+ DNSRequest *request = calloc(1, sizeof(*request));
+ if (!request)
+ break;
+ request->listener = listener;
+ request->clientLength = sizeof(request->client);
+ ssize_t length = recvfrom(listener, request->packet,
+ sizeof(request->packet), 0,
+ (struct sockaddr *)&request->client,
+ &request->clientLength);
+ if (length <= 0) {
+ free(request);
+ continue;
+ }
+ request->length = (size_t)length;
+ pthread_t worker;
+ if (pthread_create(&worker, NULL, relayDNSRequest, request) == 0)
+ pthread_detach(worker);
+ else
+ free(request);
+ }
+ close(listener);
+ return NULL;
+}
+
+static void startLegacyDNSRelayIfNeeded(void) {
+ char version[32] = {0};
+ size_t size = sizeof(version);
+ if (sysctlbyname("kern.osproductversion", version, &size, NULL, 0) ||
+ strtol(version, NULL, 10) >= 16)
+ return;
+ chooseUpstreamDNS();
+ pthread_t thread;
+ if (pthread_create(&thread, NULL, runDNSRelay, NULL) == 0)
+ pthread_detach(thread);
+}
+
__attribute__((constructor)) static void raiseInternetSharingMemoryLimit(void) {
// iPadOS rootless launch daemons have a 6 MiB default jetsam limit.
// Ventura's InternetSharing loads its desktop framework graph before main
// and cannot even allocate its first dispatch queue within that budget.
// XNU command 5 sets both active and inactive soft limits; flags are MiB.
+ // Original XNU 20 declaration and command definition:
+ // https://github.com/apple-oss-distributions/xnu/blob/xnu-7195.141.2/bsd/sys/kern_memorystatus.h#L335-L343
const uint32_t memoryStatusSetHighWaterMark = 5;
int result = memorystatus_control(memoryStatusSetHighWaterMark,
getpid(), 128, NULL, 0);
dprintf(STDERR_FILENO,
"AuthorizationCompat: set 128 MiB jetsam limit result=%d\n",
result);
+ startLegacyDNSRelayIfNeeded();
typedef CFTypeRef (*SecTaskCreateFromSelfFn)(CFAllocatorRef);
typedef CFTypeRef (*SecTaskCopyValueForEntitlementFn)(
@@ -116,13 +259,33 @@ static Boolean compatSMJobSetEnabled(CFStringRef domain,
}
bool isMatchingBootpd = jobLabel &&
CFEqual(jobLabel, CFSTR("vzi.apple.bootpd"));
- if (isMatchingBootpd && userDomain && *userDomain) {
+ char productVersion[32] = {0};
+ size_t productVersionSize = sizeof(productVersion);
+ bool hasUserLaunchDomain =
+ sysctlbyname("kern.osproductversion", productVersion,
+ &productVersionSize, NULL, 0) == 0 &&
+ strtol(productVersion, NULL, 10) >= 16;
+ if (isMatchingBootpd && hasUserLaunchDomain &&
+ userDomain && *userDomain) {
domain = *userDomain;
dprintf(STDERR_FILENO,
"AuthorizationCompat: bootpd launch domain -> user (%d)\n",
enabled);
}
if (!realFunction) {
+ // iPadOS 14 has no ServiceManagement implementation. Do not load the
+ // socket job during package installation: UDP/67 can receive a host
+ // packet before InternetSharing has written its configuration, which
+ // makes launchd retry bootpd indefinitely. Manage only our private job
+ // here, at the point Big Sur InternetSharing normally enables it.
+ if (isMatchingBootpd && productVersion[0] &&
+ strtol(productVersion, NULL, 10) == 14) {
+ dprintf(STDERR_FILENO,
+ "AuthorizationCompat: iPadOS 14 private bootpd "
+ "requested=%d; package controller owns launchd\n",
+ enabled);
+ return 1;
+ }
dprintf(STDERR_FILENO,
"AuthorizationCompat: SMJobSetEnabled unavailable\n");
return 0;
diff --git a/VirtualMac/vz/host/diskarbitration15_compat.c b/VirtualMac/vz/host/diskarbitration15_compat.c
new file mode 100644
index 0000000..be42899
--- /dev/null
+++ b/VirtualMac/vz/host/diskarbitration15_compat.c
@@ -0,0 +1,111 @@
+#include <CoreFoundation/CoreFoundation.h>
+#include <dispatch/dispatch.h>
+#include <stdarg.h>
+#include <stdio.h>
+
+typedef CFTypeRef DASessionRef;
+typedef CFTypeRef DADiskRef;
+typedef CFTypeRef DADissenterRef;
+typedef unsigned int DADiskEjectOptions;
+typedef unsigned int DADiskMountOptions;
+typedef void (*DADiskEjectCallback)(DADiskRef, DADissenterRef, void *);
+typedef void (*DADiskMountCallback)(DADiskRef, DADissenterRef, void *);
+
+static void trace_call(const char *name)
+{
+ FILE *file = fopen("/tmp/installation-usb.log", "a");
+ if (!file)
+ return;
+ fprintf(file, "[DiskArbitration15Compat] %s\n", name);
+ fclose(file);
+}
+
+static CFMutableDictionaryRef create_placeholder(CFAllocatorRef allocator)
+{
+ return CFDictionaryCreateMutable(allocator, 0,
+ &kCFTypeDictionaryKeyCallBacks, &kCFTypeDictionaryValueCallBacks);
+}
+
+DASessionRef DASessionCreate(CFAllocatorRef allocator)
+{
+ trace_call("DASessionCreate");
+ return create_placeholder(allocator);
+}
+
+void DASessionSetDispatchQueue(DASessionRef session, dispatch_queue_t queue)
+{
+ (void)session;
+ (void)queue;
+ trace_call("DASessionSetDispatchQueue");
+}
+
+void DASessionScheduleWithRunLoop(DASessionRef session, CFRunLoopRef run_loop,
+ CFStringRef mode)
+{
+ (void)session;
+ (void)run_loop;
+ (void)mode;
+ trace_call("DASessionScheduleWithRunLoop");
+}
+
+void DASessionUnscheduleFromRunLoop(DASessionRef session,
+ CFRunLoopRef run_loop, CFStringRef mode)
+{
+ (void)session;
+ (void)run_loop;
+ (void)mode;
+ trace_call("DASessionUnscheduleFromRunLoop");
+}
+
+DADiskRef DADiskCreateFromBSDName(CFAllocatorRef allocator,
+ DASessionRef session, const char *name)
+{
+ (void)session;
+ (void)name;
+ trace_call("DADiskCreateFromBSDName");
+ return create_placeholder(allocator);
+}
+
+DADiskRef DADiskCreateFromVolumePath(CFAllocatorRef allocator,
+ DASessionRef session, CFURLRef path)
+{
+ (void)session;
+ (void)path;
+ trace_call("DADiskCreateFromVolumePath");
+ return create_placeholder(allocator);
+}
+
+DADiskRef DADiskCopyWholeDisk(DADiskRef disk)
+{
+ trace_call("DADiskCopyWholeDisk");
+ return disk ? CFRetain(disk) : NULL;
+}
+
+CFStringRef DADissenterGetStatusString(DADissenterRef dissenter)
+{
+ (void)dissenter;
+ trace_call("DADissenterGetStatusString");
+ return NULL;
+}
+
+void DADiskEject(DADiskRef disk, DADiskEjectOptions options,
+ DADiskEjectCallback callback, void *context)
+{
+ (void)options;
+ trace_call("DADiskEject");
+ if (callback)
+ callback(disk, NULL, context);
+}
+
+void DADiskMountWithArguments(DADiskRef disk, CFURLRef path,
+ DADiskMountOptions options,
+ DADiskMountCallback callback, void *context,
+ CFStringRef argument, ...)
+{
+ (void)path;
+ (void)options;
+ (void)argument;
+ trace_call("DADiskMountWithArguments");
+ if (callback)
+ callback(disk, NULL, context);
+}
diff --git a/VirtualMac/vz/host/foundation14_compat.c b/VirtualMac/vz/host/foundation14_compat.c
new file mode 100644
index 0000000..2e6ae4b
--- /dev/null
+++ b/VirtualMac/vz/host/foundation14_compat.c
@@ -0,0 +1,4 @@
+// iPadOS 14 still exports the URL-loading Objective-C classes from CFNetwork,
+// while Ventura records Foundation as their import owner. Re-export both so
+// dyld can resolve the original symbols without trampolines or interposition.
+int VirtualMacFoundation14CompatAnchor;
diff --git a/VirtualMac/vz/host/hypervisor14_compat.c b/VirtualMac/vz/host/hypervisor14_compat.c
new file mode 100644
index 0000000..b6385c7
--- /dev/null
+++ b/VirtualMac/vz/host/hypervisor14_compat.c
@@ -0,0 +1,152 @@
+// iPadOS 14 Hypervisor facade for Ventura's VirtualMachine service.
+//
+// The actual implementation is Apple's Hypervisor binary extracted from
+// macOS 11 (XNU 20) and re-exported by this dylib. Ventura's VMM additionally
+// imports three IPA-size configuration APIs introduced after Big Sur. XNU 20
+// selects a suitable IPA size when its vm-config fields remain at their
+// defaults, so these compatibility APIs report that default and deliberately
+// leave the older private config object unchanged.
+
+#include <dlfcn.h>
+#include <stdbool.h>
+#include <stddef.h>
+#include <stdint.h>
+#include <ptrauth.h>
+#include <stdio.h>
+
+typedef int32_t hv_return_t;
+typedef void *hv_vm_config_t;
+typedef void *hv_vcpu_config_t;
+typedef uint64_t hv_vcpu_t;
+typedef uint64_t hv_ipa_t;
+typedef uint64_t hv_memory_flags_t;
+typedef uint32_t hv_reg_t;
+typedef uint16_t hv_sys_reg_t;
+typedef uint32_t hv_simd_fp_reg_t;
+typedef struct hv_vcpu_exit hv_vcpu_exit_t;
+
+enum {
+ kDefaultIPABitLength = 36,
+ HV_SUCCESS = 0,
+ HV_BAD_ARGUMENT = (int32_t)0xfae94003U,
+};
+
+static uintptr_t big_sur_symbol_address(const char *name) {
+ // HypervisorBigSur is an eager re-export dependency immediately after
+ // this facade. Avoid dlopen("@loader_path/…") here: dyld14 does not
+ // reliably resolve that token for an already-loaded image.
+ void *symbol = dlsym(RTLD_NEXT, name);
+ if (!symbol) {
+ FILE *log = fopen("/tmp/hv14facade.log", "a");
+ if (log) {
+ fprintf(log, "%s unresolved: %s\n", name, dlerror());
+ fclose(log);
+ }
+ return 0;
+ }
+ uintptr_t address =
+ (uintptr_t)ptrauth_strip(symbol, ptrauth_key_function_pointer);
+ return address;
+}
+
+#define FORWARD_RETURN(return_type, name, signature, arguments) \
+ static uintptr_t name##_target; \
+ __attribute__((constructor)) static void name##_resolve(void) { \
+ name##_target = big_sur_symbol_address(#name); \
+ } \
+ __attribute__((naked)) return_type name signature { \
+ __asm__ volatile( \
+ "adrp x16, _" #name "_target@PAGE\n" \
+ "ldr x16, [x16, _" #name "_target@PAGEOFF]\n" \
+ "br x16\n"); \
+ }
+
+#define FORWARD_CREATE(return_type, name, signature, arguments) \
+ FORWARD_RETURN(return_type, name, signature, arguments)
+
+extern void *_os_object_alloc(const void *requested_class, size_t size);
+
+hv_vcpu_config_t hv_vcpu_config_create(void) {
+ return _os_object_alloc(NULL, 0x20);
+}
+FORWARD_RETURN(hv_return_t, hv_vcpu_config_get_feature_reg,
+ (hv_vcpu_config_t config, uint64_t reg, uint64_t *value),
+ (config, reg, value))
+FORWARD_RETURN(hv_return_t, hv_vcpu_create,
+ (hv_vcpu_t *vcpu, hv_vcpu_exit_t **exit,
+ hv_vcpu_config_t config), (vcpu, exit, config))
+FORWARD_RETURN(hv_return_t, hv_vcpu_destroy, (hv_vcpu_t vcpu), (vcpu))
+FORWARD_RETURN(hv_return_t, hv_vcpu_get_reg,
+ (hv_vcpu_t vcpu, hv_reg_t reg, uint64_t *value),
+ (vcpu, reg, value))
+FORWARD_RETURN(hv_return_t, hv_vcpu_set_reg,
+ (hv_vcpu_t vcpu, hv_reg_t reg, uint64_t value),
+ (vcpu, reg, value))
+FORWARD_RETURN(hv_return_t, hv_vcpu_get_sys_reg,
+ (hv_vcpu_t vcpu, hv_sys_reg_t reg, uint64_t *value),
+ (vcpu, reg, value))
+FORWARD_RETURN(hv_return_t, hv_vcpu_set_sys_reg,
+ (hv_vcpu_t vcpu, hv_sys_reg_t reg, uint64_t value),
+ (vcpu, reg, value))
+FORWARD_RETURN(hv_return_t, hv_vcpu_get_simd_fp_reg,
+ (hv_vcpu_t vcpu, hv_simd_fp_reg_t reg, __uint128_t *value),
+ (vcpu, reg, value))
+FORWARD_RETURN(hv_return_t, hv_vcpu_set_simd_fp_reg,
+ (hv_vcpu_t vcpu, hv_simd_fp_reg_t reg, __uint128_t value),
+ (vcpu, reg, value))
+FORWARD_RETURN(hv_return_t, hv_vcpu_run, (hv_vcpu_t vcpu), (vcpu))
+FORWARD_RETURN(hv_return_t, hv_vcpu_set_trap_debug_exceptions,
+ (hv_vcpu_t vcpu, bool value), (vcpu, value))
+FORWARD_RETURN(hv_return_t, hv_vcpu_set_trap_debug_reg_accesses,
+ (hv_vcpu_t vcpu, bool value), (vcpu, value))
+FORWARD_RETURN(hv_return_t, hv_vcpu_set_vtimer_mask,
+ (hv_vcpu_t vcpu, bool value), (vcpu, value))
+FORWARD_RETURN(hv_return_t, hv_vcpu_set_vtimer_offset,
+ (hv_vcpu_t vcpu, uint64_t value), (vcpu, value))
+FORWARD_RETURN(hv_return_t, hv_vcpus_exit,
+ (const hv_vcpu_t *vcpus, uint32_t count), (vcpus, count))
+struct big_sur_vm_config {
+ uint8_t object_header[16];
+ uint64_t min_ipa;
+ uint64_t ipa_size;
+ uint32_t granule;
+ uint32_t isa;
+};
+
+hv_vm_config_t hv_vm_config_create(void) {
+ struct big_sur_vm_config *config = _os_object_alloc(NULL, sizeof(*config));
+ if (config)
+ config->isa = 1;
+ return config;
+}
+FORWARD_RETURN(hv_return_t, hv_vm_create,
+ (hv_vm_config_t config), (config))
+FORWARD_RETURN(hv_return_t, hv_vm_destroy, (void), ())
+FORWARD_RETURN(hv_return_t, hv_vm_get_max_vcpu_count,
+ (uint32_t *count), (count))
+FORWARD_RETURN(hv_return_t, hv_vm_map,
+ (void *address, hv_ipa_t ipa, size_t size,
+ hv_memory_flags_t flags), (address, ipa, size, flags))
+FORWARD_RETURN(hv_return_t, hv_vm_unmap,
+ (hv_ipa_t ipa, size_t size), (ipa, size))
+
+hv_return_t hv_vm_config_get_default_ipa_size(uint32_t *ipa_bit_length) {
+ if (!ipa_bit_length)
+ return HV_BAD_ARGUMENT;
+ *ipa_bit_length = kDefaultIPABitLength;
+ return HV_SUCCESS;
+}
+
+hv_return_t hv_vm_config_get_max_ipa_size(uint32_t *ipa_bit_length) {
+ if (!ipa_bit_length)
+ return HV_BAD_ARGUMENT;
+ *ipa_bit_length = kDefaultIPABitLength;
+ return HV_SUCCESS;
+}
+
+hv_return_t hv_vm_config_set_ipa_size(hv_vm_config_t config,
+ uint32_t ipa_bit_length) {
+ if (!config || ipa_bit_length != kDefaultIPABitLength)
+ return HV_BAD_ARGUMENT;
+ return HV_SUCCESS;
+}
diff --git a/VirtualMac/vz/host/hypervisor14_support.m b/VirtualMac/vz/host/hypervisor14_support.m
new file mode 100644
index 0000000..5d8e0d6
--- /dev/null
+++ b/VirtualMac/vz/host/hypervisor14_support.m
@@ -0,0 +1,38 @@
+// libdispatch compatibility needed by macOS 11 Hypervisor on iPadOS 14.
+// This follows Apple's Big Sur libdispatch _os_object_alloc implementation:
+// allocate an OS_object instance of the requested total size. The reference
+// count fields are initialized explicitly because this compatibility object
+// is created outside libdispatch's normal constructor path.
+// Original source (libdispatch-1271.120.2):
+// https://github.com/apple-oss-distributions/libdispatch/blob/libdispatch-1271.120.2/src/object.m#L50-L58
+// https://github.com/apple-oss-distributions/libdispatch/blob/libdispatch-1271.120.2/src/object.m#L93-L106
+
+#import <objc/runtime.h>
+
+#include <stddef.h>
+#include <stdint.h>
+
+struct os_object_header {
+ void *isa;
+ int32_t ref_count;
+ int32_t xref_count;
+};
+
+void *_os_object_alloc(const void *requested_class, size_t size) {
+ if (size < sizeof(struct os_object_header))
+ return NULL;
+ Class cls = requested_class ? (Class)requested_class
+ : objc_getClass("OS_object");
+ if (!cls)
+ return NULL;
+ size_t base_size = class_getInstanceSize(cls);
+ if (base_size > size)
+ return NULL;
+ id object = class_createInstance(cls, size - base_size);
+ if (!object)
+ return NULL;
+ struct os_object_header *header = (struct os_object_header *)object;
+ header->ref_count = 1;
+ header->xref_count = 1;
+ return object;
+}
diff --git a/VirtualMac/vz/host/installation_usb_shim.m b/VirtualMac/vz/host/installation_usb_shim.m
index 1131e31..e9e7d55 100644
--- a/VirtualMac/vz/host/installation_usb_shim.m
+++ b/VirtualMac/vz/host/installation_usb_shim.m
@@ -1186,7 +1186,9 @@ static io_connect_t shim_IORegisterForSystemPower(
(void)callback;
if (!notify_port || !notifier)
return MACH_PORT_NULL;
- *notify_port = IONotificationPortCreate(kIOMainPortDefault);
+ // kIOMainPortDefault was named kIOMasterPortDefault before iPadOS 15;
+ // both public constants are MACH_PORT_NULL. Use the ABI value directly.
+ *notify_port = IONotificationPortCreate(MACH_PORT_NULL);
if (!*notify_port)
return MACH_PORT_NULL;
*notifier = FAKE_USB_POWER_NOTIFIER;
diff --git a/VirtualMac/vz/host/iokit14_compat.c b/VirtualMac/vz/host/iokit14_compat.c
new file mode 100644
index 0000000..c0ed2fe
--- /dev/null
+++ b/VirtualMac/vz/host/iokit14_compat.c
@@ -0,0 +1,19 @@
+#include <CoreFoundation/CoreFoundation.h>
+#include <mach/mach.h>
+
+// Renamed from kIOMasterPortDefault after iPadOS 14. Both constants represent
+// the default IOKit main port and are MACH_PORT_NULL by contract.
+const mach_port_t kIOMainPortDefault = MACH_PORT_NULL;
+
+// IOMainPort replaced IOMasterPort after iPadOS 14. Forward the Ventura
+// spelling to the identical legacy operation on the oldest supported host.
+extern kern_return_t IOMasterPort(mach_port_t bootstrapPort,
+ mach_port_t *masterPort);
+
+kern_return_t IOMainPort(mach_port_t bootstrapPort, mach_port_t *mainPort)
+{
+ return IOMasterPort(bootstrapPort, mainPort);
+}
+
+const CFStringRef kIOHIDServiceCapsLockLEDOnKey =
+ CFSTR("CapsLockLEDOn");
diff --git a/VirtualMac/vz/host/iokit15_compat.c b/VirtualMac/vz/host/iokit15_compat.c
new file mode 100644
index 0000000..d20f229
--- /dev/null
+++ b/VirtualMac/vz/host/iokit15_compat.c
@@ -0,0 +1,6 @@
+#include <CoreFoundation/CoreFoundation.h>
+
+// Added to IOKit after iPadOS 15. The Ventura VMM only uses the value as the
+// HID caps-lock LED property key, so preserve the desktop spelling.
+const CFStringRef kIOHIDServiceCapsLockLEDOnKey =
+ CFSTR("CapsLockLEDOn");
diff --git a/VirtualMac/vz/host/libsystem15_compat.c b/VirtualMac/vz/host/libsystem15_compat.c
new file mode 100644
index 0000000..f8c0d12
--- /dev/null
+++ b/VirtualMac/vz/host/libsystem15_compat.c
@@ -0,0 +1,56 @@
+#include <errno.h>
+#include <stddef.h>
+#include <sys/stat.h>
+#include <sys/types.h>
+#include <unistd.h>
+
+// Ventura's VMM imports a small libSystem surface introduced with iPadOS 16.
+// Raw local VM disks do not exercise the encrypted DiskImages or *at helpers,
+// but dyld must still resolve them on iPadOS 15. Return a real unsupported
+// result if an unexpected configuration reaches one of these paths.
+static int unsupported(void) {
+ errno = ENOTSUP;
+ return -1;
+}
+
+int ccctr_init(const void *mode, void *context, size_t keyLength,
+ const void *key, const void *iv) {
+ (void)mode; (void)context; (void)keyLength; (void)key; (void)iv;
+ return unsupported();
+}
+
+int ccctr_update(void *context, size_t length,
+ const void *input, void *output) {
+ (void)context; (void)length; (void)input; (void)output;
+ return unsupported();
+}
+
+int ccctr_one_shot(const void *mode, size_t keyLength, const void *key,
+ const void *iv, size_t length,
+ const void *input, void *output) {
+ (void)mode; (void)keyLength; (void)key; (void)iv;
+ (void)length; (void)input; (void)output;
+ return unsupported();
+}
+
+int ccecb_one_shot(const void *mode, size_t keyLength, const void *key,
+ size_t blockCount, const void *input, void *output) {
+ (void)mode; (void)keyLength; (void)key;
+ (void)blockCount; (void)input; (void)output;
+ return unsupported();
+}
+
+ssize_t freadlink(int descriptor, char *buffer, size_t size) {
+ (void)descriptor; (void)buffer; (void)size;
+ return (ssize_t)unsupported();
+}
+
+int mkfifoat(int descriptor, const char *path, mode_t mode) {
+ (void)descriptor; (void)path; (void)mode;
+ return unsupported();
+}
+
+int mknodat(int descriptor, const char *path, mode_t mode, dev_t device) {
+ (void)descriptor; (void)path; (void)mode; (void)device;
+ return unsupported();
+}
diff --git a/VirtualMac/vz/host/metalshim.m b/VirtualMac/vz/host/metalshim.m
index 6c14ced..629bf5d 100644
--- a/VirtualMac/vz/host/metalshim.m
+++ b/VirtualMac/vz/host/metalshim.m
@@ -8,6 +8,8 @@
#import <Metal/Metal.h>
#import <objc/message.h>
#import <objc/runtime.h>
+#include <stdlib.h>
+#include <string.h>
static id (*gNewBufferWithLength)(id, SEL, NSUInteger, MTLResourceOptions);
static id (*gNewBufferWithBytes)(
@@ -25,6 +27,16 @@ static void (*gSetHeapStorageMode)(id, SEL, MTLStorageMode);
static BOOL gInstalledSharedBufferCompatibility;
static unsigned long gMacCompressedTextureCount;
+static BOOL DebugLoggingEnabled(void) {
+ static BOOL enabled;
+ static dispatch_once_t once;
+ dispatch_once(&once, ^{
+ const char *value = getenv("VZ_DEBUG_LOGGING");
+ enabled = value && value[0] && strcmp(value, "0") != 0;
+ });
+ return enabled;
+}
+
// macOS: NSArray<id<MTLDevice>> *MTLCopyAllDevices(void) — +1 (the "Copy" rule).
// iOS has exactly one GPU, so return the system default in a one-element array.
NSArray *MTLCopyAllDevices(void) {
@@ -178,10 +190,13 @@ static void iPadSetTexturePixelFormat(id self, SEL selector,
return;
}
MTLPixelFormat fallback = iPadCompressedFallback(pixelFormat);
- unsigned long count = __sync_add_and_fetch(&gMacCompressedTextureCount, 1);
- if (count <= 20 || count % 100 == 0)
- fprintf(stderr, "[metalshim] mapped Mac BC format=%lu to iPad format=%lu count=%lu\n",
- (unsigned long)pixelFormat, (unsigned long)fallback, count);
+ if (DebugLoggingEnabled()) {
+ unsigned long count = __sync_add_and_fetch(
+ &gMacCompressedTextureCount, 1);
+ if (count <= 20 || count % 100 == 0)
+ fprintf(stderr, "[metalshim] mapped Mac BC format=%lu to iPad format=%lu count=%lu\n",
+ (unsigned long)pixelFormat, (unsigned long)fallback, count);
+ }
gSetTexturePixelFormat(self, selector, fallback);
}
@@ -201,7 +216,7 @@ static id iPadNewTextureWithDescriptor(
id self, SEL selector, MTLTextureDescriptor *descriptor) {
NormalizeTextureDescriptor(descriptor);
id texture = gNewTextureWithDescriptor(self, selector, descriptor);
- if (IsMacBCPixelFormat(descriptor.pixelFormat))
+ if (DebugLoggingEnabled() && IsMacBCPixelFormat(descriptor.pixelFormat))
fprintf(stderr, "[metalshim] BC texture format=%lu %lux%lu -> %p\n",
(unsigned long)descriptor.pixelFormat,
(unsigned long)descriptor.width,
diff --git a/VirtualMac/vz/host/pvg_trace.m b/VirtualMac/vz/host/pvg_trace.m
index 7f271e8..1620869 100644
--- a/VirtualMac/vz/host/pvg_trace.m
+++ b/VirtualMac/vz/host/pvg_trace.m
@@ -10,6 +10,7 @@
#import <stdint.h>
#import <stdlib.h>
#import <string.h>
+#import <sys/sysctl.h>
#import <sys/mman.h>
#import <time.h>
#import <unistd.h>
@@ -31,7 +32,6 @@ static dispatch_source_t gMetalHealthTimer;
static uint64_t gMetalCommandBufferCommits;
static uint64_t gMetalCommandBufferCompletions;
static uint64_t gMetalCommandBufferErrors;
-static uint64_t gPVGCaughtExceptions;
static id (*gOriginalGetTaskID)(id, SEL, uint32_t);
static void (*gOriginalCreateTaskID)(
id, SEL, uint32_t, uint32_t, uint64_t, BOOL);
@@ -41,6 +41,7 @@ static uint64_t gTaskLookupMissCount;
static uint64_t gTaskMapCount;
static uint64_t gTaskMapHighWater;
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];
@@ -50,6 +51,32 @@ static uint64_t gCreatingTaskReservationGB;
static id (*gOriginalGetBufferForReferenceNonNull)(id, SEL, uint32_t);
extern id PGNewDeviceWithDescriptor(id descriptor);
+static void InstallMetalLibraryFallback(id<MTLDevice> device);
+
+static NSInteger HostIPadOSMajorVersion(void) {
+ static NSInteger majorVersion;
+ static dispatch_once_t onceToken;
+ dispatch_once(&onceToken, ^{
+ majorVersion = 16;
+ char version[32] = {0};
+ size_t size = sizeof(version);
+ if (sysctlbyname("kern.osproductversion", version, &size, NULL, 0) == 0)
+ majorVersion = strtol(version, NULL, 10);
+ });
+ return majorVersion;
+}
+
+static BOOL HostPredatesIPadOS16(void) {
+ return HostIPadOSMajorVersion() < 16;
+}
+
+static NSString *HostMetalLibraryResourceName(void) {
+ if (HostIPadOSMajorVersion() == 14)
+ return @"default.ipados14";
+ if (HostPredatesIPadOS16())
+ return @"default.ipados15";
+ return @"default";
+}
typedef void *(^PVGCreateTaskBlock)(uint64_t length, void **baseAddress);
typedef BOOL (^PVGMapMemoryBlock)(void *task, uint32_t segmentCount,
@@ -64,6 +91,8 @@ static const char *TracePath(void) {
static void Trace(NSString *format, ...) NS_FORMAT_FUNCTION(1, 2);
static void Trace(NSString *format, ...) {
+ if (!gDebugLogging)
+ return;
va_list args;
va_start(args, format);
NSString *line = [[NSString alloc] initWithFormat:format arguments:args];
@@ -80,43 +109,6 @@ static void Trace(NSString *format, ...) {
}
}
-extern void *objc_begin_catch(void *exceptionStorage);
-
-static void *TraceObjCBeginCatch(void *exceptionStorage) {
- void *result = objc_begin_catch(exceptionStorage);
- Dl_info caller = {0};
- void *returnAddress = __builtin_return_address(0);
- if (result != NULL &&
- dladdr(returnAddress, &caller) != 0 &&
- caller.dli_fname != NULL &&
- strstr(caller.dli_fname, "ParavirtualizedGraphics") != NULL) {
- uint64_t count = __atomic_add_fetch(
- &gPVGCaughtExceptions, 1, __ATOMIC_RELAXED);
- id exception = (id)result;
- NSString *name = [exception isKindOfClass:[NSException class]]
- ? [(NSException *)exception name] : nil;
- NSString *reason = [exception isKindOfClass:[NSException class]]
- ? [(NSException *)exception reason] : nil;
- Trace(@"PVG_EXCEPTION\tcount=%llu\tclass=%s\tname=%@\treason=%@"
- "\tcaller=%p\toffset=0x%llx",
- (unsigned long long)count,
- object_getClassName(exception), name, reason,
- returnAddress,
- (unsigned long long)((uintptr_t)returnAddress -
- (uintptr_t)caller.dli_fbase));
- }
- return result;
-}
-
-__attribute__((used)) static struct {
- const void *replacement;
- const void *replacee;
-} gInterposeObjCBeginCatch
- __attribute__((section("__DATA,__interpose"))) = {
- (const void *)&TraceObjCBeginCatch,
- (const void *)&objc_begin_catch,
- };
-
static void TraceMethod(Class cls, SEL selector) {
Method method = class_getInstanceMethod(cls, selector);
if (method == NULL) {
@@ -232,11 +224,12 @@ static void TraceCreateTaskID(id self, SEL selector, uint32_t taskID,
uint32_t taskRoot, uint64_t length,
BOOL restoring) {
BOOL largeTask = ReserveLargeTaskSlot(taskID, length);
- Trace(@"TASK_CREATE\tbegin\tid=%u\troot=%u\tlength=%llu"
- "\trestoring=%d\tlarge=%d\ttasks=%@",
- taskID, taskRoot, (unsigned long long)length, restoring,
- largeTask,
- TaskDictionary(self));
+ if (gDebugLogging) {
+ Trace(@"TASK_CREATE\tbegin\tid=%u\troot=%u\tlength=%llu"
+ "\trestoring=%d\tlarge=%d\ttasks=%@",
+ taskID, taskRoot, (unsigned long long)length, restoring,
+ largeTask, 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.
@@ -254,18 +247,22 @@ static void TraceCreateTaskID(id self, SEL selector, uint32_t taskID,
id createdTask = [TaskDictionary(self) objectForKey:@(taskID)];
if (largeTask && createdTask == nil)
ReleaseLargeTaskSlot(taskID);
- Trace(@"TASK_CREATE\tend\tid=%u\ttasks=%@",
- taskID, TaskDictionary(self));
+ if (gDebugLogging)
+ Trace(@"TASK_CREATE\tend\tid=%u\ttasks=%@",
+ taskID, TaskDictionary(self));
}
static BOOL TraceDeleteTaskID(id self, SEL selector, uint32_t taskID) {
- Trace(@"TASK_DELETE\tbegin\tid=%u\ttasks=%@",
- taskID, TaskDictionary(self));
+ if (gDebugLogging)
+ 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);
- Trace(@"TASK_DELETE\tend\tid=%u\tresult=%d\ttasks=%@",
- taskID, result, TaskDictionary(self));
+ if (gDebugLogging) {
+ Trace(@"TASK_DELETE\tend\tid=%u\tresult=%d\ttasks=%@",
+ taskID, result, TaskDictionary(self));
+ }
return result;
}
@@ -339,11 +336,13 @@ static BOOL ValidateTextureDescriptorForIOS(id self, SEL selector,
if (storageMode == (MTLStorageMode)1) {
((void (*)(id, SEL, MTLStorageMode))objc_msgSend)(
self, @selector(setStorageMode:), MTLStorageModeShared);
- uint64_t count = __atomic_add_fetch(
- &gManagedTextureTranslations, 1, __ATOMIC_RELAXED);
- if (count <= 12 || count % 100 == 0) {
- Trace(@"METAL_TEXTURE\tmanaged-to-shared=%llu\tdescriptor=%@",
- (unsigned long long)count, self);
+ if (gDebugLogging) {
+ uint64_t count = __atomic_add_fetch(
+ &gManagedTextureTranslations, 1, __ATOMIC_RELAXED);
+ if (count <= 12 || count % 100 == 0) {
+ Trace(@"METAL_TEXTURE\tmanaged-to-shared=%llu\tdescriptor=%@",
+ (unsigned long long)count, self);
+ }
}
}
return gOriginalTextureValidate(self, selector, device);
@@ -479,6 +478,18 @@ static id TracePGNewDeviceWithDescriptor(id descriptor) {
"\tdevice=%@\tusingIOSurfaceMapper=%@\tmmioLength=%@"
"\tdisplayPortCount=%@",
descriptor, device, mapper, mmioLength, displayPortCount);
+ static bool installedIPadOS15MetalFallback;
+ if (device != nil && HostIPadOSMajorVersion() == 15 &&
+ !__atomic_exchange_n(&installedIPadOS15MetalFallback, true,
+ __ATOMIC_ACQ_REL)) {
+ // On iPadOS 15 the VMM loads this interposer before
+ // ParavirtualizedGraphics, so its constructor cannot patch the
+ // concrete Metal device class yet. Do it at the first factory call,
+ // after both the framework and MTLDevice exist but before _PGDevice
+ // compiles its required blit pipelines. iPadOS 14 and 16 retain their
+ // established, independent paths.
+ InstallMetalLibraryFallback(device);
+ }
NSDictionary *blocks = @{
@"createTask": createTask ?: [NSNull null],
@"destroyTask": destroyTask ?: [NSNull null],
@@ -562,8 +573,6 @@ static id TracePGNewDeviceWithDescriptor(id descriptor) {
uint64_t reserved = task ? ((const uint64_t *)task)[1] : 0;
uint64_t end = UINT64_MAX - offset < mappedLength
? UINT64_MAX : offset + mappedLength;
- uint64_t count = __atomic_add_fetch(
- &gTaskMapCount, 1, __ATOMIC_RELAXED);
// Never let a fixed remap escape the sparse reservation. The VM
// allocator may happen to leave a gap after it, which made the
// old 1 GiB limit appear to work until a graphics-heavy UI such
@@ -573,34 +582,38 @@ static id TracePGNewDeviceWithDescriptor(id descriptor) {
BOOL withinReservation = task && end <= reserved;
BOOL result = withinReservation && originalMap(
task, segmentCount, offset, readonly, ranges);
- uint64_t previousHighWater = __atomic_load_n(
- &gTaskMapHighWater, __ATOMIC_RELAXED);
- BOOL raisedHighWater = NO;
- while (end > previousHighWater) {
- if (__atomic_compare_exchange_n(
- &gTaskMapHighWater, &previousHighWater, end, NO,
- __ATOMIC_RELAXED, __ATOMIC_RELAXED)) {
- raisedHighWater = YES;
- break;
+ if (gDebugLogging) {
+ uint64_t count = __atomic_add_fetch(
+ &gTaskMapCount, 1, __ATOMIC_RELAXED);
+ uint64_t previousHighWater = __atomic_load_n(
+ &gTaskMapHighWater, __ATOMIC_RELAXED);
+ BOOL raisedHighWater = NO;
+ while (end > previousHighWater) {
+ if (__atomic_compare_exchange_n(
+ &gTaskMapHighWater, &previousHighWater, end, NO,
+ __ATOMIC_RELAXED, __ATOMIC_RELAXED)) {
+ raisedHighWater = YES;
+ break;
+ }
+ }
+ BOOL crossedHighWaterBucket = raisedHighWater &&
+ ((end >> 24) != (previousHighWater >> 24));
+ if (count <= 16 || !result || !withinReservation ||
+ 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"
+ "\treadonly=%d\tresult=%d",
+ (unsigned long long)count, task,
+ (unsigned long long)base,
+ (unsigned long long)reserved,
+ (unsigned long long)offset,
+ (unsigned long long)mappedLength,
+ (unsigned long long)end,
+ withinReservation,
+ crossedHighWaterBucket,
+ segmentCount, readonly, result);
}
- }
- BOOL crossedHighWaterBucket = raisedHighWater &&
- ((end >> 24) != (previousHighWater >> 24));
- if (count <= 16 || !result || !withinReservation ||
- 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"
- "\treadonly=%d\tresult=%d",
- (unsigned long long)count, task,
- (unsigned long long)base,
- (unsigned long long)reserved,
- (unsigned long long)offset,
- (unsigned long long)mappedLength,
- (unsigned long long)end,
- withinReservation,
- crossedHighWaterBucket,
- segmentCount, readonly, result);
}
return result;
};
@@ -608,6 +621,16 @@ static id TracePGNewDeviceWithDescriptor(id descriptor) {
}
id result = PGNewDeviceWithDescriptor(descriptor);
Trace(@"CALL\tPGNewDeviceWithDescriptor\tresult=%@", result);
+ if (result != nil && HostPredatesIPadOS16()) {
+ // The iPadOS 15 Objective-C runtime cannot safely round-trip Ventura
+ // IMPs through method_setImplementation, so its per-IOSurface settle
+ // hook is intentionally disabled. Settle once at the enclosing PVG
+ // factory boundary instead. Without this, the guest's first
+ // WindowServer reaches __WSSystemCanCompositeWithMetal before PVG's
+ // asynchronous Metal setup is ready, aborts, and only its retry works.
+ Trace(@"CALL\tPGNewDeviceWithDescriptor\tpre-iPadOS16-settle-usec=1000000");
+ usleep(1000000);
+ }
return result;
}
@@ -641,11 +664,13 @@ static id TraceNewDefaultLibraryWithBundle(id self,
error:&fallbackError];
}
+ NSString *resourceName = HostMetalLibraryResourceName();
NSURL *url = [[NSBundle mainBundle]
- URLForResource:@"default"
+ URLForResource:resourceName
withExtension:@"metallib"];
if (url == nil) {
- url = [bundle URLForResource:@"default" withExtension:@"metallib"];
+ url = [bundle URLForResource:resourceName
+ withExtension:@"metallib"];
}
if (library == nil && url != nil) {
fallbackError = nil;
@@ -745,6 +770,26 @@ static void InstallMetalLibraryFallback(id<MTLDevice> device) {
TraceNewDefaultLibraryWithBundle);
}
+static void InstallRequiredIPadOS14MetalLibraryFallback(
+ Class pvgDeviceClass) {
+ NSBundle *bundle = [NSBundle bundleForClass:pvgDeviceClass];
+ NSURL *url = [bundle URLForResource:@"default.ipados14"
+ withExtension:@"metallib"];
+ NSData *metallib = [NSData dataWithContentsOfURL:url];
+ if (metallib != nil) {
+ void *bytes = malloc(metallib.length);
+ if (bytes != NULL) {
+ memcpy(bytes, metallib.bytes, metallib.length);
+ gSerializedMetallib = dispatch_data_create(
+ bytes, metallib.length, NULL,
+ DISPATCH_DATA_DESTRUCTOR_FREE);
+ }
+ }
+ id<MTLDevice> device = MTLCreateSystemDefaultDevice();
+ if (device != nil && gSerializedMetallib != nil)
+ InstallMetalLibraryFallback(device);
+}
+
static void InstallBoolHook(Class cls,
SEL selector,
BOOL (**original)(id, SEL),
@@ -760,7 +805,9 @@ static void InstallBoolHook(Class cls,
static void ProbeMetalLibrary(Class pvgDeviceClass) {
NSBundle *bundle = [NSBundle bundleForClass:pvgDeviceClass];
- NSURL *url = [bundle URLForResource:@"default" withExtension:@"metallib"];
+ NSString *resourceName = HostMetalLibraryResourceName();
+ NSURL *url = [bundle URLForResource:resourceName
+ withExtension:@"metallib"];
Trace(@"BUNDLE\tpath=%@\tmetallib=%@", bundle.bundlePath, url.path);
NSData *serializedMetallib = [NSData dataWithContentsOfURL:url];
@@ -783,11 +830,19 @@ static void ProbeMetalLibrary(Class pvgDeviceClass) {
if (device == nil) {
return;
}
- InstallCommandBufferTrace(device);
- if (getenv("PVG_METALLIB_FALLBACK") != NULL) {
+ if (gDebugLogging)
+ InstallCommandBufferTrace(device);
+ if (getenv("PVG_METALLIB_FALLBACK") != NULL ||
+ HostIPadOSMajorVersion() == 14) {
InstallMetalLibraryFallback(device);
}
+ // Loading the compatibility metallib is functional. Enumerating every
+ // function and compiling diagnostic pipelines is not, and is too costly
+ // for a normal VM boot.
+ if (!gDebugLogging)
+ return;
+
NSError *error = nil;
id<MTLLibrary> library = [device newDefaultLibraryWithBundle:bundle error:&error];
Trace(@"METAL\tnewDefaultLibraryWithBundle\tresult=%@\terror=%@", library, error);
@@ -821,11 +876,19 @@ static void ProbeMetalLibrary(Class pvgDeviceClass) {
__attribute__((constructor))
static void InstallPVGTrace(void) {
@autoreleasepool {
- if (getenv("PVG_TRACE") == NULL) {
+ const char *debugValue = getenv("VZ_DEBUG_LOGGING");
+ gDebugLogging = debugValue && debugValue[0] &&
+ strcmp(debugValue, "0") != 0;
+ BOOL tracing = getenv("PVG_TRACE") != NULL;
+ BOOL requiresIPadOS14Fallback =
+ HostIPadOSMajorVersion() == 14;
+ if (!tracing && !requiresIPadOS14Fallback) {
return;
}
- unlink(TracePath());
- Trace(@"TRACE\tloaded\tpid=%d", getpid());
+ if (tracing && gDebugLogging) {
+ unlink(TracePath());
+ Trace(@"TRACE\tloaded\tpid=%d", getpid());
+ }
void *factory = dlsym(RTLD_DEFAULT, "PGNewDeviceWithDescriptor");
Dl_info factoryInfo = {0};
@@ -843,6 +906,10 @@ static void InstallPVGTrace(void) {
if (cls == Nil) {
return;
}
+ if (requiresIPadOS14Fallback && !tracing) {
+ InstallRequiredIPadOS14MetalLibraryFallback(cls);
+ return;
+ }
SEL initSelector = NSSelectorFromString(@"initWithDescriptor:");
SEL blitSelector = NSSelectorFromString(@"setupBlitPipelines");
@@ -851,14 +918,16 @@ static void InstallPVGTrace(void) {
SEL createTaskSelector = NSSelectorFromString(
@"createTaskID:taskRoot:length:restoring:");
SEL deleteTaskSelector = NSSelectorFromString(@"deleteTaskID:");
- TraceMethod(cls, initSelector);
- TraceMethod(cls, blitSelector);
- TraceMethod(cls, reportingSelector);
- TraceMethod(cls, getTaskSelector);
- TraceMethod(cls, createTaskSelector);
- TraceMethod(cls, deleteTaskSelector);
+ if (gDebugLogging) {
+ TraceMethod(cls, initSelector);
+ TraceMethod(cls, blitSelector);
+ TraceMethod(cls, reportingSelector);
+ TraceMethod(cls, getTaskSelector);
+ TraceMethod(cls, createTaskSelector);
+ TraceMethod(cls, deleteTaskSelector);
+ }
const char *pause = getenv("PVG_TRACE_PAUSE_SECONDS");
- if (pause != NULL) {
+ if (gDebugLogging && pause != NULL) {
unsigned int seconds = (unsigned int)strtoul(pause, NULL, 10);
Trace(@"TRACE\tpausing=%u", seconds);
sleep(seconds);
@@ -866,9 +935,17 @@ static void InstallPVGTrace(void) {
}
ProbeMetalLibrary(cls);
InstallTextureDescriptorCompatibility();
- InstallMetalSerializerReferenceTrace();
+ if (gDebugLogging)
+ InstallMetalSerializerReferenceTrace();
- if (getenv("PVG_TRACE_METHODS") != NULL) {
+ // 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.
+ BOOL canInstallAuthenticatedMethods = !HostPredatesIPadOS16();
+ if (canInstallAuthenticatedMethods) {
Method createTaskMethod = class_getInstanceMethod(
cls, createTaskSelector);
if (createTaskMethod != NULL) {
@@ -886,6 +963,11 @@ static void InstallPVGTrace(void) {
deleteTaskMethod, (IMP)TraceDeleteTaskID);
Trace(@"HOOK\tdeleteTaskID:\tinstalled");
}
+ }
+
+ BOOL traceMethods = gDebugLogging &&
+ getenv("PVG_TRACE_METHODS") != NULL;
+ if (traceMethods && canInstallAuthenticatedMethods) {
Method getTaskMethod = class_getInstanceMethod(
cls, getTaskSelector);
if (getTaskMethod != NULL) {
@@ -961,6 +1043,8 @@ static void InstallPVGTrace(void) {
reportingSelector,
&gOriginalSetupReporting,
(IMP)TraceSetupReporting);
+ } else if (traceMethods) {
+ Trace(@"HOOK\tmethod-tracing-skipped\thost-pre-iPadOS16");
}
}
}
diff --git a/VirtualMac/vz/host/softlinking14_compat.c b/VirtualMac/vz/host/softlinking14_compat.c
new file mode 100644
index 0000000..647f695
--- /dev/null
+++ b/VirtualMac/vz/host/softlinking14_compat.c
@@ -0,0 +1,77 @@
+#include <dlfcn.h>
+#include <ptrauth.h>
+#include <stdint.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+
+// Introduced in iPadOS 15. The first argument is a null-terminated list of
+// candidate images; the optional second argument receives an allocated error
+// string. Installation.xpc only needs the successful DeviceSupport path.
+// SoftLinking exports the Mach-O symbol `__sl_dlopen`. A C identifier gains
+// the platform's leading underscore, so the source-level name must contain
+// exactly one underscore here.
+void *_sl_dlopen(const char *const paths[], char **errorString) {
+ if (errorString != NULL)
+ *errorString = NULL;
+ if (paths == NULL)
+ return NULL;
+
+ const char *lastError = NULL;
+ for (const char *const *path = paths; *path != NULL; path++) {
+ void *handle = dlopen(*path, RTLD_LAZY);
+ if (handle != NULL)
+ return handle;
+ lastError = dlerror();
+ }
+ if (errorString != NULL && lastError != NULL)
+ *errorString = strdup(lastError);
+ return NULL;
+}
+
+// Ventura's Installation service places several shared_ptr control-block
+// vtables in its own __DATA_CONST. iPadOS 14 uses an older arm64e vtable
+// authentication scheme and traps when libc++ invokes the final weak-owner
+// destructor through one of those slots. The service is short-lived, so keep
+// only those incompatible control blocks alive until process exit. Objects
+// backed by an iPadOS image continue through the native libc++ implementation.
+extern void _ZNSt3__119__shared_weak_count14__release_weakEv(void *object);
+
+typedef void (*ReleaseWeakFn)(void *object);
+
+static void release_weak_ipados14(void *object) {
+ if (object) {
+ uintptr_t signedVtable = *(const uintptr_t *)object;
+ const void *vtable = ptrauth_strip((const void *)signedVtable,
+ ptrauth_key_process_independent_data);
+ Dl_info image = {0};
+ if (dladdr(vtable, &image) && image.dli_fname &&
+ strstr(image.dli_fname,
+ "/com.apple.Virtualization.Installation")) {
+ __atomic_fetch_sub((long *)((uint8_t *)object + 16), 1,
+ __ATOMIC_RELAXED);
+ static int logged;
+ if (!logged) {
+ logged = 1;
+ dprintf(2, "SoftLinking14Compat: retained incompatible "
+ "Installation weak control blocks\n");
+ }
+ return;
+ }
+ }
+
+ static ReleaseWeakFn nativeRelease;
+ if (!nativeRelease)
+ nativeRelease = (ReleaseWeakFn)dlsym(RTLD_NEXT,
+ "_ZNSt3__119__shared_weak_count14__release_weakEv");
+ if (nativeRelease)
+ nativeRelease(object);
+}
+
+__attribute__((used)) static struct {
+ const void *replacement;
+ const void *replacee;
+} release_weak_interpose __attribute__((section("__DATA,__interpose"))) = {
+ (const void *)&release_weak_ipados14,
+ (const void *)&_ZNSt3__119__shared_weak_count14__release_weakEv,
+};
diff --git a/VirtualMac/vz/host/virtualmac_diagnostics_main.m b/VirtualMac/vz/host/virtualmac_diagnostics_main.m
new file mode 100644
index 0000000..0259667
--- /dev/null
+++ b/VirtualMac/vz/host/virtualmac_diagnostics_main.m
@@ -0,0 +1,19 @@
+#import <Foundation/Foundation.h>
+#import "VZDiagnostics.h"
+
+int main(int argc, char **argv)
+{
+ (void)argc;
+ (void)argv;
+ @autoreleasepool {
+ NSError *error = nil;
+ NSURL *archive = VZCreateDiagnosticsArchive(&error);
+ if (!archive) {
+ fprintf(stderr, "virtualmac-diagnostics: %s\n",
+ error.localizedDescription.UTF8String ?: "unknown error");
+ return 1;
+ }
+ printf("%s\n", archive.path.fileSystemRepresentation);
+ }
+ return 0;
+}
diff --git a/VirtualMac/vz/host/vmmhook.m b/VirtualMac/vz/host/vmmhook.m
index 08497ee..e5e0669 100644
--- a/VirtualMac/vz/host/vmmhook.m
+++ b/VirtualMac/vz/host/vmmhook.m
@@ -33,7 +33,9 @@
#include <sys/mman.h>
#include <sys/socket.h>
#include <sys/stat.h>
+#include <sys/sysctl.h>
#include <sys/un.h>
+#include <sys/uio.h>
#include <unistd.h>
#include "usb_restore_bridge.h"
@@ -60,6 +62,211 @@ 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);
+static void logf_(const char *fmt, ...);
+static NSInteger host_ipados_major_version(void);
+static BOOL host_is_ipados14(void);
+
+// Big Sur vmnet lacks Ventura's checksum-offload contract. Compile this hot
+// data-plane interposer only into the iPadOS 14-selected hook. The common
+// iPadOS 15/16 hook has no vmnet interposition, branch, or packet-path cost.
+#if VZ_IPADOS14_NETWORK_COMPAT
+typedef void *vmnet_interface_ref;
+typedef uint32_t vmnet_return_t;
+struct vmpktdesc {
+ size_t vm_pkt_size;
+ struct iovec *vm_pkt_iov;
+ uint32_t vm_pkt_iovcnt;
+ uint32_t vm_flags;
+};
+
+extern vmnet_interface_ref vmnet_start_interface(
+ xo_t interface_desc, dispatch_queue_t queue,
+ void (^handler)(vmnet_return_t status, xo_t interface_param));
+extern vmnet_return_t vmnet_write(vmnet_interface_ref interface,
+ struct vmpktdesc *packets, int *packetCount);
+
+static uint32_t checksum_add(const uint8_t *bytes, size_t length,
+ uint32_t sum) {
+ while (length >= 2) {
+ sum += ((uint32_t)bytes[0] << 8) | bytes[1];
+ bytes += 2;
+ length -= 2;
+ }
+ if (length)
+ sum += (uint32_t)bytes[0] << 8;
+ return sum;
+}
+
+static uint16_t checksum_finish(uint32_t sum) {
+ while (sum >> 16)
+ sum = (sum & 0xffffU) + (sum >> 16);
+ uint16_t result = (uint16_t)~sum;
+ return result ?: 0xffffU;
+}
+
+static void store_network_u16(uint8_t *bytes, uint16_t value) {
+ bytes[0] = (uint8_t)(value >> 8);
+ bytes[1] = (uint8_t)value;
+}
+
+static bool complete_ipv4_frame_checksums(uint8_t *frame,
+ size_t frameLength) {
+ if (frameLength < 14)
+ return false;
+
+ size_t ipOffset = 14;
+ uint16_t etherType = ((uint16_t)frame[12] << 8) | frame[13];
+ while ((etherType == 0x8100 || etherType == 0x88a8) &&
+ frameLength >= ipOffset + 4) {
+ etherType = ((uint16_t)frame[ipOffset + 2] << 8) |
+ frame[ipOffset + 3];
+ ipOffset += 4;
+ }
+ if (etherType != 0x0800 || frameLength < ipOffset + 20)
+ return false;
+
+ uint8_t *ip = frame + ipOffset;
+ size_t ipHeaderLength = (size_t)(ip[0] & 0x0fU) * 4;
+ uint16_t ipLength = ((uint16_t)ip[2] << 8) | ip[3];
+ if ((ip[0] >> 4) != 4 || ipHeaderLength < 20 ||
+ ipLength < ipHeaderLength || frameLength < ipOffset + ipLength)
+ return false;
+
+ ip[10] = ip[11] = 0;
+ store_network_u16(ip + 10,
+ checksum_finish(checksum_add(ip, ipHeaderLength, 0)));
+
+ // Non-initial fragments do not contain a transport header. The guest must
+ // checksum fragmented transports itself, matching Apple's vmnet contract.
+ uint16_t fragment = ((uint16_t)ip[6] << 8) | ip[7];
+ if (fragment & 0x1fffU)
+ return true;
+ uint8_t protocol = ip[9];
+ if (protocol != 6 && protocol != 17)
+ return true;
+
+ uint8_t *transport = ip + ipHeaderLength;
+ size_t transportLength = ipLength - ipHeaderLength;
+ size_t checksumOffset = protocol == 6 ? 16 : 6;
+ if (transportLength < checksumOffset + 2)
+ return true;
+ if (protocol == 17) {
+ uint16_t udpLength = ((uint16_t)transport[4] << 8) | transport[5];
+ if (udpLength < 8 || udpLength > transportLength)
+ return true;
+ transportLength = udpLength;
+ }
+
+ transport[checksumOffset] = transport[checksumOffset + 1] = 0;
+ uint32_t sum = 0;
+ sum = checksum_add(ip + 12, 8, sum);
+ sum += protocol;
+ sum += (uint16_t)transportLength;
+ sum = checksum_add(transport, transportLength, sum);
+ store_network_u16(transport + checksumOffset, checksum_finish(sum));
+ return true;
+}
+
+static bool complete_ipv4_checksums(struct vmpktdesc *packet) {
+ if (!packet || !packet->vm_pkt_iov || packet->vm_pkt_iovcnt == 0 ||
+ packet->vm_pkt_iovcnt > 64 || packet->vm_pkt_size < 14 ||
+ packet->vm_pkt_size > (1U << 20))
+ return false;
+
+ if (packet->vm_pkt_iovcnt == 1) {
+ if (!packet->vm_pkt_iov[0].iov_base)
+ return false;
+ size_t length = packet->vm_pkt_iov[0].iov_len;
+ if (length > packet->vm_pkt_size)
+ length = packet->vm_pkt_size;
+ return complete_ipv4_frame_checksums(
+ packet->vm_pkt_iov[0].iov_base, length);
+ }
+
+ // Ventura's VMM commonly submits one Ethernet frame as separate link,
+ // network, transport, and payload iovecs. Big Sur vmnet does not provide
+ // Ventura's checksum-offload contract, so coalesce only long enough to
+ // complete the checksums, then copy the unchanged frame layout back.
+ size_t frameLength = packet->vm_pkt_size;
+ uint8_t stackFrame[2048];
+ uint8_t *frame = frameLength <= sizeof(stackFrame)
+ ? stackFrame : malloc(frameLength);
+ if (!frame)
+ return false;
+ size_t copied = 0;
+ for (uint32_t index = 0;
+ index < packet->vm_pkt_iovcnt && copied < frameLength; index++) {
+ struct iovec *iov = &packet->vm_pkt_iov[index];
+ if (!iov->iov_base || iov->iov_len == 0)
+ continue;
+ size_t length = iov->iov_len;
+ if (length > frameLength - copied)
+ length = frameLength - copied;
+ memcpy(frame + copied, iov->iov_base, length);
+ copied += length;
+ }
+ bool completed = copied == frameLength &&
+ complete_ipv4_frame_checksums(frame, frameLength);
+ if (completed) {
+ copied = 0;
+ for (uint32_t index = 0;
+ index < packet->vm_pkt_iovcnt && copied < frameLength; index++) {
+ struct iovec *iov = &packet->vm_pkt_iov[index];
+ if (!iov->iov_base || iov->iov_len == 0)
+ continue;
+ size_t length = iov->iov_len;
+ if (length > frameLength - copied)
+ length = frameLength - copied;
+ memcpy(iov->iov_base, frame + copied, length);
+ copied += length;
+ }
+ }
+ if (frame != stackFrame)
+ free(frame);
+ return completed;
+}
+
+static vmnet_return_t vmm_vmnet_write(vmnet_interface_ref interface,
+ struct vmpktdesc *packets,
+ int *packetCount) {
+ if (host_is_ipados14() && packets && packetCount && *packetCount > 0) {
+ static uint64_t completed;
+ static bool loggedCompletion;
+ int count = *packetCount;
+ for (int index = 0; index < count; index++) {
+ if (complete_ipv4_checksums(&packets[index]))
+ completed++;
+ }
+ if (!loggedCompletion && completed) {
+ logf_("[vmmhook] iPadOS 14 completed vmnet checksums total=%llu",
+ (unsigned long long)completed);
+ loggedCompletion = true;
+ }
+ }
+ return vmnet_write(interface, packets, packetCount);
+}
+
+static vmnet_interface_ref vmm_vmnet_start_interface(
+ xo_t interface_desc, dispatch_queue_t queue,
+ void (^handler)(vmnet_return_t status, xo_t interface_param)) {
+ if (host_is_ipados14()) {
+ xpc_dictionary_set_bool(interface_desc, "vmnet_enable_tso", false);
+ xpc_dictionary_set_bool(interface_desc,
+ "vmnet_enable_checksum_offload", false);
+ }
+ return vmnet_start_interface(interface_desc, queue, handler);
+}
+
+__attribute__((used)) static struct {
+ const void *replacement;
+ const void *replacee;
+} _ip_vmnet_interposes[] __attribute__((section("__DATA,__interpose"))) = {
+ { (const void *)&vmm_vmnet_start_interface,
+ (const void *)&vmnet_start_interface },
+ { (const void *)&vmm_vmnet_write, (const void *)&vmnet_write },
+};
+#endif
+
// xpc_endpoint object layout: the backing mach send-right is a uint32 at +0x18
// (confirmed on iPadOS 16.3.1 via vz/development/probes/epprobe.m). iPad hands the host's
// anonymous-listener port to us as an inherited send right (name in VMM_EP_PORT); we
@@ -93,6 +300,29 @@ static void log_address(const char *label, void *address) {
}
}
+static NSInteger host_ipados_major_version(void) {
+ static NSInteger majorVersion;
+ static dispatch_once_t onceToken;
+ dispatch_once(&onceToken, ^{
+ // Preserve the previous safe behavior if the host version cannot be
+ // queried: do not activate an older-host compatibility path.
+ majorVersion = 16;
+ char version[32] = {0};
+ size_t size = sizeof(version);
+ if (sysctlbyname("kern.osproductversion", version, &size, NULL, 0) == 0)
+ majorVersion = strtol(version, NULL, 10);
+ });
+ return majorVersion;
+}
+
+static BOOL host_predates_ipados16(void) {
+ return host_ipados_major_version() < 16;
+}
+
+static BOOL host_is_ipados14(void) {
+ return host_ipados_major_version() == 14;
+}
+
static uint64_t xpc_trace_count;
static uint64_t xpc_digitizer_received;
static uint64_t xpc_digitizer_processed;
@@ -112,7 +342,35 @@ static uint64_t vmm_vtimer_last_mask[64];
static uint64_t vmm_vtimer_offset_calls[64];
static uint64_t vmm_vtimer_last_offset[64];
static uint64_t vmm_vcpus_exit_calls;
+static uint64_t vmm_vm_map_calls;
+static uint64_t vmm_vm_protect_calls;
static xo_t fake_usb_location_reply_connection;
+static bool runtime_debug_logging;
+static bool runtime_trace_all_vcpu;
+static uint64_t runtime_xpc_trace_limit = 8;
+static uint64_t runtime_vcpu_trace_limit = 8;
+
+static bool environment_flag_enabled(const char *name) {
+ const char *value = getenv(name);
+ return value && value[0] && strcmp(value, "0") != 0;
+}
+
+// In normal operation counters saturate after the small diagnostic envelope,
+// leaving only one relaxed load and a predictable branch in the hot path.
+// Debug Logging keeps full counters for periodic health reports.
+static uint64_t diagnostic_sequence(uint64_t *counter, uint64_t limit) {
+ if (runtime_debug_logging)
+ return __atomic_add_fetch(counter, 1, __ATOMIC_RELAXED);
+ uint64_t current = __atomic_load_n(counter, __ATOMIC_RELAXED);
+ while (current < limit) {
+ uint64_t next = current + 1;
+ if (__atomic_compare_exchange_n(
+ counter, &current, next, false,
+ __ATOMIC_RELAXED, __ATOMIC_RELAXED))
+ return next;
+ }
+ return 0;
+}
static bool fake_usb_hci_enabled(void);
@@ -137,7 +395,7 @@ static const char *xpc_message_name(xo_t message) {
}
static void count_received_xpc(const char *name) {
- if (!name)
+ if (!runtime_debug_logging || !name)
return;
if (strcmp(name, "process_digitizer_events") == 0)
__atomic_add_fetch(&xpc_digitizer_received, 1, __ATOMIC_RELAXED);
@@ -146,7 +404,7 @@ static void count_received_xpc(const char *name) {
}
static void count_processed_xpc(const char *name) {
- if (!name)
+ if (!runtime_debug_logging || !name)
return;
if (strcmp(name, "process_digitizer_events") == 0)
__atomic_add_fetch(&xpc_digitizer_processed, 1, __ATOMIC_RELAXED);
@@ -155,7 +413,7 @@ static void count_processed_xpc(const char *name) {
}
static void count_sent_xpc(const char *name) {
- if (!name)
+ if (!runtime_debug_logging || !name)
return;
if (strcmp(name, "process_frame_update") == 0)
__atomic_add_fetch(&xpc_frame_updates, 1, __ATOMIC_RELAXED);
@@ -176,9 +434,9 @@ static iosurface_ref_t vmm_IOSurfaceCreate(CFDictionaryRef properties) {
globalProperties, CFSTR("IOSurfaceIsGlobal"), kCFBooleanTrue);
iosurface_ref_t surface = IOSurfaceCreate(globalProperties);
uint32_t identifier = surface ? IOSurfaceGetID(surface) : 0;
- uint64_t count = __atomic_add_fetch(
- &iosurface_create_count, 1, __ATOMIC_RELAXED);
- if (count <= 12 || count % 300 == 0) {
+ uint64_t count = diagnostic_sequence(&iosurface_create_count, 12);
+ if (count && (count <= 12 ||
+ (runtime_debug_logging && count % 300 == 0))) {
logf_("[vmmhook] IOSurfaceCreate #%llu requested-global=1 "
"-> %p id=%u",
(unsigned long long)count, surface, identifier);
@@ -196,10 +454,9 @@ __attribute__((used)) static struct {
};
static bool should_trace_xpc(uint64_t *sequence) {
- const char *limit_text = getenv("VMMHOOK_TRACE_XPC_LIMIT");
- uint64_t limit = limit_text ? strtoull(limit_text, NULL, 0) : 0;
- *sequence = __atomic_add_fetch(&xpc_trace_count, 1, __ATOMIC_RELAXED);
- return *sequence <= limit;
+ *sequence = diagnostic_sequence(
+ &xpc_trace_count, runtime_xpc_trace_limit);
+ return *sequence != 0 && *sequence <= runtime_xpc_trace_limit;
}
static void trace_xpc_message(const char *operation, xo_t connection,
@@ -1653,8 +1910,21 @@ static id traced_usb_hci_init(id self, SEL command, id capabilities, id queue,
self, sel_registerName("setCommandHandler:"), command_handler);
((void (*)(id, SEL, id))objc_msgSend)(
self, sel_registerName("setDoorbellHandler:"), doorbell_handler);
- ((void (*)(id, SEL, void *))objc_msgSend)(
- self, sel_registerName("setInterestHandler:"), interest_handler);
+ SEL interest_selector = sel_registerName("setInterestHandler:");
+ if (((BOOL (*)(id, SEL, SEL))objc_msgSend)(
+ self, sel_registerName("respondsToSelector:"),
+ interest_selector)) {
+ ((void (*)(id, SEL, id))objc_msgSend)(
+ self, interest_selector, interest_handler);
+ } else if (interest_handler) {
+ // iPadOS 14's IOUSBHostControllerInterface predates this setter.
+ // The Ventura argument is authenticated for its newer ABI and is
+ // not a valid iPadOS 14 Objective-C block. The fake userspace
+ // bridge drives controller interest transitions directly, so the
+ // older interface correctly leaves this optional callback unused.
+ logf_("[vmmhook] ignored unsupported iPadOS 14 USB interest "
+ "handler");
+ }
id controller_state_class =
(id)objc_getClass("IOUSBHostCIControllerStateMachine");
@@ -1963,6 +2233,15 @@ static void start_health_timer(void) {
}
__attribute__((constructor)) static void hook_init(void) {
+ runtime_debug_logging = environment_flag_enabled("VZ_DEBUG_LOGGING");
+ runtime_trace_all_vcpu = runtime_debug_logging &&
+ environment_flag_enabled("VMMHOOK_TRACE_VCPU");
+ const char *xpcLimit = getenv("VMMHOOK_TRACE_XPC_LIMIT");
+ const char *vcpuLimit = getenv("VMMHOOK_TRACE_VCPU_LIMIT");
+ if (xpcLimit && xpcLimit[0])
+ runtime_xpc_trace_limit = strtoull(xpcLimit, NULL, 0);
+ if (vcpuLimit && vcpuLimit[0])
+ runtime_vcpu_trace_limit = strtoull(vcpuLimit, NULL, 0);
logf_("[vmmhook] loaded pid %d", getpid());
// macOS configures its host audio endpoint through CoreAudio HAL. On iOS,
// the same endpoint needs an explicit per-process AVAudioSession before
@@ -1971,6 +2250,16 @@ __attribute__((constructor)) static void hook_init(void) {
// Resolve this dynamically: including AVFAudio's header also pulls
// in modern typed XPC declarations, which conflict with this Ventura
// binary-ABI shim's intentionally opaque XPC declarations above.
+ // The VMM does not link AVFAudio itself, and this constructor runs before
+ // Virtualization creates its CoreAudio endpoint. Looking up the class at
+ // this point without loading the framework silently leaves the child with
+ // no AVAudioSession: sound then escapes through the low-level endpoint at
+ // a quiet, fixed level that does not follow the iPad media volume.
+ void *avfAudio = dlopen(
+ "/System/Library/Frameworks/AVFAudio.framework/AVFAudio",
+ RTLD_NOW | RTLD_GLOBAL);
+ if (!avfAudio)
+ logf_("[vmmhook] AVFAudio load failed: %s", dlerror());
Class audioSessionClass = objc_getClass("AVAudioSession");
id audioSession = audioSessionClass
? ((id(*)(id, SEL))objc_msgSend)(
@@ -2007,10 +2296,11 @@ __attribute__((constructor)) static void hook_init(void) {
? ((const char *(*)(id, SEL))objc_msgSend)(
errorDescription, sel_registerName("UTF8String")) : "none";
logf_("[vmmhook] audio session category=%d rate=%d active=%d "
- "permission=%lu sample-rate=%.0f error=%s",
+ "permission=%lu sample-rate=%.0f framework=%p error=%s",
categoryOK, rateOK, activeOK,
- (unsigned long)permission, sampleRate, errorText);
- start_health_timer();
+ (unsigned long)permission, sampleRate, avfAudio, errorText);
+ if (runtime_debug_logging)
+ start_health_timer();
install_usb_hci_trace();
// Optional debug delay: set VMMHOOK_DEBUG_SLEEP=N to give lldb time to attach
// before the VMM accepts the host's connection (catch breakpoints in the open/hv path).
@@ -2108,7 +2398,45 @@ _ip_open __attribute__((section("__DATA,__interpose"))) =
// vCPU and aborts (hv_vm_destroy) if any returns non-zero. We log reg-index, return value,
// and the out-value to identify which one triggers the abort.
extern int hv_vcpu_config_get_feature_reg(void *config, uint64_t reg, uint64_t *value);
+static pthread_mutex_t gLegacyHVCapabilityLock = PTHREAD_MUTEX_INITIALIZER;
+
+static void initialize_legacy_hv_capabilities_if_needed(void) {
+ // The fixed offsets below belong only to the Ventura 22D68 Hypervisor
+ // selected on iPadOS 15. iPadOS 14 selects the Big Sur implementation,
+ // whose native dispatch_once path matches XNU 20 and must not be patched
+ // using Ventura image offsets.
+ if (!host_predates_ipados16() || host_is_ipados14())
+ return;
+ Dl_info hypervisor = {0};
+ if (!dladdr((const void *)&hv_vcpu_config_get_feature_reg, &hypervisor) ||
+ !hypervisor.dli_fbase || !hypervisor.dli_fname ||
+ !strstr(hypervisor.dli_fname, "Hypervisor.framework"))
+ return;
+
+ // Exact offsets in the reproducibly extracted Ventura 22D68 Hypervisor:
+ // its shared capability dispatch_once token and the block invoke that
+ // performs the underlying hv syscall. iPadOS 15 libdispatch reports the
+ // otherwise-clean token as recursively owned. Execute Apple's invoke
+ // once under a mutex, then publish the normal completed-token value.
+ uint8_t *base = (uint8_t *)hypervisor.dli_fbase;
+ uint64_t *token = (uint64_t *)(base + 0x1c1c0);
+ if (__atomic_load_n(token, __ATOMIC_ACQUIRE) == UINT64_MAX)
+ return;
+ pthread_mutex_lock(&gLegacyHVCapabilityLock);
+ if (__atomic_load_n(token, __ATOMIC_RELAXED) != UINT64_MAX) {
+ void (*initializer)(void) = (void (*)(void))
+ ptrauth_sign_unauthenticated(
+ base + 0x4938, ptrauth_key_function_pointer, 0);
+ logf_("[vmmhook] iPadOS 15 Hypervisor capability initializer base=%p token=0x%llx",
+ base, (unsigned long long)*token);
+ initializer();
+ __atomic_store_n(token, UINT64_MAX, __ATOMIC_RELEASE);
+ }
+ pthread_mutex_unlock(&gLegacyHVCapabilityLock);
+}
+
static int vmm_hv_vcpu_config_get_feature_reg(void *config, uint64_t reg, uint64_t *value) {
+ initialize_legacy_hv_capabilities_if_needed();
int rc = hv_vcpu_config_get_feature_reg(config, reg, value);
uint64_t v = (rc == 0 && value) ? *value : 0;
logf_("[vmmhook] hv_vcpu_config_get_feature_reg(reg=%llu) -> rc=%d *out=0x%llx",
@@ -2120,6 +2448,38 @@ _ip_hv_feat __attribute__((section("__DATA,__interpose"))) =
{ (const void *)&vmm_hv_vcpu_config_get_feature_reg,
(const void *)&hv_vcpu_config_get_feature_reg };
+extern int hv_vm_config_set_ipa_size(void *config, uint32_t ipaBitLength);
+static int vmm_hv_vm_config_set_ipa_size(void *config,
+ uint32_t ipaBitLength) {
+ if (host_is_ipados14()) {
+ // The iPadOS 14 package selects Apple's Big Sur (XNU 20)
+ // Hypervisor. Its private vm-config layout predates Ventura's
+ // ipa_bit_length field and the kernel chooses the correct 36-bit
+ // default when that object remains untouched.
+ int rc = (config && ipaBitLength == 36) ? 0 : (int)0xfae94003U;
+ logf_("[vmmhook] iPadOS 14 keep kernel-default Hypervisor IPA bits=%u rc=%d",
+ ipaBitLength, rc);
+ return rc;
+ }
+ if (host_predates_ipados16() && config &&
+ ipaBitLength >= 32 && ipaBitLength <= 48) {
+ // Ventura 22D68 stores ipa_bit_length at +0x10 in its hv_vm_config_t.
+ // Its validation helper reads newer capability fields that are absent
+ // from the iPadOS 15 kernel response and returns HV_ERROR. The XNU 21
+ // create ABI consumes this same field and supports the requested 36
+ // bits, so bypass only that mismatched userspace validation.
+ *(uint32_t *)((uint8_t *)config + 0x10) = ipaBitLength;
+ logf_("[vmmhook] iPadOS 15 set Hypervisor IPA bits=%u directly",
+ ipaBitLength);
+ return 0;
+ }
+ return hv_vm_config_set_ipa_size(config, ipaBitLength);
+}
+__attribute__((used)) static struct { const void *replacement; const void *replacee; }
+_ip_hv_ipa_size __attribute__((section("__DATA,__interpose"))) =
+ { (const void *)&vmm_hv_vm_config_set_ipa_size,
+ (const void *)&hv_vm_config_set_ipa_size };
+
// Trace the post-AVPBooter startup path: pin down whether teardown fires, whether
// vCPU creation is reached, and whether guest execution begins. Signatures match
// the Hypervisor.framework public headers.
@@ -2152,8 +2512,12 @@ _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);
- logf_("[vmmhook] hv_vm_map(addr=%p ipa=0x%llx size=0x%zx flags=0x%llx) -> rc=%d",
- addr, (unsigned long long)ipa, size, (unsigned long long)flags, rc);
+ 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",
+ (unsigned long long)count, addr, (unsigned long long)ipa,
+ size, (unsigned long long)flags, rc);
+ }
if (rc != 0) log_address("hv_vm_map caller", __builtin_return_address(0));
return rc;
}
@@ -2164,8 +2528,12 @@ _ip_hv_vm_map __attribute__((section("__DATA,__interpose"))) =
extern int hv_vm_protect(uint64_t ipa, size_t size, uint64_t flags);
static int vmm_hv_vm_protect(uint64_t ipa, size_t size, uint64_t flags) {
int rc = hv_vm_protect(ipa, size, flags);
- logf_("[vmmhook] hv_vm_protect(ipa=0x%llx size=0x%zx flags=0x%llx) -> rc=%d",
- (unsigned long long)ipa, size, (unsigned long long)flags, rc);
+ uint64_t count = diagnostic_sequence(&vmm_vm_protect_calls, 8);
+ if (count || rc != 0) {
+ logf_("[vmmhook] hv_vm_protect #%llu ipa=0x%llx size=0x%zx flags=0x%llx -> rc=%d",
+ (unsigned long long)count, (unsigned long long)ipa,
+ size, (unsigned long long)flags, rc);
+ }
if (rc != 0) log_address("hv_vm_protect caller", __builtin_return_address(0));
return rc;
}
@@ -2202,21 +2570,20 @@ extern int hv_vcpu_get_sys_reg(uint64_t vcpu, uint32_t reg, uint64_t *value);
static int vmm_hv_vcpu_run(uint64_t vcpu) {
static uint64_t seen_vcpus;
uint64_t bit = vcpu < 64 ? (1ULL << vcpu) : 0;
- bool trace_all = getenv("VMMHOOK_TRACE_VCPU") != NULL;
- bool first_run = bit && !(__atomic_fetch_or(
- &seen_vcpus, bit, __ATOMIC_RELAXED) & bit);
- if (trace_all || first_run)
+ bool first_run = false;
+ if (bit && !(__atomic_load_n(&seen_vcpus, __ATOMIC_RELAXED) & bit))
+ first_run = !(__atomic_fetch_or(
+ &seen_vcpus, bit, __ATOMIC_RELAXED) & bit);
+ if (runtime_trace_all_vcpu || first_run)
logf_("[vmmhook] hv_vcpu_run CALLED vcpu=0x%llx%s",
(unsigned long long)vcpu, first_run ? " (first)" : "");
int rc = hv_vcpu_run(vcpu);
- const char *limit_text = getenv("VMMHOOK_TRACE_VCPU_LIMIT");
- uint64_t trace_limit = limit_text ? strtoull(limit_text, NULL, 0) : 0;
uint64_t exit_count = vcpu < 64
- ? __atomic_add_fetch(&vmm_vcpu_exit_counts[vcpu], 1,
- __ATOMIC_RELAXED)
+ ? diagnostic_sequence(
+ &vmm_vcpu_exit_counts[vcpu], runtime_vcpu_trace_limit)
: 0;
vmm_hv_vcpu_exit_t *exit = vcpu < 64 ? vmm_vcpu_exits[vcpu] : NULL;
- if (vcpu < 64 && exit) {
+ if (runtime_debug_logging && vcpu < 64 && exit) {
uint32_t reason_bucket = exit->reason < 3 ? exit->reason : 3;
__atomic_add_fetch(
&vmm_vcpu_exit_reason_counts[vcpu][reason_bucket], 1,
@@ -2241,7 +2608,8 @@ static int vmm_hv_vcpu_run(uint64_t vcpu) {
}
}
}
- if (vcpu < 64 && exit_count <= trace_limit) {
+ if (vcpu < 64 && exit_count != 0 &&
+ exit_count <= runtime_vcpu_trace_limit) {
uint64_t pc = 0;
int pc_rc = hv_vcpu_get_reg(vcpu, 31 /* HV_REG_PC */, &pc);
logf_("[vmmhook] vcpu=0x%llx exit#%llu rc=%d reason=%u "
@@ -2253,7 +2621,7 @@ static int vmm_hv_vcpu_run(uint64_t vcpu) {
(unsigned long long)(exit ? exit->virtual_address : 0),
(unsigned long long)(exit ? exit->physical_address : 0));
}
- if (trace_all || rc != 0)
+ if (runtime_trace_all_vcpu || rc != 0)
logf_("[vmmhook] hv_vcpu_run -> rc=%d vcpu=0x%llx",
rc, (unsigned long long)vcpu);
return rc;
@@ -2266,13 +2634,14 @@ extern int hv_vcpu_set_vtimer_mask(uint64_t vcpu, bool masked);
static int vmm_hv_vcpu_set_vtimer_mask(uint64_t vcpu, bool masked) {
int rc = hv_vcpu_set_vtimer_mask(vcpu, masked);
uint64_t count = 0;
- if (vcpu < 64) {
+ if (runtime_debug_logging && vcpu < 64) {
__atomic_store_n(&vmm_vtimer_last_mask[vcpu], masked,
__ATOMIC_RELAXED);
count = __atomic_add_fetch(&vmm_vtimer_mask_calls[vcpu], 1,
__ATOMIC_RELAXED);
}
- if (count <= 12 || (count && count % 1000000 == 0) || rc != 0)
+ if ((runtime_debug_logging && count &&
+ (count <= 12 || count % 1000000 == 0)) || rc != 0)
logf_("[vmmhook] hv_vcpu_set_vtimer_mask vcpu=0x%llx "
"masked=%d call=%llu -> rc=%d",
(unsigned long long)vcpu, masked,
@@ -2288,13 +2657,14 @@ extern int hv_vcpu_set_vtimer_offset(uint64_t vcpu, uint64_t offset);
static int vmm_hv_vcpu_set_vtimer_offset(uint64_t vcpu, uint64_t offset) {
int rc = hv_vcpu_set_vtimer_offset(vcpu, offset);
uint64_t count = 0;
- if (vcpu < 64) {
+ if (runtime_debug_logging && vcpu < 64) {
__atomic_store_n(&vmm_vtimer_last_offset[vcpu], offset,
__ATOMIC_RELAXED);
count = __atomic_add_fetch(&vmm_vtimer_offset_calls[vcpu], 1,
__ATOMIC_RELAXED);
}
- if (count <= 12 || (count && count % 1000000 == 0) || rc != 0)
+ if ((runtime_debug_logging && count &&
+ (count <= 12 || count % 1000000 == 0)) || rc != 0)
logf_("[vmmhook] hv_vcpu_set_vtimer_offset vcpu=0x%llx "
"offset=0x%llx call=%llu -> rc=%d",
(unsigned long long)vcpu, (unsigned long long)offset,
@@ -2309,9 +2679,11 @@ _ip_hv_vcpu_set_vtimer_offset __attribute__((section("__DATA,__interpose"))) =
extern int hv_vcpus_exit(uint64_t *vcpus, uint32_t vcpu_count);
static int vmm_hv_vcpus_exit(uint64_t *vcpus, uint32_t vcpu_count) {
int rc = hv_vcpus_exit(vcpus, vcpu_count);
- uint64_t count = __atomic_add_fetch(&vmm_vcpus_exit_calls, 1,
- __ATOMIC_RELAXED);
- if (count <= 12 || count % 100000 == 0 || rc != 0)
+ uint64_t count = runtime_debug_logging
+ ? __atomic_add_fetch(&vmm_vcpus_exit_calls, 1, __ATOMIC_RELAXED)
+ : 0;
+ if ((runtime_debug_logging &&
+ (count <= 12 || count % 100000 == 0)) || rc != 0)
logf_("[vmmhook] hv_vcpus_exit vcpus=%p count=%u call=%llu -> rc=%d",
vcpus, vcpu_count, (unsigned long long)count, rc);
return rc;
diff --git a/VirtualMac/vz/host/vzxpchook.m b/VirtualMac/vz/host/vzxpchook.m
index 006d1b3..c527727 100644
--- a/VirtualMac/vz/host/vzxpchook.m
+++ b/VirtualMac/vz/host/vzxpchook.m
@@ -21,6 +21,7 @@
#include <string.h>
#include <dlfcn.h>
#include <stdint.h>
+#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
@@ -80,6 +81,21 @@ static dispatch_queue_t gVZConnectionQueue;
static uint64_t gHostEventCount;
static uint64_t gInputSendCount;
static uint64_t gFrameAckCount;
+static bool gDebugLogging;
+
+static uint64_t diagnostic_sequence(uint64_t *counter, uint64_t limit) {
+ if (gDebugLogging)
+ return __atomic_add_fetch(counter, 1, __ATOMIC_RELAXED);
+ uint64_t current = __atomic_load_n(counter, __ATOMIC_RELAXED);
+ while (current < limit) {
+ uint64_t next = current + 1;
+ if (__atomic_compare_exchange_n(
+ counter, &current, next, false,
+ __ATOMIC_RELAXED, __ATOMIC_RELAXED))
+ return next;
+ }
+ return 0;
+}
// A launchd-backed XPC service is a single listener process. Virtualization
// opens several peer connections to that listener during one installation;
// spawning a fresh helper for every xpc_connection_create call split the DFU
@@ -183,6 +199,9 @@ static void cleanup_installation_child(void) {
}
__attribute__((constructor)) static void _init(void) {
+ const char *debugValue = getenv("VZ_DEBUG_LOGGING");
+ gDebugLogging = debugValue && debugValue[0] &&
+ strcmp(debugValue, "0") != 0;
L("[vzxpchook] loaded pid %d", getpid());
atexit(cleanup_installation_child);
}
@@ -259,24 +278,58 @@ static xo_t spawn_vmm_and_connect(dispatch_queue_t cq) {
const char *stderrPath = getenv("VZ_VMM_STDERR_LOG");
if (!stderrPath || !stderrPath[0])
stderrPath = "/tmp/vmm.stderr.log";
- char **envp = child_env();
// propagate VMMHOOK_DEBUG_SLEEP to the child by NOT stripping it (child_env keeps everything
// except DYLD_INSERT_LIBRARIES; getenv VMMHOOK_DEBUG_SLEEP set on host inherits to child)
+ // A Taurine restore enters through the setuid launcher rather than the
+ // app's already-jailbroken process tree. Reproduce jbexec's preflight:
+ // stage2 prepares a suspended target for jailbreakd, after which we resume
+ // that same child instead of killing it as the standalone preflight tool
+ // does. Dopamine has no stage2 image and keeps the direct-spawn path.
+ BOOL taurinePreflight = access(
+ "/usr/lib/pspawn_payload-stg2.dylib", R_OK) == 0;
+ const char *oldPreflight = getenv("PREFLIGHT");
+ char *savedPreflight = oldPreflight ? strdup(oldPreflight) : NULL;
+ if (taurinePreflight) {
+ setenv("PREFLIGHT", "1", 1);
+ if (!dlopen("/usr/lib/pspawn_payload-stg2.dylib",
+ RTLD_NOW | RTLD_GLOBAL)) {
+ L("[vzxpchook] Taurine stage2 load failed: %s", dlerror());
+ taurinePreflight = NO;
+ }
+ }
char *argv[] = { (char *)vmm_bin, NULL };
+ char **envp = child_env();
// Redirect the VMM's stdout and stderr so launch failures remain visible.
posix_spawn_file_actions_t fa; posix_spawn_file_actions_init(&fa);
posix_spawn_file_actions_addopen(&fa, 1, stderrPath, O_WRONLY|O_CREAT|O_TRUNC, 0644);
posix_spawn_file_actions_addopen(&fa, 2, stderrPath, O_WRONLY|O_CREAT|O_APPEND, 0644);
+ posix_spawnattr_t attributes;
+ posix_spawnattr_init(&attributes);
+ if (taurinePreflight)
+ posix_spawnattr_setflags(&attributes, POSIX_SPAWN_START_SUSPENDED);
pid_t pid = 0;
- int rc = posix_spawn(&pid, vmm_bin, &fa, NULL, argv, envp);
+ int rc = posix_spawn(&pid, vmm_bin, &fa, &attributes, argv, envp);
+ posix_spawnattr_destroy(&attributes);
posix_spawn_file_actions_destroy(&fa);
free(envp);
- L("[vzxpchook] posix_spawn rc=%d pid=%d stderr=%s",
- rc, pid, stderrPath);
+ if (savedPreflight) {
+ setenv("PREFLIGHT", savedPreflight, 1);
+ free(savedPreflight);
+ } else {
+ unsetenv("PREFLIGHT");
+ }
+ L("[vzxpchook] posix_spawn rc=%d pid=%d taurine-preflight=%d "
+ "target=%s stderr=%s", rc, pid, taurinePreflight, vmm_bin,
+ stderrPath);
if (rc != 0) return NULL;
task_t ctask = MACH_PORT_NULL;
kern_return_t kr = task_for_pid(mach_task_self(), pid, &ctask);
L("[vzxpchook] early task_for_pid kr=%d ctask=0x%x", kr, ctask);
+ if (taurinePreflight) {
+ int resumeResult = kill(pid, SIGCONT);
+ L("[vzxpchook] Taurine prepared child resume result=%d errno=%d",
+ resumeResult, resumeResult == 0 ? 0 : errno);
+ }
useconds_t factorySettleUsec = 2000000;
useconds_t factoryLongSettleUsec = 0;
int factoryLongStop = 0;
@@ -584,8 +637,8 @@ static void vz_xpc_connection_send_message_with_reply(
}
if (name && (strstr(name, "keyboard") || strstr(name, "digitizer") ||
strstr(name, "pointing") || strstr(name, "trackpad"))) {
- uint64_t count = __sync_add_and_fetch(&gInputSendCount, 1);
- if (count <= 12) {
+ uint64_t count = diagnostic_sequence(&gInputSendCount, 12);
+ if (count && count <= 12) {
char *description = xpc_copy_description(message);
L("[vzxpchook] input %llu send-with-reply %s %s",
(unsigned long long)count, name,
@@ -655,8 +708,8 @@ static void vz_xpc_connection_send_message(xo_t connection, xo_t message) {
const char *name = xpc_dictionary_get_string(message, "name");
if (name && (strstr(name, "keyboard") || strstr(name, "digitizer") ||
strstr(name, "pointing") || strstr(name, "trackpad"))) {
- uint64_t count = __sync_add_and_fetch(&gInputSendCount, 1);
- if (count <= 12) {
+ uint64_t count = diagnostic_sequence(&gInputSendCount, 12);
+ if (count && count <= 12) {
char *description = xpc_copy_description(message);
L("[vzxpchook] input %llu send %s %s",
(unsigned long long)count, name,
@@ -685,8 +738,9 @@ static void vz_xpc_connection_send_message(xo_t connection, xo_t message) {
// return synchronously to XPC.
xpc_release(retainedMessage);
xpc_release(retainedConnection);
- uint64_t count = __sync_add_and_fetch(&gFrameAckCount, 1);
- if (count <= 8 || count % 300 == 0)
+ uint64_t count = diagnostic_sequence(&gFrameAckCount, 8);
+ if (count && (count <= 8 ||
+ (gDebugLogging && count % 300 == 0)))
L("[vzxpchook] framebuffer ACK %llu %s immediate",
(unsigned long long)count, name);
xpc_connection_send_message(connection, message);
@@ -700,12 +754,13 @@ static void vz_xpc_connection_set_event_handler(
xo_t connection, void (^handler)(xo_t)) {
xpc_connection_set_event_handler(connection, ^(xo_t event) {
const char *name = xpc_dictionary_get_string(event, "name");
- uint64_t count = __sync_add_and_fetch(&gHostEventCount, 1);
+ uint64_t count = diagnostic_sequence(&gHostEventCount, 12);
BOOL important = name &&
(strcmp(name, "guest_did_panic") == 0 ||
strcmp(name, "guest_did_stop_virtual_machine") == 0 ||
strcmp(name, "guest_did_reset_virtual_machine") == 0);
- if (important || count <= 12 || count % 300 == 0) {
+ if (important || (count && (count <= 12 ||
+ (gDebugLogging && count % 300 == 0)))) {
char *description = xpc_copy_description(event);
L("[vzxpchook] host event %llu name=%s %s",
(unsigned long long)count, name ?: "(null)",
@@ -852,27 +907,44 @@ static int vz_sysctlbyname(const char *name, void *oldp, size_t *oldlenp,
// address as its discriminator.
int vz_rebind_virtualization(void *imageBase) {
#if __has_feature(ptrauth_calls)
+ char productVersion[32] = {0};
+ size_t productVersionSize = sizeof(productVersion);
+ bool isPreIOS16 = vz_sysctlbyname(
+ "kern.osproductversion", productVersion, &productVersionSize,
+ NULL, 0) == 0 && strtol(productVersion, NULL, 10) < 16;
+ void *objcRelease = isPreIOS16
+ ? dlsym(RTLD_DEFAULT, "objc_release") : NULL;
+ void *objcRetain = isPreIOS16
+ ? dlsym(RTLD_DEFAULT, "objc_retain") : NULL;
struct Rebind {
uintptr_t offset;
void *replacement;
const char *name;
+ bool preIOS16Only;
} rebinds[] = {
{0x147288, (void *)&vz_IOSurfaceLookupFromXPCObject,
- "IOSurfaceLookupFromXPCObject"},
- {0x147648, (void *)&confstr, "confstr"},
- {0x147ae0, (void *)&vz_sysctlbyname, "sysctlbyname"},
+ "IOSurfaceLookupFromXPCObject", false},
+ {0x147648, (void *)&confstr, "confstr", false},
+ // Ventura's compiler emits the register-specialized retain/release
+ // entry points added after iPadOS 15. Their ordinary libobjc forms
+ // have the same x0 argument/return contract needed at these call
+ // sites. Repair only the absent iPadOS 15 slots; iPadOS 16's native
+ // optimized bindings are never read or overwritten here.
+ {0x147970, objcRelease, "objc_release_x0 -> objc_release", true},
+ {0x147978, objcRetain, "objc_retain_x0 -> objc_retain", true},
+ {0x147ae0, (void *)&vz_sysctlbyname, "sysctlbyname", false},
{0x147a80, (void *)&sandbox_extension_issue_generic_to_process,
- "sandbox_extension_issue_generic_to_process"},
+ "sandbox_extension_issue_generic_to_process", false},
{0x147a88, (void *)&sandbox_extension_release,
- "sandbox_extension_release"},
+ "sandbox_extension_release", false},
{0x147b98, (void *)&xpc_connection_create,
- "xpc_connection_create"},
+ "xpc_connection_create", false},
{0x147bb8, (void *)&vz_xpc_connection_send_message,
- "xpc_connection_send_message"},
+ "xpc_connection_send_message", false},
{0x147bc0, (void *)&vz_xpc_connection_send_message_with_reply,
- "xpc_connection_send_message_with_reply"},
+ "xpc_connection_send_message_with_reply", false},
{0x147bc8, (void *)&vz_xpc_connection_set_event_handler,
- "xpc_connection_set_event_handler"},
+ "xpc_connection_set_event_handler", false},
};
uintptr_t base = (uintptr_t)imageBase;
uintptr_t page = (base + rebinds[0].offset) & ~(uintptr_t)0x3fff;
@@ -889,6 +961,13 @@ int vz_rebind_virtualization(void *imageBase) {
return (int)kr;
for (size_t i = 0; i < sizeof(rebinds) / sizeof(rebinds[0]); i++) {
+ if (rebinds[i].preIOS16Only && !isPreIOS16)
+ continue;
+ if (!rebinds[i].replacement) {
+ L("[vzxpchook] missing iPadOS 15 replacement for %s",
+ rebinds[i].name);
+ return -1;
+ }
void **slot = (void **)(base + rebinds[i].offset);
void *old = *slot;
void *raw = ptrauth_strip(
diff --git a/VirtualMac/vz/install/install_launcher.c b/VirtualMac/vz/install/install_launcher.c
index 0e6bc4e..eb3c56d 100644
--- a/VirtualMac/vz/install/install_launcher.c
+++ b/VirtualMac/vz/install/install_launcher.c
@@ -41,6 +41,11 @@ static int is_direct_child(const char *value, const char *parent)
strchr(value + parent_length + 1, '/') == NULL;
}
+static const char *bootstrap_tool(const char *rootless, const char *rootful)
+{
+ return access(rootless, X_OK) == 0 ? rootless : rootful;
+}
+
int main(int argc, char **argv)
{
if (argc == 4 && strcmp(argv[1], "--cancel-install") == 0) {
@@ -62,7 +67,8 @@ int main(int argc, char **argv)
if (process > 1)
kill(-process, SIGTERM);
usleep(500000);
- execl("/var/jb/bin/rm", "rm", "-rf", "--", attempt,
+ execl(bootstrap_tool("/var/jb/bin/rm", "/bin/rm"),
+ "rm", "-rf", "--", attempt,
(char *)NULL);
return 1;
}
@@ -86,7 +92,8 @@ int main(int argc, char **argv)
strerror(errno));
return 1;
}
- execl("/var/jb/bin/rm", "rm", "-rf", "--", path,
+ execl(bootstrap_tool("/var/jb/bin/rm", "/bin/rm"),
+ "rm", "-rf", "--", path,
(char *)NULL);
fprintf(stderr, "install-launcher: cleanup exec failed: %s\n",
strerror(errno));
@@ -152,7 +159,7 @@ int main(int argc, char **argv)
strerror(errno));
return 1;
}
- execl("/var/jb/bin/sh", "sh",
+ execl(bootstrap_tool("/var/jb/bin/sh", "/bin/sh"), "sh",
"/var/root/VirtualMac/install/start-install.sh", argv[1],
argv[2], argv[3], argv[4], argv[5], argv[6], argv[7],
(char *)NULL);
diff --git a/VirtualMac/vz/install/install_macos.m b/VirtualMac/vz/install/install_macos.m
index b1a71fc..f14537c 100644
--- a/VirtualMac/vz/install/install_macos.m
+++ b/VirtualMac/vz/install/install_macos.m
@@ -5,6 +5,7 @@
#include <errno.h>
#include <fcntl.h>
#include <limits.h>
+#include <pwd.h>
#include <stdlib.h>
#include <sys/stat.h>
#include <unistd.h>
@@ -35,6 +36,38 @@ static NSURL *FileURL(NSString *path)
return [NSURL fileURLWithPath:path];
}
+static void MakeFailedBundleAccessible(void)
+{
+ if (!gStagingBundlePath.length || ![[NSFileManager defaultManager]
+ fileExistsAtPath:gStagingBundlePath])
+ return;
+ // The installer runs as root, while UIKit deliberately remains mobile.
+ // Hand the complete partial tree back before reporting the error so the
+ // app can archive or delete it. Restore may add files that this launcher
+ // does not know by name, so enumerating is safer than a fixed file list.
+ struct passwd *mobile = getpwnam("mobile");
+ uid_t uid = mobile ? mobile->pw_uid : 501;
+ gid_t gid = mobile ? mobile->pw_gid : 501;
+ NSMutableArray<NSString *> *paths = [NSMutableArray
+ arrayWithObject:gStagingBundlePath];
+ NSDirectoryEnumerator *enumerator = [[NSFileManager defaultManager]
+ enumeratorAtPath:gStagingBundlePath];
+ for (NSString *relativePath in enumerator)
+ [paths addObject:[gStagingBundlePath
+ stringByAppendingPathComponent:relativePath]];
+ for (NSString *path in paths) {
+ struct stat status;
+ if (lstat(path.fileSystemRepresentation, &status) != 0)
+ continue;
+ lchown(path.fileSystemRepresentation, uid, gid);
+ if (S_ISLNK(status.st_mode))
+ continue;
+ mode_t accessibleMode = status.st_mode & 0777;
+ accessibleMode |= S_ISDIR(status.st_mode) ? 0700 : 0600;
+ chmod(path.fileSystemRepresentation, accessibleMode);
+ }
+}
+
static uint64_t EnvironmentUInt64(const char *name, uint64_t fallback,
uint64_t minimum, uint64_t maximum)
{
@@ -51,6 +84,7 @@ static uint64_t EnvironmentUInt64(const char *name, uint64_t fallback,
static void FinishWithError(NSString *stage, NSError *error)
{
+ MakeFailedBundleAccessible();
fprintf(stderr, "INSTALL_FAILED\tstage=%s\terror=%s\n",
stage.UTF8String ?: "(unknown)",
error.description.UTF8String ?: "(unknown)");
@@ -182,7 +216,9 @@ static id CreateConfiguration(id requirements, NSError **error)
SetObject(configuration, "setBootLoader:", New("VZMacOSBootLoader"));
SetObject(configuration, "setStorageDevices:", @[blockDevice]);
- // The display is install-time only; the user's configured native-resolution display remains the runtime device.
+ // The display is install-time only; the user's configured native-resolution
+ // display remains the runtime device. RestoreOS builds may still require a
+ // graphics device, so every supported host configures the same display.
id display = ((id (*)(id, SEL, NSInteger, NSInteger, NSInteger))
objc_msgSend)(Alloc("VZMacGraphicsDisplayConfiguration"),
S("initWithWidthInPixels:heightInPixels:pixelsPerInch:"),
diff --git a/VirtualMac/vz/install/start-install.sh b/VirtualMac/vz/install/start-install.sh
index 9d3f157..574f281 100644
--- a/VirtualMac/vz/install/start-install.sh
+++ b/VirtualMac/vz/install/start-install.sh
@@ -1,4 +1,4 @@
-#!/var/jb/bin/sh
+#!/bin/sh
# On-device launcher shared by the UIKit app and SSH automation. It prewarms
# DeviceSupport's usbmuxd before VZMacOSInstaller reaches the RestoreOS USB
@@ -8,6 +8,9 @@ set -eu
# System applications do not inherit the interactive jailbreak shell PATH.
# Keep every utility used below resolvable when this script is exec'd by the
# setuid install-launcher from UIKit.
+jb_prefix=/var/jb
+test -x /var/jb/usr/bin/launchctl || jb_prefix=
+launchctl="$jb_prefix/usr/bin/launchctl"
PATH=/var/jb/usr/bin:/var/jb/bin:/usr/bin:/bin:/usr/sbin:/sbin
export PATH
trap 'status=$?; if [ "$status" -ne 0 ] && { [ -z "${log:-}" ] || ! grep -q "INSTALL_FAILED" "$log" 2>/dev/null; }; then echo "INSTALL_FAILED launcher status=$status"; fi' EXIT
@@ -18,6 +21,7 @@ if [ "$#" -ne 7 ]; then
fi
remote=/var/root/VirtualMac
+host_version=$(sw_vers -productVersion)
ipsw=$1
staging=$2
final=$3
@@ -26,6 +30,7 @@ cpu=$5
memory=$6
disk=$7
usbmuxd="$remote/payload/Installation.xpc/Contents/Frameworks/MobileDevice.framework/Versions/A/Resources/usbmuxd"
+third_party_usbmux_jobs=/tmp/virtualmac-third-party-usbmuxd.jobs
test -f "$ipsw"
test ! -e "$staging"
@@ -39,6 +44,77 @@ test "${final%/*}" = /var/mobile/Media/VirtualMac || {
echo "final bundle must be directly in /var/mobile/Media/VirtualMac" >&2
exit 2
}
+
+# Procursus/libimobiledevice can install its own launchd-managed usbmuxd. It
+# races the matching DeviceSupport daemon below for /var/run/usbmuxd and forces
+# the virtual restore device back into DFU (MobileRestore error 4014). Unload
+# only jailbreak-provided jobs whose plist explicitly runs usbmuxd. A monitor
+# restores each original job after this installer process exits.
+: >"$third_party_usbmux_jobs"
+for plist in "$jb_prefix"/Library/LaunchDaemons/*.plist; do
+ test -f "$plist" || continue
+ grep -q '/usbmuxd\|>usbmuxd<' "$plist" 2>/dev/null || continue
+ # iPadOS 16.0/16.1 do not ship /usr/bin/plutil, and a fresh Dopamine
+ # bootstrap does not necessarily provide another copy. These jailbreak
+ # launchd plists are XML (the grep above intentionally only matches XML),
+ # so read the Label without introducing a package dependency. The old
+ # plutil call returned an empty label on 16.1, leaving a KeepAlive
+ # libimobiledevice usbmuxd job active throughout restore.
+ label=$(sed -n '/<key>Label<\/key>/{
+ n
+ s/.*<string>\([^<]*\)<\/string>.*/\1/p
+ q
+ }' "$plist" 2>/dev/null || true)
+ test -n "$label" || continue
+ # Dopamine rootless LaunchDaemons normally live in user/501. Query it
+ # first because launchctl also accepts system/<label> as an alias while
+ # warning that the service belongs to the user domain; recording that
+ # alias would later restore the job into the wrong domain.
+ for domain in user/501 system; do
+ if "$launchctl" print "$domain/$label" >/dev/null 2>&1; then
+ bootout_status=0
+ "$launchctl" bootout "$domain/$label" \
+ >/dev/null 2>&1 || bootout_status=$?
+ # iPadOS 14's launchctl can return an error after it has already
+ # removed a rootful system job. This is reproducible with
+ # Procursus org.libimobiledevice.usbmuxd: the command is nonzero,
+ # but a subsequent print reports that the service no longer
+ # exists. Accept only that proven 14.x state; keep the established
+ # strict result handling on iPadOS 15 and 16.
+ bootout_succeeded=0
+ if test "$bootout_status" -eq 0; then
+ bootout_succeeded=1
+ elif test "$host_version" != "${host_version#14.}" &&
+ ! "$launchctl" print "$domain/$label" \
+ >/dev/null 2>&1; then
+ bootout_succeeded=1
+ echo "INSTALL_USB_CONFLICT_BOOTOUT_STATUS_IGNORED host=$host_version status=$bootout_status domain=$domain label=$label"
+ fi
+ if test "$bootout_succeeded" -eq 1; then
+ printf '%s\t%s\t%s\n' "$domain" "$label" "$plist" \
+ >>"$third_party_usbmux_jobs"
+ echo "INSTALL_USB_CONFLICT_DISABLED domain=$domain label=$label"
+ else
+ echo "INSTALL_FAILED could not disable conflicting usbmuxd job $domain/$label"
+ exit 1
+ fi
+ break
+ fi
+ done
+done
+installer_pid=$$
+if test -s "$third_party_usbmux_jobs"; then
+ (
+ while kill -0 "$installer_pid" 2>/dev/null; do sleep 1; done
+ while IFS="$(printf '\t')" read -r domain label plist; do
+ "$launchctl" bootstrap "$domain" "$plist" \
+ >/dev/null 2>&1 || true
+ "$launchctl" kickstart "$domain/$label" \
+ >/dev/null 2>&1 || true
+ done <"$third_party_usbmux_jobs"
+ rm -f "$third_party_usbmux_jobs"
+ ) >/tmp/virtualmac-usbmuxd-restore.log 2>&1 &
+fi
case "$final" in
*.bundle) ;;
*) echo "final bundle must have a .bundle suffix" >&2; exit 2 ;;
@@ -81,6 +157,33 @@ INSTALL_USB_ENABLE_FILE=/tmp/vz-usbmuxd-enable \
"$usbmuxd" -debug 5 >/tmp/vz-usbmuxd.log 2>&1 &
echo $! >/tmp/vz-usbmuxd.pid
+# DeviceSupport's private usbmuxd is needed only for the restore transport.
+# The shell is replaced by install-macos below, so a small watcher owns helper
+# cleanup after that process exits. Without this, successful restores leave a
+# polling usbmuxd consuming CPU until the next restore or reboot.
+restore_process_pid=$$
+(
+ while kill -0 "$restore_process_pid" 2>/dev/null; do sleep 1; done
+ helper_pid=$(cat /tmp/vz-usbmuxd.pid 2>/dev/null || true)
+ if test -n "$helper_pid"; then
+ kill "$helper_pid" 2>/dev/null || true
+ attempt=0
+ while kill -0 "$helper_pid" 2>/dev/null; do
+ attempt=$((attempt + 1))
+ test "$attempt" -lt 20 || {
+ kill -9 "$helper_pid" 2>/dev/null || true
+ break
+ }
+ sleep 0.1
+ done
+ fi
+ if test -L /var/run/usbmuxd &&
+ test "$(readlink /var/run/usbmuxd 2>/dev/null || true)" = /tmp/vzusbmuxd; then
+ rm -f /var/run/usbmuxd
+ fi
+ rm -f /tmp/vzusbmuxd /tmp/vz-usbmuxd.pid /tmp/vz-usbmuxd-enable
+) >/tmp/vz-usbmuxd-cleanup.log 2>&1 &
+
attempt=0
while ! test -S /tmp/vzusbmuxd; do
attempt=$((attempt + 1))
@@ -91,7 +194,7 @@ while ! test -S /tmp/vzusbmuxd; do
sleep 0.1
done
-installer_pid=$$
+# Coordinate the fake RestoreOS device with the matching bundled usbmuxd.
(
while ! grep -q 'fake USB device descriptor: .* ac 05 ac 12' \
/tmp/vmmhook.log 2>/dev/null; do
@@ -122,6 +225,7 @@ unset VZ_VMM_ENDPOINT_FILE VZ_INSTALLATION_ENDPOINT_FILE
export VMMHOOK_TRACE_USB="${VMMHOOK_TRACE_USB:-0}"
export VMMHOOK_TRACE_IOKIT="${VMMHOOK_TRACE_IOKIT:-1}"
export VMMHOOK_TRACE_XPC_LIMIT="${VMMHOOK_TRACE_XPC_LIMIT:-200}"
+export VZ_DEBUG_LOGGING=1
export VMMHOOK_FAKE_USB="${VMMHOOK_FAKE_USB:-1}"
export INSTALL_USB_DEBUG_DELAY_MS="${INSTALL_USB_DEBUG_DELAY_MS:-}"
export INSTALL_USB_TRACE_TRANSFERS="${INSTALL_USB_TRACE_TRANSFERS:-0}"
diff --git a/VirtualMac/vz/patches/patch_ipados14_bootpd.py b/VirtualMac/vz/patches/patch_ipados14_bootpd.py
new file mode 100644
index 0000000..1d16d3d
--- /dev/null
+++ b/VirtualMac/vz/patches/patch_ipados14_bootpd.py
@@ -0,0 +1,31 @@
+#!/usr/bin/env python3
+"""Relocate the matching iPadOS 14 DHCP helper's writable configuration."""
+
+import pathlib
+import sys
+
+
+def main(path_text: str) -> None:
+ path = pathlib.Path(path_text)
+ data = bytearray(path.read_bytes())
+
+ # iPadOS bootpd normally reads this file from the sealed system volume.
+ # The package-owned InternetSharing process writes the same configuration
+ # to /tmp. Shortening a NUL-terminated cstring in place preserves every
+ # Mach-O offset and authenticated pointer in this arm64e executable.
+ old = b"/Library/Preferences/SystemConfiguration/bootpd.plist\0"
+ new = b"/tmp/bootpd.plist\0"
+ count = data.count(old)
+ if count != 1:
+ raise SystemExit(
+ f"{path}: expected one iPadOS bootpd config path, found {count}"
+ )
+ replacement = new + b"\0" * (len(old) - len(new))
+ data = bytearray(data.replace(old, replacement))
+ path.write_bytes(data)
+
+
+if __name__ == "__main__":
+ if len(sys.argv) != 2:
+ raise SystemExit(f"usage: {sys.argv[0]} BOOTPD_BINARY")
+ main(sys.argv[1])
diff --git a/VirtualMac/vz/patches/patch_ipados14_internet_sharing.py b/VirtualMac/vz/patches/patch_ipados14_internet_sharing.py
new file mode 100755
index 0000000..a6c7965
--- /dev/null
+++ b/VirtualMac/vz/patches/patch_ipados14_internet_sharing.py
@@ -0,0 +1,67 @@
+#!/usr/bin/env python3
+"""Adapt Big Sur InternetSharing to iPadOS 14 IOUserEthernet timing.
+
+iPadOS 14 reports its newly attached IOUserEthernet interface before every
+socket ioctl can address it. InternetSharing treats a transient SIOCSIFMTU
+failure as fatal even though the interface already has the requested 1500-byte
+default MTU. The iPadOS 14-only daemon therefore makes this best-effort, just
+as ifconfig callers normally do after attach.
+"""
+
+import argparse
+import struct
+from pathlib import Path
+
+
+PATCH_OFFSET = 0xC7C4
+EXPECTED = 0x54000060 # b.eq failure after ioctl(SIOCSIFMTU)
+NOP = 0xD503201F
+NATPMP_ENABLED_OFFSET = 0x2C154
+
+
+def main() -> None:
+ parser = argparse.ArgumentParser()
+ parser.add_argument("binary", type=Path)
+ args = parser.parse_args()
+
+ data = bytearray(args.binary.read_bytes())
+ found = struct.unpack_from("<I", data, PATCH_OFFSET)[0]
+ if found != EXPECTED:
+ raise SystemExit(
+ f"{args.binary}: unexpected SIOCSIFMTU branch at "
+ f"0x{PATCH_OFFSET:x}: 0x{found:08x}"
+ )
+ struct.pack_into("<I", data, PATCH_OFFSET, NOP)
+ natpmp_enabled = struct.unpack_from("<I", data, NATPMP_ENABLED_OFFSET)[0]
+ if natpmp_enabled != 1:
+ raise SystemExit(
+ f"{args.binary}: unexpected NAT-PMP default at "
+ f"0x{NATPMP_ENABLED_OFFSET:x}: {natpmp_enabled}"
+ )
+ # iPadOS has no natpmpd. Port forwarding is optional and must not make
+ # creation of the guest's ordinary outbound-NAT interface fail.
+ struct.pack_into("<I", data, NATPMP_ENABLED_OFFSET, 0)
+
+ # Never address Apple's system DHCP job. The matching iPadOS helper is
+ # shipped at a package-owned path and registered under this private label.
+ old = b"com.apple.bootpd"
+ new = b"vzi.apple.bootpd"
+ if len(old) != len(new) or data.count(old) != 1:
+ raise SystemExit(
+ f"{args.binary}: unexpected iPadOS 14 bootpd label layout"
+ )
+ data = bytearray(data.replace(old, new))
+
+ # Share the writable configuration path with the private iPadOS helper.
+ old = b"/etc/bootpd.plist"
+ new = b"/tmp/bootpd.plist"
+ if len(old) != len(new) or data.count(old) != 1:
+ raise SystemExit(
+ f"{args.binary}: unexpected iPadOS 14 bootpd path layout"
+ )
+ data = bytearray(data.replace(old, new))
+ args.binary.write_bytes(data)
+
+
+if __name__ == "__main__":
+ main()
diff --git a/VirtualMac/vz/patches/patch_ipados14_mobiledevice.py b/VirtualMac/vz/patches/patch_ipados14_mobiledevice.py
new file mode 100644
index 0000000..0a0ff03
--- /dev/null
+++ b/VirtualMac/vz/patches/patch_ipados14_mobiledevice.py
@@ -0,0 +1,32 @@
+#!/usr/bin/env python3
+"""Apply the narrow Ventura MobileDevice compatibility fix for iPadOS 14."""
+
+from pathlib import Path
+import sys
+
+
+# ____initCloseNotificationGlobals_block_invoke checks for macOS 12 and then
+# selects kIOMainPortDefault over kIOMasterPortDefault. iPadOS 14 does not
+# export the newer weak symbol, although the platform check succeeds after the
+# macOS image is restamped. Select the already-loaded legacy symbol instead.
+BEFORE = bytes.fromhex("1f000071 2801889a 000140b9")
+AFTER = bytes.fromhex("1f000071 e80309aa 000140b9")
+
+
+def main() -> None:
+ if len(sys.argv) != 2:
+ raise SystemExit(f"usage: {sys.argv[0]} MOBILEDEVICE")
+ path = Path(sys.argv[1])
+ image = path.read_bytes()
+ count = image.count(BEFORE)
+ if count != 1:
+ raise SystemExit(
+ f"error: expected one iPadOS 14 main-port branch in {path}, "
+ f"found {count}"
+ )
+ path.write_bytes(image.replace(BEFORE, AFTER, 1))
+ print(f"Patched iPadOS 14 MobileDevice main-port selection: {path}")
+
+
+if __name__ == "__main__":
+ main()
diff --git a/VirtualMac/vz/patches/patch_ipados14_vmm_vmnet_import.py b/VirtualMac/vz/patches/patch_ipados14_vmm_vmnet_import.py
new file mode 100755
index 0000000..e15c639
--- /dev/null
+++ b/VirtualMac/vz/patches/patch_ipados14_vmm_vmnet_import.py
@@ -0,0 +1,32 @@
+#!/usr/bin/env python3
+"""Make Ventura VMM load against Big Sur's smaller vmnet key surface."""
+
+import argparse
+from pathlib import Path
+
+
+def main() -> None:
+ parser = argparse.ArgumentParser()
+ parser.add_argument("binary", type=Path)
+ args = parser.parse_args()
+
+ data = args.binary.read_bytes()
+ old = b"_vmnet_enable_checksum_offload_key"
+ # Big Sur has no checksum-offload capability. Bind the missing import to
+ # an existing vmnet key so the Ventura VMM can load; the iPadOS 14-only
+ # vmnet_write interposer then fulfills Ventura's checksum contract in
+ # software for the scatter/gather frames emitted by the guest.
+ replacement = b"_vmnet_enable_isolation_key" + b"\0" * (
+ len(old) - len(b"_vmnet_enable_isolation_key")
+ )
+ count = data.count(old)
+ if count != 2:
+ raise SystemExit(
+ f"{args.binary}: expected two checksum-key symbol strings, "
+ f"found {count}"
+ )
+ args.binary.write_bytes(data.replace(old, replacement))
+
+
+if __name__ == "__main__":
+ main()
diff --git a/VirtualMac/vz/patches/patch_ipados15_objc_class_data.py b/VirtualMac/vz/patches/patch_ipados15_objc_class_data.py
new file mode 100644
index 0000000..b52edd5
--- /dev/null
+++ b/VirtualMac/vz/patches/patch_ipados15_objc_class_data.py
@@ -0,0 +1,67 @@
+#!/usr/bin/env python3
+"""Convert Ventura arm64e Objective-C class-data fixups to the iOS 15 ABI.
+
+Ventura signs class_t::data with the DA key. The iOS 15 Objective-C runtime
+expects that field to be an ordinary chained rebase (as emitted by its own
+system frameworks), so it treats the PAC bits as address bits and faults in
+readClass. Only the data field is different; isa and superclass remain
+authenticated. Rewrite that one fixup in every class_t without changing the
+chain topology or any code.
+"""
+
+import struct
+import sys
+
+LC_SEGMENT_64 = 0x19
+
+
+def main(path: str) -> None:
+ image = bytearray(open(path, "rb").read())
+ ncmds = struct.unpack_from("<I", image, 16)[0]
+ command_offset = 32
+ sections = []
+
+ for _ in range(ncmds):
+ command, command_size = struct.unpack_from("<II", image, command_offset)
+ if command == LC_SEGMENT_64:
+ section_count = struct.unpack_from("<I", image, command_offset + 64)[0]
+ section_offset = command_offset + 72
+ for _ in range(section_count):
+ name = image[section_offset:section_offset + 16].split(b"\0", 1)[0]
+ if name == b"__objc_data":
+ size = struct.unpack_from("<Q", image, section_offset + 40)[0]
+ file_offset = struct.unpack_from("<I", image, section_offset + 48)[0]
+ sections.append((file_offset, size))
+ section_offset += 80
+ command_offset += command_size
+
+ patched = 0
+ for file_offset, size in sections:
+ if size % 40:
+ raise SystemExit(f"unexpected __objc_data size {size:#x} in {path}")
+ # class_t is five pointers. data is its fifth field.
+ for offset in range(file_offset + 32, file_offset + size, 40):
+ word = struct.unpack_from("<Q", image, offset)[0]
+ authenticated = word >> 63
+ bound = (word >> 62) & 1
+ diversity = (word >> 32) & 0xFFFF
+ key = (word >> 49) & 3
+ if not authenticated or bound or diversity != 0x61F8 or key != 2:
+ raise SystemExit(
+ f"unexpected class data fixup {word:#018x} at file offset {offset:#x}"
+ )
+ target = word & 0xFFFFFFFF
+ next_delta = (word >> 51) & 0x7FF
+ plain_rebase = target | (next_delta << 51)
+ struct.pack_into("<Q", image, offset, plain_rebase)
+ patched += 1
+
+ if not patched:
+ print(f"{path}: no Objective-C class data to adapt")
+ return
+ open(path, "wb").write(image)
+ print(f"{path}: adapted {patched} Objective-C class-data fixups for iPadOS 15")
+
+
+if __name__ == "__main__":
+ main(sys.argv[1])
diff --git a/VirtualMac/vz/patches/patch_ipados15_objc_imports.py b/VirtualMac/vz/patches/patch_ipados15_objc_imports.py
new file mode 100644
index 0000000..bd65362
--- /dev/null
+++ b/VirtualMac/vz/patches/patch_ipados15_objc_imports.py
@@ -0,0 +1,40 @@
+#!/usr/bin/env python3
+"""Retarget post-iPadOS-15 register-specialized ObjC imports.
+
+Ventura's arm64e binaries import objc_retain_x0 and objc_release_x0. Those
+symbols do not exist in iPadOS 15, so its dyld correctly leaves their weak
+authenticated GOT entries null. The ordinary entry points have the same x0
+calling contract. Rewriting the chained-import name lets dyld resolve and
+sign every slot itself using the host ABI.
+"""
+
+from pathlib import Path
+import sys
+
+
+REPLACEMENTS = {
+ b"_objc_retain_x0\0": b"_objc_retain\0\0\0\0",
+ b"_objc_release_x0\0": b"_objc_release\0\0\0\0",
+}
+
+
+def main() -> int:
+ if len(sys.argv) != 2:
+ raise SystemExit(f"usage: {sys.argv[0]} MACH-O")
+ path = Path(sys.argv[1])
+ data = path.read_bytes()
+ counts: list[str] = []
+ for old, new in REPLACEMENTS.items():
+ assert len(old) == len(new)
+ count = data.count(old)
+ if count:
+ data = data.replace(old, new)
+ counts.append(f"{old[:-1].decode()}={count}")
+ path.write_bytes(data)
+ print(f"{path}: retargeted Objective-C imports " +
+ (", ".join(counts) if counts else "none"))
+ return 0
+
+
+if __name__ == "__main__":
+ raise SystemExit(main())
diff --git a/VirtualMac/vz/patches/patch_vmm_optional_pvg_reset.py b/VirtualMac/vz/patches/patch_vmm_optional_pvg_reset.py
new file mode 100644
index 0000000..88b1d52
--- /dev/null
+++ b/VirtualMac/vz/patches/patch_vmm_optional_pvg_reset.py
@@ -0,0 +1,51 @@
+#!/usr/bin/env python3
+"""Guard Ventura VMM's optional PVG reset-retain list on older iPadOS hosts."""
+
+from pathlib import Path
+import struct
+import sys
+
+
+SITE = 0x11D58C
+CAVE = 0x3D00
+SKIP_CLEANUP = 0x11D5B0
+CONTINUE_CLEANUP = 0x11D594
+LOAD_RETAIN_LIST = 0xF9405694 # ldr x20, [x20, #0xa8]
+
+
+def branch(source: int, target: int) -> int:
+ delta = target - source
+ if delta % 4 or not -(1 << 27) <= delta < (1 << 27):
+ raise ValueError(f"invalid branch from {source:#x} to {target:#x}")
+ return 0x14000000 | ((delta // 4) & 0x03FFFFFF)
+
+
+def main() -> None:
+ if len(sys.argv) != 2:
+ raise SystemExit(f"usage: {sys.argv[0]} VMM")
+ path = Path(sys.argv[1])
+ image = bytearray(path.read_bytes())
+ old = struct.unpack_from("<I", image, SITE)[0]
+ site_branch = branch(SITE, CAVE)
+ if old not in (LOAD_RETAIN_LIST, site_branch):
+ raise SystemExit(
+ f"error: unexpected PVG reset instruction in {path}: {old:#010x}"
+ )
+ words = [
+ LOAD_RETAIN_LIST,
+ 0xB5000054, # cbnz x20, cave + 12
+ branch(CAVE + 8, SKIP_CLEANUP),
+ 0xA9405A95, # ldp x21, x22, [x20]
+ branch(CAVE + 16, CONTINUE_CLEANUP),
+ ]
+ cave_bytes = struct.pack("<5I", *words)
+ if old == LOAD_RETAIN_LIST and any(image[CAVE:CAVE + len(cave_bytes)]):
+ raise SystemExit(f"error: VMM compatibility cave is occupied")
+ image[CAVE:CAVE + len(cave_bytes)] = cave_bytes
+ struct.pack_into("<I", image, SITE, site_branch)
+ path.write_bytes(image)
+ print(f"Patched VMM optional PVG reset list: {path}")
+
+
+if __name__ == "__main__":
+ main()
diff --git a/VirtualMac/vz/tweak/VZKeyboardPassthrough.m b/VirtualMac/vz/tweak/VZKeyboardPassthrough.m
index c17fb5a..b362f77 100644
--- a/VirtualMac/vz/tweak/VZKeyboardPassthrough.m
+++ b/VirtualMac/vz/tweak/VZKeyboardPassthrough.m
@@ -35,7 +35,12 @@ static NSDictionary *gSettings;
static BOOL VZSettingEnabled(NSString *key)
{
id value = gSettings[key];
- return value ? [value boolValue] : YES;
+ if (value)
+ return [value boolValue];
+ // Match the app's defaults exactly. Shortcut capture is the only
+ // SpringBoard behavior enabled until the user opts in; edge and
+ // multitasking gesture suppression remain off.
+ return [key isEqualToString:@"KeyboardShortcutCapture"];
}
static void VZReloadSettings(void)
@@ -74,6 +79,12 @@ static void Log(const char *message)
fclose(file);
}
+static void DebugLog(const char *message)
+{
+ if (VZSettingEnabled(@"DebugLogging"))
+ Log(message);
+}
+
static BOOL VirtualMacIsFrontmost(id springBoard)
{
// _accessibilityFrontMostApplication builds SpringBoard's app-switcher
@@ -95,21 +106,40 @@ static BOOL VirtualMacIsFrontmost(id springBoard)
SEL frontSelector = sel_registerName("_accessibilityFrontMostApplication");
if (![springBoard respondsToSelector:frontSelector])
return NO;
- id application = ((id (*)(id, SEL))objc_msgSend)(
- springBoard, frontSelector);
- SEL bundleSelector = sel_registerName("bundleIdentifier");
- if (![application respondsToSelector:bundleSelector])
+ @try {
+ id application = ((id (*)(id, SEL))objc_msgSend)(
+ springBoard, frontSelector);
+ SEL bundleSelector = sel_registerName("bundleIdentifier");
+ if (![application respondsToSelector:bundleSelector])
+ return NO;
+ NSString *bundleIdentifier = ((id (*)(id, SEL))objc_msgSend)(
+ application, bundleSelector);
+ return [bundleIdentifier isEqualToString:
+ [NSString stringWithUTF8String:gTargetBundleID]];
+ } @catch (NSException *exception) {
+ Log("frontmost application lookup raised; leaving system input enabled");
return NO;
- NSString *bundleIdentifier = ((id (*)(id, SEL))objc_msgSend)(
- application, bundleSelector);
- return [bundleIdentifier isEqualToString:
- [NSString stringWithUTF8String:gTargetBundleID]];
+ }
}
static BOOL VirtualMacVMIsActive(id springBoard)
{
- return access(gVMActiveMarker, F_OK) == 0 &&
- VirtualMacIsFrontmost(springBoard);
+ if (access(gVMActiveMarker, F_OK) != 0 ||
+ !VirtualMacIsFrontmost(springBoard))
+ return NO;
+ // While the display is asleep, SpringBoard can continue reporting the VM
+ // app as frontmost. Suppressing every system gesture in that state also
+ // suppresses iPadOS 16.1's tap-to-wake recognizer. The lock screen must
+ // always retain its native input path.
+ Class lockClass = objc_getClass("SBLockScreenManager");
+ id lockManager = lockClass ? ((id (*)(id, SEL))objc_msgSend)(
+ lockClass, sel_registerName("sharedInstance")) : nil;
+ if (lockManager && [lockManager respondsToSelector:
+ sel_registerName("isUILocked")] &&
+ ((BOOL (*)(id, SEL))objc_msgSend)(
+ lockManager, sel_registerName("isUILocked")))
+ return NO;
+ return YES;
}
static BOOL VZSharedApplicationIsTarget(void)
@@ -202,8 +232,8 @@ static void VZPostCommandShortcut(int64_t usage, BOOL pressed)
CFNotificationCenterPostNotification(
CFNotificationCenterGetDarwinNotifyCenter(),
(CFStringRef)name, NULL, NULL, YES);
- Log(pressed ? "relayed consumed Command shortcut down to Virtual Mac"
- : "relayed consumed Command shortcut up to Virtual Mac");
+ DebugLog(pressed ? "relayed consumed Command shortcut down to Virtual Mac"
+ : "relayed consumed Command shortcut up to Virtual Mac");
}
static void VZPostShortcut(const char *name, BOOL pressed)
@@ -216,7 +246,7 @@ static void VZPostShortcut(const char *name, BOOL pressed)
char buffer[128];
snprintf(buffer, sizeof(buffer),
"relayed %s %s to Virtual Mac", name, pressed ? "down" : "up");
- Log(buffer);
+ DebugLog(buffer);
}
static BOOL VZIsGlobeUsage(int64_t usagePage, int64_t usage)
@@ -429,6 +459,7 @@ static void VZObserveSpringBoardFinishedLaunching(void)
addObserverForName:name object:nil queue:[NSOperationQueue mainQueue]
usingBlock:^(NSNotification *note) {
gSpringBoardReady = YES;
+ Log("SpringBoard finished launching; frontmost checks enabled");
}] retain];
});
}
diff --git a/VirtualMac/vz/uncache.py b/VirtualMac/vz/uncache.py
index c285027..b059c8c 100644
--- a/VirtualMac/vz/uncache.py
+++ b/VirtualMac/vz/uncache.py
@@ -1447,6 +1447,23 @@ def main(dsc, image_substr, dex_out, final_out, mode="compact"):
}
imports = []; impidx = {}
entries = {} # new_loc -> (kind, val, auth, key, div, addrdiv, high8)
+
+ def canonical_import_name(name):
+ """Turn ipsw/a2s slot labels back into the imported symbol name.
+
+ Address-to-symbol databases name a shared-cache GOT slot
+ ``__got._symbol`` (and some older databases use ``_ptr._symbol``).
+ That is useful when describing the cache address, but it is not an
+ exported symbol. Emitting the label into LC_DYLD_CHAINED_FIXUPS makes
+ dyld weak-bind the reconstructed auth stub to NULL. This is visible
+ in Big Sur Hypervisor.framework: every __auth_got call target,
+ including dispatch_once, becomes zero on iPadOS 14.
+ """
+ if name and name.startswith("__got."):
+ name = name[len("__got."):]
+ if name and name.startswith("_ptr."):
+ name = name[len("_ptr."):]
+ return ALIAS.get(name, name)
# PLAIN pointers carry a TBI/high8 byte in bits 56-63 (arm64e plain-rebase has a
# dedicated high8 field). Strip it for in-image classification + target math, then
# re-apply on emit. AUTH targets (offsetFromSharedCacheBase + auth_value_add) never
@@ -1488,9 +1505,7 @@ def main(dsc, image_substr, dex_out, final_out, mode="compact"):
entries[nloc] = ("rebase", localize[rt]-nbase, auth, key, div, ad, high8); nreb += 1
else:
name = sym_map.get(rt, (None, None))[0]
- if name and name.startswith("_ptr."):
- name = name[5:] # ipsw GOT-slot notation -> the real symbol
- name = ALIAS.get(name, name)
+ name = canonical_import_name(name)
if name == "_OBJC_CLASS_$_Protocol":
# Protocol-uniquing reference: the cache redirects every @protocol / adopted-
# protocol pointer to libobjc's canonical protocol_t (whose isa is
@@ -1520,14 +1535,14 @@ def main(dsc, image_substr, dex_out, final_out, mode="compact"):
for ns, nt in objc_slot_reb: # objc selref slots (plain in-image rebases)
entries[ns] = ("rebase", nt - nbase, 0, 0, 0, 0, 0); nreb += 1
for slot, name in auth_stub_binds: # rebuilt __auth_got: auth-binds (braa: key IA, addrDiv)
- name = ALIAS.get(name, name)
+ name = canonical_import_name(name)
k = (0xFE, name)
if k not in impidx:
impidx[k] = len(imports); imports.append(k)
entries[slot] = ("bind", impidx[k], 1, 0, 0, 1, 0); nbind += 1
for name, slot in got_slot.items(): # rebuilt GOT pool: data (plain) + fn ptrs (auth, braa)
au = got_auth[name]
- name = ALIAS.get(name, name)
+ name = canonical_import_name(name)
k = (0xFE, name)
if k not in impidx:
impidx[k] = len(imports); imports.append(k)