fix(artifacts): trace .app-named files standalone and flag empty FAT tables
- Treat the target as a bundle only when it was opened from an app bundle directory (it carries the bundle's Info.plist); a regular Mach-O file whose name ends in .app is traced from its parent directory. - Classify a FAT header with zero architecture records as malformed, so it stays visible in unclassified roots and coverage. - State that dylib compatibility versions are not compared. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
19f01e2610
commit
ef245c0bd0
@@ -246,9 +246,12 @@ class ArtifactClient implements AnalysisClient {
|
||||
"unavailable",
|
||||
"trace_dylib_resolution requires an active Mach-O or .app bundle target",
|
||||
);
|
||||
const bundle = this.target.sourcePath?.toLowerCase().endsWith(".app")
|
||||
? this.target.sourcePath
|
||||
: undefined;
|
||||
// Only a target opened from an app bundle directory carries its Info.plist;
|
||||
// a regular file whose name ends in .app is a standalone image.
|
||||
const bundle =
|
||||
this.target.bundleInfoPlist === undefined
|
||||
? undefined
|
||||
: this.target.sourcePath;
|
||||
const result = await traceDylibResolution({
|
||||
rootPath: bundle ?? dirname(this.target.path),
|
||||
targetPath: this.target.path,
|
||||
|
||||
Reference in New Issue
Block a user