File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed
ReleaseTooling/Sources/ZipBuilder Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -673,7 +673,20 @@ struct FrameworkBuilder {
673
673
fatalError ( " Could not copy fat binary to framework directory for \( framework) : \( error) " )
674
674
}
675
675
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)
677
690
} catch {
678
691
// The Catalyst and macos Info.plist's are in another location. Ignore failure.
679
692
}
You can’t perform that action at this time.
0 commit comments