From e3d58890e96aa3ac9b4df134784f9b4893528391 Mon Sep 17 00:00:00 2001 From: Ankit Aggarwal Date: Wed, 15 Apr 2020 18:38:11 -0700 Subject: [PATCH] [XCBuildSupport] Fix typo in Reference decoder code --- Sources/XCBuildSupport/PIF.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/XCBuildSupport/PIF.swift b/Sources/XCBuildSupport/PIF.swift index 5906c79999d..cea4a3ab876 100644 --- a/Sources/XCBuildSupport/PIF.swift +++ b/Sources/XCBuildSupport/PIF.swift @@ -820,7 +820,7 @@ public enum PIF { } else if container.allKeys.contains(.targetReference) { let targetGUIDString = try container.decode(GUID.self, forKey: .targetReference) let targetGUID = String(targetGUIDString.dropLast("\(schemaVersion)".count + 1)) - reference = .file(guid: targetGUID) + reference = .target(guid: targetGUID) } else { fatalError("Expected \(CodingKeys.fileReference) or \(CodingKeys.targetReference) in the keys") }