diff --git a/Sources/SwiftBuildSupport/PackagePIFBuilder.swift b/Sources/SwiftBuildSupport/PackagePIFBuilder.swift index 269a941787b..47026ac3015 100644 --- a/Sources/SwiftBuildSupport/PackagePIFBuilder.swift +++ b/Sources/SwiftBuildSupport/PackagePIFBuilder.swift @@ -392,8 +392,10 @@ public final class PackagePIFBuilder { init(from pifProductType: ProjectModel.Target.ProductType) { self = switch pifProductType { case .application: .application + case .commonStaticArchive: .staticArchive case .staticArchive: .staticArchive case .commonObject: .commonObject + case .objectFile: .commonObject case .dynamicLibrary: .dynamicLibrary case .framework: .framework case .executable: .executable diff --git a/Sources/SwiftBuildSupport/PackagePIFProjectBuilder+Modules.swift b/Sources/SwiftBuildSupport/PackagePIFProjectBuilder+Modules.swift index 020cddf85a9..d3af792e33d 100644 --- a/Sources/SwiftBuildSupport/PackagePIFProjectBuilder+Modules.swift +++ b/Sources/SwiftBuildSupport/PackagePIFProjectBuilder+Modules.swift @@ -263,7 +263,10 @@ extension PackagePIFProjectBuilder { productType = .framework } - case .staticLibrary, .executable: + case .staticLibrary: + productType = .commonStaticArchive + + case .executable: productType = .commonObject case .macro: