iOS destroySource leaves a baseline's launchd overrides folder behind

未关闭 适合新手
#1,780 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
78/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
技术栈
typescript
领域
mobile-dev

调研方向

阅读 src/drivers/ios/seeds.ts,尤其是 destroySource(第 197–212 行),并将其与 src/drivers/ios/index.ts(第 425 和 460 行)的 lease 清理进行比较。追踪 slimBoot.removeOverrides API,以及针对 #removeLeftover 和保存失败所提到的清理路径。完成标准是删除 source 时也会移除其 UDID overrides 文件夹;检查与这些清理路径相关的 iOS 测试。

由索引模型根据 Issue 内容生成。

描述

bug:new

Found by reading the code while triaging #1731; not seen on a device.

saveSource copies the saved-from lease's launchd overrides to the baseline's UDID (src/drivers/ios/seeds.ts:172, slimBoot.copyOverrides). The folder lives under the overrides root, outside the device set (iOS manual: "the overrides folder lives outside the device set, so destroy removes it itself").

destroySource (seeds.ts:197-212) deletes the simulator (#deleteSeedSimulator, :463-466: shutdown, simctl delete) and the row, but never calls slimBoot.removeOverrides. Only lease destroy and destroyLegacy do (src/drivers/ios/index.ts:425, :460). So each destroyed slim-saved baseline leaves one <overridesRoot>/<udid> folder that nothing lists or deletes. The same holds for #removeLeftover and a failed save's cleanup (seeds.ts:182).

Expected: deleting a source removes its overrides folder too, as deleting a lease does.

Written by an agent.

主要语言
TypeScript
星标
705
派生
40
平均合并
12 小时 9 分钟
30 天内合并 PR
376

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

callstackincubator/simlock 的其他 Issue

查看 callstackincubator/simlock 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。