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

Open
#2,106 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
28/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
ios, typescript

Research direction

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.

Written by the indexing model from the issue text.

Description

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.

Dominant language
TypeScript
Stars
730
Forks
44
Avg merge
15h 44m
Merged PRs (30d)
378

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from callstackincubator/simlock

All issues in callstackincubator/simlock

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.