Skip to content

Commit eb30537

Browse files
authored
Merge pull request #266 from p-x9/feature/fat-archive-check
Add doc comment note about archive payloads in fat binaries
2 parents a487cfb + 040d239 commit eb30537

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Sources/MachOKit/FatFile.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,11 @@ extension FatFile {
127127
/// Each Mach-O file is initialized using the architecture's
128128
/// file offset within the fat container.
129129
///
130+
/// - Important: Not every architecture entry in a fat binary is
131+
/// guaranteed to contain a directly parseable Mach-O
132+
/// image. In some cases, the embedded payload may be
133+
/// an archive container instead.
134+
///
130135
/// - Returns: An array of `MachOFile` instances, one for each
131136
/// architecture in the fat binary.
132137
/// - Throws: Any error thrown while initializing a `MachOFile`.

0 commit comments

Comments
 (0)