iOS destroySource leaves a baseline's launchd overrides folder behind

オープン 初心者向け
#1,780 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
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 cleanupと比較してください。slimBoot.removeOverrides APIと、#removeLeftoverおよび保存失敗について言及されているcleanup経路をたどってください。sourceの削除時にそのUDID overridesフォルダーも削除されれば完了です。これらのcleanup経路に関連する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分
マージ済み PR(30日)
376

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

callstackincubator/simlock のほかの issue

callstackincubator/simlock の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。