Skip to content

Commit

Permalink
[Release Tooling] Validation workaround for Xcode 15.3b3 (#12439)
Browse files Browse the repository at this point in the history
  • Loading branch information
ncooke3 authored Feb 28, 2024
1 parent 1f69945 commit 4065853
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion ReleaseTooling/Sources/ZipBuilder/FrameworkBuilder.swift
Original file line number Diff line number Diff line change
Expand Up @@ -673,7 +673,20 @@ struct FrameworkBuilder {
fatalError("Could not copy fat binary to framework directory for \(framework): \(error)")
}
do {
try fileManager.copyItem(at: infoPlist, to: infoPlistDestination)
// The minimum OS version is set to 100.0 to work around b/327020913.
// TODO(ncooke3): Revert this logic once b/327020913 is fixed.
var plistDictionary = try PropertyListSerialization.propertyList(
from: Data(contentsOf: infoPlist), format: nil
) as! [AnyHashable: Any]
plistDictionary["MinimumOSVersion"] = "100.0"

let updatedPlistData = try PropertyListSerialization.data(
fromPropertyList: plistDictionary,
format: .binary,
options: 0
)

try updatedPlistData.write(to: infoPlistDestination)
} catch {
// The Catalyst and macos Info.plist's are in another location. Ignore failure.
}
Expand Down

0 comments on commit 4065853

Please sign in to comment.