Files
2026-09-08 20:28:54 +08:00

20 lines
637 B
JavaScript

const commands = {};
/**
* Terminate the given running application on Simulator.
* It is required that Simulator is in _booted_ state.
*
* @param {string} bundleId - Bundle identifier of the application,
* which is going to be terminated.
* @throws {Error} If the corresponding simctl subcommand command
* returns non-zero return code.
* @throws {Error} If the `udid` instance property is unset
*/
commands.terminateApp = async function terminateApp (bundleId) {
await this.exec('terminate', {
args: [this.requireUdid('terminate'), bundleId],
});
};
export default commands;