Skip to main content

๐Ÿค– AI ๆ—ถไปฃ็š„ iOS ๆจกๆ‹Ÿๅ™จ่‡ชๅŠจๅŒ–ๅ‘ฝไปค่กŒๅทฅๅ…ท - ไธ“ไธบ AI Agent ๅ’Œ่‡ชๅŠจๅŒ–ๅทฅไฝœๆต่ฎพ่ฎก

Project description

๐Ÿš€ OpenCode iOS Simulator

iOS Simulator Automation CLI Tool for the AI Era

PyPI Version Python Version macOS Support License GitHub Stars


English | ไธญๆ–‡


โœจ Why Choose Us?

OpenCode iOS Simulator

Traditional Way Using Our Tool
โŒ Manual button clicking โœ… One command does it all
โŒ Repetitive waste of time โœ… Automated batch processing
โŒ Complex API learning curve โœ… Simple CLI, ready to use
โŒ Hard to integrate with CI/CD โœ… Perfect automation support

๐ŸŽฏ Key Features

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚                                                                 โ”‚
โ”‚   ๐Ÿ“ฑ Device Management    ๐Ÿงช Test Analysis    ๐Ÿ”ง Build Tools  โ”‚
โ”‚   โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”          โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”        โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”   โ”‚
โ”‚   โ”‚ sim list  โ”‚          โ”‚ sim audit โ”‚        โ”‚ sim build โ”‚   โ”‚
โ”‚   โ”‚ sim boot  โ”‚          โ”‚ sim diff  โ”‚        โ”‚ sim test  โ”‚   โ”‚
โ”‚   โ”‚ sim createโ”‚          โ”‚ sim log   โ”‚        โ”‚           โ”‚   โ”‚
โ”‚   โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜          โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜        โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜   โ”‚
โ”‚                                                                 โ”‚
โ”‚   ๐ŸŽจ Screen Interaction  ๐Ÿ” Privacy Manager  ๐Ÿ“Š State Capture โ”‚
โ”‚   โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”          โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”        โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”   โ”‚
โ”‚   โ”‚ sim tap   โ”‚          โ”‚sim privacyโ”‚        โ”‚ sim state โ”‚   โ”‚
โ”‚   โ”‚ sim swipe โ”‚          โ”‚sim push   โ”‚        โ”‚ sim tree  โ”‚   โ”‚
โ”‚   โ”‚ sim text  โ”‚          โ”‚sim clipboard       โ”‚ sim map   โ”‚   โ”‚
โ”‚   โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜          โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜        โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜   โ”‚
โ”‚                                                                 โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

๐Ÿ”ฅ Unique Advantages

  • ๐Ÿค– AI-Native Design - Built specifically for AI Agent automation
  • โšก Quick Setup - Install and configure in 5 minutes
  • ๐Ÿ”„ Full Automation - Complete iOS simulator lifecycle coverage
  • ๐ŸŽช Accessibility-First - Stable and reliable based on Accessibility API
  • ๐Ÿ“ฆ Ready to Use - No complex config, production-ready out of the box

๐Ÿ—๏ธ Architecture

graph TB
    subgraph User Layer
        CLI[CLI Commands]
        AI[AI Agent]
        CI[CI/CD Pipeline]
    end
    
    subgraph Core Engine
        XCMD[xcrun/simctl]
        IDB[idb-companion]
        AX[Accessibility API]
    end
    
    subgraph Functional Modules
        DM[Device Management]
        AM[App Management]
        SI[Screen Interaction]
        TA[Test Analysis]
        PM[Privacy Management]
    end
    
    subgraph Target Device
        SIM[iOS Simulator]
        APP[App Under Test]
    end
    
    CLI --> DM
    AI --> DM
    CI --> DM
    
    DM --> XCMD
    AM --> XCMD
    SI --> IDB
    TA --> AX
    
    XCMD --> SIM
    IDB --> SIM
    AX --> APP
    
    SIM --> APP

๐Ÿ“ฆ Installation

# 1๏ธโƒฃ Install idb-companion (required)
brew install idb-companion

# 2๏ธโƒฃ Install opencode-ios-simulator
pip install --upgrade opencode-ios-simulator

# 3๏ธโƒฃ Verify installation
sim check

๐Ÿš€ Quick Start

# Check environment โœ…
sim check

# Boot simulator ๐Ÿ“ฑ
sim boot "iPhone 17 Pro"

# Install app ๐Ÿ“ฆ
sim install app.ipa

# Launch app โ–ถ๏ธ
sim launch com.example.myapp

# Map screen elements ๐Ÿ—บ๏ธ
sim map

# Tap button ๐Ÿ‘†
sim tap --text "Confirm"

# Input text โœ๏ธ
sim text "hello world"

# Swipe ๐Ÿ‘‹
sim swipe up

# Shutdown simulator โน๏ธ
sim shutdown

๐Ÿ“ธ Demo

Screen Mapping

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚ ๐Ÿ“ฑ iPhone 17 Pro - Home Screen      โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚ โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”‚
โ”‚ โ”‚ โš™๏ธ Settings               [โ‰ฃ] โ”‚ โ”‚
โ”‚ โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค โ”‚
โ”‚ โ”‚ ๐Ÿ” Search Settings...          โ”‚ โ”‚
โ”‚ โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค โ”‚
โ”‚ โ”‚ ๐Ÿ‘ค Apple ID                    โ”‚ โ”‚
โ”‚ โ”‚ ๐Ÿ“ถ Wi-Fi                       โ”‚ โ”‚
โ”‚ โ”‚ ๐Ÿ”” Notifications              โ”‚ โ”‚
โ”‚ โ”‚ ๐Ÿ”Š Sounds & Haptics           โ”‚ โ”‚
โ”‚ โ”‚ ๐ŸŒ™ Display & Brightness       โ”‚ โ”‚
โ”‚ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

Environment Check

โœ“ macOS 26.2        - OK
โœ“ Xcode 18.3        - Installed
โœ“ simctl            - Available
โœ“ idb-companion     - Connected
โœ“ Python 3.12       - Ready

๐ŸŽ‰ Environment ready!

๐Ÿ“‹ Command Reference

Category Command Description
๐Ÿ”ฐ Basics sim check Check environment
๐Ÿ“ฑ Device sim list List simulators
๐Ÿ“ฑ Device sim boot Boot simulator
๐Ÿ“ฑ Device sim shutdown Shutdown simulator
๐Ÿ“ฆ App sim install Install app
๐Ÿ“ฆ App sim launch Launch app
๐Ÿ‘† Interaction sim tap Tap element
๐Ÿ‘† Interaction sim swipe Swipe screen
๐Ÿ‘† Interaction sim text Input text
๐Ÿงช Testing sim audit Accessibility audit
๐Ÿงช Testing sim diff Visual diff
๐Ÿ” Privacy sim privacy Privacy settings

๐Ÿ“‹ Full Command List

Device Lifecycle (6)

Command Description Example
sim list List simulators sim list --state booted
sim boot Boot simulator sim boot "iPhone 17 Pro"
sim shutdown Shutdown simulator sim shutdown
sim create Create simulator sim create "iPhone 17 Pro" --ios 26.3
sim delete Delete simulator sim delete --udid XXX --force
sim erase Erase simulator sim erase

App Management (4)

Command Description Example
sim launch Launch app sim launch com.apple.Preferences
sim terminate Terminate app sim terminate com.apple.Preferences
sim install Install app sim install app.ipa
sim uninstall Uninstall app sim uninstall com.app

Navigation & Interaction (5)

Command Description Example
sim map Map screen elements sim map
sim tree Accessibility tree sim tree
sim tap Tap element sim tap --text "General"
sim text Input text sim text "hello"
sim swipe Swipe sim swipe up

Advanced Interaction (2)

Command Description Example
sim key Press key sim key return
sim button Hardware button sim button home

Testing & Analysis (4)

Command Description Example
sim audit Accessibility audit sim audit
sim diff Visual diff sim diff base.png curr.png
sim log Log monitoring sim log --app com.app
sim state State capture sim state

Privacy & Settings (4)

Command Description Example
sim privacy Privacy settings sim privacy --grant camera --bundle-id com.app
sim push Push notification sim push --title "Hi" --body "Hello"
sim clipboard Clipboard sim clipboard "text"
sim statusbar Status bar sim statusbar --get

Build (2)

Command Description Example
sim build Build project sim build --project App.xcodeproj
sim test Run tests sim test --project App.xcodeproj

Info (2)

Command Description Example
sim check Environment check sim check
sim booted Booted devices sim booted

๐Ÿ”ง JSON Output

All commands support --json:

sim list --json
# {"simulators": [...], "count": 11}

sim check --json
# {"ready": true, "checks": {...}}

๐Ÿ“ฆ Dependencies

  • macOS + Xcode
  • idb-companion (brew install idb-companion)
  • Python 3.10+
  • Pillow (for visual diff)

๐Ÿค Contributors

BOMBFUOCK

BOMBFUOCK - Founder & Main Maintainer


๐Ÿ“„ License

MIT License - See LICENSE for details


๐Ÿ™ Acknowledgements


โญ If this project helps you, please give us a Star!

GitHub Stars

Made with โค๏ธ by BOMBFUOCK

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

opencode_ios_simulator-1.0.0-py3-none-any.whl (12.2 kB view details)

Uploaded Python 3

File details

Details for the file opencode_ios_simulator-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for opencode_ios_simulator-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7ab4cd0e2de6c99c95258dfaa0ea88dd1640282b3746d98b1314216d7f0bce91
MD5 e3f7d261a970a009bbcde5bab644050e
BLAKE2b-256 dee1377639bab2bc19aa829078a4760d19f422977f2f24a5bc79dc16352b47fe

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page