feat(RES-33): Generation de l'architecture compatible Swift 6 (#13)
Some checks failed
gitea-openium/resgen.swift/pipeline/head There was a failure building this commit

Reviewed-on: #13
This commit is contained in:
2025-04-30 10:22:34 +02:00
parent 57cedd37bb
commit 8442c89944
3 changed files with 3 additions and 5 deletions

View File

@ -137,9 +137,7 @@ class StringsFileGenerator {
let json = try encoder.encode(rootObject)
if let jsonString = String(data: json, encoding: .utf8) {
return jsonString
}
return String(decoding: json, as: UTF8.self)
} catch {
debugPrint("Failed to encode: \(error)")