Skip to content

Play your own Switch games on iPhone/iPad — one-click macOS app, no terminal. | 把 Switch 游戏装进 iPhone:图形界面一键构建,不用命令行。Bring your own game.

Missing framework message: say what to do if building again does not help

v0lumehi4cc3e8ec716a
diff --git a/frontend/Sources/NXLauncher/ActionCard.swift b/frontend/Sources/NXLauncher/ActionCard.swift
index 32ff6116..e5678e36 100644
--- a/frontend/Sources/NXLauncher/ActionCard.swift
+++ b/frontend/Sources/NXLauncher/ActionCard.swift
@@ -40,7 +40,7 @@ package struct ActionCard: View {
@ViewBuilder private var statusText: some View {
if !build.doneNote.isEmpty {
Text(build.doneNote).font(.manrope(13))
- .foregroundStyle(build.done ? LauncherPalette.ready : LauncherPalette.building).lineLimit(2)
+ .foregroundStyle(build.done ? LauncherPalette.ready : LauncherPalette.building).lineLimit(3)
} else if !dependencies.checked {
Text(loc.t("status.checkingDeps")).font(.manrope(13)).foregroundStyle(.secondary)
} else if !dependencies.allPresent {
diff --git a/frontend/Tests/NX2AppleTests/ShellExportTests.swift b/frontend/Tests/NX2AppleTests/ShellExportTests.swift
index d2aa68f1..735f2c41 100644
--- a/frontend/Tests/NX2AppleTests/ShellExportTests.swift
+++ b/frontend/Tests/NX2AppleTests/ShellExportTests.swift
@@ -231,6 +231,11 @@ import NXModel
XCTAssertEqual(outcome.message, String(format: L10n.string("shell.noFramework", .en), "Test Game", "shell-framework"))
XCTAssertTrue(outcome.message.contains("Test Game"), outcome.message)
XCTAssertFalse(outcome.message.contains("/"), outcome.message)
+ XCTAssertTrue(outcome.message.contains("open an issue"), outcome.message)
+ for lang in Lang.all {
+ XCTAssertFalse(L10n.string("shell.noFramework", lang).contains(";"), lang.code)
+ XCTAssertTrue(L10n.string("shell.noFramework", lang).contains("%2$@"), lang.code)
+ }
XCTAssertTrue(logged.contains(missing), logged)
// the install path says the same
let installed = i.install(framework: missing, titleID: titleID, name: "Test Game", archive: "")
diff --git a/frontend/l10n/de.json b/frontend/l10n/de.json
index dd99f91e..ebd74fbf 100644
--- a/frontend/l10n/de.json
+++ b/frontend/l10n/de.json
@@ -1042,7 +1042,7 @@
"shell.modeInstall": "Auf Gerät installieren",
"shell.modeTitle": "Installieren oder exportieren",
"shell.needsDevice": "Die gemeinsame App braucht ein Gerät und ein Signier-Team. Wähle sie zuerst unter Installieren auf.",
- "shell.noFramework": "Der Build von %1$@ ist fertig, aber sein Framework liegt nicht im Ordner %2$@. Baue das Spiel erneut.",
+ "shell.noFramework": "Der Build von %1$@ ist fertig, aber sein Framework liegt nicht im Ordner %2$@. Baue das Spiel erneut. Wenn es wieder passiert, kopiere das Build-Protokoll und eröffne ein Issue.",
"shell.noSpace": "Nicht genug Platz auf %@: Die Spieldaten brauchen %.1f GB und auf dem Gerät sind %.1f GB frei. Gib Speicher frei und installiere dann erneut",
"shell.notPaired": "%@ ist nicht mit diesem Mac gekoppelt. Schließe es mit einem Kabel an, tippe auf dem Gerät auf Vertrauen und gib den Code ein. Starte dann erneut.",
"shell.oneGameDone": "%@, nicht signiert. Die Spieldaten sind enthalten.",
diff --git a/frontend/l10n/en.json b/frontend/l10n/en.json
index cb6ae4a9..331f2e70 100644
--- a/frontend/l10n/en.json
+++ b/frontend/l10n/en.json
@@ -1166,7 +1166,7 @@
"shell.modeInstall": "Install on device",
"shell.modeTitle": "Install or export",
"shell.needsDevice": "The shared app needs a device and a signing team. Choose them under Install on first.",
- "shell.noFramework": "The build of %1$@ finished, but its framework is not in the %2$@ folder. Build the game again.",
+ "shell.noFramework": "The build of %1$@ finished, but its framework is not in the %2$@ folder. Build the game again. If it happens again, copy the build log and open an issue.",
"shell.noSpace": "Not enough space on %@: the game data needs %.1f GB and the device has %.1f GB free. Free up space, then install again",
"shell.notPaired": "%@ is not paired with this Mac. Connect it with a cable, tap Trust on the device and enter its passcode. Then start again.",
"shell.oneGameDone": "%@, unsigned. The game data is inside.",
diff --git a/frontend/l10n/fr.json b/frontend/l10n/fr.json
index ea2890bd..2a89cf42 100644
--- a/frontend/l10n/fr.json
+++ b/frontend/l10n/fr.json
@@ -1041,7 +1041,7 @@
"shell.modeInstall": "Installer sur l’appareil",
"shell.modeTitle": "Installer ou exporter",
"shell.needsDevice": "L’app partagée a besoin d’un appareil et d’une équipe de signature. Choisissez-les d’abord sous Installer sur.",
- "shell.noFramework": "La compilation de %1$@ est terminée, mais son framework n'est pas dans le dossier %2$@. Reconstruisez le jeu.",
+ "shell.noFramework": "La compilation de %1$@ est terminée, mais son framework n'est pas dans le dossier %2$@. Reconstruisez le jeu. Si cela se reproduit, copiez le journal de compilation et ouvrez un ticket.",
"shell.noSpace": "Pas assez d’espace sur %@ : les données du jeu demandent %.1f Go et l’appareil en a %.1f Go de libres. Libérez de l’espace, puis réinstallez",
"shell.notPaired": "%@ n’est pas associé à ce Mac. Branchez-le avec un câble, touchez Se fier sur l’appareil et saisissez son code. Puis recommencez.",
"shell.oneGameDone": "%@, non signé. Les données du jeu sont incluses.",
diff --git a/frontend/l10n/it.json b/frontend/l10n/it.json
index 870a92a3..db37f238 100644
--- a/frontend/l10n/it.json
+++ b/frontend/l10n/it.json
@@ -1041,7 +1041,7 @@
"shell.modeInstall": "Installa sul dispositivo",
"shell.modeTitle": "Installa o esporta",
"shell.needsDevice": "L’app condivisa richiede un dispositivo e un team di firma. Prima sceglili in Installa su.",
- "shell.noFramework": "La compilazione di %1$@ è terminata, ma il suo framework non è nella cartella %2$@. Compila di nuovo il gioco.",
+ "shell.noFramework": "La compilazione di %1$@ è terminata, ma il suo framework non è nella cartella %2$@. Compila di nuovo il gioco. Se succede di nuovo, copia il log di compilazione e apri una issue.",
"shell.noSpace": "Spazio insufficiente su %@: i dati di gioco richiedono %.1f GB e il dispositivo ha %.1f GB liberi. Libera spazio, poi installa di nuovo",
"shell.notPaired": "%@ non è abbinato a questo Mac. Collegalo con un cavo, tocca Autorizza sul dispositivo e inserisci il codice. Poi ricomincia.",
"shell.oneGameDone": "%@, non firmata. I dati di gioco sono inclusi.",
diff --git a/frontend/l10n/sv.json b/frontend/l10n/sv.json
index 305da61c..91ff0d74 100644
--- a/frontend/l10n/sv.json
+++ b/frontend/l10n/sv.json
@@ -878,7 +878,7 @@
"shell.modeInstall": "Installera på enheten",
"shell.modeTitle": "Installera eller exportera",
"shell.needsDevice": "Den gemensamma appen behöver en enhet och ett signeringsteam. Välj dem först under Installera på.",
- "shell.noFramework": "Bygget av %1$@ är klart, men spelets ramverk finns inte i mappen %2$@. Bygg spelet igen.",
+ "shell.noFramework": "Bygget av %1$@ är klart, men spelets ramverk finns inte i mappen %2$@. Bygg spelet igen. Om det händer igen, kopiera bygglogen och öppna ett ärende.",
"shell.noSpace": "Inte tillräckligt med utrymme på %@: speldatan behöver %.1f GB och enheten har %.1f GB ledigt. Frigör utrymme och installera igen",
"shell.notPaired": "%@ är inte ihopparad med den här Mac-datorn. Anslut den med kabel, tryck på Lita på i enheten och ange enhetens lösenkod. Starta sedan om.",
"shell.oneGameDone": "%@, osignerad. Speldata finns med.",
diff --git a/frontend/l10n/zh.json b/frontend/l10n/zh.json
index f5fdde33..5b2d8d08 100644
--- a/frontend/l10n/zh.json
+++ b/frontend/l10n/zh.json
@@ -1167,7 +1167,7 @@
"shell.modeInstall": "安装到设备",
"shell.modeTitle": "安装或导出",
"shell.needsDevice": "共用应用需要一台设备和一个签名团队。请先在“安装到”里选择。",
- "shell.noFramework": "%1$@ 已构建完成,但它的框架不在 %2$@ 文件夹里。请重新构建这个游戏。",
+ "shell.noFramework": "%1$@ 已构建完成,但它的框架不在 %2$@ 文件夹里。请重新构建这个游戏。如果再次出现,请复制构建日志并提交 issue。",
"shell.noSpace": "%@ 上空间不足:游戏数据需要 %.1f GB,设备只剩 %.1f GB。请先释放空间再安装",
"shell.notPaired": "这台 Mac 还没有与 %@ 配对。请用数据线连接,在设备上点「信任」并输入设备密码,然后重新开始。",
"shell.oneGameDone": "%@,未签名。已包含游戏数据。",