
Security News
ECMAScript 2025 Finalized with Iterator Helpers, Set Methods, RegExp.escape, and More
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.
appium-ios-device
Advanced tools
The appium-ios-device npm package provides a set of utilities for interacting with iOS devices. It is primarily used in the context of Appium, a popular automation framework for mobile applications, to facilitate communication with iOS devices for tasks such as file management, process control, and device information retrieval.
File Management
This feature allows you to manage files on the iOS device. The code sample demonstrates how to list files in the Documents directory of a specific app on the device.
const { services } = require('appium-ios-device');
(async () => {
const udid = 'your-device-udid';
const service = await services.startHouseArrestService(udid, 'your-app-bundle-id');
const files = await service.listDirectory('/Documents');
console.log(files);
})();
Process Control
This feature allows you to control and monitor processes running on the iOS device. The code sample shows how to list all running processes on the device.
const { services } = require('appium-ios-device');
(async () => {
const udid = 'your-device-udid';
const service = await services.startLockdownService(udid);
const processes = await service.listProcesses();
console.log(processes);
})();
Device Information
This feature allows you to retrieve various pieces of information about the iOS device. The code sample demonstrates how to get the iOS version of the device.
const { services } = require('appium-ios-device');
(async () => {
const udid = 'your-device-udid';
const service = await services.startLockdownService(udid);
const info = await service.getValue('ProductVersion');
console.log(info);
})();
The node-ios-device package provides similar functionalities for interacting with iOS devices, such as listing connected devices and retrieving device information. However, it is more focused on basic device management and lacks some of the advanced features provided by appium-ios-device, such as file management and process control.
The ios-deploy package is primarily used for deploying iOS apps to devices from the command line. While it offers some device interaction capabilities, its main focus is on app deployment rather than the broader range of device management features provided by appium-ios-device.
Appium API for dealing with iOS devices. This is mainly a rewrite of libimobiledevice in nodejs. The APIs allow Appium to talk directly to the phone over usbmuxd
More information can be found at the links below:
Note: Issue tracking for this repo has been disabled. Please use the main Appium issue tracker instead.
utilities.getConnectedDevices
utilities.getOSVersion
utilities.getDeviceTime
utilities.getDeviceName
utilities.startLockdownSession
utilities.connectPort
utilities.connectPortSSL
services.startSyslogService
services.startWebInspectorService
services.startInstallationProxyService
services.startSimulateLocationService
services.startAfcService
services.startNotificationProxyService
services.startHouseArrestService
This module should be used over the utilities
and services
modules due to the complexity of iOS communication. When a new services is implemented, it should be added and made available over the services
module
npm run watch
npm test
FAQs
Appium API for dealing with iOS devices
The npm package appium-ios-device receives a total of 215,015 weekly downloads. As such, appium-ios-device popularity was classified as popular.
We found that appium-ios-device demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 6 open source maintainers collaborating on the project.
Did you know?
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.
Security News
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.
Security News
A new Node.js homepage button linking to paid support for EOL versions has sparked a heated discussion among contributors and the wider community.
Research
North Korean threat actors linked to the Contagious Interview campaign return with 35 new malicious npm packages using a stealthy multi-stage malware loader.