Skip to content

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

Explain low disk space while building Metal archives

thehobbit854869fe869052
diff --git a/frontend-qt/nspb_qt/build_failure.py b/frontend-qt/nspb_qt/build_failure.py
index 92689169..af5c09a5 100644
--- a/frontend-qt/nspb_qt/build_failure.py
+++ b/frontend-qt/nspb_qt/build_failure.py
@@ -27,6 +27,7 @@ SEVERAL_GAMES = 'severalGames'
NO_TITLE_ID = 'noTitleID'
KEYS_OLD = 'keysOld'
DISK_FULL = 'diskFull'
+PSO_DISK_FULL = 'psoDiskFull'
CLOUD_FOLDER = 'cloudFolder'
VOLUME_FORMAT = 'volumeFormat'
UNKNOWN = 'unknown'
@@ -48,6 +49,9 @@ TABLE: list[tuple[str, str, str]] = [
('games.several', SEVERAL_GAMES, r'more than one game in the folder'),
('games.noTitleID', NO_TITLE_ID, r'no NSP with a readable title ID in '),
('disk.low', DISK_FULL, r'less than [0-9]+ GB free on the volume of '),
+ ('pso.low', PSO_DISK_FULL, r'pso_offline: [0-9.]+ GB free on the volume of [^\n]+, metal-tt needs about [0-9.]+ GB for [0-9]+ bases:'),
+ ('pso.merge', PSO_DISK_FULL, r'pso_offline: [0-9.]+ GB free before merging; need at least [0-9.]+ GB'),
+ ('pso.failed', PSO_DISK_FULL, r'pso_offline: metal-tt failed[^\n]+when it failed: likely out of disk space'),
('disk.full', DISK_FULL, r'No space left on device'),
('icloud.detritus', CLOUD_FOLDER, r'resource fork, Finder information, or similar detritus not allowed'),
('volume.swap', VOLUME_FORMAT, r"\[Errno 45\] Operation not supported: '[^']*\.app'"),
@@ -61,7 +65,7 @@ OVERRIDE_FLAGS = {
}
KINDS = [ROSETTA, TRANSLATOR, ZBIC, IOS_SDK, CLT_SELECTED, OTHER_METAL, SHADER_REGRESSION, DAMAGED_NSP, A32_PROGRAM,
- KEYS, SEVERAL_GAMES, NO_TITLE_ID, KEYS_OLD, DISK_FULL, CLOUD_FOLDER, VOLUME_FORMAT]
+ KEYS, SEVERAL_GAMES, NO_TITLE_ID, KEYS_OLD, DISK_FULL, PSO_DISK_FULL, CLOUD_FOLDER, VOLUME_FORMAT]
# The Swift app has four more rows that no log line sets (a drive that is gone, a signing team, a device transfer):
# they belong to the Mac launcher's install on a device and to /Volumes, which this front end does not have.
# cloudFolder is a row of the table, so it is here, but the check that stops a build before it starts is the Mac launcher's.
@@ -75,7 +79,7 @@ _A32_NAME = re.compile(r'^(?:\[RED\] )?(.+?) \([0-9A-Fa-f]{16}\) is a 32-bit ARM
class Failure:
kind: str
game: str | None = None # a32Program: the game, when the message names it
- detail: str | None = None # diskFull: the GB the script says it needs. noTitleID: the folder it names
+ detail: str | None = None # diskFull, psoDiskFull: the GB the script says it needs. noTitleID: the folder it names
@property
def what_key(self) -> str:
@@ -94,6 +98,9 @@ def _detail(kind: str, log: str) -> str | None:
if kind == DISK_FULL: # "less than 40 GB free on the volume of /Volumes/X/..."
m = re.search(r'less than ([0-9]+) GB free', log)
return m.group(1) if m else None
+ if kind == PSO_DISK_FULL:
+ m = re.search(r'pso_offline: [^\n]+(?:metal-tt needs about|before merging; need at least) ([0-9.]+) GB', log)
+ return m.group(1) if m else None
if kind == NO_TITLE_ID: # "no NSP with a readable title ID in /path"
m = re.search(r'(?m)no NSP with a readable title ID in (.+)$', log)
return m.group(1).strip() if m else None
diff --git a/frontend-qt/nspb_qt/model.py b/frontend-qt/nspb_qt/model.py
index 8f88100b..bebc6ac0 100644
--- a/frontend-qt/nspb_qt/model.py
+++ b/frontend-qt/nspb_qt/model.py
@@ -1600,6 +1600,8 @@ class Model(QObject):
return self.t('fail.a32Program.whatNamed', f.game)
if f.kind == bf.DISK_FULL and f.detail:
return self.t('fail.diskFull.whatNeeds', f.detail)
+ if f.kind == bf.PSO_DISK_FULL and f.detail:
+ return self.t('fail.psoDiskFull.whatNeeds', f.detail)
return self.t(f.what_key)
def _keys_readable(self) -> bool | None:
diff --git a/frontend-qt/tests/test_build_failure_hints.py b/frontend-qt/tests/test_build_failure_hints.py
index 3715e466..308de747 100644
--- a/frontend-qt/tests/test_build_failure_hints.py
+++ b/frontend-qt/tests/test_build_failure_hints.py
@@ -113,6 +113,20 @@ class Rows(unittest.TestCase):
log = 'skipping an empty file: a.nsp\n' + fixture('games.noTitleID')['text'] + '\n'
self.assertEqual(bf.classify(log).detail, fixture('games.noTitleID')['folder'])
+ def test_offline_pipelines_explain_low_space_and_keep_the_engine_estimate(self):
+ for pid, gb in (('pso.low', '3'), ('pso.merge', '2.5'), ('pso.failed', None)):
+ with self.subTest(pattern=pid):
+ failure = bf.classify(fixture(pid)['text'])
+ self.assertEqual(failure.kind, 'psoDiskFull')
+ self.assertEqual(failure.detail, gb)
+ self.assertIsNone(failure.flag)
+ for code in ('en', 'zh', 'sv', 'de', 'fr', 'it'):
+ for suffix in ('what', 'whatNeeds', 'next'):
+ self.assertTrue(TABLE[f'fail.psoDiskFull.{suffix}'][code], code)
+ self.assertIn('%@', TABLE['fail.psoDiskFull.whatNeeds'][code])
+ self.assertEqual(bf.classify('[RED] pso_offline: metal-tt failed for applegpu_g18p (exit 1): compiler error').kind, bf.UNKNOWN)
+ self.assertEqual(bf.classify('pso_offline: applegpu_g18p: batch 1/2: ready (compiled)').kind, bf.UNKNOWN)
+
def test_a_keys_file_that_cannot_be_read_is_known_from_the_file(self):
log = '[RED] nx_extract exit code 1 (full output: /w/extract.log)'
self.assertEqual(bf.classify(log, keys_readable=False).kind, bf.KEYS)
diff --git a/frontend/Sources/NXCore/BuildFailureClassifier.swift b/frontend/Sources/NXCore/BuildFailureClassifier.swift
index 3db76928..8c7ac099 100644
--- a/frontend/Sources/NXCore/BuildFailureClassifier.swift
+++ b/frontend/Sources/NXCore/BuildFailureClassifier.swift
@@ -1,7 +1,7 @@
import Foundation
package enum BuildFailureClassifier {
- /// One row per message of the script. The pattern is a stable part of the text in scripts/build_ipa_from_nsp.py,
+ /// One row per message of the script. The pattern is a stable part of the text in scripts/build_ipa_from_nsp.py, dm/gfx/tools/pso_offline.py,
/// dm/gfx/tools/own_compilers.py or dm/tools/nx_extract/Program.cs (regular expressions, searched in the log).
/// Frontend/Tests/Fixtures/build_failures.json holds the real message for every row, and a test checks that each
/// fragment is still in the engine's script, so a sync that rewords a message fails there instead of turning a
@@ -22,6 +22,9 @@ package enum BuildFailureClassifier {
("games.several", .severalGames, "more than one game in the folder"),
("games.noTitleID", .noTitleID, "no NSP with a readable title ID in "),
("disk.low", .diskFull, "less than [0-9]+ GB free on the volume of "),
+ ("pso.low", .psoDiskFull, "pso_offline: [0-9.]+ GB free on the volume of [^\\n]+, metal-tt needs about [0-9.]+ GB for [0-9]+ bases:"),
+ ("pso.merge", .psoDiskFull, "pso_offline: [0-9.]+ GB free before merging; need at least [0-9.]+ GB"),
+ ("pso.failed", .psoDiskFull, "pso_offline: metal-tt failed[^\\n]+when it failed: likely out of disk space"),
("disk.full", .diskFull, "No space left on device"),
("icloud.detritus", .cloudFolder, "resource fork, Finder information, or similar detritus not allowed"),
("volume.swap", .volumeFormat, "\\[Errno 45\\] Operation not supported: '[^']*\\.app'"),
@@ -61,6 +64,9 @@ package enum BuildFailureClassifier {
case .diskFull: // "less than 40 GB free on the volume of /Volumes/X/..."
guard let r = log.range(of: #"less than [0-9]+ GB free"#, options: .regularExpression) else { return nil }
return log[r].split(separator: " ").dropFirst(2).first.map(String.init)
+ case .psoDiskFull:
+ guard let r = log.range(of: #"pso_offline: [^\n]+(?:metal-tt needs about|before merging; need at least) [0-9.]+ GB"#, options: .regularExpression) else { return nil }
+ return log[r].split(separator: " ").dropLast().last.map(String.init)
case .noTitleID: // "no NSP with a readable title ID in /path"
guard let r = log.range(of: #"(?m)no NSP with a readable title ID in (.+)$"#, options: .regularExpression),
let at = log[r].range(of: " in ") else { return nil }
diff --git a/frontend/Sources/NXCore/BuildFailureKind.swift b/frontend/Sources/NXCore/BuildFailureKind.swift
index cfd6866b..693b460a 100644
--- a/frontend/Sources/NXCore/BuildFailureKind.swift
+++ b/frontend/Sources/NXCore/BuildFailureKind.swift
@@ -12,6 +12,8 @@ package enum BuildFailureKind: String, CaseIterable {
/// prod.keys lacks the master key the game needs: the keys are older than the game (nx_extract's exit code 6, seedds/nxnative 3104c0a).
case keysOld
/// The build's and the install's own steps.
+ /// The offline Metal archive ran out of space or stopped at its own space estimate.
+ case psoDiskFull
case diskFull, teamTaken, noSigningAccount, deviceTransfer
/// The build folder is in iCloud Drive or another cloud folder (CloudFolder.swift): the launcher stops before the build, and the
/// codesign line of xcodebuild is the same stop for a build that got past that check.
@@ -44,7 +46,7 @@ package enum BuildFailureKind: String, CaseIterable {
package struct BuildFailure: Equatable {
package var kind: BuildFailureKind
package var gameName: String? // a32Program: the game, when the message names it
- /// What the message adds to its row: the GB a full disk needs (diskFull), the drive's name (driveMissing), the folder
+ /// What the message adds to its row: the GB a full disk needs (diskFull, psoDiskFull), the drive's name (driveMissing), the folder
/// of "no NSP with a readable title ID" (noTitleID).
package var detail: String? = nil
diff --git a/frontend/Sources/NXModel/BuildStore+Failure.swift b/frontend/Sources/NXModel/BuildStore+Failure.swift
index 5448c7f2..9068ed8a 100644
--- a/frontend/Sources/NXModel/BuildStore+Failure.swift
+++ b/frontend/Sources/NXModel/BuildStore+Failure.swift
@@ -42,6 +42,7 @@ extension BuildStore {
if f.kind == .a32Program, let name = f.gameName { return String(format: t("fail.a32Program.whatNamed"), name) }
if f.kind == .driveMissing, let name = f.detail { return String(format: t("fail.driveMissing.whatNamed"), name) }
if f.kind == .diskFull, let gb = f.detail { return String(format: t("fail.diskFull.whatNeeds"), gb) }
+ if f.kind == .psoDiskFull, let gb = f.detail { return String(format: t("fail.psoDiskFull.whatNeeds"), gb) }
return t(f.kind.whatKey)
}
diff --git a/frontend/Tests/Fixtures/build_failures.json b/frontend/Tests/Fixtures/build_failures.json
index da963468..be27acfd 100644
--- a/frontend/Tests/Fixtures/build_failures.json
+++ b/frontend/Tests/Fixtures/build_failures.json
@@ -114,6 +114,29 @@
"fragment": "No space left on device",
"text": "[RED] OSError: [Errno 28] No space left on device"
},
+ {
+ "id": "pso.low",
+ "kind": "psoDiskFull",
+ "source": "dm/gfx/tools/pso_offline.py",
+ "fragment": "metal-tt needs about {need / 2**30:.0f} GB",
+ "text": "[RED] pso_offline: 0.4 GB free on the volume of /Volumes/Games/0100F2C0115B6000_build/pso/work, metal-tt needs about 3 GB for 33858 bases: free some space and run again",
+ "gb": "3"
+ },
+ {
+ "id": "pso.merge",
+ "kind": "psoDiskFull",
+ "source": "dm/gfx/tools/pso_offline.py",
+ "fragment": "GB free before merging; need at least",
+ "text": "[RED] pso_offline: 0.7 GB free before merging; need at least 2.5 GB",
+ "gb": "2.5"
+ },
+ {
+ "id": "pso.failed",
+ "kind": "psoDiskFull",
+ "source": "dm/gfx/tools/pso_offline.py",
+ "fragment": "when it failed: likely out of disk space",
+ "text": "[RED] pso_offline: metal-tt failed for applegpu_g18p (exit 1) (0.3 GB free on the volume of /Volumes/Games/0100F2C0115B6000_build/pso/work when it failed: likely out of disk space): compiler output\n[RED] pso_offline exit code 1"
+ },
{
"id": "icloud.detritus",
"kind": "cloudFolder",
diff --git a/frontend/Tests/NX2AppleTests/BuildFailureRowsTests.swift b/frontend/Tests/NX2AppleTests/BuildFailureRowsTests.swift
index b1e20dc2..7dd7a57e 100644
--- a/frontend/Tests/NX2AppleTests/BuildFailureRowsTests.swift
+++ b/frontend/Tests/NX2AppleTests/BuildFailureRowsTests.swift
@@ -88,6 +88,27 @@ import NXModel
XCTAssertTrue(m.failureWhat(f).contains("“Games”"))
}
+ func testOfflinePipelinesExplainLowSpaceAndKeepTheEngineEstimate() throws {
+ let stores = LauncherStores(defaults: testDefaults)
+ stores.build.lang = .en
+ for (id, gb) in [("pso.low", "3"), ("pso.merge", "2.5"), ("pso.failed", nil)] {
+ let message = try fixture(id).text
+ let failure = BuildFailureClassifier.classify(message)
+ XCTAssertEqual(failure.kind.rawValue, "psoDiskFull", id)
+ XCTAssertEqual(failure.detail, gb, id)
+ if let gb { XCTAssertTrue(stores.build.failureWhat(failure).contains(gb + " GB"), id) }
+ }
+ for lang in Lang.all {
+ stores.build.lang = lang
+ let failure = BuildFailureClassifier.classify(try fixture("pso.low").text)
+ XCTAssertTrue(stores.build.failureWhat(failure).contains("3"), lang.code)
+ XCTAssertFalse(stores.build.failureWhat(failure).contains("%@"), lang.code)
+ XCTAssertNotEqual(stores.build.t(failure.kind.nextKey), failure.kind.nextKey, lang.code)
+ }
+ XCTAssertEqual(BuildFailureClassifier.classify("[RED] pso_offline: metal-tt failed for applegpu_g18p (exit 1): compiler error").kind, .unknown)
+ XCTAssertEqual(BuildFailureClassifier.classify("pso_offline: applegpu_g18p: batch 1/2: ready (compiled)").kind, .unknown)
+ }
+
func testTheInstallStepsThatFailedBecomeRows() {
let taken = "error: Failed to register bundle identifier. The app identifier \"org.nxnative.x\" cannot be registered to your development team."
XCTAssertEqual(BuildFailureClassifier.classifyInstall(.sign, error: taken, teamListed: true)?.kind, .teamTaken)
diff --git a/frontend/Tests/NX2AppleTests/BuildFailureTests.swift b/frontend/Tests/NX2AppleTests/BuildFailureTests.swift
index c028f587..bac62088 100644
--- a/frontend/Tests/NX2AppleTests/BuildFailureTests.swift
+++ b/frontend/Tests/NX2AppleTests/BuildFailureTests.swift
@@ -297,6 +297,22 @@ import NXModel
BuildFailureCard(m: m).environmentObject(mStores.localizer).padding(24)
})
}
+ // Replay the real low-space stop through the classifier, including the raw-note fallback before a hint exists.
+ for lang in Lang.all {
+ let stores = LauncherStores(defaults: testDefaults)
+ let build = stores.build
+ build.lang = lang
+ build.doneNote = try XCTUnwrap(fixtures().first { $0.id == "pso.low" }).text
+ build.logTail = build.doneNote
+ build.noteFailure()
+ try capture("pso-low-\(lang.code)", width: 760, height: 360, ZStack(alignment: .top) {
+ LauncherPalette.background
+ VStack(alignment: .leading, spacing: 20) {
+ ActionCard(build: build, dependencies: stores.dependencies, repo: stores.repo)
+ BuildFailureCard(m: build)
+ }.environmentObject(stores.localizer).padding(24)
+ })
+ }
let mStores = LauncherStores(defaults: testDefaults); let m = mStores.build
m.lang = .en
MainActor.assumeIsolated { mStores.dependencies.checked = true }
diff --git a/frontend/l10n/de.json b/frontend/l10n/de.json
index bbfa64a4..e5fae3f7 100644
--- a/frontend/l10n/de.json
+++ b/frontend/l10n/de.json
@@ -557,6 +557,9 @@
"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.otherMetal.what": "Der Metal-Compiler dieses Macs ist nicht der, mit dem die Shader getestet wurden.",
"fail.override.note": "Trotzdem bauen: Dieser Build ergänzt %@ (bestätigt, nicht gesichert)",
+ "fail.psoDiskFull.next": "Gib Speicherplatz auf dem Laufwerk frei, auf dem der Build-Ordner liegt, oder wähle einen Build-Ordner auf einem anderen Laufwerk. Baue dann erneut.",
+ "fail.psoDiskFull.what": "Es ist nicht genug Speicherplatz frei, um das Metal-Shaderarchiv zu erstellen.",
+ "fail.psoDiskFull.whatNeeds": "Das Metal-Shaderarchiv benötigt etwa %@ GB freien Speicherplatz auf dem Build-Laufwerk.",
"fail.retry": "Erneut versuchen",
"fail.rosetta.next": "NS Port Builder verwendet sein mitgeliefertes Python, wenn es eines hat. Falls dieser Build ein anderes benutzt hat, entferne das Intel-venv in ~/Library/Application Support/NS Port Builder/venv und klicke auf „Erneut prüfen“.",
"fail.rosetta.what": "Das Build-Skript lief mit einem Intel-Python unter Rosetta, daher würden auch die Werkzeuge, die es startet, als Intel-Code laufen.",
diff --git a/frontend/l10n/en.json b/frontend/l10n/en.json
index 8228e938..e0eec998 100644
--- a/frontend/l10n/en.json
+++ b/frontend/l10n/en.json
@@ -555,6 +555,9 @@
"fail.otherMetal.risk": "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.otherMetal.what": "This Mac's Metal compiler is not the one the shaders were tested with.",
"fail.override.note": "Build anyway: this build adds %@ (confirmed, not saved)",
+ "fail.psoDiskFull.next": "Free up space on the drive that holds the build folder, or choose a build folder on another drive. Then build again.",
+ "fail.psoDiskFull.what": "There is not enough free space to build the Metal shader archive.",
+ "fail.psoDiskFull.whatNeeds": "The Metal shader archive needs about %@ GB of free space on the build drive.",
"fail.retry": "Try again",
"fail.rosetta.next": "NS Port Builder uses its bundled Python when it has one. If this build used another, remove the Intel venv in ~/Library/Application Support/NS Port Builder/venv and press Check again.",
"fail.rosetta.what": "The build script ran with an Intel Python under Rosetta, so the tools it starts would run as Intel code too.",
diff --git a/frontend/l10n/fr.json b/frontend/l10n/fr.json
index b62e362e..335860c2 100644
--- a/frontend/l10n/fr.json
+++ b/frontend/l10n/fr.json
@@ -550,6 +550,9 @@
"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.otherMetal.what": "Le compilateur Metal de ce Mac n’est pas celui avec lequel les shaders ont été testés.",
"fail.override.note": "Compiler quand même : cette compilation ajoute %@ (confirmé, non enregistré)",
+ "fail.psoDiskFull.next": "Libérez de l’espace sur le disque qui contient le dossier de compilation, ou choisissez un dossier de compilation sur un autre disque. Puis compilez à nouveau.",
+ "fail.psoDiskFull.what": "Il n’y a pas assez d’espace libre pour créer l’archive des shaders Metal.",
+ "fail.psoDiskFull.whatNeeds": "L’archive des shaders Metal nécessite environ %@ Go d’espace libre sur le disque de compilation.",
"fail.retry": "Réessayer",
"fail.rosetta.next": "NS Port Builder utilise son Python intégré quand il en a un. Si cette compilation en a utilisé un autre, supprimez le venv Intel dans ~/Library/Application Support/NS Port Builder/venv et appuyez sur Vérifier à nouveau.",
"fail.rosetta.what": "Le script de compilation s’est exécuté avec un Python Intel sous Rosetta : les outils qu’il lance tourneraient donc aussi en code Intel.",
diff --git a/frontend/l10n/it.json b/frontend/l10n/it.json
index 1e87c4df..80f6eff4 100644
--- a/frontend/l10n/it.json
+++ b/frontend/l10n/it.json
@@ -556,6 +556,9 @@
"fail.otherMetal.risk": "Questa build usa un compilatore Metal con cui nessuno ha testato gli shader. Le immagini potrebbero risultare errate, il risultato non è testato e non è supportato. La scelta vale solo per questa build e non viene salvata.",
"fail.otherMetal.what": "Il compilatore Metal di questo Mac non è quello con cui sono stati testati gli shader.",
"fail.override.note": "Compila comunque: questa build aggiunge %@ (confermato, non salvato)",
+ "fail.psoDiskFull.next": "Libera spazio sul disco che contiene la cartella di build, oppure scegli una cartella di build su un altro disco. Poi compila di nuovo.",
+ "fail.psoDiskFull.what": "Lo spazio libero non basta per creare l’archivio degli shader Metal.",
+ "fail.psoDiskFull.whatNeeds": "L’archivio degli shader Metal richiede circa %@ GB di spazio libero sul disco della build.",
"fail.retry": "Riprova",
"fail.rosetta.next": "NS Port Builder usa il proprio Python incluso quando ne ha uno. Se questa build ne ha usato un altro, rimuovi il venv Intel in ~/Library/Application Support/NS Port Builder/venv e premi Verifica di nuovo.",
"fail.rosetta.what": "Lo script di build è stato eseguito con un Python Intel sotto Rosetta, quindi anche gli strumenti che avvia verrebbero eseguiti come codice Intel.",
diff --git a/frontend/l10n/sv.json b/frontend/l10n/sv.json
index 54e356ce..cd0d5f1c 100644
--- a/frontend/l10n/sv.json
+++ b/frontend/l10n/sv.json
@@ -407,6 +407,9 @@
"fail.noTitleID.next": "Byt namn på filen så att den innehåller sitt titel-ID, till exempel Game Name [0100XXXXXXXXXXXX].nsp, med ID:t för just det paketet, eftersom basspelet, en uppdatering och DLC har varsitt. Bygg sedan igen.\nDet kan också vara att mappen saknar .nsp-, .xci-, .nsz- eller .xcz-filer (delade eller arkiverade delar som .00 eller .rar läses inte), eller att filerna ligger kvar i iCloud och inte är nedladdade. Välj Visa mapp för att kontrollera.",
"fail.noTitleID.what": "Inget paket i mappen har ett titel-ID som bygget kan läsa: inget har en biljett i paketet och inget har [titel-ID] i filnamnet.",
"fail.openXcode": "Öppna Xcode",
+ "fail.psoDiskFull.next": "Frigör utrymme på disken som innehåller byggmappen, eller välj en byggmapp på en annan disk. Bygg sedan igen.",
+ "fail.psoDiskFull.what": "Det finns för lite ledigt utrymme för att bygga Metal-shaderarkivet.",
+ "fail.psoDiskFull.whatNeeds": "Metal-shaderarkivet behöver ungefär %@ GB ledigt utrymme på byggdisken.",
"fail.retry": "Försök igen",
"fail.severalGames.next": "Ett bygge tar ett spel per mapp. Flytta de andra spelen ur mappen eller lägg det här spelets filer i en egen mapp. Bygg sedan igen.",
"fail.severalGames.what": "Mappen innehåller fler än ett spel.",
diff --git a/frontend/l10n/zh.json b/frontend/l10n/zh.json
index 6a3d0cb2..507a3f7b 100644
--- a/frontend/l10n/zh.json
+++ b/frontend/l10n/zh.json
@@ -556,6 +556,9 @@
"fail.otherMetal.risk": "会用没有测试过的 Metal 编译器构建。画面可能出错,结果也没有人测试过,不受支持。这个选择只对这一次构建有效,不会保存。",
"fail.otherMetal.what": "这台 Mac 的 Metal 编译器不是着色器测试时用的那一个。",
"fail.override.note": "仍然构建:这一次构建加上 %@(已确认,不会保存)",
+ "fail.psoDiskFull.next": "请释放存放构建文件夹的硬盘空间,或选择另一块硬盘上的构建文件夹,然后重新构建。",
+ "fail.psoDiskFull.what": "可用空间不足,无法构建 Metal 着色器归档。",
+ "fail.psoDiskFull.whatNeeds": "Metal 着色器归档在构建所在的硬盘上需要约 %@ GB 可用空间。",
"fail.retry": "重试",
"fail.rosetta.next": "NS Port Builder 有自带的 Python 时会优先使用它。如果这次用的是别的,请删除 ~/Library/Application Support/NS Port Builder/venv 里的 Intel 虚拟环境,再点「重新检测」。",
"fail.rosetta.what": "构建脚本用的是在 Rosetta 下运行的 Intel 版 Python,它启动的工具也会按 Intel 代码运行。",