[Bug]: tap on an iOS 27 toolbar button reports success but does nothing; touch down/up works
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Anfängerfreundlichkeit
- 56/100
- Issue-Typ
- Bug
- Klarheit
- Größtenteils klar
- Aktivitätsstatus
- Aktiv
- Tech-Stack
- ios, typescript
Rechercherichtung
Trace the tap UI automation entry point and how it chooses the simulator tap style, then compare it with the touch path that activates the toolbar button. Reproduce on an iOS 27.2 simulator using the reported SwiftUI screen and elementRef e15. Done means a toolbar button tap activates the action or reports failure when it does not.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
Bug Description
On an iOS 27.2 simulator, tap on a navigation bar toolbar button (SwiftUI ToolbarItem with .confirmationAction) reports success but the button is not activated. touch (down + up) on the same elementRef does activate it.
This looks like the same root cause as #569 (default AXe tap style automatic -> FBSimulator tapAt not activating the control on iOS 27), but it is not limited to tab bar items: it also affects a plain toolbar Button. So tap is unreliable on iOS 27 for more than tab bars, and it reports SUCCEEDED anyway.
Reproduction
A minimal SwiftUI screen with a NavigationStack, a Form, and a toolbar Button("Save") whose action shows a validation message ("Enter a name.") when the name field is empty.
- Build and launch on an iOS 27.2 simulator.
snapshot_uilists the button ase15|tap|button|Save||.tapwithelementRef: "e15"->Tap on elementRef e15 simulated successfully.screenshot: nothing changed, no validation message.touchwithelementRef: "e15",down: true,up: true-> reported as executed.screenshot: the validation message "Enter a name." is now visible, so the button was activated.
CLI equivalents (run from the project directory, same simulator):
mobilebuildmcp ui-automation snapshot-ui --simulator-id <UDID>
mobilebuildmcp ui-automation tap --simulator-id <UDID> --element-ref e15 # no effect
mobilebuildmcp ui-automation touch --simulator-id <UDID> --element-ref e15 --down --up # works
Expected
tap on a toolbar button activates it, or does not report success when nothing was activated. As in #569, using the physical touch path for automatic mode, or exposing a tapStyle option, would unblock callers.
Additional notes
touchis a usable workaround for callers that know about it, but thetaptool description andnextStepssteer agents totap, so they conclude that "taps do not work" or that the UI is broken.- Separate and not reproduced again: right after launching the app, a first
snapshot_uifailed once withTimed out creating the simulator remote automation session. The same call succeeded a few minutes later without any other change, so it looks transient.
Debug Output (mobilebuildmcp-doctor, redacted output)
Server Version: 2.7.1
platform: darwin, release: 27.2.0, arch: arm64, Apple M1 Pro, 16 GB
Xcode 27.2 - Build version 27B52
axe: 1.8.0
UI Automation Supported: Yes
Simulator Video Capture Supported (AXe >= 1.1.0): Yes
Node.js: v26.2.0
Debugger backend: dap (lldb-dap available)
Editor/Client
Claude Code 2.1.318
MCP Server Version
2.7.1 (Homebrew), also run via CLI
LLM
Claude Sonnet 5.5
MCP Configuration
{
"mcpServers": {
"mobilebuild": { "command": "mobilebuildmcp", "args": ["mcp"] }
}
}
- Vorherrschende Sprache
- TypeScript
- Sterne
- 6.6k
- Forks
- 329
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Entwicklungsumgebung
Dieses Projekt bietet weder Dev-Container noch Dockerfile noch Beitragsleitfaden – die Einrichtung liegt bei Ihnen. Beginnen Sie mit der README; die allgemeinen Schritte stehen in unserem Leitfaden für den ersten Beitrag.
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus getsentry/MobileBuildMCP
-
bug
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 88/100
getsentry/MobileBuildMCP#576 ·
-
Warden weekly sweepOffen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 70/100
getsentry/MobileBuildMCP#495 ·
-
Schwierigkeit 3/5 Ein halber Tag Anfängerfreundlichkeit 42/100
getsentry/MobileBuildMCP#577 ·
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 48/100
getsentry/MobileBuildMCP#575 ·
-
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 65/100
getsentry/MobileBuildMCP#573 ·
Alle Issues in getsentry/MobileBuildMCP
Ähnliche Issues
-
sumHorizontal, maxHorizontal, minHorizontal, allHorizontal, anyHorizontal, struct and argSortBy treat strings as literals instead of column namesEvtl. vergeben @tomaionescu hat das heute übernommen. Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
pola-rs/nodejs-polars#486 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 62/100
jaegertracing/jaeger-ui#4853 ·
Maintainer antworten meist innerhalb von 1 Tag
-
area/plugins platform/linux reproduced type/bug version/v2
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
anomalyco/opencode#66970 · 3 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag
-
area:tui enhancement platform:macos
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
anthropics/claude-code#112838 ·
-
approved check:passed streams:add
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 66/100
Maintainer antworten meist innerhalb von 1 Tag