rsandhu
7 hours ago
Hi HN, I’m building MobileCode, an open-source fork of opencode focused on mobile development: https://github.com/hsandhu/mobilecode MobileCode detects iOS and Android projects, starts the appropriate simulator or emulator preview server, and renders the live device beside your coding session. For iOS, it detects Xcode projects, workspaces, CocoaPods, and Expo apps. It uses serve-sim to stream the iOS Simulator. For Android, it detects Gradle projects. It uses serve-avd to stream the Android Emulator.
Under the hood, iOS builds use xcodebuild, simctl install, and simctl launch. Android builds use the project’s Gradle wrapper, adb install, and an explicit launch intent. The device operations are also exposed through an HTTP API.