The hardware clipboard test's device-to-Mac check passes with DeviceHub sync on

オープン 初心者向け
#2,080 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

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

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
64/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
ios, typescript
領域
mobile, testing

調査の方向性

e2e/helpers/clipboard.ts:28 の expectClipboardIsolated から始め、デバイスからMacへの手順でクリップボードをどのように書き込み、読み取るかを確認してください。DeviceHubでシミュレーターを同期して再現し、クリップボードが同期される場合にチェックが失敗し、同期されない場合に成功することを確認してください。issueには、シミュレーター内でのコピーはまだテストされていないと記載されています。

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

説明

bug:new
What happened

expectClipboardIsolated (e2e/helpers/clipboard.ts:28) checks the device-to-Mac direction by writing the simulator's pasteboard with xcrun simctl pbcopy <udid> and reading the Mac's 3 s later. With DeviceHub syncing that simulator, text written this way never reached the Mac, so the check passes whether sync is on or off.

Xcode 27.2 (27B52), macOS 27.0.1, DeviceHub running, simulator selected, no pasteboardSyncEnabled entry
host->device  SYNCED (1 s)
device->host  not synced after 8 s, mac still holds the host text
What you expected

The device-to-Mac half fails when DeviceHub syncs the simulator's clipboard to the Mac.

How to reproduce
  1. Boot a simulator in Xcode's device set, open DeviceHub, select the simulator.
  2. printf host-1 | pbcopy, then xcrun simctl pbpaste <udid> prints host-1 within 2 s.
  3. printf device-1 | xcrun simctl pbcopy <udid>, wait 8 s, pbpaste still prints host-1.
Environment

Xcode 27.2 (27B52), macOS 27.0.1, iOS 27.2 simulator (iPhone 16).

Logs and evidence

Found while checking #2073. Not checked: whether a copy made inside the simulator (not through simctl pbcopy) reaches the Mac.

Written by an agent.

主要言語
TypeScript
スター
730
フォーク
44
平均マージ
15時間 28分
マージ済み PR(30日)
387

環境構築

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

はじめの一歩

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

callstackincubator/simlock のほかの issue

callstackincubator/simlock の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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