Skip to content

fix: Dump 临时文件改用进程临时目录 - #13

Merged
taisuii merged 4 commits into
mainfrom
fix/dump-tmp-2
Nov 25, 2026
Merged

taisuii merged 4 commits into
mainfrom
fix/dump-tmp-2

Conversation

@taisuii

@taisuii taisuii commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

目标

修复进程内 Dump 在宿主 Documents 不可写或不可用时无法工作,并保留真实失败原因。

改动

  • bin / ipa Dump 的临时工作目录改用 NSTemporaryDirectory()。
  • bin / ipa Dump 的最终产物也写入 NSTemporaryDirectory(),不再依赖宿主 Documents 权限。
  • 单镜像即时 Dump 的临时目录同步改用 NSTemporaryDirectory()。
  • 临时目录创建失败时透传 NSError,不再只返回「无法创建临时目录」。
  • 修正 IPA 路径遗漏的 makeTmpDir: 调用签名。

验证

  • rootless 真机:经设备服务代理 tools/files、symbols/images、dump/status 正常;bin Dump 完成并下载 186,638 字节 zip,内含 186,496 字节 CryptoTestHost。
  • RootHide 真机:复现 Documents 在 jbroot 下为 root:mobile 755 导致输出 zip 失败;最新包重启进程后 bin Dump 完成并下载 169,774 字节 zip,内含 169,632 字节 CryptoTestHost。
  • 完整包 CI run 45584260344 通过;original-call-control run 45584260290 待完成。

@taisuii
taisuii marked this pull request as ready for review November 25, 2026 09:32
@taisuii
taisuii merged commit ac0bc52 into main Nov 25, 2026
2 checks passed
@taisuii
taisuii deleted the fix/dump-tmp-2 branch November 25, 2026 09:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant