# RuntimeViewer

一款用于检查 Mach-O 二进制文件中 Objective-C 和 Swift 运行时接口的 macOS 应用。

> 这是 OpenNavo 上 RuntimeViewer 页面的 Markdown 版本，内容与网页相同： <https://opennavo.com/zh/apps/runtimeviewer>

- **最新版本**: `2.1.2`
- **开发者**: JieHui Lai
- **主页**: <https://github.com/MxIris-Reverse-Engineering/RuntimeViewer>
- **分类**: [开发工具](https://opennavo.com/zh/categories/developer-tools)
- **安装**: `brew install --cask runtimeviewer`
- **近 30 天安装**: 1
- **Homebrew**: Homebrew 仍提供，OpenNavo 已暂停推荐
- **下载地址**: <https://github.com/MxIris-Reverse-Engineering/RuntimeViewer/releases/download/v2.1.2/RuntimeViewer-macOS.zip>
- **SHA-256**: `0cca9b3844135f8de175cf22c3fceebc668984b022b81565fede8aa976e325d2`

SHA-256 只用来核对下载的文件是否完整，不代表安全认证。

## 安装与卸载内容

```json
[
  {
    "declaration": {
      "app": [
        "RuntimeViewer.app"
      ],
      "target": "/Applications/RuntimeViewer.app"
    },
    "phase": "install",
    "sources": [
      "RuntimeViewer.app"
    ],
    "target": "/Applications/RuntimeViewer.app",
    "type": "app"
  },
  {
    "declaration": {
      "zap": [
        {
          "trash": [
            "/Library/LaunchDaemons/com.JH.RuntimeViewerService.plist",
            "~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/com.jh.runtimeviewer.sfl*",
            "~/Library/Application Support/RuntimeViewer",
            "~/Library/Caches/com.JH.RuntimeViewer",
            "~/Library/HTTPStorages/com.JH.RuntimeViewer",
            "~/Library/Preferences/com.JH.RuntimeViewer.plist",
            "~/Library/Saved Application State/com.JH.RuntimeViewerCatalystHelper~iosmac.savedState"
          ]
        }
      ]
    },
    "phase": "cleanup",
    "sources": [],
    "type": "zap"
  }
]
```

## 介绍

RuntimeViewer 是一款 macOS 应用，可检查 Mach-O 二进制文件中的 Objective-C 和 Swift 运行时接口。它可以生成 Objective-C 头文件和 Swift 类型接口，包括类型与枚举布局以及 VTable 偏移。

- 浏览运行时类、协议和成员，并通过模糊搜索查找内容，或为运行时对象添加书签。
- 检查本地运行时和框架来源，浏览 macOS 与 iOSSupport 框架，或加载自定义 Mach-O 二进制文件和框架。
- 以 Xcode 风格的语法高亮查看重建的接口；使用多步骤导出向导将接口导出到一个或多个文件。
- 通过 Bonjour 发现本地网络上的其他 RuntimeViewer 实例。应用还为 macOS 15 及更高版本上的 LLM 客户端提供 MCP 集成。

安装时，从 [GitHub Releases](https://github.com/MxIris-Reverse-Engineering/RuntimeViewer/releases/latest) 下载 macOS 发布压缩包，解压后将 RuntimeViewer.app 移至 Applications 文件夹。项目说明其不发布 Homebrew cask；任何第三方 cask 都属非官方且不受支持。主应用要求 macOS 15 或更高版本。RuntimeViewer 不会自动列出 Mac 上的所有应用；请自行选择运行时来源或附加到进程。附加进程要求关闭 System Integrity Protection (SIP)。代码注入也要求关闭 SIP；向系统应用注入时需使用辅助服务，该服务需在 Settings 中单独安装。

[官方项目](https://github.com/MxIris-Reverse-Engineering/RuntimeViewer)

## 系统要求

- macOS 15 起 · 应用版本: 2.1.2 · Intel · <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/r/runtimeviewer.rb> · 核查于 2026-12-06
  - <https://github.com/MxIris-Reverse-Engineering/RuntimeViewer/releases/download/v2.1.2/RuntimeViewer-macOS.zip>
  - SHA-256: `0cca9b3844135f8de175cf22c3fceebc668984b022b81565fede8aa976e325d2`
- macOS 15 起 · 应用版本: 2.1.2 · Apple 芯片 · <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/r/runtimeviewer.rb> · 核查于 2026-12-06
  - <https://github.com/MxIris-Reverse-Engineering/RuntimeViewer/releases/download/v2.1.2/RuntimeViewer-macOS.zip>
  - SHA-256: `0cca9b3844135f8de175cf22c3fceebc668984b022b81565fede8aa976e325d2`

## RuntimeViewer 的安全事实

这里只列可以核验的事实，并注明来源和日期，不是安全认证。要检查你下载的文件，可以用 OpenNavo 在本机扫描。

- <https://github.com/MxIris-Reverse-Engineering/RuntimeViewer> · 是否开源: 是 — <https://github.com/MxIris-Reverse-Engineering/RuntimeViewer> · 核查于 2026-11-14

## 卸载

- `brew uninstall --cask runtimeviewer`

普通卸载会删除应用本身，设置和缓存会保留。

### 深度清理（可选）

- `brew uninstall --zap --cask runtimeviewer`

`--zap` 还会删除 Homebrew 定义里列出的设置、缓存等文件，其中可能有其他应用共用的数据，删除后无法恢复；它也不保证没有任何残留。请先备份需要保留的数据；如要保留设置和缓存，请不要加 `--zap`。

普通卸载会删除应用本身，设置和缓存会保留。

- 文件和文件夹: `/Library/LaunchDaemons/com.JH.RuntimeViewerService.plist` — <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/r/runtimeviewer.rb> · 以上条目来自 Homebrew 定义，核查于 2026-12-06；它们只说明定义声明会删除什么，不代表你的 Mac 上都有。
- 文件和文件夹: `~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/com.jh.runtimeviewer.sfl*` — <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/r/runtimeviewer.rb> · 以上条目来自 Homebrew 定义，核查于 2026-12-06；它们只说明定义声明会删除什么，不代表你的 Mac 上都有。
- 文件和文件夹: `~/Library/Application Support/RuntimeViewer` — <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/r/runtimeviewer.rb> · 以上条目来自 Homebrew 定义，核查于 2026-12-06；它们只说明定义声明会删除什么，不代表你的 Mac 上都有。
- 文件和文件夹: `~/Library/Caches/com.JH.RuntimeViewer` — <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/r/runtimeviewer.rb> · 以上条目来自 Homebrew 定义，核查于 2026-12-06；它们只说明定义声明会删除什么，不代表你的 Mac 上都有。
- 文件和文件夹: `~/Library/HTTPStorages/com.JH.RuntimeViewer` — <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/r/runtimeviewer.rb> · 以上条目来自 Homebrew 定义，核查于 2026-12-06；它们只说明定义声明会删除什么，不代表你的 Mac 上都有。
- 文件和文件夹: `~/Library/Preferences/com.JH.RuntimeViewer.plist` — <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/r/runtimeviewer.rb> · 以上条目来自 Homebrew 定义，核查于 2026-12-06；它们只说明定义声明会删除什么，不代表你的 Mac 上都有。
- 文件和文件夹: `~/Library/Saved Application State/com.JH.RuntimeViewerCatalystHelper~iosmac.savedState` — <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/r/runtimeviewer.rb> · 以上条目来自 Homebrew 定义，核查于 2026-12-06；它们只说明定义声明会删除什么，不代表你的 Mac 上都有。

## 最新版本说明

### 3.0.0-beta.12 (2026-12-01)

### v3.0.0-beta.12

#### New

- A welcome page appears on first launch, and What's New after an update or from **Help → What's New in RuntimeViewer**.
- Generation Options move to **Settings → Generation Options**; the toolbar button overrides them for the image on screen.
- Swift interfaces print imported C and Objective-C types under their Swift names; **Imported Type Names** brings back the C names.
- Objective-C headers show the `NS_SWIFT_NAME` and `NS_REFINED_FOR_SWIFT` the SDK gives a declaration.
- Editor panes without the focus are dimmed, as in Xcode (**Settings → Theme**).
- **iOS:** interfaces open in the source editor, with syntax colouring, the minimap, ⌘F and Jump to Definition.

#### Improved

- The specializations of a C++ class template are grouped under the template.
- Object icons are drawn as Xcode draws them, and C++ objects are purple.
- Editor tabs behave like macOS window tabs.
- An image opened from the start page or Open Quickly is also opened in the sidebar.
- Stored properties of stripped `@objc @implementation` classes get their Swift types back.

#### Fixed

- Changing the Filter Scope no longer expands every row of the sidebar.
- Background indexing no longer clears the sidebar's selection.
- An image's bookmarks and recent objects no longer open before its object list has loaded.
- Objective-C categories in images without Swift code no longer show up as Swift conformances.
- **Settings → Editor → Scope Guides** now draws the guides.
- **Settings → Updates** no longer shows an up-to-date check as an error.
- Fixed hangs and crashes on malformed binaries.

## 资料与来源

- <https://opennavo.com/zh/apps/runtimeviewer>
- <https://opennavo.com/zh/apps/runtimeviewer/versions>
- <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/r/runtimeviewer.rb> · 核查于 2026-12-06
- <https://formulae.brew.sh/cask/runtimeviewer>
- <https://github.com/MxIris-Reverse-Engineering/RuntimeViewer> · 核查于 2026-11-14
