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 authored and GitHub committed 2026-10-06 23:03:09 -07:00
commit cfd2b0c75d
4 files changed
+87 -11

No files matched your search

@@ -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]))