From b788cb529d13863155c6618a646057916fcdc41c Mon Sep 17 00:00:00 2001 From: Geoffrey Foster Date: Tue, 2 Jul 2019 12:49:00 -0400 Subject: [PATCH] missed encoding a PBXObject --- Sources/XcodeProject/Objects/References/XCVersionGroup.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/XcodeProject/Objects/References/XCVersionGroup.swift b/Sources/XcodeProject/Objects/References/XCVersionGroup.swift index f6171b8..6126d32 100644 --- a/Sources/XcodeProject/Objects/References/XCVersionGroup.swift +++ b/Sources/XcodeProject/Objects/References/XCVersionGroup.swift @@ -46,7 +46,7 @@ public final class XCVersionGroup: PBXGroup { public override func encode(to encoder: Encoder) throws { try super.encode(to: encoder) var container = encoder.container(keyedBy: CodingKeys.self) - try container.encodeIfPresent(currentVersion?.plistID, forKey: .currentVersion) + try container.encodeIfPresent(currentVersion, forKey: .currentVersion) try container.encodeIfPresent(versionGroupType, forKey: .versionGroupType) } }