Skip to content
This repository was archived by the owner on Feb 26, 2026. It is now read-only.

Commit 9c74696

Browse files
authored
fix: encoding of XCFrameworkInfoPlist (#121)
* fix: Fix encoding of XCFrameworkInfoPlist * feat: add unit tests for XCFrameworkInfoPlist
1 parent c2485e8 commit 9c74696

2 files changed

Lines changed: 15 additions & 0 deletions

File tree

Sources/XcodeGraph/Models/XCFrameworkInfoPlist.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ public struct XCFrameworkInfoPlist: Codable, Hashable, Equatable, Sendable {
5050
try container.encode(path, forKey: .path)
5151
try container.encode(mergeable, forKey: .mergeable)
5252
try container.encode(architectures, forKey: .architectures)
53+
try container.encode(platform, forKey: .platform)
5354
}
5455

5556
public init(
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import Foundation
2+
import Path
3+
import XCTest
4+
@testable import XcodeGraph
5+
6+
final class XCFrameworkInfoPlistTests: XCTestCase {
7+
func test_codable() throws {
8+
// Given
9+
let subject: XCFrameworkInfoPlist = .test()
10+
11+
// Then
12+
XCTAssertCodable(subject)
13+
}
14+
}

0 commit comments

Comments
 (0)