Trace Dylib Resolution
trace_dylib_resolutionTrace how dyld resolves Mach-O dylib loads for an executable or app bundle, expanding @executable_path, @loader_path, and @rpath to report candidate outcomes and unresolved required loads.
Instructions
Trace how dyld would resolve each Mach-O dylib load for the active Mach-O, or for every executable in the active .app bundle (the main app, XPC services, extensions, login items, helpers). Expands @executable_path, @loader_path, and @rpath through each process's LC_RPATH stack in dependents-first load order, and reports every candidate path with its outcome, the resolved image and digest, weak, re-export, and upward flags, and derived findings such as unresolved required loads or absent earlier @rpath candidates. Pure header parsing: nothing is executed, and absolute or system paths outside the analyzed root stay undetermined. Select roots or one architecture to narrow large bundles.
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"roots": [
"Contents/MacOS/App"
],
"architecture": "arm64"
},
"name": "trace_dylib_resolution"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| roots | No | ||
| architecture | No |