{"id":50995267,"url":"https://github.com/jerone/remote-ios-sim","last_synced_at":"2026-06-20T08:32:01.570Z","repository":{"id":363416963,"uuid":"1262327203","full_name":"jerone/remote-ios-sim","owner":"jerone","description":null,"archived":false,"fork":false,"pushed_at":"2026-06-08T21:10:37.000Z","size":51,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-06-08T21:23:14.705Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jerone.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":"jerone","issuehunt":"jerone","patreon":"jerone","custom":["https://www.buymeacoffee.com/jerone","https://paypal.me/jeronevw"]}},"created_at":"2026-06-07T21:30:19.000Z","updated_at":"2026-06-08T20:54:50.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/jerone/remote-ios-sim","commit_stats":null,"previous_names":["jerone/remote-ios-sim"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/jerone/remote-ios-sim","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jerone%2Fremote-ios-sim","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jerone%2Fremote-ios-sim/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jerone%2Fremote-ios-sim/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jerone%2Fremote-ios-sim/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jerone","download_url":"https://codeload.github.com/jerone/remote-ios-sim/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jerone%2Fremote-ios-sim/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34563535,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-20T02:00:06.407Z","response_time":98,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-06-20T08:32:01.429Z","updated_at":"2026-06-20T08:32:01.558Z","avatar_url":"https://github.com/jerone.png","language":"JavaScript","funding_links":["https://github.com/sponsors/jerone","https://issuehunt.io/r/jerone","https://patreon.com/jerone","https://www.buymeacoffee.com/jerone","https://paypal.me/jeronevw"],"categories":[],"sub_categories":[],"readme":"# iOS Simulator Remote (Expo Edition)\n\nStream your iOS Simulator from macOS to a browser on Windows.  \n**Expo runs entirely on Windows** — the Mac is only used to run the simulator and stream it back.\n\n## How It Works\n\n```\nWindows PC                               macOS\n──────────────────────                   ──────────────────────\nnpx expo start                           start-mac.sh\n  → Expo dev server                        → boots iOS Simulator\n  → open index.html                        → npm start (Node.js)\n  → connect to Mac IP      ◄─ stream ─     → streams simulator window\n  → paste exp:// URL       ── open ──►     → xcrun simctl openurl\n  → interact via browser   ◄─ JPEG/WS ─   → robotjs (input events)\n```\n\n## Setup\n\n### 1 — Mac (one time)\n\nCopy `ios-sim-remote/` to your Mac, then:\n\n```bash\n# Install dependencies (root level)\nnpm install\n\n# Start the agent (runs from root, executes mac-agent/agent.js)\nnpm start\n```\n\nOr to specify a device name, run `start-mac.sh` directly:\n\n```bash\nbash start-mac.sh \"iPhone 16\"\n```\n\nThis script will:\n- Check for Node.js and install dependencies\n- Boot the iOS Simulator\n- Start the streaming agent on port 9001\n\n### 2 — Windows (your dev machine)\n\nStart your Expo project as normal:\n\n```bash\nnpx expo start\n```\n\nNote the **LAN URL** printed in the terminal — it looks like:\n```\n› Metro waiting on exp://192.168.1.50:8081\n```\n\n### 3 — Browser (Windows)\n\nOpen `windows-client/index.html` in any browser:\n\n1. Enter the **Mac's IP** and click **Connect** — you'll see the simulator stream\n2. Paste the `exp://` URL from step 2 and click **Open in Simulator**\n3. Expo Go loads your app in the simulator — live reload works automatically\n\n---\n\n## Expo Actions (toolbar + keyboard shortcuts)\n\n| Button | Key | Action |\n|--------|-----|--------|\n| 📳 Dev Menu | `D` | Shake — opens the Expo / React Native dev menu |\n| 🔄 Reload   | `R` | Reload the JS bundle (Cmd+R) |\n| 🏠 Home     | `H` | Press the Home button |\n| 🔒 Lock     | `L` | Lock the screen |\n| ↺ Rotate Left  | — | Rotate simulator left |\n| ↻ Rotate Right | — | Rotate simulator right |\n\n---\n\n## Mouse Interactions\n\n| Gesture | How |\n|---------|-----|\n| Tap | Click |\n| Swipe | Click and drag |\n| Scroll | Mouse wheel |\n\n---\n\n## Configuration\n\nEdit the constants in `mac-agent/agent.js`:\n\n| Setting | Default | Description |\n|---------|---------|-------------|\n| `FPS` | 15 | Target frames per second |\n| `JPEG_QUALITY` | 0.75 | Frame quality (0.0–1.0) |\n| `PORT` | 9001 | WebSocket port |\n| `HOST` | 0.0.0.0 | Listening host |\n\n---\n\n## Available npm Commands\n\n| Command | Purpose |\n|---------|---------|\n| `npm start` | Start the iOS Simulator streaming agent (production) |\n| `npm run dev` | Start with auto-reload on file changes (development) |\n| `npm run serve-client` | Start a local HTTP server for windows-client on port 8080 |\n| `npm run lint` | Run ESLint on mac-agent code |\n| `npm run format` | Format mac-agent code with Prettier |\n\n---\n\n| Problem | Fix |\n|---------|-----|\n| \"Waiting for iOS Simulator…\" | Make sure Simulator is open and not minimized |\n| robotjs installation fails | Run `xcode-select --install`, then `npm cache clean --force`, then `npm install` |\n| screencapture: window not found | Ensure Simulator window is visible and not minimized |\n| Can't connect from Windows | Check Mac firewall allows port 9001; verify IP address |\n| Expo app doesn't load | Make sure Windows firewall allows port 8081; use the `exp://` LAN URL not localhost |\n| Shake doesn't open dev menu | Expo Go must be the running app (not a bare RN build) |\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjerone%2Fremote-ios-sim","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjerone%2Fremote-ios-sim","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjerone%2Fremote-ios-sim/lists"}