Skip to content

Commit f8641bb

Browse files
author
David Scheutz
committed
skip build directory for codegen input files
1 parent d5c8fd7 commit f8641bb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Plugins/SwiftCopyCodeGeneratorPlugin/SwiftCopyCodeGeneratorPlugin.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ extension SwiftCopyCodeGeneratorPlugin: XcodeBuildToolPlugin {
2929
.filter { !$0.path.string.contains(root.appending(subpath: target.displayName).string) }
3030
.forEach {
3131
let new = $0.path.string.replacingOccurrences(of: "\(context.xcodeProject.directory.string)/", with: "")
32+
33+
// skip build folder
34+
guard !new.hasPrefix("build") else { return }
35+
3236
if new.contains("/") {
3337
paths.insert(String(new.split(separator: "/")[0]))
3438
} else {

0 commit comments

Comments
 (0)