Skip to content

Commit a6da5b0

Browse files
authored
Fix module name for xcframework (#1381)
1 parent fd985a3 commit a6da5b0

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Sourcery/Configuration.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ public struct Project {
2222

2323
public let path: Path
2424
public let swiftInterfacePath: Path
25+
public let module: String
2526

2627
public init(rawPath: String, relativePath: Path) throws {
2728
let frameworkRelativePath = Path(rawPath, relativeTo: relativePath)
@@ -46,6 +47,7 @@ public struct Project {
4647
}
4748
self.path = frameworkRelativePath
4849
self.swiftInterfacePath = interfacePath
50+
self.module = moduleName
4951
}
5052
}
5153

Sourcery/Sourcery.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ public class Sourcery {
132132
}
133133
for framework in target.xcframeworks {
134134
paths.append(framework.swiftInterfacePath)
135-
modules.append(target.module)
135+
modules.append(framework.module)
136136
}
137137
}
138138
}

0 commit comments

Comments
 (0)