Repository navigation
fix(ios): exclude app extensions from physical-device process targets - #5166
Conversation
|
Thanks for the fix. At 939846b, the code needs proof on a physical device before merge.
Not verified here: tests, lint and device commands were not run, and test validity was judged from the diff and the previous filter. It was also not established whether an iOS extension in a real app can share the app’s executable name. CI is green at this commit. Two The physical-device evidence for |
|
This PR is the one chosen to fix #5155. Filtering in One thing remains before merge: the physical-device run from the earlier review. Please run it at the head commit on a CoreDevice-backed physical iPhone or iPad, with an app that ships an extension and with that extension running:
Please paste the commands, the device model and iOS version, the head SHA and the outputs into the PR description. CI runs are now approved for this PR. |
|
Thanks for choosing this one and for spelling out the check. I don't have a CoreDevice-backed iPhone or iPad, so I can't produce the If someone on your side with a device can run those three steps at the head commit, I'll handle anything they turn up. If the evidence can't be collected, feel free to close this. |
|
Live verification on a maintainer device: Setup
Commands (same at base and head) agent-device open com.apple.weather --platform ios --udid <udid> --session <name> --json
agent-device perf memory sample --session <name> --json
agent-device close com.apple.weather --session <name> --jsonThe running processes were listed with Base ( The first sample at base timed out in Head ( Head, close with only the extension running This matches the behavior change in the PR body: when only the extension runs, Result
Pass. |
|
The live verification at 939846b covers what the review asked for. On a physical CoreDevice-backed iPhone 17 Pro with the Weather app and its |
Fixes #5155
Summary
On a physical iPhone, process resolution matched every executable under the app bundle URL, so a running
PlugIns/*.appexextension became a perf target alongside the app, and xctrace could attach to its pid. Only executables that sit directly in the app bundle are matched now. Other installed copies were already excluded by their container path.closeshares this lookup, so its depth-based sort is gone. One difference: if only an extension is running,closeno longer kills it and treats the app as already closed.Before / after
perf memory samplewith the app (10870) andLiveActivityExtension(10844) running:matchedProcesses: ["App", "LiveActivityExtension"]matchedProcesses: ["App"]This output follows from the resolver test; it was not captured on a device.
Validation
At 939846b: the new regression test (second installed copy plus nested extension) fails without the source change and passes with it. The
perf*,devicectlandapp-launch-closetests pass (54/54); oxlint and oxfmt are clean on the changed files. No physical-device run. The--attachfailure is tracked in #5154 and not addressed here.AI assistance (Claude Code) was used to prepare this change.
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.