From a4758a3c1a74a7dba4dd71b43cbd2deb39555ce6 Mon Sep 17 00:00:00 2001 From: Ilya Kharlamov Date: Tue, 4 Feb 2025 12:05:59 +0300 Subject: [PATCH 1/2] fix: Increase the number of section to detect targets --- Sources/XCLogParser/parser/IDEActivityLogSection+Parsing.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/XCLogParser/parser/IDEActivityLogSection+Parsing.swift b/Sources/XCLogParser/parser/IDEActivityLogSection+Parsing.swift index b16a7b8..b21b2a2 100644 --- a/Sources/XCLogParser/parser/IDEActivityLogSection+Parsing.swift +++ b/Sources/XCLogParser/parser/IDEActivityLogSection+Parsing.swift @@ -42,7 +42,7 @@ extension IDEActivityLogSection { func groupedByTarget() -> IDEActivityLogSection { // The only way to know if the structure is flatten is to check the first elements // for the `(in target 'ABC' from project Project)` string - let firstElements = subSections.prefix(15) // we only analyze up to the first 15 subsections + let firstElements = subSections.prefix(25) // we only analyze up to the first 15 subsections let isFlatten = firstElements.contains { $0.getTargetFromCommand() != nil } if isFlatten { let mainTarget = "$MainTarget" From 2a4ca96ac876e73d651a27d1ee12201d06194105 Mon Sep 17 00:00:00 2001 From: Ilya Kharlamov Date: Tue, 4 Feb 2025 19:02:56 +0300 Subject: [PATCH 2/2] fix: Increase the number of section to detect targets to 50 fix: Increase the number of section to detect targets to 50 --- Sources/XCLogParser/parser/IDEActivityLogSection+Parsing.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/XCLogParser/parser/IDEActivityLogSection+Parsing.swift b/Sources/XCLogParser/parser/IDEActivityLogSection+Parsing.swift index b21b2a2..f2ceaa7 100644 --- a/Sources/XCLogParser/parser/IDEActivityLogSection+Parsing.swift +++ b/Sources/XCLogParser/parser/IDEActivityLogSection+Parsing.swift @@ -42,7 +42,7 @@ extension IDEActivityLogSection { func groupedByTarget() -> IDEActivityLogSection { // The only way to know if the structure is flatten is to check the first elements // for the `(in target 'ABC' from project Project)` string - let firstElements = subSections.prefix(25) // we only analyze up to the first 15 subsections + let firstElements = subSections.prefix(50) let isFlatten = firstElements.contains { $0.getTargetFromCommand() != nil } if isFlatten { let mainTarget = "$MainTarget"