Repository navigation
Mobile test setup: Android emulator and iPhone simulator in one step - #221
Merged
Merged
Conversation
- .claude/skills/mobile-test: android.sh opens a page in Chrome on the floe-pixel9 emulator (Pixel 9, Android 17) and connects Chrome's DevTools on 127.0.0.1:9333; ios.sh opens it in Safari on the iPhone 17 simulator and streams Safari's console to a file. SKILL.md says how Claude Code screenshots, taps and reads errors on each. - .mcp.json: Google's chrome-devtools-mcp 1.11.0, pinned, usage statistics and CrUX off, for the emulator's Chrome. - docs/mobile-testing.md: the how-to for people. The emulator uses a software GPU: with the Mac's GPU, Chrome's WebGL on Android 17 shows a blank world or "Error creating WebGL context", which looks like a game bug but isn't. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A one-step way to open the game on phones on the Mac, so player reports from iPhones and Android Chrome can be reproduced. Claude Code can screenshot, tap and read console errors on both.
What's in it
.claude/skills/mobile-test/(repo skill):android.sh [url]opens a page in Chrome on thefloe-pixel9emulator (Pixel 9, Android 17 Google APIs, 4 GB) and connects Chrome's DevTools on127.0.0.1:9333.ios.sh [url]opens it in Safari on the iPhone 17 simulator and streams Safari's console to$TMPDIR/floe-mobile/ios-console.log. The default url is the demo build onlocalhost:5177; the live game works too..mcp.json: Google's chrome-devtools-mcp, pinned at 1.11.0, with usage statistics and CrUX off. Pointed at the emulator's Chrome, it reads the console and network, runs JS and takes screenshots. Claude Code asks once before it starts a project MCP server.docs/mobile-testing.md: the how-to for people.Findings
WebKitLogsPageMessagesToSystemConsoleEnabledand itsDebugtwin, both needed) copy every console message into the simulator's log.localhostreaches the Mac throughadb reverse, so a dev server that only listens on[::1]works, and the page stays a secure context.10.0.2.2gets neither.GuestAngleit shows "Error creating WebGL context", the same text as the casino crash report. Both look like game bugs but aren't.Checked on the Pixel 9 emulator and the iPhone 17 simulator, with the live game (stage 1) and the demo build (stage 2): screenshots of each, and console errors read on both, including test errors to show they come through.
Not in the repo: Android Studio and the SDK (Homebrew casks
android-studioandandroid-commandlinetools), and the emulator in~/.android/avd. Legal checks don't apply: nothing here ships in the game.🤖 Generated with Claude Code