diff --git a/Sources/XCLogParser/parser/IDEActivityLogSection+Parsing.swift b/Sources/XCLogParser/parser/IDEActivityLogSection+Parsing.swift index 189a1eb..1a3651c 100644 --- a/Sources/XCLogParser/parser/IDEActivityLogSection+Parsing.swift +++ b/Sources/XCLogParser/parser/IDEActivityLogSection+Parsing.swift @@ -42,7 +42,9 @@ 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 isFlatten = subSections.contains { $0.getTargetFromCommand() != nil } + let firstElements = subSections.prefix(50) + let isFlatten = firstElements.contains { $0.getTargetFromCommand() != nil } + if isFlatten { let mainTarget = "$MainTarget" let targetsDictionary = subSections.reduce(