tap on an iOS 27 tab bar item reports success but does nothing (automatic style uses FBSimulator tapAt; physical touch works)

オープン
#569 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
64/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
ios, typescript
領域
devtools, mobile

調査の方向性

Start by reading the tap tool implementation and how it invokes bundled AXe, then check the batch tap step handling to see whether both paths share the same options. Reproduce the Settings tab case with the reported automatic and physical styles. Done when a tab tap selects the tab, or the caller can choose a style that does, and the tool reports failure if the UI remains unchanged.

索引モデルが issue の本文から書いたものです。

説明

Summary

On an iOS 27 simulator, tap on a tab bar item (SwiftUI TabView, the floating tab bar) returns SUCCEEDED, but the tab is not selected and the screen does not change. Running the bundled AXe directly shows why. Its default automatic tap style uses FBSimulator tapAt for anything that is not a switch or toggle, and that does not activate the tab. --tap-style physical (touch down and up) at the same resolved point does.

MobileBuildMCP's tap gives the caller no way to choose the style, so callers can't work around it.

Environment

  • MobileBuildMCP: 2.7.1 (npm), with its bundled AXe 1.8.0
  • macOS: 27.2 (26B123), Apple silicon
  • Xcode: 27.2 (27B52)
  • CoreSimulator: 1174.21
  • Simulator: iPhone 17 Pro, iOS 27.2 runtime (24B8117)

Reproduction

The app is a SwiftUI app with a TabView of four tabs: Library, Search, Import, Settings.

  1. Through MobileBuildMCP: snapshot_ui lists the tab as e59|tap|tab|Settings|0|shield. tap with elementRef: "e59" returns SUCCEEDED. A following snapshot_ui has the same screenHash, and the Settings tab's value stays 0.

  2. With the bundled AXe on the same booted simulator (describe-ui reports the tabs as RadioButton elements):

    $ axe tap --label Settings --element-type RadioButton --tap-style simulator --udid <UDID>
    ✓ Tap at resolved tap point at (328.0, 822.0) completed successfully
    # tabs: Library=1 Search=0 Import=0 Settings=0   (unchanged)
    
    $ axe tap --label Settings --element-type RadioButton --tap-style physical --udid <UDID>
    ✓ Tap at resolved tap point at (328.0, 822.0) completed successfully
    # tabs: Library=0 Search=0 Import=0 Settings=1   (selected)
    

    The default style (automatic) behaves like simulator here.

  3. Control: on the same Mac and runtime, a default-style tap on a row in Apple's Settings app ("General") navigates as expected. So tapAt works in general, but not on this tab bar.

Expected

tap on a tab bar item selects it, or at least does not report success when nothing was activated.

Suggestions (either would unblock callers)

  1. Use the physical touch (down/up) for tab bar items in automatic mode, as is already done for switches and toggles.
  2. Add an optional tap style parameter to tap (and to batch tap steps), for example tapStyle: "automatic" | "simulator" | "physical", passed through to AXe's --tap-style.

Context

We use MobileBuildMCP to run UI acceptance scenarios on simulators. Taps on tab bars worked for us on this Mac until about Nov 3, 2026, but we can't pin down what changed: the same AXe and MobileBuildMCP versions were in use throughout. Happy to test a build.

主要言語
TypeScript
スター
6.6k
フォーク
329
PR マージ指標
30日以内にマージされた PR はありません

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

getsentry/MobileBuildMCP のほかの issue

getsentry/MobileBuildMCP の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。