@@ -649,14 +649,14 @@ public enum PIF {
649
649
let type = try container. decode ( String . self, forKey: . type)
650
650
651
651
let buildPhases : [ BuildPhase ]
652
- let impartedBuildProperties : BuildSettings
652
+ let impartedBuildProperties : ImpartedBuildProperties
653
653
654
654
if type == " packageProduct " {
655
655
self . productType = . packageProduct
656
656
self . productName = " "
657
657
let fwkBuildPhase = try container. decodeIfPresent ( FrameworksBuildPhase . self, forKey: . frameworksBuildPhase)
658
658
buildPhases = fwkBuildPhase. map { [ $0] } ?? [ ]
659
- impartedBuildProperties = BuildSettings ( )
659
+ impartedBuildProperties = ImpartedBuildProperties ( settings : BuildSettings ( ) )
660
660
} else if type == " standard " {
661
661
self . productType = try container. decode ( ProductType . self, forKey: . productTypeIdentifier)
662
662
@@ -673,7 +673,7 @@ public enum PIF {
673
673
return try BuildPhase . decode ( container: & buildPhasesContainer, type: type)
674
674
}
675
675
676
- impartedBuildProperties = try container. decode ( BuildSettings . self, forKey: . impartedBuildProperties)
676
+ impartedBuildProperties = try container. decode ( ImpartedBuildProperties . self, forKey: . impartedBuildProperties)
677
677
} else {
678
678
throw InternalError ( " Unhandled target type \( type) " )
679
679
}
@@ -684,7 +684,7 @@ public enum PIF {
684
684
buildConfigurations: buildConfigurations,
685
685
buildPhases: buildPhases,
686
686
dependencies: dependencies,
687
- impartedBuildSettings: impartedBuildProperties,
687
+ impartedBuildSettings: impartedBuildProperties. buildSettings ,
688
688
signature: nil
689
689
)
690
690
}
0 commit comments