Skip to content

Comments

feat(process-control): use remotexpc for terminateApp#2727

Merged
mykola-mokhnach merged 4 commits intoappium:masterfrom
navin772:process-control-remotexpc
Feb 16, 2026
Merged

feat(process-control): use remotexpc for terminateApp#2727
mykola-mokhnach merged 4 commits intoappium:masterfrom
navin772:process-control-remotexpc

Conversation

@navin772
Copy link
Contributor

Uses remotexpc when ios>=18 for the terminateApp function, the killApp mobile command utilizes this function.

The code logic as per the ios versions:

  1. iOS 18 and above - uses remotexpc DVT instrument process control
  2. iOS 17.x - uses devicectl
  3. iOS < 17 - use ios-device instrument service

@navin772
Copy link
Contributor Author

Hi @mykola-mokhnach, could you also review this? Thanks!

}

async terminateApp(bundleId: string, platformVersion: string): Promise<boolean> {
// For iOS 18 and above, use RemoteXPC DVT service.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this method is too complicated now. consider refactoring it into smaller private methods

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This repo has a similar implementation, so I think such a refactor could be a follow-up PR with several places together. Just an option.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, we could do this in a separate PR

@mykola-mokhnach mykola-mokhnach merged commit e89b9e3 into appium:master Feb 16, 2026
13 of 15 checks passed
github-actions bot pushed a commit that referenced this pull request Feb 16, 2026
## [10.22.0](v10.21.3...v10.22.0) (2026-02-16)

### Features

* **process-control:** use remotexpc for `terminateApp` ([#2727](#2727)) ([e89b9e3](e89b9e3))
@github-actions
Copy link
Contributor

🎉 This PR is included in version 10.22.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@navin772 navin772 deleted the process-control-remotexpc branch February 16, 2026 12:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants