[Bug]: tap on an iOS 27 toolbar button reports success but does nothing; touch down/up works

Đang mở
#570 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
56/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
ios, typescript
Lĩnh vực
devtools, mobile

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

  1. Build and launch on an iOS 27.2 simulator.
  2. snapshot_ui lists the button as e15|tap|button|Save||.
  3. tap with elementRef: "e15" -> Tap on elementRef e15 simulated successfully.
  4. screenshot: nothing changed, no validation message.
  5. touch with elementRef: "e15", down: true, up: true -> reported as executed.
  6. 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
  • touch is a usable workaround for callers that know about it, but the tap tool description and nextSteps steer agents to tap, 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_ui failed once with Timed 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"] }
  }
}
Ngôn ngữ chính
TypeScript
Star
6.6k
Fork
329
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của getsentry/MobileBuildMCP

Tất cả issue của getsentry/MobileBuildMCP

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.