Skip to content

Commit 4065853

Browse files
authored
[Release Tooling] Validation workaround for Xcode 15.3b3 (#12439)
1 parent 1f69945 commit 4065853

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

ReleaseTooling/Sources/ZipBuilder/FrameworkBuilder.swift

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -673,7 +673,20 @@ struct FrameworkBuilder {
673673
fatalError("Could not copy fat binary to framework directory for \(framework): \(error)")
674674
}
675675
do {
676-
try fileManager.copyItem(at: infoPlist, to: infoPlistDestination)
676+
// The minimum OS version is set to 100.0 to work around b/327020913.
677+
// TODO(ncooke3): Revert this logic once b/327020913 is fixed.
678+
var plistDictionary = try PropertyListSerialization.propertyList(
679+
from: Data(contentsOf: infoPlist), format: nil
680+
) as! [AnyHashable: Any]
681+
plistDictionary["MinimumOSVersion"] = "100.0"
682+
683+
let updatedPlistData = try PropertyListSerialization.data(
684+
fromPropertyList: plistDictionary,
685+
format: .binary,
686+
options: 0
687+
)
688+
689+
try updatedPlistData.write(to: infoPlistDestination)
677690
} catch {
678691
// The Catalyst and macos Info.plist's are in another location. Ignore failure.
679692
}

0 commit comments

Comments
 (0)