Cross-platform Xcode replacement. Build and deploy iOS apps with SwiftPM on Linux, Windows, macOS.
planner: skip macro targets (#208)
Alex Pawlowski491fe2fc2a39
diff --git a/Sources/PackLib/Planner.swift b/Sources/PackLib/Planner.swiftindex f718769..df2f012 100644--- a/Sources/PackLib/Planner.swift+++ b/Sources/PackLib/Planner.swift@@ -137,6 +137,10 @@ public struct Planner: Sendable {throw StringError("Could not find target '\(targetName)' in package '\(targetPackage.name)'")}guard visited.insert(targetName).inserted else { continue }+ // Macro targets are compiler plugins that run on the host, not code+ // linked into the iOS app. Skip them to avoid resolving their+ // host-only dependencies (e.g. SwiftSyntaxMacros).+ if target.type == "macro" { continue }if target.moduleType == "BinaryTarget" {resources.append(.binaryTarget(name: targetName))}@@ -408,6 +412,7 @@ private struct PackageDump: Decodable {struct Target: Decodable {let name: Stringlet moduleType: String+ let type: String?let productDependencies: [String]?let targetDependencies: [String]?let resources: [Resource]?