Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

node-simctl

Package Overview
Dependencies
Maintainers
8
Versions
142
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-simctl

Wrapper around Apple's simctl binary

  • 7.3.10
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
322K
decreased by-0.39%
Maintainers
8
Weekly downloads
 
Created

What is node-simctl?

The node-simctl package is a Node.js wrapper for simctl, a command-line utility used to control the iOS Simulator. It allows developers to manage iOS simulators programmatically, including creating, deleting, booting, and shutting down simulators, as well as installing and uninstalling apps.

What are node-simctl's main functionalities?

Create a new simulator

This feature allows you to create a new iOS simulator with a specified name, device type, and iOS version. The code sample demonstrates how to create an iPhone 8 simulator running iOS 13.3.

const simctl = require('node-simctl');

async function createSimulator() {
  const udid = await simctl.createDevice('My Simulator', 'iPhone 8', '13.3');
  console.log('Created simulator with UDID:', udid);
}

createSimulator();

Boot a simulator

This feature allows you to boot an existing iOS simulator using its UDID. The code sample demonstrates how to boot a simulator by providing its UDID.

const simctl = require('node-simctl');

async function bootSimulator(udid) {
  await simctl.bootDevice(udid);
  console.log('Booted simulator with UDID:', udid);
}

bootSimulator('your-simulator-udid');

Install an app on a simulator

This feature allows you to install an app on a specified iOS simulator. The code sample demonstrates how to install an app by providing the simulator's UDID and the path to the app.

const simctl = require('node-simctl');

async function installApp(udid, appPath) {
  await simctl.installApp(udid, appPath);
  console.log('Installed app on simulator with UDID:', udid);
}

installApp('your-simulator-udid', '/path/to/your/app.app');

Shutdown a simulator

This feature allows you to shut down an existing iOS simulator using its UDID. The code sample demonstrates how to shut down a simulator by providing its UDID.

const simctl = require('node-simctl');

async function shutdownSimulator(udid) {
  await simctl.shutdownDevice(udid);
  console.log('Shutdown simulator with UDID:', udid);
}

shutdownSimulator('your-simulator-udid');

Other packages similar to node-simctl

FAQs

Package last updated on 24 Oct 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc