A Node.js library for interacting with iOS devices through Appium using remote XPC services. This library enables communication with iOS devices through various services like system logs and network tunneling.
This library provides functionality for:
- Remote XPC (Cross Process Communication) with iOS devices
- Lockdown communication
- USB device multiplexing (usbmux)
- Property list (plist) handling
- Tunneling services to iOS devices
- System log access
npm install appium-ios-remotexpc
- Node.js 16 or later
- iOS device for testing
- Proper device pairing and trust setup
- Plist Handling: Encode, decode, parse, and create property lists for iOS device communication.
- USB Device Communication: Connect to iOS devices over USB using the usbmux protocol.
- Remote XPC: Establish Remote XPC connections with iOS devices.
- Service Architecture: Connect to various iOS services:
- System Log Service: Access device logs
- Tunnel Service: Network tunneling to/from iOS devices
- Pair Record Management: Read and write device pairing records.
import { TunnelService } from 'appium-ios-remotexpc';
// Create a tunnel to an iOS device
const tunnelService = new TunnelService();
await tunnelService.startService();
// Do operations with the tunnel
// ...
// Close the tunnel when done
await tunnelService.stopService();
# Clone the repository
git clone https://github.com/yourusername/appium-ios-remotexpc.git
cd appium-ios-remotexpc
# Install dependencies
npm install
# Build the project
npm run build
This project uses GitHub Actions for continuous integration and Dependabot for dependency management:
- Lint and Build: Automatically runs linting and builds the project on Node.js LTS.
- Format Check: Ensures code formatting adheres to project standards
- Test Validation: Validates that test files compile correctly (actual tests require physical devices)
- Dependabot: Automatically creates PRs for dependency updates weekly
All pull requests must pass these checks before merging. The workflows are defined in the .github/workflows
directory.
npm run build
- Clean and build the projectnpm run lint
- Run ESLintnpm run format
- Run prettiernpm run lint:fix
- Run ESLint with auto-fixnpm test
- Run tests (requires sudo privileges for tunneling)
/src
- Source code/lib
- Core libraries/Lockdown
- Device lockdown protocol/PairRecord
- Pairing record handling/Plist
- Property list processing/RemoteXPC
- XPC connection handling/Tunnel
- Tunneling implementation/usbmux
- USB multiplexing protocol
/Services
- Service implementations/IOS
/syslogService
- System log access/tunnelService
- Network tunneling
npm test
Note: Testing the tunnel service requires sudo privileges.
MIT
Contributions are welcome! Please feel free to submit a Pull Request.
This project is under active development. APIs may change without notice.