Skip to content

Commit 85fb8da

Browse files
committed
Adopt sha256Checksum property in PIF.sign(_:)
1 parent 8512a88 commit 85fb8da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/XCBuildSupport/PIF.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1205,7 +1205,7 @@ extension PIF {
12051205
func sign<T: PIFSignableObject & Encodable>(_ obj: T) throws {
12061206
let signatureContent = try encoder.encode(obj)
12071207
let bytes = ByteString(signatureContent)
1208-
obj.signature = SHA256().hash(bytes).hexadecimalRepresentation
1208+
obj.signature = bytes.sha256Checksum
12091209
}
12101210

12111211
let projects = workspace.projects

0 commit comments

Comments
 (0)