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
docs: add #782 to the 1.2.2 changelog and release notes
LNPANDY54446559b460
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 3f4ce254..7f4d129a 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -6,7 +6,7 @@ Newest first. The fork follows upstream daily, so its game list and host fixes a| Date | Version | What changed ||---|---|---|-| 2026-11-06 | v1.2.2 | **New**: the experimental builder (Settings, Use experimental builder) now builds the whole game with nxbuild: the launcher runs `nxb build` and does not run the build script at all, for a Mac app and for the iPhone and iPad options. It reads NSP, NSZ, XCI, merged packages, a NUP, a game folder and DLC, and surveys a game with no profile. There is no fallback to the script: a case nxb does not take, or a failure, shows nxb's exit code and its last error line. It needs nxb 0.5.1 or newer, which the app bundles when its release is pinned. The setting is off by default and nothing changes for a default build. Not yet run on a device: the iPhone and iPad path, and the new input kinds on real game files (#749) |+| 2026-11-06 | v1.2.2 | **New**: the experimental builder (Settings, Use experimental builder) now builds the whole game with nxbuild: the launcher runs `nxb build` and does not run the build script at all, for a Mac app and for the iPhone and iPad options. It reads NSP, NSZ, XCI, merged packages, a NUP, a game folder and DLC, and surveys a game with no profile. There is no fallback to the script: a case nxb does not take, or a failure, shows nxb's exit code and its last error line. It needs nxb 0.5.1 or newer, which the app bundles when its release is pinned. The setting is off by default and nothing changes for a default build. Not yet run on a device: the iPhone and iPad path, and the new input kinds on real game files (#749, #794). **Fixed**: building an NVN game for the shared iPhone and iPad app no longer stops at `FAIL: copy the shader libraries` after the engine packed the shader library into `b-<chain>.img`, reported by @zhukangyu26-stack, @tnt739660506-prog and @caixukun1919810114514, by @xiaofeng-han (#781, #795, #800, #782) || 2026-11-06 | v1.2.1 | **New**: Steam Controller (2026) over USB-C, Bluetooth and the Puck, with per-game mappings in the launcher, games must be rebuilt, by @thehobbit85 (#764, #731). A note in Launch options that says why a game has no resolution setting, by @Haseenesss (#574, #754). **Fixed**: the Mac launcher builds a Switch 2 NUP or a game folder of a game with no profile when the engine can survey it, the game itself does not run yet and needs upstream work (seedds/nxnative#1299), the Qt launcher still refuses it, reported by @xdgpx (#748, #783). The Mac host build uses the selected Python, reported by @temmiegreen, by @thehobbit85 (#711, #729). Windows finds `python.exe` in the install folder when it chains into the venv (#774). 20 Italian shell texts reworded by @zatteogit (#744). The README says Switch 2 games need no `prod.keys`, by @rivitt (#734). The compatibility switch for older iPhones and iPads writes the key the game reads, by @thehobbit85 (#719, #723). Build progress and log stay across launcher windows, by @thehobbit85 (#405, #724). A failure row for low disk space while building the Metal archive, by @thehobbit85 (#463, #725). `DM_PSO_BUNDLE=off` from env files works on iPhone and iPad, by @thehobbit85 (#726). The Tool tests job reports engine test failures and the shell and language-row tests are repaired (#690, #698, #722, #727, #728, #786) || 2026-11-05 | v1.2.0 | **Fixed**: wrong library covers such as a Switch 2 Edition or a bundle instead of the game, 164 of 167 titles with several shop products now pick the game, reported by @zatteogit (#403, #632). About 120 iPhone shell texts that were English in German, Swedish, French and Italian, and three error messages that were English everywhere, now in six languages, machine translated and waiting for review (#631). SideStore installs of a shared IPA with a very large shader tree, by @Silverhza (#587, #593). iPhone Duo rotation and the tabletop layout, by @jonochocki (#642). Game files with an upper case extension (#554). Games in a subfolder whose update or DLC sits in a sibling subfolder (#760, #762). The Mac app build on a disk without an atomic swap (#595, #742). The game language row for a Switch 2 game with a NUP update (#619). The game language row for a Switch 2 game with no control data, read from the game's own files, on the Mac and on iPhone and iPad (#668, #693). The iPhone quit prompt text (#620), the game data out of the iCloud backup (#618), the iPhone and iPad shell controller input order and tap echo guard by @Haseenesss (#660), the console mode pointer staying hidden while a game starts by @Haseenesss (#380, #741), the Windows engine recovery crash (#613), and the Windows Python install chaining directly into the venv and offline wheels setup plus 1.2 engine `tree_tar` and single-file shader library support (#765, #772). The stale shader notice popup for both reasons, texts waiting for a native review, by @djdev0010 (#320, #470). **New**: engine pin `777a5f6c618a` with 105 upstream commits, Mario Kart World, Mario Tennis Fever, Super Mario 3D All-Stars and more (#689), and `7249ee9f95ed` with 28 more upstream commits, Star Fox (Switch 2), Yoshi and the Mysterious Book (Switch 2) and DRAGON QUEST BUILDERS 2 at 60 fps, up to 120 fps for Fire Emblem Fortune's Weave and Mario & Luigi: Brothership, and single-file shader libraries and compile caches, by upstream's notes and not played by us, built games are rebuilt on the first Play (#712, #761). The Windows release (`NX2Apple-windows-x64.zip`) on the releases page with the 1.2.0 interface, the bundled engine tree so a Windows player needs no git, multi-core parallel NSO rewriting, cache management and an in-place iPhoneOS 27.2 SDK upgrade (#615, #616, #765, #768, #771, #772). Each iPhone and iPad game framework carries its own host binary (`loader: "FH"`), so future engine updates no longer require rebuilding existing games before they can start (#451, #756). Experimental builder (`nxbuild 0.2.0`, off by default) for Rust extraction and shader splitting of NSP, XCI, NSZ, dump folders and Switch 2 `.nup` packages (#749, #752, #766, #767). Split a Bluetooth Joy-Con pair into two sideways controllers on the Mac (#740, #745, #770). iPhone Duo side column for the chips and Back (#622, #633). "Preparing game…" after Play, by @Silverhza (#652). 24 Italian texts reworded, by @zatteogit and @Dino0005 (#687, #704). The .NET check follows the dotnet the build runs, by @oliphantaaron (#342). **Known issues**: of the Switch 2 games only Donkey Kong Bananza was tried, through the launcher on a Mac, an iPhone and an iPad (#445), the Switch 2 game language list is not seen on a device and has no Thai or Polish (#693), of the Switch 2 games only Donkey Kong Bananza has a store cover (#632), and the Duo side column is only checked in the Simulator (#622) || 2026-11-03 | v1.1.0 | **Switch 2 games in the launcher** (#603, #604, #605, #606, #607, #608, #609, #610): the Mac and the Windows launcher take a Switch 2 game folder or a `.nup` file, with no `prod.keys`. Games get a Switch 2 mark and a note for the chosen target, the build stages have names in every language, and a failure row says when the keys are older than the game. Nobody has played one through the launcher yet. **Touch controls** (#582, #581, #580, #600): a size setting, a left stick place, a hint for the right stick of the 3D layout, and an editor in the shell settings that moves each control. **Quit and delete**: hold the controller's Home button for 2 seconds to quit a Mac game on macOS 27 (#579). On iPhone and iPad, the gear menu in the game or a Home hold quits, and the app closes and opens on the library (#601). Delete a game from the launcher, with its saves kept unless chosen (#562). **Also new**: Cloud saves folder in the Mac launcher (#561), Start in console mode (#565), controller button mapping on iPhone and iPad by @Haseenesss (#495, #576), picture Fill or Fit (#575), iPhone Duo layouts by @jonochocki (#230), per-game mods and env.txt (#573, #566), moving the cache folder (#584, #567), the Finder way to send game data (#586), a clearer framework error (#568). **Engine pin** `641d1480021a` (#598): new Switch 2 and other games, by upstream's notes, not played by us. **Fixed**: NSPs without a title ID in the file name by @Haseenesss (#548), the Duo outer screen row (#563), the Windows IPA handoff by @tmrsm (#182), the Windows first sync (#597, #602). **Docs**: README in German, Swedish and French (#569), Italian documents by @PikaMan80 (#527), Italian texts reviewed by @Dino0005 (#541, #570). Requires macOS 27 for the Home quit. |diff --git a/CHANGELOG.zh-CN.md b/CHANGELOG.zh-CN.mdindex 5f74f39d..a96ad753 100644--- a/CHANGELOG.zh-CN.md+++ b/CHANGELOG.zh-CN.md@@ -6,7 +6,7 @@ NX2Apple 的版本历史,最新在上,每个版本的完整说明见[发布| 日期 | 版本 | 变更 ||---|---|---|-| 2026-11-06 | v1.2.2 | **新增**:实验性构建器(设置里的「使用实验性构建器」)现在用 nxbuild 构建整个游戏:启动器直接运行 `nxb build`,完全不运行构建脚本,Mac App 和 iPhone、iPad 选项都是如此。它读取 NSP、NSZ、XCI、合并包、NUP、游戏文件夹和 DLC,并勘测没有配置的游戏。不会退回脚本:nxb 不支持的情况或失败时,会显示 nxb 的退出代码和最后一条错误。需要 nxb 0.5.1 或更新版本,固定版本后 App 会自带。该设置默认关闭,默认构建不受影响。尚未在真机上运行:iPhone 和 iPad 路径,以及真实游戏文件的新输入类型(#749) |+| 2026-11-06 | v1.2.2 | **新增**:实验性构建器(设置里的「使用实验性构建器」)现在用 nxbuild 构建整个游戏:启动器直接运行 `nxb build`,完全不运行构建脚本,Mac App 和 iPhone、iPad 选项都是如此。它读取 NSP、NSZ、XCI、合并包、NUP、游戏文件夹和 DLC,并勘测没有配置的游戏。不会退回脚本:nxb 不支持的情况或失败时,会显示 nxb 的退出代码和最后一条错误。需要 nxb 0.5.1 或更新版本,固定版本后 App 会自带。该设置默认关闭,默认构建不受影响。尚未在真机上运行:iPhone 和 iPad 路径,以及真实游戏文件的新输入类型(#749、#794)。**修复**:引擎把 NVN 游戏的着色器库打包成单个文件 `b-<chain>.img` 后,为共用 iPhone 和 iPad 壳 App 构建游戏不再在 `FAIL: copy the shader libraries` 处停止,由 @zhukangyu26-stack、@tnt739660506-prog 和 @caixukun1919810114514 报告,作者 @xiaofeng-han(#781、#795、#800、#782) || 2026-11-06 | v1.2.1 | **新增**:Steam Controller(2026)支持 USB-C、蓝牙和 Puck,启动器里有每个游戏的映射,旧游戏需要重新构建,作者 @thehobbit85(#764、#731)。启动选项里新增说明游戏为什么没有分辨率设置的提示,作者 @Haseenesss(#574、#754)。**修复**:引擎能勘测游戏时,Mac 启动器可以构建没有配置的 Switch 2 NUP 或游戏文件夹,游戏本身还不能运行,需要上游的工作(seedds/nxnative#1299),Qt 启动器仍然拒绝,由 @xdgpx 报告(#748、#783)。Mac 宿主构建使用所选的 Python,由 @temmiegreen 报告,作者 @thehobbit85(#711、#729)。Windows 链接虚拟环境时在安装文件夹里找到 `python.exe`(#774)。@zatteogit 改写了 20 条意大利语壳 App 文字(#744)。README 说明 Switch 2 游戏不需要 `prod.keys`,作者 @rivitt(#734)。老 iPhone 和 iPad 的兼容开关写入游戏读取的键,作者 @thehobbit85(#719、#723)。构建进度和日志在多个启动器窗口之间保持,作者 @thehobbit85(#405、#724)。构建 Metal 归档时磁盘空间不足有了失败提示,作者 @thehobbit85(#463、#725)。env 文件里的 `DM_PSO_BUNDLE=off` 在 iPhone 和 iPad 上生效,作者 @thehobbit85(#726)。Tool tests 任务会报告引擎测试失败,壳 App 和语言行测试已修复(#690、#698、#722、#727、#728、#786) || 2026-11-05 | v1.2.0 | **修复**:游戏库封面不对(选成 Switch 2 版或套装而不是游戏本身),在有多个商店商品的 167 个游戏里 164 个现在选对,由 @zatteogit 报告(#403、#632)。约 120 条 iPhone 壳 App 文字在德语、瑞典语、法语和意大利语里是英文,另有三条错误信息在所有语言里都是英文,现已有六种语言,机器翻译,等待审校(#631)。着色器文件很多的共用 IPA 用 SideStore 安装失败,作者 @Silverhza(#587、#593)。iPhone Duo 旋转和桌面布局,作者 @jonochocki(#642)。扩展名为大写的游戏文件(#554)。子文件夹里的基础游戏与同级子文件夹里的更新或 DLC 自动关联(#760、#762)。在不支持原子替换的磁盘上构建 Mac App(#595、#742)。带 NUP 更新的 Switch 2 游戏的语言一行(#619)。没有控制数据的 Switch 2 游戏的语言一行,读自游戏自己的文件,Mac 和 iPhone、iPad 上都有(#668、#693)。iPhone 退出提示文字(#620)、游戏数据不进 iCloud 备份(#618)、iPhone 和 iPad 壳 App 手柄输入事件顺序与触控回声保护,作者 @Haseenesss(#660)、主机模式启动游戏期间鼠标指针保持隐藏,作者 @Haseenesss(#380、#741)、Windows 引擎恢复崩溃(#613),以及 Windows 安装 Python 后直接连装虚拟环境与内置离线 wheel 包、iOS 交叉构建支持 1.2 引擎 `tree_tar` 和单文件着色器库(#765、#772)。过期着色器提示在两种原因下都会弹出,文字等待母语者审校,作者 @djdev0010(#320、#470)。**新增**:引擎版本 `777a5f6c618a`(含上游 105 个提交,Mario Kart World、Mario Tennis Fever、Super Mario 3D All-Stars 等,#689)及 `7249ee9f95ed`(再进上游 28 个提交,Star Fox(Switch 2)、Yoshi and the Mysterious Book(Switch 2)和 DRAGON QUEST BUILDERS 2 60 帧,Fire Emblem Fortune's Weave 和 Mario & Luigi: Brothership 最高 120 帧,单文件着色器库与编译缓存,#712、#761),按上游的说明,我们没有玩过,已构建的游戏第一次点 Play 会重新构建。Windows 正式版(`NX2Apple-windows-x64.zip`)随发布页提供,对齐 1.2.0 界面并自带引擎目录(Windows 玩家不需要 git),支持多核并行 NSO 重写、缓存管理及就地升级到 iPhoneOS 27.2 SDK(#615、#616、#765、#768、#771、#772)。iPhone 和 iPad 每个游戏框架自带独立宿主二进制(`loader: "FH"`),后续引擎更新不再强制已构建游戏重新构建才能启动(#451、#756)。实验性构建器(`nxbuild 0.2.0`,默认关闭),用 Rust 快速完成 NSP、XCI、NSZ、解包目录及 Switch 2 `.nup` 软件包的解包与着色器拆分(#749、#752、#766、#767)。Mac 端支持将一对蓝牙 Joy-Con 拆分为两个独立横握手柄(#740、#745、#770)。iPhone Duo 侧边栏放置按钮和返回键(#622、#633)。点 Play 后显示「Preparing game…」,作者 @Silverhza(#652)。24 条意大利语文字改写,作者 @zatteogit 和 @Dino0005(#687、#704)。「.NET 检查」跟随构建实际使用的 dotnet,作者 @oliphantaaron(#342)。**已知问题**:Switch 2 游戏里只试过 Donkey Kong Bananza,通过启动器在 Mac、iPhone 和 iPad 上玩过(#445),Switch 2 游戏的语言列表没有在真机上看过,也没有泰语和波兰语(#693),Switch 2 游戏里只有 Donkey Kong Bananza 有商店封面(#632),Duo 侧边栏只在模拟器里检查过(#622) || 2026-11-03 | v1.1.0 | **启动器里的 Switch 2 游戏**(#603、#604、#605、#606、#607、#608、#609、#610):Mac 和 Windows 启动器可以选择 Switch 2 游戏文件夹或 `.nup` 文件,不需要 `prod.keys`。游戏带 Switch 2 标记和按目标显示的说明,构建阶段的名称有所有语言的版本,密钥比游戏旧时有专门的失败提示。还没有人通过启动器玩过。**触控按键**(#582、#581、#580、#600):大小设置、左摇杆位置、3D 布局右摇杆的提示,以及壳 App 设置里移动每个按键的编辑器。**退出和删除**:在 macOS 27 上按住手柄 Home 键 2 秒退出 Mac 游戏(#579)。在 iPhone 和 iPad 上,从游戏内齿轮菜单或按住 Home 退出,App 会关闭并在下次回到游戏库(#601)。在启动器里删除游戏,除非选择一并删除,否则存档保留(#562)。**其他新增**:Mac 启动器的云存档文件夹(#561)、启动时进入主机模式(#565)、iPhone 和 iPad 的手柄按键映射,作者 @Haseenesss(#495、#576)、画面填充或适应(#575)、iPhone Duo 布局,作者 @jonochocki(#230)、每个游戏的 mod 和 env.txt(#573、#566)、移动缓存文件夹(#584、#567)、用 Finder 发送游戏数据(#586)、更清楚的框架错误(#568)。**引擎固定点** `641d1480021a`(#598):新增 Switch 2 等游戏,出自上游的说明,我们没有玩过。**修复**:文件名里没有 title ID 的 NSP,作者 @Haseenesss(#548)、Duo 外屏的游戏行(#563)、Windows 的 IPA 交接,作者 @tmrsm(#182)、Windows 首次同步(#597、#602)。**文档**:德语、瑞典语和法语 README(#569)、意大利语文档,作者 @PikaMan80(#527)、由 @Dino0005 审校的意大利语文字(#541、#570)。用 Home 键退出需要 macOS 27。 |diff --git a/release-notes/v1.2.2.md b/release-notes/v1.2.2.mdnew file mode 100644index 00000000..36c19ad0--- /dev/null+++ b/release-notes/v1.2.2.md@@ -0,0 +1,31 @@+**v1.2.2: Fix for the iPhone and iPad shared app shader library copy, and end-to-end nxbuild in the experimental builder.**++## English++**New**+- **Experimental builder runs `nxb build` end to end**: when Settings, Use experimental builder is turned on, the Mac launcher now runs `nxb build` for the whole game build and does not run the Python build script at all, for a Mac app and for the iPhone and iPad options. It reads NSP, NSZ, XCI, merged packages, a Switch 2 NUP, a game folder and DLC, and surveys a game with no profile. There is no fallback to the script: a case `nxb` does not take, or a failure, shows `nxb`'s exit code and its last error line. The app bundles `nxbuild 0.5.1`. The setting is off by default and nothing changes for a default build (#749, #794)++**Fixed**+- **iPhone and iPad shared app build (`FAIL: copy the shader libraries`)**: since the 1.2.0 engine pin `7249ee9f95ed`, an NVN game's iOS shader library is packed into the single file `shader/ios/b-<chain>.img` and the folder `b-<chain>/` is removed. The framework build step for the shared iPhone and iPad app still looked for the folder, so every NVN game build for the shared shell stopped at `rsync: .../shader/ios/b-223f10d34f97/: (l)stat: No such file or directory` and `FAIL: copy the shader libraries`. It now copies `b-<chain>.img` into the game framework's `msl/` folder, where the host loads it. Reported by @zhukangyu26-stack, @tnt739660506-prog and @caixukun1919810114514. By @xiaofeng-han (#781, #795, #800, #782)++**Known issues**+- **Experimental builder (`nxb build`)**: the iPhone and iPad path and the new input kinds have not yet been run on a device with real game files (#749, #794)++**Requires**+- iOS or iPadOS 26 or later+- To build NVN games on a Mac: Xcode 27.2 and macOS 26.6 or later++## 中文++**新增**+- **实验性构建器全程运行 `nxb build`**:开启设置里的「使用实验性构建器」后,Mac 启动器现在直接运行 `nxb build` 完成整个游戏构建,完全不运行 Python 构建脚本,Mac App 和 iPhone、iPad 选项都是如此。它读取 NSP、NSZ、XCI、合并包、Switch 2 NUP、游戏文件夹和 DLC,并勘测没有配置的游戏。不会退回脚本:`nxb` 不支持的情况或失败时,会显示 `nxb` 的退出代码和最后一条错误。App 内置 `nxbuild 0.5.1`。该设置默认关闭,默认构建不受影响(#749、#794)++**修复**+- **iPhone 和 iPad 共用壳 App 构建(`FAIL: copy the shader libraries`)**:从 1.2.0 的引擎版本 `7249ee9f95ed` 起,NVN 游戏的 iOS 着色器库会被打包成单个文件 `shader/ios/b-<chain>.img` 并删除原文件夹 `b-<chain>/`。共用 iPhone 和 iPad 壳 App 的框架构建步骤仍在查找原文件夹,导致所有 NVN 游戏的共用壳构建都在最后停在 `rsync: .../shader/ios/b-223f10d34f97/: (l)stat: No such file or directory` 和 `FAIL: copy the shader libraries`。现在它会把 `b-<chain>.img` 复制进游戏框架的 `msl/` 目录供宿主直接读取。由 @zhukangyu26-stack、@tnt739660506-prog 和 @caixukun1919810114514 报告。作者 @xiaofeng-han(#781、#795、#800、#782)++**已知问题**+- **实验性构建器(`nxb build`)**:iPhone 和 iPad 路径以及真实游戏文件的新输入类型尚未在真机上运行过(#749、#794)++**系统要求**+- iOS 或 iPadOS 26 或更高版本+- 在 Mac 上构建 NVN 游戏:Xcode 27.2 和 macOS 26.6 或更高版本