Skip to content

Commit b731c23

Browse files
authored
Merge pull request #2 from popsa-hq/exclude-check-in-xcframework
Exclude XCFramework From Missing String Check
2 parents c3764f0 + 3c999e5 commit b731c23

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

main.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@ var stringsUrls: [URL] = []
2020
var stringsDictUrls: [URL] = []
2121

2222
for case let url as URL in enumerator where try url.resourceValues(forKeys: [.isRegularFileKey]).isRegularFile == true {
23+
// Skip files inside .xcframework directories
24+
if url.pathComponents.contains(where: { $0.hasSuffix(".xcframework") }) {
25+
continue
26+
}
27+
2328
if url.pathExtension == "txt" && url.deletingPathExtension().lastPathComponent == "ignored_translation_keys" {
2429
exceptions = try parseExceptionKeys(at: url)
2530
}

0 commit comments

Comments
 (0)