first commit

This commit is contained in:
2026-09-08 20:28:54 +08:00
commit 2ada8d3d5a
37380 changed files with 4886169 additions and 0 deletions
+27
View File
@@ -0,0 +1,27 @@
import _ from 'lodash';
import log, { LOG_PREFIX } from '../logger';
const commands = {};
/**
* Boot the particular Simulator if it is not running.
*
* @throws {Error} If the corresponding simctl subcommand command
* returns non-zero return code.
* @throws {Error} If the `udid` instance property is unset
*/
commands.bootDevice = async function bootDevice () {
try {
await this.exec('boot', {
args: [this.requireUdid('boot')]
});
} catch (e) {
if (_.includes(e.message, 'Unable to boot device in current state: Booted')) {
throw e;
}
log.debug(LOG_PREFIX, `Simulator already in 'Booted' state. Continuing`);
}
};
export default commands;