Skip to content

BOMBFUOCK/opencode-ios-simulator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

9 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸš€ 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
Loading

πŸ“¦ 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

About

iOS Simulator Automation CLI Tool for the AI Era

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages