Skip to content

Commit f369be5

Browse files
committed
fixing #2
1 parent 3b5b6e1 commit f369be5

2 files changed

Lines changed: 9 additions & 3 deletions

File tree

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Changelog
2+
3+
## [1.2.1] - 2026-05-26
4+
5+
### Fixed
6+
- **IPA parsing bug**: Fixed misleading "Failed to unzip IPA file" error when `/usr/bin/unzip -v` command succeeds but UTF-8 string conversion of output fails. Changed from `guard let String(data:outputData, encoding: .utf8)` to `String(data:outputData, encoding: .utf8) ?? String(decoding:outputData, as: UTF8.self)` in `IPAParser.generateReport()`. This ensures reliable output reading even with certain IPA file formats.
7+
s

Sources/Caliper/Parsers/IPAParser.swift

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,8 @@ struct IPAParser {
3030
// Clean up handler
3131
pipe.fileHandleForReading.readabilityHandler = nil
3232

33-
guard let output = String(data: outputData, encoding: .utf8) else {
34-
throw CaliperError.unzipFailed
35-
}
33+
let output = String(data: outputData, encoding: .utf8)
34+
?? String(decoding: outputData, as: UTF8.self)
3635

3736
return parseUnzipOutput(output)
3837
}

0 commit comments

Comments
 (0)