Slim: turn a slim feature on for a leased simulator when a tool first needs it

未关闭
#2,106 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
28/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
活跃
技术栈
ios, typescript

调研方向

Start by reading ADR 0066, issue #2100, and the referenced simslim v0.14.0 live.go path to understand the existing feature activation approaches. The issue leaves open whether to lift a service override live or restart the leased simulator, with tradeoffs around incomplete service discovery and lost app sessions. Done means defining and implementing a reliable first-command activation and retry flow.

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

描述

platform:ios request:new

The problem

#2100 lets a slim iOS lease name the slim features it needs (--needs push,contacts), and Simlock writes them on before the simulator boots. A suite still has to know its needs up front. A tool that drives the simulator (agent-device) knows when a command needs a service: importing a contact, setting a location, sending a push, opening the photo picker.

Proposal

The "better still" part of #1688, left out of #2100: on the first command that needs a slim feature, the tool asks Simlock to turn it on for the leased simulator, then retries. Suites would declare nothing, and only what they use would ever run.

What is known

ADR 0066 tried turning services on in a running simulator (launchctl enable and bootstrap through simctl spawn) on iOS 26.4 and rejected it: launchd could not find 10 of the 26 services that way (they ship under another plist name or are XPC services started on demand), and the steps run inside the simulator, where heavy load has cut them short before (#206). simslim v0.14.0's live.go reads each plist's Label and lifts the override alone for the rest; that path is untested here. Restarting the leased simulator with the feature written on would work, but ends every app and session inside it.

Written by an agent.

主要语言
TypeScript
星标
730
派生
44
平均合并
15 小时 44 分钟
30 天内合并 PR
378

环境准备

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

从这里开始

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

callstackincubator/simlock 的其他 Issue

查看 callstackincubator/simlock 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

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