Merge pull request #870 from morluto/fix/keyed-archive-uid-named-keys

fix(artifacts): read keyed archive dictionaries keyed UID as dictionaries
This commit is contained in:
Kaoru0822
2026-10-06 23:03:09 -07:00
committed by GitHub
4 changed files with 87 additions and 11 deletions
@@ -0,0 +1,7 @@
import Foundation
// Encode the root under a key that matches the UID marker spelling.
let archiver = NSKeyedArchiver(requiringSecureCoding: false)
archiver.encode("payload" as NSString, forKey: "UID")
archiver.finishEncoding()
try archiver.encodedData.write(to: URL(fileURLWithPath: CommandLine.arguments[1]))