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
Launcher test waits on its events with a hang guard, CLAUDE.md describes the fetched engine tree
v0lumehi445f57aefaf4
diff --git a/CLAUDE.md b/CLAUDE.mdindex 273bfbff..ed07e6f1 100644--- a/CLAUDE.md+++ b/CLAUDE.md@@ -3,5 +3,5 @@- Read [AGENTS.md](AGENTS.md) first: this repository's layout and rules. For engine work read [engine/AGENTS.md](engine/AGENTS.md) too, upstream's guide from seedds/nxnative at the pin. `engine/` is made by `python3 tools/engine.py sync` (the SessionStart hook in `.claude/settings.json` runs it).- For an issue or a pull request, follow [CONTRIBUTING.md](CONTRIBUTING.md), section "For AI agents and other tools", and the templates in `.github/`.- A PR that changes the launcher needs before and after screenshots: see "For AI agents and other tools" in CONTRIBUTING.md for how to capture them and attach them with `gh pr create --attach`.-- The engine (`dm/`, `scripts/`, `docs/`, `ref/`) is not committed here: it is seedds/nxnative at `.upstream-ref` plus the patch queue in `patches/`, built into `engine/` (git-ignored). Upstream first: a fix goes to seedds/nxnative as a pull request, and becomes a patch only while the fork has to carry it. Work in `engine/`: commit there, then `python3 tools/engine.py export` turns the commits into patches with their header (see [patches/README.md](patches/README.md)). Never add files under `dm/`, `scripts/`, `docs/` or `ref/` at the root: `pr-scope` fails it and `.gitignore` ignores them.-- **Commit with your own git identity, never upstream's.** Use the one configured for your clone, or your own name and email. AGENTS.md ends with `git -c user.name=seedds -c user.email=…` because it is written for seedds/nxnative, where seedds is the maintainer. Do not copy that line here: it makes fork commits, and the `From:` line of patches made with `tools/engine.py export`, show upstream's author (six commits on 2026-10-30 did, including `v0.7.2`, and patch 0033 in #230).+- The engine (`dm/`, `scripts/`, `docs/`, `ref/` and upstream's `AGENTS.md`) is not committed here: it is seedds/nxnative at `.upstream-ref` plus the patch queue in `patches/`, built into `engine/` (git-ignored). The `AGENTS.md` at the root is this fork's own. Upstream first: a fix goes to seedds/nxnative as a pull request, and becomes a patch only while the fork has to carry it. Work in `engine/`: commit there, then `python3 tools/engine.py export` turns the commits into patches with their header (see [patches/README.md](patches/README.md)). Never add files under `dm/`, `scripts/`, `docs/` or `ref/` at the root: `pr-scope` fails it and `.gitignore` ignores them.+- **Commit with your own git identity, never upstream's.** Use the one configured for your clone, or your own name and email. `engine/AGENTS.md` ends with `git -c user.name=seedds -c user.email=…` because it is written for seedds/nxnative, where seedds is the maintainer. Do not copy that line here: it makes fork commits, and the `From:` line of patches made with `tools/engine.py export`, show upstream's author (six commits on 2026-10-30 did, including `v0.7.2`, and patch 0033 in #230).diff --git a/frontend/Tests/NSPortBuilderTests/LibraryTests.swift b/frontend/Tests/NSPortBuilderTests/LibraryTests.swiftindex ecdf04a3..6ace61ab 100644--- a/frontend/Tests/NSPortBuilderTests/LibraryTests.swift+++ b/frontend/Tests/NSPortBuilderTests/LibraryTests.swift@@ -738,11 +738,13 @@ final class LibraryTests: XCTestCase {XCTAssertTrue(model.canBuild)window.orderOut(nil) // Registration must work even while the launcher is hidden.model.startBuild()- wait(for: [completed], timeout: 30) // a CI runner runs the script slowly+ // The fixture runs system Python in a child process. A loaded CI runner took more than 10 s for it once, so the deadline+ // is only a hang guard. Each wait returns on its event, so a fast build does not wait longer.+ wait(for: [completed], timeout: 120)withExtendedLifetime(token) {}// The library can list the app before the model has taken in the script's exit (a slower Mac, CI): wait for bothlet settled = XCTNSPredicateExpectation(predicate: NSPredicate { _, _ in model.done && !model.running }, object: nil)- wait(for: [settled], timeout: 30)+ wait(for: [settled], timeout: 120)XCTAssertTrue(model.done)XCTAssertFalse(model.running)XCTAssertEqual(model.stages.map(\.name), ["Mac app"]) // from the JSON events, which the log shows as text