docs: 恢复 ad-hoc 签名为必要前置步骤

feat/daemon-cli
jackwener 2026-04-16 10:11:17 +08:00
parent 7610a54073
commit 0d0ae22a98
1 changed files with 7 additions and 7 deletions

View File

@ -35,7 +35,13 @@ uv sync
### 初始化(首次使用)
打开微信并登录,运行初始化:
微信需要 ad-hoc 签名才能被扫描内存:
```bash
sudo codesign --force --deep --sign - /Applications/WeChat.app
```
然后打开微信并登录,运行初始化:
```bash
uv run python wx.py init
@ -121,12 +127,6 @@ wx watch
### `wx daemon status / stop / logs [-f] [-n N]`
管理后台 daemon。`logs --follow` 等同 `tail -f`
> **如果 `wx init` 报权限错误**`task_for_pid` 失败),说明你的微信版本开启了更严格的 hardened runtime 保护,需要先剥掉签名:
> ```bash
> sudo codesign --force --deep --sign - /Applications/WeChat.app
> ```
> 官网 dmg 安装的微信通常**不需要**这步。
## 原理
### 密钥提取