Play your own Switch games on iPhone/iPad — one-click macOS app, no terminal. | 把 Switch 游戏装进 iPhone:图形界面一键构建,不用命令行。Bring your own game.
Swift apple-siliconcustom-formathomebrewiosipaipadipadosiphonemetalnative-portnintendo-switchnxnativeromfsswitch-games
NVN games need Xcode 27.2: raise the launcher's check and every text that names it
v0lumehi0ab0ad8ba356
diff --git a/README.md b/README.mdindex 8080725e..e14601d1 100644--- a/README.md+++ b/README.md@@ -50,10 +50,10 @@ launcher and a short list of patches, and follows nxnative every day.## Requirements- **An Apple silicon Mac.** The launcher opens on **macOS 13 or later**. Building needs Xcode with- the iOS SDK, and NVN games need [Xcode](https://developer.apple.com/download/all/?q=Xcode%2027.1) 27.1 (macOS 26.6- or later) unless built with `--allow-other-metal`. Take 27.1 from Apple's download page, not the App Store's newer- Xcode. With a newer Xcode installed too, rename 27.1 to `Xcode-27.1.app` and select it:- `sudo xcode-select -s /Applications/Xcode-27.1.app`.+ the iOS SDK, and NVN games need [Xcode](https://developer.apple.com/download/all/?q=Xcode%2027.2) 27.2 (macOS 26.6+ or later) unless built with `--allow-other-metal`. Take 27.2 from Apple's download page, not the App Store's newer+ Xcode. With a newer Xcode installed too, rename 27.2 to `Xcode-27.2.app` and select it:+ `sudo xcode-select -s /Applications/Xcode-27.2.app`.- **Your own game dumps** (NSP or XCI) and **your own `prod.keys`** from your own console. Nothing isbundled, downloaded or looked up for you. The same `prod.keys` opens every one of your games; acurrent dump covers all retail titles.diff --git a/README.zh-CN.md b/README.zh-CN.mdindex 7850dcc2..ef0e62ec 100644--- a/README.zh-CN.md+++ b/README.zh-CN.md@@ -49,9 +49,9 @@ NX2Apple 用你自己导出的游戏文件,在你的 Mac 和 iPhone 上运行## 环境要求- **Apple Silicon Mac。** 启动器支持 **macOS 13 或更新**。构建需要装了 iOS SDK 的 Xcode;NVN 游戏需要- [Xcode](https://developer.apple.com/download/all/?q=Xcode%2027.1) 27.1(macOS 26.6 或更新),除非加 `--allow-other-metal`。- 请从 Apple 的下载页面获取 27.1,而不是 App Store 里更新的 Xcode。如果同时装了更新的 Xcode,把 27.1 改名为- `Xcode-27.1.app` 并选中它:`sudo xcode-select -s /Applications/Xcode-27.1.app`。+ [Xcode](https://developer.apple.com/download/all/?q=Xcode%2027.2) 27.2(macOS 26.6 或更新),除非加 `--allow-other-metal`。+ 请从 Apple 的下载页面获取 27.2,而不是 App Store 里更新的 Xcode。如果同时装了更新的 Xcode,把 27.2 改名为+ `Xcode-27.2.app` 并选中它:`sudo xcode-select -s /Applications/Xcode-27.2.app`。- **你自己的游戏文件**(NSP 或 XCI)和**你自己主机里导出的 `prod.keys`**。本项目不自带、不下载、也不替你查找任何东西。一份 `prod.keys` 能解你所有的游戏;新导出的一份覆盖所有零售游戏。- 要装到 iPhone 或 iPad:iOS 或 iPadOS 26 或更新,以及较新的设备。更旧的设备未测试。diff --git a/frontend-qt/nspb_qt/localization.py b/frontend-qt/nspb_qt/localization.pyindex 70b42877..515bef9d 100644--- a/frontend-qt/nspb_qt/localization.py+++ b/frontend-qt/nspb_qt/localization.py@@ -12,8 +12,8 @@ TABLE: dict[str, tuple[str, str, str, str, str]] = {'onboarding.welcome.note': ('约 15 分钟,即可在 Mac 上原生运行你的 Switch 游戏。', 'Play your Switch games natively on your Mac, in about 15 minutes.', 'Spela dina Switch-spel direkt på din Mac på ungefär 15 minuter.', 'Spiele deine Switch-Spiele nativ auf dem Mac, in etwa 15 Minuten.', 'Jouez à vos jeux Switch nativement sur votre Mac, en 15\xa0minutes environ.'),'onboarding.platform.title': ('你想在哪里玩?', 'Where do you want to play?', 'Var vill du spela?', 'Wo möchtest du spielen?', 'Où voulez-vous jouer\xa0?'),'onboarding.platform.note': ('选择游玩设备,我们会准备所需的工具。', 'Choose where you will play. We will prepare just what you need.', 'Välj var du ska spela. Vi förbereder bara det du behöver.', 'Wähle, wo du spielen willst. Wir richten genau das ein, was du brauchst.', 'Choisissez où vous jouerez. Nous préparerons uniquement ce dont vous avez besoin.'),- 'onboarding.nvn.os': ('部分游戏需要 Xcode 27.1,而它需要 macOS 26.6 或更高版本。在这台 Mac 上,使用 NVN 的游戏无法构建,其他游戏不受影响。', 'Some games need Xcode 27.1, which needs macOS 26.6 or later. On this Mac, games that use NVN won’t build, but others will.', 'Some games need Xcode 27.1, which needs macOS 26.6 or later. On this Mac, games that use NVN won’t build, but others will.', 'Manche Spiele brauchen Xcode 27.1, und das braucht macOS 26.6 oder neuer. Auf diesem Mac lassen sich Spiele mit NVN nicht bauen, alle anderen schon.', 'Certains jeux nécessitent Xcode 27.1, qui requiert macOS 26.6 ou ultérieur. Sur ce Mac, les jeux qui utilisent NVN ne pourront pas être compilés, mais les autres oui.'),- 'onboarding.nvn.xcode': ('这个 Xcode 低于 27.1,而使用 NVN 的游戏需要 27.1。如果你的 macOS 支持,请在 App Store 中更新 Xcode。其他游戏用当前版本即可构建。', 'This Xcode is older than 27.1, which games that use NVN need. Update Xcode in the App Store if your macOS allows it. Other games build with this one.', 'This Xcode is older than 27.1, which games that use NVN need. Update Xcode in the App Store if your macOS allows it. Other games build with this one.', 'Dieses Xcode ist älter als 27.1, das Spiele mit NVN benötigen. Aktualisiere Xcode im App Store, falls dein macOS das zulässt. Andere Spiele lassen sich damit bauen.', 'Cette version d’Xcode est antérieure à 27.1, requise par les jeux qui utilisent NVN. Mettez à jour Xcode dans l’App Store si votre macOS le permet. Les autres jeux se compilent avec celle-ci.'),+ 'onboarding.nvn.os': ('部分游戏需要 Xcode 27.2,而它需要 macOS 26.6 或更高版本。在这台 Mac 上,使用 NVN 的游戏无法构建,其他游戏不受影响。', 'Some games need Xcode 27.2, which needs macOS 26.6 or later. On this Mac, games that use NVN won’t build, but others will.', 'Some games need Xcode 27.2, which needs macOS 26.6 or later. On this Mac, games that use NVN won’t build, but others will.', 'Manche Spiele brauchen Xcode 27.2, und das braucht macOS 26.6 oder neuer. Auf diesem Mac lassen sich Spiele mit NVN nicht bauen, alle anderen schon.', 'Certains jeux nécessitent Xcode 27.2, qui requiert macOS 26.6 ou ultérieur. Sur ce Mac, les jeux qui utilisent NVN ne pourront pas être compilés, mais les autres oui.'),+ 'onboarding.nvn.xcode': ('这个 Xcode 低于 27.2,而使用 NVN 的游戏需要 27.2。如果你的 macOS 支持,请在 App Store 中更新 Xcode。其他游戏用当前版本即可构建。', 'This Xcode is older than 27.2, which games that use NVN need. Update Xcode in the App Store if your macOS allows it. Other games build with this one.', 'This Xcode is older than 27.2, which games that use NVN need. Update Xcode in the App Store if your macOS allows it. Other games build with this one.', 'Dieses Xcode ist älter als 27.2, das Spiele mit NVN benötigen. Aktualisiere Xcode im App Store, falls dein macOS das zulässt. Andere Spiele lassen sich damit bauen.', 'Cette version d’Xcode est antérieure à 27.2, requise par les jeux qui utilisent NVN. Mettez à jour Xcode dans l’App Store si votre macOS le permet. Les autres jeux se compilent avec celle-ci.'),'onboarding.xcode.title': ('准备好你的 Mac。', 'Let’s get your Mac ready.', 'Gör din Mac redo.', 'Machen wir deinen Mac bereit.', 'Préparons votre Mac.'),'onboarding.xcode.note': ('Xcode 提供构建游戏所需的 Apple 工具。我们将引导你完成设置。', 'Xcode provides Apple’s tools for building your games. We will guide you through the setup.', 'Xcode tillhandahåller Apples verktyg för att bygga dina spel. Vi guidar dig genom inställningen.', 'Xcode liefert die Apple-Werkzeuge zum Bauen deiner Spiele. Wir führen dich durch die Einrichtung.', 'Xcode fournit les outils d’Apple pour compiler vos jeux. Nous vous guiderons pendant la configuration.'),'onboarding.keys.title': ('添加你的密钥。', 'Bring your own keys.', 'Ange dina nycklar.', 'Bring deine eigenen Schlüssel mit.', 'Apportez vos propres clés.'),@@ -830,7 +830,7 @@ TABLE: dict[str, tuple[str, str, str, str, str]] = {'fail.cltSelected.next': ('用下面的按钮选择 Xcode(会要管理员密码),或者在终端运行 sudo xcode-select -s /Applications/Xcode.app,然后再构建。', 'Select Xcode with the button below (it asks for an administrator password), or run sudo xcode-select -s /Applications/Xcode.app in Terminal, then build again.', 'Select Xcode with the button below (it asks for an administrator password), or run sudo xcode-select -s /Applications/Xcode.app in Terminal, then build again.', 'Wähle Xcode mit der Schaltfläche unten aus (sie fragt nach einem Administratorpasswort) oder führe im Terminal sudo xcode-select -s /Applications/Xcode.app aus und baue dann erneut.', 'Sélectionnez Xcode avec le bouton ci-dessous (un mot de passe administrateur est demandé), ou exécutez sudo xcode-select -s /Applications/Xcode.app dans le Terminal, puis compilez à nouveau.'),'fail.cltSelected.button': ('选择 Xcode', 'Select Xcode', 'Select Xcode', 'Xcode auswählen', 'Sélectionner Xcode'),'fail.otherMetal.what': ('这台 Mac 的 Metal 编译器不是着色器测试时用的那一个。', "This Mac's Metal compiler is not the one the shaders were tested with.", "This Mac's Metal compiler is not the one the shaders were tested with.", 'Der Metal-Compiler dieses Macs ist nicht der, mit dem die Shader getestet wurden.', 'Le compilateur Metal de ce Mac n’est pas celui avec lequel les shaders ont été testés.'),- 'fail.otherMetal.next': ('这个游戏使用 NVN,需要 Xcode 27.1(macOS 26.6 或更新)。请安装它和它的 Metal 工具链,然后再构建。', 'This game uses NVN and needs Xcode 27.1 (macOS 26.6 or later). Install it and its Metal toolchain, then build again.', 'This game uses NVN and needs Xcode 27.1 (macOS 26.6 or later). Install it and its Metal toolchain, then build again.', 'Dieses Spiel nutzt NVN und braucht Xcode 27.1 (macOS 26.6 oder neuer). Installiere es samt Metal-Toolchain und baue dann erneut.', 'Ce jeu utilise NVN et nécessite Xcode 27.1 (macOS 26.6 ou ultérieur). Installez-le avec sa chaîne d’outils Metal, puis compilez à nouveau.'),+ 'fail.otherMetal.next': ('这个游戏使用 NVN,需要 Xcode 27.2(macOS 26.6 或更新)。请安装它和它的 Metal 工具链,然后再构建。', 'This game uses NVN and needs Xcode 27.2 (macOS 26.6 or later). Install it and its Metal toolchain, then build again.', 'This game uses NVN and needs Xcode 27.2 (macOS 26.6 or later). Install it and its Metal toolchain, then build again.', 'Dieses Spiel nutzt NVN und braucht Xcode 27.2 (macOS 26.6 oder neuer). Installiere es samt Metal-Toolchain und baue dann erneut.', 'Ce jeu utilise NVN et nécessite Xcode 27.2 (macOS 26.6 ou ultérieur). Installez-le avec sa chaîne d’outils Metal, puis compilez à nouveau.'),'fail.otherMetal.risk': ('会用没有测试过的 Metal 编译器构建。画面可能出错,结果也没有人测试过,不受支持。这个选择只对这一次构建有效,不会保存。', 'This builds with a Metal compiler nobody tested the shaders with. The pictures can come out wrong, the result is untested and it is not supported. The choice applies to this one build and is not saved.', 'This builds with a Metal compiler nobody tested the shaders with. The pictures can come out wrong, the result is untested and it is not supported. The choice applies to this one build and is not saved.', 'Das baut mit einem Metal-Compiler, mit dem niemand die Shader getestet hat. Das Bild kann falsch aussehen, das Ergebnis ist ungetestet und wird nicht unterstützt. Die Auswahl gilt nur für diesen einen Build und wird nicht gesichert.', 'La compilation utilise un compilateur Metal avec lequel personne n’a testé les shaders. L’image peut être incorrecte, le résultat n’est pas testé et n’est pas pris en charge. Ce choix ne vaut que pour cette compilation et n’est pas enregistré.'),'fail.shaderRegression.what': ('有些以前能翻译的着色器,在这个版本里翻译失败了。', 'Some shaders that translated before fail to translate with this version.', 'Some shaders that translated before fail to translate with this version.', 'Einige Shader, die zuvor übersetzt wurden, lassen sich mit dieser Version nicht mehr übersetzen.', 'Certains shaders qui se traduisaient auparavant échouent avec cette version.'),'fail.shaderRegression.next': ('请带上构建日志里的列表去报告这个问题。「仍然构建」会把这些着色器留空,所以画面可能缺少一部分。', 'Please report it with the list in the build log. Building anyway leaves those shaders out, so parts of the picture may be missing.', 'Please report it with the list in the build log. Building anyway leaves those shaders out, so parts of the picture may be missing.', 'Bitte melde es mit der Liste im Build-Protokoll. Wenn du trotzdem baust, fehlen diese Shader, und Teile des Bildes können fehlen.', 'Merci de le signaler avec la liste figurant dans le journal de compilation. Compiler quand même laisse ces shaders de côté\xa0: des parties de l’image peuvent manquer.'),@@ -877,7 +877,7 @@ TABLE: dict[str, tuple[str, str, str, str, str]] = {'fail.engineSync.what': ('引擎准备失败。', 'The engine could not be prepared.', 'Det gick inte att förbereda motorn.', 'Die Engine konnte nicht vorbereitet werden.', 'Impossible de préparer le moteur.'),'fail.engineSync.next': ('请点「重试」。原因见日志。如果一直失败,请用「复制诊断信息」连同日志一起反馈。', 'Press Try again. The log shows the reason. If it keeps failing, report it with Copy diagnostics and the log.', 'Tryck på Försök igen. Loggen visar orsaken. Om det fortsätter att misslyckas, rapportera det med Kopiera diagnostik och loggen.', 'Tippe auf „Erneut versuchen“. Das Protokoll zeigt den Grund. Wenn es weiter fehlschlägt, melde es mit „Diagnose kopieren“ und dem Protokoll.', 'Cliquez sur Réessayer. Le journal indique la cause. Si l’échec persiste, signalez-le avec Copier les diagnostics et le journal.'),'dep.metal.other': ('%@(测试用的是 %@)', '%@ (tested: %@)', '%@ (tested: %@)', '%@ (getestet: %@)', '%@ (testé\xa0: %@)'),- 'dep.fix.metalPin': ('这不是着色器测试时用的 Metal 编译器。使用 NVN 的游戏会在着色器步骤前停下。请安装 Xcode 27.1(macOS 26.6 或更新)和它的 Metal 工具链。', 'This is not the Metal compiler the shaders were tested with. Games that use NVN stop before the shader steps. Install Xcode 27.1 (macOS 26.6 or later) and its Metal toolchain.', 'This is not the Metal compiler the shaders were tested with. Games that use NVN stop before the shader steps. Install Xcode 27.1 (macOS 26.6 or later) and its Metal toolchain.', 'Das ist nicht der Metal-Compiler, mit dem die Shader getestet wurden. Spiele mit NVN stoppen vor den Shader-Schritten. Installiere Xcode 27.1 (macOS 26.6 oder neuer) samt Metal-Toolchain.', 'Ce n’est pas le compilateur Metal avec lequel les shaders ont été testés. Les jeux qui utilisent NVN s’arrêtent avant les étapes de shaders. Installez Xcode 27.1 (macOS 26.6 ou ultérieur) et sa chaîne d’outils Metal.'),+ 'dep.fix.metalPin': ('这不是着色器测试时用的 Metal 编译器。使用 NVN 的游戏会在着色器步骤前停下。请安装 Xcode 27.2(macOS 26.6 或更新)和它的 Metal 工具链。', 'This is not the Metal compiler the shaders were tested with. Games that use NVN stop before the shader steps. Install Xcode 27.2 (macOS 26.6 or later) and its Metal toolchain.', 'This is not the Metal compiler the shaders were tested with. Games that use NVN stop before the shader steps. Install Xcode 27.2 (macOS 26.6 or later) and its Metal toolchain.', 'Das ist nicht der Metal-Compiler, mit dem die Shader getestet wurden. Spiele mit NVN stoppen vor den Shader-Schritten. Installiere Xcode 27.2 (macOS 26.6 oder neuer) samt Metal-Toolchain.', 'Ce n’est pas le compilateur Metal avec lequel les shaders ont été testés. Les jeux qui utilisent NVN s’arrêtent avant les étapes de shaders. Installez Xcode 27.2 (macOS 26.6 ou ultérieur) et sa chaîne d’outils Metal.'),'msg.exitCode': ('退出码 %d', 'exit code %d', 'slutkod %d', 'Exit-Code %d', 'code de sortie %d'),'msg.stagingFailed': ('无法在暂存文件夹里建立链接(文件在不同磁盘?)', 'Could not create links in the staging folder (files on different volumes?)', 'Kunde inte skapa en länk i mellanlagringsmappen. Ligger filerna på olika diskar?', 'Im Staging-Ordner konnten keine Links erstellt werden (Dateien auf verschiedenen Volumes?)', 'Impossible de créer des liens dans le dossier de préparation (fichiers sur des volumes différents\xa0?)'),'msg.stagedFromSharedFolder': ('文件夹里还有其他游戏:只把选中的这个游戏(%@)临时复制出去构建', 'The folder holds other games: building from a temporary copy of this one (%@)', 'Mappen innehåller andra spel. Bygger från en tillfällig kopia av det här (%@)', 'Der Ordner enthält weitere Spiele: Es wird aus einer temporären Kopie dieses Spiels gebaut (%@)', 'Le dossier contient d’autres jeux\xa0: compilation à partir d’une copie temporaire de celui-ci (%@)'),diff --git a/frontend-qt/tests/test_build_failure_hints.py b/frontend-qt/tests/test_build_failure_hints.pyindex df07a8e3..e6dc18f4 100644--- a/frontend-qt/tests/test_build_failure_hints.py+++ b/frontend-qt/tests/test_build_failure_hints.py@@ -218,7 +218,7 @@ class Strings(unittest.TestCase):self.assertIn('one build', en)def test_the_hints_say_what_the_task_asks(self):- self.assertIn('Xcode 27.1 (macOS 26.6 or later)', TABLE['fail.otherMetal.next'][1])+ self.assertIn('Xcode 27.2 (macOS 26.6 or later)', TABLE['fail.otherMetal.next'][1])self.assertIn("32-bit and can't run on Apple silicon", TABLE['fail.a32Program.what'][1])diff --git a/frontend/Onboarding.md b/frontend/Onboarding.mdindex 782e3ea0..3d2732a7 100644--- a/frontend/Onboarding.md+++ b/frontend/Onboarding.md@@ -63,7 +63,7 @@ Persist the current step and selections before handling `skipForLater`, then inj## NVN hints-NVN games' shaders need the Metal compiler of Xcode 27.1, which needs macOS 26.6. `OnboardingState.osTooOldForNVN` (macOS below 26.6, from `OnboardingEnvironment.osVersion`) adds a calm note to Welcome, and `xcodeTooOldForNVN` (the probe's `xcodebuild -version` below 27.1, where an unreadable version never counts) adds a secondary line in the Xcode card. Neither gates anything: other games build with an older Xcode.+NVN games' shaders need the Metal compiler of Xcode 27.2, which needs macOS 26.6. `OnboardingState.osTooOldForNVN` (macOS below 26.6, from `OnboardingEnvironment.osVersion`) adds a calm note to Welcome, and `xcodeTooOldForNVN` (the probe's `xcodebuild -version` below 27.2, where an unreadable version never counts) adds a secondary line in the Xcode card. Neither gates anything: other games build with an older Xcode.## Presentation choicesdiff --git a/frontend/README.md b/frontend/README.mdindex 7fb991df..c6a7e053 100644--- a/frontend/README.md+++ b/frontend/README.md@@ -222,7 +222,7 @@ writes the font into the binary as `Sources/NSPortBuilder/EmbeddedFonts.swift`,installed and no resource bundle beside the executable.The app icon is `AppIcon.icon`, the Liquid Glass icon made in Icon Composer (the iOS app uses the same file).-`build-mac-app.yml` compiles it with the `actool` of Xcode 27.1 (the one in Xcode 26.6 throws an exception on this icon) into `Assets.car` (macOS 26 and later) and `AppIcon.icns` (macOS 13 to 25),+`build-mac-app.yml` compiles it with the `actool` of Xcode 27.2 (the one in Xcode 26.6 throws an exception on this icon) into `Assets.car` (macOS 26 and later) and `AppIcon.icns` (macOS 13 to 25),and `Info.plist` names both. To compile it by hand:```shdiff --git a/frontend/Sources/NSPortBuilder/BuildFailure.swift b/frontend/Sources/NSPortBuilder/BuildFailure.swiftindex 91c9be50..ac6d3877 100644--- a/frontend/Sources/NSPortBuilder/BuildFailure.swift+++ b/frontend/Sources/NSPortBuilder/BuildFailure.swift@@ -167,8 +167,8 @@ enum MetalPin {/// `now`: the compilers found, by SDK name (macosx, iphoneos), nil for one that did not answer./// An iOS compiler is compared only when `iOS` (the build is for an iPhone).- /// A newer compiler of the recorded generation is not a mismatch: Xcode's auto-update bumps it (the lock's 32023.921 to- /// 27.2's 32023.922) and a player cannot hold Xcode back — the engine's gate builds with a note (own_compilers.py, #242).+ /// A newer compiler of the recorded generation is not a mismatch: Xcode's auto-update bumps it+ /// and a player cannot hold Xcode back — the engine's gate builds with a note (own_compilers.py, #242).static func mismatches(lock: String, now: [String: String?], iOS: Bool) -> [Mismatch] {let pinned = pins(lock: lock)var out: [Mismatch] = []diff --git a/frontend/Sources/NSPortBuilder/LiveOnboardingDriver.swift b/frontend/Sources/NSPortBuilder/LiveOnboardingDriver.swiftindex 206cee40..8dcfec8b 100644--- a/frontend/Sources/NSPortBuilder/LiveOnboardingDriver.swift+++ b/frontend/Sources/NSPortBuilder/LiveOnboardingDriver.swift@@ -18,7 +18,7 @@ struct XcodeProbe: Equatable {var selectedIsXcode = false // `xcode-select -p` points into an Xcode.app, not the Command Line Toolsvar licenseAccepted = falsevar firstLaunchDone = false- var version: String? // from `xcodebuild -version` of appPath ("27.1"); nil when unreadable+ var version: String? // from `xcodebuild -version` of appPath ("27.2"); nil when unreadablevar developerDir: String? { appPath.map { $0 + "/Contents/Developer" } }var needsAdmin: Bool { !(selectedIsXcode && licenseAccepted && firstLaunchDone) }}diff --git a/frontend/Sources/NSPortBuilder/Localization.swift b/frontend/Sources/NSPortBuilder/Localization.swiftindex b5e84ee4..2eb119bd 100644--- a/frontend/Sources/NSPortBuilder/Localization.swift+++ b/frontend/Sources/NSPortBuilder/Localization.swift@@ -51,8 +51,8 @@ enum L10n {"onboarding.welcome.note": ("\u{7ea6} 15 \u{5206}\u{949f}\u{ff0c}\u{5373}\u{53ef}\u{5728} Mac \u{4e0a}\u{539f}\u{751f}\u{8fd0}\u{884c}\u{4f60}\u{7684} Switch \u{6e38}\u{620f}\u{3002}", "Play your Switch games natively on your Mac, in about 15 minutes."),"onboarding.platform.title": ("\u{4f60}\u{60f3}\u{5728}\u{54ea}\u{91cc}\u{73a9}\u{ff1f}", "Where do you want to play?"),"onboarding.platform.note": ("\u{9009}\u{62e9}\u{6e38}\u{73a9}\u{8bbe}\u{5907}\u{ff0c}\u{6211}\u{4eec}\u{4f1a}\u{51c6}\u{5907}\u{6240}\u{9700}\u{7684}\u{5de5}\u{5177}\u{3002}", "Choose where you will play. We will prepare just what you need."),- "onboarding.nvn.os": ("\u{90e8}\u{5206}\u{6e38}\u{620f}\u{9700}\u{8981} Xcode 27.1\u{ff0c}\u{800c}\u{5b83}\u{9700}\u{8981} macOS 26.6 \u{6216}\u{66f4}\u{9ad8}\u{7248}\u{672c}\u{3002}\u{5728}\u{8fd9}\u{53f0} Mac \u{4e0a}\u{ff0c}\u{4f7f}\u{7528} NVN \u{7684}\u{6e38}\u{620f}\u{65e0}\u{6cd5}\u{6784}\u{5efa}\u{ff0c}\u{5176}\u{4ed6}\u{6e38}\u{620f}\u{4e0d}\u{53d7}\u{5f71}\u{54cd}\u{3002}", "Some games need Xcode 27.1, which needs macOS 26.6 or later. On this Mac, games that use NVN won\u{2019}t build, but others will."),- "onboarding.nvn.xcode": ("\u{8fd9}\u{4e2a} Xcode \u{4f4e}\u{4e8e} 27.1\u{ff0c}\u{800c}\u{4f7f}\u{7528} NVN \u{7684}\u{6e38}\u{620f}\u{9700}\u{8981} 27.1\u{3002}\u{5982}\u{679c}\u{4f60}\u{7684} macOS \u{652f}\u{6301}\u{ff0c}\u{8bf7}\u{5728} App Store \u{4e2d}\u{66f4}\u{65b0} Xcode\u{3002}\u{5176}\u{4ed6}\u{6e38}\u{620f}\u{7528}\u{5f53}\u{524d}\u{7248}\u{672c}\u{5373}\u{53ef}\u{6784}\u{5efa}\u{3002}", "This Xcode is older than 27.1, which games that use NVN need. Update Xcode in the App Store if your macOS allows it. Other games build with this one."),+ "onboarding.nvn.os": ("\u{90e8}\u{5206}\u{6e38}\u{620f}\u{9700}\u{8981} Xcode 27.2\u{ff0c}\u{800c}\u{5b83}\u{9700}\u{8981} macOS 26.6 \u{6216}\u{66f4}\u{9ad8}\u{7248}\u{672c}\u{3002}\u{5728}\u{8fd9}\u{53f0} Mac \u{4e0a}\u{ff0c}\u{4f7f}\u{7528} NVN \u{7684}\u{6e38}\u{620f}\u{65e0}\u{6cd5}\u{6784}\u{5efa}\u{ff0c}\u{5176}\u{4ed6}\u{6e38}\u{620f}\u{4e0d}\u{53d7}\u{5f71}\u{54cd}\u{3002}", "Some games need Xcode 27.2, which needs macOS 26.6 or later. On this Mac, games that use NVN won\u{2019}t build, but others will."),+ "onboarding.nvn.xcode": ("\u{8fd9}\u{4e2a} Xcode \u{4f4e}\u{4e8e} 27.2\u{ff0c}\u{800c}\u{4f7f}\u{7528} NVN \u{7684}\u{6e38}\u{620f}\u{9700}\u{8981} 27.2\u{3002}\u{5982}\u{679c}\u{4f60}\u{7684} macOS \u{652f}\u{6301}\u{ff0c}\u{8bf7}\u{5728} App Store \u{4e2d}\u{66f4}\u{65b0} Xcode\u{3002}\u{5176}\u{4ed6}\u{6e38}\u{620f}\u{7528}\u{5f53}\u{524d}\u{7248}\u{672c}\u{5373}\u{53ef}\u{6784}\u{5efa}\u{3002}", "This Xcode is older than 27.2, which games that use NVN need. Update Xcode in the App Store if your macOS allows it. Other games build with this one."),"onboarding.xcode.title": ("\u{51c6}\u{5907}\u{597d}\u{4f60}\u{7684} Mac\u{3002}", "Let\u{2019}s get your Mac ready."),"onboarding.xcode.note": ("Xcode \u{63d0}\u{4f9b}\u{6784}\u{5efa}\u{6e38}\u{620f}\u{6240}\u{9700}\u{7684} Apple \u{5de5}\u{5177}\u{3002}\u{6211}\u{4eec}\u{5c06}\u{5f15}\u{5bfc}\u{4f60}\u{5b8c}\u{6210}\u{8bbe}\u{7f6e}\u{3002}", "Xcode provides Apple\u{2019}s tools for building your games. We will guide you through the setup."),"onboarding.keys.title": ("\u{6dfb}\u{52a0}\u{4f60}\u{7684}\u{5bc6}\u{94a5}\u{3002}", "Bring your own keys."),@@ -977,8 +977,8 @@ enum L10n {"Select Xcode"),"fail.otherMetal.what": ("这台 Mac 的 Metal 编译器不是着色器测试时用的那一个。","This Mac's Metal compiler is not the one the shaders were tested with."),- "fail.otherMetal.next": ("这个游戏使用 NVN,需要 Xcode 27.1(macOS 26.6 或更新)。请安装它和它的 Metal 工具链,然后再构建。",- "This game uses NVN and needs Xcode 27.1 (macOS 26.6 or later). Install it and its Metal toolchain, then build again."),+ "fail.otherMetal.next": ("这个游戏使用 NVN,需要 Xcode 27.2(macOS 26.6 或更新)。请安装它和它的 Metal 工具链,然后再构建。",+ "This game uses NVN and needs Xcode 27.2 (macOS 26.6 or later). Install it and its Metal toolchain, then build again."),"fail.otherMetal.risk": ("会用没有测试过的 Metal 编译器构建。画面可能出错,结果也没有人测试过,不受支持。这个选择只对这一次构建有效,不会保存。","This builds with a Metal compiler nobody tested the shaders with. The pictures can come out wrong, the result is untested and it is not supported. The choice applies to this one build and is not saved."),"fail.shaderRegression.what": ("有些以前能翻译的着色器,在这个版本里翻译失败了。",@@ -1044,8 +1044,8 @@ enum L10n {"Press Try again. The log shows the reason. If it keeps failing, report it with Copy diagnostics and the log."),"dep.metal.other": ("%@(测试用的是 %@)","%@ (tested: %@)"),- "dep.fix.metalPin": ("这不是着色器测试时用的 Metal 编译器。使用 NVN 的游戏会在着色器步骤前停下。请安装 Xcode 27.1(macOS 26.6 或更新)和它的 Metal 工具链。",- "This is not the Metal compiler the shaders were tested with. Games that use NVN stop before the shader steps. Install Xcode 27.1 (macOS 26.6 or later) and its Metal toolchain."),+ "dep.fix.metalPin": ("这不是着色器测试时用的 Metal 编译器。使用 NVN 的游戏会在着色器步骤前停下。请安装 Xcode 27.2(macOS 26.6 或更新)和它的 Metal 工具链。",+ "This is not the Metal compiler the shaders were tested with. Games that use NVN stop before the shader steps. Install Xcode 27.2 (macOS 26.6 or later) and its Metal toolchain."),"msg.exitCode": ("退出码 %d", "exit code %d"),"msg.stagingFailed": ("无法在暂存文件夹里建立链接(文件在不同磁盘?)","Could not create links in the staging folder (files on different volumes?)"),@@ -2121,8 +2121,8 @@ enum L10n {"onboarding.welcome.note": "Spiele deine Switch-Spiele nativ auf dem Mac, in etwa 15 Minuten.","onboarding.platform.title": "Wo möchtest du spielen?","onboarding.platform.note": "Wähle, wo du spielen willst. Wir richten genau das ein, was du brauchst.",- "onboarding.nvn.os": "Manche Spiele brauchen Xcode 27.1, und das braucht macOS 26.6 oder neuer. Auf diesem Mac lassen sich Spiele mit NVN nicht bauen, alle anderen schon.",- "onboarding.nvn.xcode": "Dieses Xcode ist älter als 27.1, das Spiele mit NVN benötigen. Aktualisiere Xcode im App Store, falls dein macOS das zulässt. Andere Spiele lassen sich damit bauen.",+ "onboarding.nvn.os": "Manche Spiele brauchen Xcode 27.2, und das braucht macOS 26.6 oder neuer. Auf diesem Mac lassen sich Spiele mit NVN nicht bauen, alle anderen schon.",+ "onboarding.nvn.xcode": "Dieses Xcode ist älter als 27.2, das Spiele mit NVN benötigen. Aktualisiere Xcode im App Store, falls dein macOS das zulässt. Andere Spiele lassen sich damit bauen.","onboarding.xcode.title": "Machen wir deinen Mac bereit.","onboarding.xcode.note": "Xcode liefert die Apple-Werkzeuge zum Bauen deiner Spiele. Wir führen dich durch die Einrichtung.","onboarding.keys.title": "Bring deine eigenen Schlüssel mit.",@@ -2884,7 +2884,7 @@ enum L10n {"fail.cltSelected.next": "Wähle Xcode mit der Schaltfläche unten aus (sie fragt nach einem Administratorpasswort) oder führe im Terminal sudo xcode-select -s /Applications/Xcode.app aus und baue dann erneut.","fail.cltSelected.button": "Xcode auswählen","fail.otherMetal.what": "Der Metal-Compiler dieses Macs ist nicht der, mit dem die Shader getestet wurden.",- "fail.otherMetal.next": "Dieses Spiel nutzt NVN und braucht Xcode 27.1 (macOS 26.6 oder neuer). Installiere es samt Metal-Toolchain und baue dann erneut.",+ "fail.otherMetal.next": "Dieses Spiel nutzt NVN und braucht Xcode 27.2 (macOS 26.6 oder neuer). Installiere es samt Metal-Toolchain und baue dann erneut.","fail.otherMetal.risk": "Das baut mit einem Metal-Compiler, mit dem niemand die Shader getestet hat. Das Bild kann falsch aussehen, das Ergebnis ist ungetestet und wird nicht unterstützt. Die Auswahl gilt nur für diesen einen Build und wird nicht gesichert.","fail.shaderRegression.what": "Einige Shader, die zuvor übersetzt wurden, lassen sich mit dieser Version nicht mehr übersetzen.","fail.shaderRegression.next": "Bitte melde es mit der Liste im Build-Protokoll. Wenn du trotzdem baust, fehlen diese Shader, und Teile des Bildes können fehlen.",@@ -2931,7 +2931,7 @@ enum L10n {"fail.engineSync.what": "Die Engine konnte nicht vorbereitet werden.","fail.engineSync.next": "Tippe auf „Erneut versuchen“. Das Protokoll zeigt den Grund. Wenn es weiter fehlschlägt, melde es mit „Diagnose kopieren“ und dem Protokoll.","dep.metal.other": "%@ (getestet: %@)",- "dep.fix.metalPin": "Das ist nicht der Metal-Compiler, mit dem die Shader getestet wurden. Spiele mit NVN stoppen vor den Shader-Schritten. Installiere Xcode 27.1 (macOS 26.6 oder neuer) samt Metal-Toolchain.",+ "dep.fix.metalPin": "Das ist nicht der Metal-Compiler, mit dem die Shader getestet wurden. Spiele mit NVN stoppen vor den Shader-Schritten. Installiere Xcode 27.2 (macOS 26.6 oder neuer) samt Metal-Toolchain.","dep.pick.metal_dir.title": "Metal Developer Tools wählen (die geladene Zip oder der entpackte Ordner)","dep.pick.metal": "Zip / Ordner wählen …","dep.metal.unpacking": "%@ wird entpackt …",@@ -3174,8 +3174,8 @@ enum L10n {"onboarding.welcome.note": "Jouez à vos jeux Switch nativement sur votre Mac, en 15\u{a0}minutes environ.","onboarding.platform.title": "Où voulez-vous jouer\u{a0}?","onboarding.platform.note": "Choisissez où vous jouerez. Nous préparerons uniquement ce dont vous avez besoin.",- "onboarding.nvn.os": "Certains jeux nécessitent Xcode 27.1, qui requiert macOS 26.6 ou ultérieur. Sur ce Mac, les jeux qui utilisent NVN ne pourront pas être compilés, mais les autres oui.",- "onboarding.nvn.xcode": "Cette version d’Xcode est antérieure à 27.1, requise par les jeux qui utilisent NVN. Mettez à jour Xcode dans l’App Store si votre macOS le permet. Les autres jeux se compilent avec celle-ci.",+ "onboarding.nvn.os": "Certains jeux nécessitent Xcode 27.2, qui requiert macOS 26.6 ou ultérieur. Sur ce Mac, les jeux qui utilisent NVN ne pourront pas être compilés, mais les autres oui.",+ "onboarding.nvn.xcode": "Cette version d’Xcode est antérieure à 27.2, requise par les jeux qui utilisent NVN. Mettez à jour Xcode dans l’App Store si votre macOS le permet. Les autres jeux se compilent avec celle-ci.","onboarding.xcode.title": "Préparons votre Mac.","onboarding.xcode.note": "Xcode fournit les outils d’Apple pour compiler vos jeux. Nous vous guiderons pendant la configuration.","onboarding.keys.title": "Apportez vos propres clés.",@@ -3913,7 +3913,7 @@ enum L10n {"fail.cltSelected.next": "Sélectionnez Xcode avec le bouton ci-dessous (un mot de passe administrateur est demandé), ou exécutez sudo xcode-select -s /Applications/Xcode.app dans le Terminal, puis compilez à nouveau.","fail.cltSelected.button": "Sélectionner Xcode","fail.otherMetal.what": "Le compilateur Metal de ce Mac n’est pas celui avec lequel les shaders ont été testés.",- "fail.otherMetal.next": "Ce jeu utilise NVN et nécessite Xcode 27.1 (macOS 26.6 ou ultérieur). Installez-le avec sa chaîne d’outils Metal, puis compilez à nouveau.",+ "fail.otherMetal.next": "Ce jeu utilise NVN et nécessite Xcode 27.2 (macOS 26.6 ou ultérieur). Installez-le avec sa chaîne d’outils Metal, puis compilez à nouveau.","fail.otherMetal.risk": "La compilation utilise un compilateur Metal avec lequel personne n’a testé les shaders. L’image peut être incorrecte, le résultat n’est pas testé et n’est pas pris en charge. Ce choix ne vaut que pour cette compilation et n’est pas enregistré.","fail.shaderRegression.what": "Certains shaders qui se traduisaient auparavant échouent avec cette version.","fail.shaderRegression.next": "Merci de le signaler avec la liste figurant dans le journal de compilation. Compiler quand même laisse ces shaders de côté\u{a0}: des parties de l’image peuvent manquer.",@@ -3952,7 +3952,7 @@ enum L10n {"fail.openXcode": "Ouvrir Xcode","fail.retry": "Réessayer","dep.metal.other": "%@ (testé\u{a0}: %@)",- "dep.fix.metalPin": "Ce n’est pas le compilateur Metal avec lequel les shaders ont été testés. Les jeux qui utilisent NVN s’arrêtent avant les étapes de shaders. Installez Xcode 27.1 (macOS 26.6 ou ultérieur) et sa chaîne d’outils Metal.",+ "dep.fix.metalPin": "Ce n’est pas le compilateur Metal avec lequel les shaders ont été testés. Les jeux qui utilisent NVN s’arrêtent avant les étapes de shaders. Installez Xcode 27.2 (macOS 26.6 ou ultérieur) et sa chaîne d’outils Metal.","msg.exitCode": "code de sortie %d","msg.stagingFailed": "Impossible de créer des liens dans le dossier de préparation (fichiers sur des volumes différents\u{a0}?)","msg.stagedFromSharedFolder": "Le dossier contient d’autres jeux\u{a0}: compilation à partir d’une copie temporaire de celui-ci (%@)",diff --git a/frontend/Sources/NSPortBuilder/OnboardingState.swift b/frontend/Sources/NSPortBuilder/OnboardingState.swiftindex 33559f5d..e02548dc 100644--- a/frontend/Sources/NSPortBuilder/OnboardingState.swift+++ b/frontend/Sources/NSPortBuilder/OnboardingState.swift@@ -7,16 +7,16 @@ enum OnboardingStep: String, CaseIterable, Codable {var titleKey: String { "onboarding.\(rawValue).title" }}-/// What NVN games' shaders need: the Metal compiler of Xcode 27.1, which itself needs macOS 26.6.+/// What NVN games' shaders need: the Metal compiler of Xcode 27.2, which itself needs macOS 26.6.enum OnboardingNVN {- static let minimumXcode = [27, 1]+ static let minimumXcode = [27, 2]static let minimumOS = OperatingSystemVersion(majorVersion: 26, minorVersion: 6, patchVersion: 0)static func osTooOld(_ v: OperatingSystemVersion) -> Bool {(v.majorVersion, v.minorVersion, v.patchVersion) < (minimumOS.majorVersion, minimumOS.minorVersion, minimumOS.patchVersion)}- /// `xcodebuild -version` prints "Xcode 27.1" first. An unreadable version is not reported as too old.+ /// `xcodebuild -version` prints "Xcode 27.2" first. An unreadable version is not reported as too old.static func xcodeVersion(from output: String) -> String? {for line in output.split(whereSeparator: \.isNewline) where line.hasPrefix("Xcode ") {let v = line.dropFirst(6).split(separator: " ").first.map(String.init) ?? ""@@ -127,7 +127,7 @@ struct OnboardingState: Equatable {var games: Games = .emptyvar done: Done = .celebratingvar exit: Exit? = nil- /// NVN games need the Metal compiler of Xcode 27.1, which needs macOS 26.6. Hints only: setup continues either way.+ /// NVN games need the Metal compiler of Xcode 27.2, which needs macOS 26.6. Hints only: setup continues either way.var osTooOldForNVN = falsevar xcodeTooOldForNVN = falsediff --git a/frontend/Tests/Fixtures/build_failures.json b/frontend/Tests/Fixtures/build_failures.jsonindex 75a50a65..81af7580 100644--- a/frontend/Tests/Fixtures/build_failures.json+++ b/frontend/Tests/Fixtures/build_failures.json@@ -46,7 +46,7 @@"kind": "otherMetal","source": "dm/gfx/tools/own_compilers.py","fragment": "Metal compiler is not the one the shaders were tested with",- "text": "[RED] this Mac's Metal compiler is not the one the shaders were tested with (dm/gfx/tools/dmsh_chain.lock): metal_macosx Apple metal version 32023.883 (metalfe-32023.883.5) (tested: Apple metal version 32023.921 (metalfe-32023.921.6)). Untested compilers are unsupported (GitHub issue #242). Install Xcode 27.1 (macOS 26.6 or later) and its Metal toolchain (xcodebuild -downloadComponent MetalToolchain), or set ALLOW_OTHER_METAL = True (--allow-other-metal) to build with this one anyway"+ "text": "[RED] this Mac's Metal compiler is not the one the shaders were tested with (dm/gfx/tools/dmsh_chain.lock): metal_macosx Apple metal version 32023.883 (metalfe-32023.883.5) (tested: Apple metal version 32023.922 (metalfe-32023.922.4)). Untested compilers are unsupported (GitHub issue #242). Install Xcode 27.2 (macOS 26.6 or later) and its Metal toolchain (xcodebuild -downloadComponent MetalToolchain), or set ALLOW_OTHER_METAL = True (--allow-other-metal) to build with this one anyway"},{"id": "shaders.regression",diff --git a/frontend/Tests/NSPortBuilderTests/BuildFailureTests.swift b/frontend/Tests/NSPortBuilderTests/BuildFailureTests.swiftindex aba52d98..19f232f6 100644--- a/frontend/Tests/NSPortBuilderTests/BuildFailureTests.swift+++ b/frontend/Tests/NSPortBuilderTests/BuildFailureTests.swift@@ -108,7 +108,7 @@ final class BuildFailureTests: XCTestCase {}func testTheOtherMetalHintNamesXcode27() {- XCTAssertTrue(L10n.table["fail.otherMetal.next"]!.en.contains("Xcode 27.1 (macOS 26.6 or later)"))+ XCTAssertTrue(L10n.table["fail.otherMetal.next"]!.en.contains("Xcode 27.2 (macOS 26.6 or later)"))XCTAssertTrue(L10n.table["fail.a32Program.what"]!.en.contains("32-bit and can't run on Apple silicon"))}diff --git a/frontend/Tests/NSPortBuilderTests/LiveOnboardingDriverTests.swift b/frontend/Tests/NSPortBuilderTests/LiveOnboardingDriverTests.swiftindex 83862062..3cf355b2 100644--- a/frontend/Tests/NSPortBuilderTests/LiveOnboardingDriverTests.swift+++ b/frontend/Tests/NSPortBuilderTests/LiveOnboardingDriverTests.swift@@ -427,7 +427,7 @@ import XCTestXCTAssertFalse(defaults.bool(forKey: OnboardingDefaults.inProgress))}- // MARK: NVN hints (macOS 26.6 / Xcode 27.1)+ // MARK: NVN hints (macOS 26.6 / Xcode 27.2)func testOSHintFollowsMacOSVersion() {let fake = Fake()@@ -440,7 +440,7 @@ import XCTestfunc testXcodeHintFollowsProbeVersion() async {let fake = Fake()- for (version, old) in [("26.4", true), ("27.0", true), ("27", true), ("27.1", false), ("27.2", false), ("28.0", false), (nil, false)] as [(String?, Bool)] {+ for (version, old) in [("26.4", true), ("27.0", true), ("27", true), ("27.1", true), ("27.2", false), ("27.3", false), ("28.0", false), (nil, false)] as [(String?, Bool)] {fake.probe.version = versionlet (driver, _) = make(fake, deps: [dep("metal", present: true), dep("xcode", present: true)])await driver.refreshXcode()diff --git a/tools/try-local b/tools/try-localindex 81f1dc92..fc46ffd6 100755--- a/tools/try-local+++ b/tools/try-local@@ -19,7 +19,7 @@# Time: the first run builds zstd, glslang, spirv-cross and downloads Python and xcodegen (the slow part). They are cached in# ~/Library/Caches/NX2Apple-try-local, keyed by the hash of bundle_tools.sh and bundled-python/requirements.txt (its pins). The next# run copies them. The icon is cached the same way, by AppIcon.icon and the Xcode version. The icon needs an Xcode whose actool reads-# AppIcon.icon (the workflow uses Xcode 27.1). If actool fails here, the app gets the generic icon and the script says so.+# AppIcon.icon (the workflow uses Xcode 27.2). If actool fails here, the app gets the generic icon and the script says so.# The elapsed time of each step and the total are printed.## Needs an Apple silicon Mac with Xcode (swift, actool), cmake and python3. The test app has the bundle id of the installed app@@ -124,7 +124,7 @@ else&& [ -f "$out/Assets.car" ] && [ -f "$out/AppIcon.icns" ]; thenmkdir -p "$icon_cache"; cp "$out/Assets.car" "$out/AppIcon.icns" "$icon_cache/"; have_icon=1else- note "actool ($xcodev) could not compile AppIcon.icon, the app gets the generic icon. The workflow uses Xcode 27.1. Last lines:"+ note "actool ($xcodev) could not compile AppIcon.icon, the app gets the generic icon. The workflow uses Xcode 27.2. Last lines:"tail -5 "$work/actool.log" | sed 's/^/ /' >&2fifi