{"slug": "swiftwin-build-and-run-swiftui-iphone-apps-from-windows-no-mac", "title": "SwiftWin – build and run SwiftUI iPhone apps from Windows, no Mac", "summary": "SwiftWin Studio, released by developer Dadon-11, lets developers build, sign, install and run SwiftUI iPhone apps from a Windows 10 or 11 x64 PC over USB without a Mac, compiling with the open-source Swift 6.2.4 toolchain and signing with a free or paid Apple ID. The tool mirrors the connected iPhone at about 23 fps with click-to-tap and drag-to-swipe control, and exposes an MCP server so Claude Code or OpenAI Codex can call build, install_run, screenshot, ui_tree, tap, swipe, type and logs to edit, run and inspect an app on the device. The iOS SDK is downloaded with the user's own Apple ID and is never bundled, free-Apple-ID apps expire after 7 days, and TestFlight release builds run on a macOS GitHub Actions runner.", "body_md": "**SwiftWin: your iPhone, your Windows PC, and nothing else.**\n\n  Build, sign, install and run SwiftUI apps on a real iPhone over USB, and let Claude Code or Codex drive it.\n\n[**Download**](https://github.com/Dadon-11/SwiftWin-Studio/releases/latest) ·\n  [Website](https://dadon-11.github.io/SwiftWin-Studio/) ·\n  [First run](https://github.com/Dadon-11/SwiftWin-Studio/blob/main/docs/first-run.md) ·\n  [Claude Code & Codex](#use-it-with-claude-code-or-codex) ·\n  [Changelog](https://github.com/Dadon-11/SwiftWin-Studio/blob/main/CHANGELOG.md)\n\n## SwiftWin-demo-github.mp4\n\nYou know the problem. You want to make an iPhone app, you have a good Windows PC and an iPhone, and every guide starts with \"first, buy a Mac\". SwiftWin skips that step: it compiles your SwiftUI app with the open-source Swift toolchain, signs it with your Apple ID, installs it on the iPhone plugged into your PC, and shows the phone live on your screen, where a click is a tap. Claude Code and Codex get the same powers through SwiftWin's MCP server: they edit your app, run it on the phone, look at the screen, tap through it and read the logs.\n\n- **No Mac:** Swift on Windows targets`arm64-apple-ios` ; the iOS SDK comes from Xcode, downloaded with\nyour own Apple ID (never bundled).\n- **Your real iPhone:** build, sign (free Apple ID or paid developer account), install and launch over\nUSB in one click.\n- **Live mirror you can use:** about 23 fps over USB; click to tap, drag to swipe, type to type.\nOptional AirPlay receiver.\n- **SwiftWin Studio:** file tree, Monaco code editor, logs filtered to your app, crash reports.\n- **AI mode:** connect Claude Code or OpenAI Codex, then watch every tap and swipe it makes on the phone.\n- **AI agent integration (MCP, Claude Code and Codex):**`build` ,`install_run` ,`screenshot` ,`ui_tree` ,`tap` ,`swipe` ,`type` ,`logs` ,`launch_app` , and more. In the Claude desktop app the phone shows up beside the chat.\n- **Inspo:** captures the screens of an app on your phone and turns them into a palette, type scale\nand spacing guide for your own app.\n- **`swiftwin doctor`:** a PASS/FAIL checklist for USB driver, trust, Developer Mode, tunnel, signing\nand more, with the exact fix for each.\n- **Cloud release:** TestFlight builds on a macOS GitHub Actions runner when you're ready to ship.\n- **Optional account:** sign in with Google or GitHub only for the cloud features (TestFlight builds,\nuploading projects to GitHub). Everything else works without an account.\n\n| Home | AI mode | \n|---|---|\n| **Inspo** | **Upload to GitHub** | \n\nScreenshots use the built-in simulated iPhone (`--mock`).\n\n- Windows 10 or 11, x64\n- An iPhone (iOS 17 or newer) and a USB cable, with **Developer Mode** on\n(Settings → Privacy & Security → Developer Mode)\n- An Apple ID (free works; apps then expire after 7 days and must be run again)\n- Apple's USB service (iTunes), Python 3.11+, the **Swift 6.2.4** toolchain for Windows,**LLVM** and the\niOS SDK: SwiftWin's**Set up this PC** installs all of them from their official sources (winget, and\nyour own Apple sign-in for the SDK). Nothing of Apple's is bundled\n- Optional: [Claude Code](https://claude.com/claude-code) or[OpenAI Codex](https://developers.openai.com/codex) for the AI features\n\n1. Download `SwiftWin_<version>_x64-setup.exe` from the Releases page and run it. It installs for\nyour user only (no admin rights). The installer isn't code-signed yet, so Windows may say\n\"Windows protected your PC\": click**More info → Run anyway** .\n2. Open **SwiftWin** from the Start menu. Sign in, or choose**Continue without an account** : an account\nis needed only for cloud TestFlight builds and uploading to GitHub.\n3. **Set up this PC** opens when something is missing: press**Set up everything** , accept Windows'\npermission prompts, and sign in with your Apple ID when asked (for the iOS SDK). Rerun it any time from\nthe avatar menu, or`swiftwin setup` in a terminal.\n4. Connect your iPhone and follow **[docs/first-run.md](https://github.com/Dadon-11/SwiftWin-Studio/blob/main/docs/first-run.md)** .`swiftwin doctor` tells\nyou what's missing.\n\nNo phone yet? Choose **Try with a simulated iPhone**, or run `swiftwin --mock demo`.\n\n```\nclaude.cmd mcp add --scope user swiftwin -- \"$env:LOCALAPPDATA\\SwiftWin\\bin\\swiftwin.exe\" mcp\n```\n\nFor OpenAI Codex (its MCP servers are global, in `~\\.codex\\config.toml`):\n\n```\ncodex.cmd mcp add swiftwin -- \"$env:LOCALAPPDATA\\SwiftWin\\bin\\swiftwin.exe\" mcp\n```\n\nStart a new Claude Code or Codex session and ask, for example: *\"Use swiftwin: run my app, take a screenshot,\ntap 'Tap me' three times and check the logs.\"* In the Claude desktop app, install the small\n`swiftwin-phone` plugin so the live iPhone opens beside the chat by itself; see\n[first-run.md, \"Working in the Claude Code app\"](https://github.com/Dadon-11/SwiftWin-Studio/blob/main/docs/first-run.md#working-in-the-claude-code-app-with-a-phone-window).\n\nBoth agents ask before tool calls unless you allow them in their own settings; see\n[docs/security.md](https://github.com/Dadon-11/SwiftWin-Studio/blob/main/docs/security.md). AI mode in SwiftWin Studio shows these commands with copy buttons\nand shows the agent's taps and swipes live on the phone.\n\nYou need Rust (stable, MSVC toolchain) and Node.js 20+.\n\n```\ncargo test --workspace                         # all Rust tests, against the simulated iPhone\ncargo build --release -p swiftwin-cli          # the `swiftwin` command line\ncd app; npm ci; npm run tauri build            # the desktop app and its installer\n```\n\nThe installer is `app\\src-tauri\\target\\release\\bundle\\nsis\\SwiftWin_<version>_x64-setup.exe`. Install\nit from a normal PowerShell or the Claude desktop app's Terminal panel, not from a process the Claude\napp started itself (docs/open-questions.md, 23). The browser UI test is described at the top of\n`app/tests/ui-mock.mjs`. Releases and signed updates: [docs/releasing.md](https://github.com/Dadon-11/SwiftWin-Studio/blob/main/docs/releasing.md).\n\nTry things without a phone: every command accepts `--mock` (or `SWIFTWIN_MOCK=1`):\n\n```\ncargo run -p swiftwin-cli -- --mock demo\ncargo run -p swiftwin-cli -- --mock doctor\n```\n\n| Area | Commands | \n|---|---|\n| Device | `devices` ,`info` ,`pair` ,`apps` ,`install` ,`uninstall` ,`launch` ,`terminate` ,`screenshot` ,`logs [-f]` ,`crashes` | \n| Control | `tap [x y \\| --label]` ,`swipe` ,`type` ,`button` ,`home` ,`ui-tree` ,`wda status\\|start\\|stop\\|prepare\\|install\\|serve` | \n| Build | `new` ,`build` ,`run` ,`sign` ,`signing setup\\|status` ,`sdk list\\|import\\|download` | \n| Mirroring | `mirror [--airplay] [--mode auto\\|usb\\|video]` | \n| Claude | `mcp` (stdio MCP server),`phone` (the phone-only window) | \n| Account | `login` ,`logout` ,`whoami` ,`upload` | \n| Release | `release setup` ,`release [--dry-run]` (TestFlight via a macOS GitHub Actions runner) | \n| Setup | `doctor [--fix]` ,`setup` ,`ui` (desktop UI in a browser, for development) | \n\n```\ncrates/\n  swiftwin-core       shared types, errors, paths, config\n  swiftwin-device     Device trait, MockDevice, RealDevice (usbmuxd + lockdown + pymobiledevice3)\n  swiftwin-control    WebDriverAgent client and lifecycle, Phone facade, fake WDA server\n  swiftwin-sdk        Xcode.xip → iOS SDK (XAR/pbzx/cpio), Swift SDK bundle, Xcode download\n  swiftwin-builder    swiftwin.toml projects, swiftc for arm64-apple-ios, asset catalogs, .app/.ipa\n  swiftwin-signer     certificates, profiles, entitlements, code signing, Credential Manager\n  swiftwin-workflow   build → sign → install → launch, WDA preparation\n  swiftwin-mirror     USB video (WebDriverAgent MJPEG) or AirPlay, falling back to screenshots\n  swiftwin-mcp        MCP server for Claude Code and Codex\n  swiftwin-app-core   desktop app backend (shared by Tauri and `swiftwin ui`)\n  swiftwin-account    accounts (Supabase Auth), GitHub upload\n  swiftwin-inspo      Inspo captures and style guides\n  swiftwin-release    cloud TestFlight builds\n  swiftwin-doctor     PASS/FAIL first-run checks\ncli/                  `swiftwin` binary\napp/                  Tauri desktop app (Vite + Monaco)\nclaude-plugin/        the swiftwin-phone plugin for the Claude desktop app\ndocs/                 guides and design notes\n```\n\nSwiftWin is early. Today it builds **iPhone apps only** (SwiftUI, iOS 17 and newer):\n\n- **Not supported yet:** iPad layouts (apps are built for iPhone only, so they don't install as iPad\napps), Mac apps (macOS / Mac Catalyst), Apple Watch, Apple TV, Vision Pro, widgets and other app\nextensions.\n- **Not optimized for every iPhone yet:** it has been tested end to end on one recent iPhone (iOS 27,\nfree Apple ID). Other models, screen sizes and form factors (for example a\nfoldable iPhone) aren't tested: your app may build and run, but check its layout there yourself.\n\nPaths that have never run on a real phone\nor Apple account are listed in [docs/untested.md](https://github.com/Dadon-11/SwiftWin-Studio/blob/main/docs/untested.md); help testing on other iPhones is\nwelcome ([docs/testing-checklist.md](https://github.com/Dadon-11/SwiftWin-Studio/blob/main/docs/testing-checklist.md)).\n\n- [PRIVACY.md](https://github.com/Dadon-11/SwiftWin-Studio/blob/main/PRIVACY.md) : what SwiftWin stores if you make an account (email and name) and what stays on your\nPC (everything else). No analytics.\n- [TERMS.md](https://github.com/Dadon-11/SwiftWin-Studio/blob/main/TERMS.md) : terms of use.\n- [SECURITY.md](https://github.com/Dadon-11/SwiftWin-Studio/blob/main/SECURITY.md) and[docs/security.md](https://github.com/Dadon-11/SwiftWin-Studio/blob/main/docs/security.md) : the threat model, how tokens and\nthe local API are protected, and how to report a vulnerability.\n\n- [docs/first-run.md](https://github.com/Dadon-11/SwiftWin-Studio/blob/main/docs/first-run.md) : connecting your iPhone the first time\n- [docs/dependencies.md](https://github.com/Dadon-11/SwiftWin-Studio/blob/main/docs/dependencies.md) : external tools and their licenses\n- [docs/accounts-setup.md](https://github.com/Dadon-11/SwiftWin-Studio/blob/main/docs/accounts-setup.md) : running your own sign-in service\n- [docs/releasing.md](https://github.com/Dadon-11/SwiftWin-Studio/blob/main/docs/releasing.md) : releases, signed updates, code signing\n- [docs/progress.md](https://github.com/Dadon-11/SwiftWin-Studio/blob/main/docs/progress.md) ,[docs/open-questions.md](https://github.com/Dadon-11/SwiftWin-Studio/blob/main/docs/open-questions.md) : what was tried, what's unverified\n- [CONTRIBUTING.md](https://github.com/Dadon-11/SwiftWin-Studio/blob/main/CONTRIBUTING.md) : how to contribute\n\nReleases are built from this repository. We have applied to the [SignPath Foundation](https://signpath.org)\nfor free code signing for open-source projects; once accepted, Windows installers are signed with free code\nsigning provided by [SignPath.io](https://signpath.io), certificate by SignPath Foundation. Until then the\ninstaller is not code-signed: Windows may show \"Windows protected your PC\" (More info → Run anyway). Each\nrelease lists the installer's SHA-256 so you can check your download, and\n`winget install SwiftWin.SwiftWin` installs it without that warning once the package is published.\n\n- Committer, reviewer and release approver: Yoav Dadon ([@Dadon-11](https://github.com/Dadon-11) ). Changes\nwritten with AI assistance (Claude) are reviewed and approved by the maintainer before release.\n- Privacy: SwiftWin sends no analytics; see [PRIVACY.md](https://github.com/Dadon-11/SwiftWin-Studio/blob/main/PRIVACY.md) for the optional account.\n\nMade by Yoav Dadon ([@Dadon-11](https://github.com/Dadon-11)), with\n[Claude](https://claude.com/claude-code) (Anthropic's AI) as co-developer: most of the code, tests and docs\nwere written with Claude Code. Contact: [swiftwin-support@googlegroups.com](mailto:swiftwin-support@googlegroups.com).\n\n[MIT](https://github.com/Dadon-11/SwiftWin-Studio/blob/main/LICENSE). Third-party code and tools keep their own licenses: see\n[THIRD-PARTY-NOTICES.md](https://github.com/Dadon-11/SwiftWin-Studio/blob/main/THIRD-PARTY-NOTICES.md). SwiftWin is not affiliated with Apple. Apple's iOS SDK\nis downloaded by each user from Apple and is never redistributed.", "url": "https://wpnews.pro/news/swiftwin-build-and-run-swiftui-iphone-apps-from-windows-no-mac", "canonical_source": "https://github.com/Dadon-11/SwiftWin-Studio", "published_at": "2026-11-15 23:14:02+00:00", "updated_at": "2026-11-15 23:23:12.018675+00:00", "lang": "en", "topics": ["developer-tools", "ai-agents", "agent-protocols", "ai-tools"], "entities": ["SwiftWin Studio", "Dadon-11", "Claude Code", "OpenAI Codex", "Apple", "Swift 6.2.4", "TestFlight", "GitHub Actions"], "also_reported_by": [], "alternates": {"html": "https://wpnews.pro/news/swiftwin-build-and-run-swiftui-iphone-apps-from-windows-no-mac", "markdown": "https://wpnews.pro/news/swiftwin-build-and-run-swiftui-iphone-apps-from-windows-no-mac.md", "text": "https://wpnews.pro/news/swiftwin-build-and-run-swiftui-iphone-apps-from-windows-no-mac.txt", "jsonld": "https://wpnews.pro/news/swiftwin-build-and-run-swiftui-iphone-apps-from-windows-no-mac.jsonld"}}