iOS devices: `open <app> <url>` never delivers the URL, `--payload-url` is passed after the bundle ID
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 88/100
- Issue 类型
- 缺陷
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- ios, typescript
- 领域
- cli, mobile-dev, testing-qa
调研方向
从 packages/platform-apple/src/core/physical-device-coredevice.ts 中构建启动参数的部分开始,然后将其与 packages/platform-apple/src/core/tests/apps.test.ts 中的预期进行比较。运行相关的 apps 测试,并验证 payload URL 会被作为启动选项处理并传递到实体 iOS 设备,同时继续支持启动参数。
由索引模型根据 Issue 内容生成。
描述
Summary
On a physical iPhone, open <bundle-id> <url> and Maestro openLink launch the app, but the app never receives the URL. The same call with devicectl works when --payload-url comes before the bundle ID.
Cause
The launch arguments put --payload-url after the bundle ID:
devicectl treats everything after the bundle ID as program arguments for the app:
USAGE: devicectl device process launch [<options>] --device <...> <bundle-identifier-or-path> [<command-line-arguments> ...]
So the app receives --payload-url <url> in its argv and opens no link. The unit test pins the same order:
Repro
Same device, same app state (app running on its first screen), custom-scheme link to a screen with a visible marker:
| Call | Link opens |
|---|---|
devicectl device process launch --device <udid> <bundle-id> --payload-url <url> |
no |
devicectl device process launch --device <udid> --payload-url <url> <bundle-id> |
yes |
agent-device open <bundle-id> <url> --platform ios --udid <udid> |
no |
A cold launch with --payload-url before the bundle ID also opens the link.
Possible fix
Push --payload-url <url> before the bundle ID, and keep -- <launch args> after it. Update the two expectations in apps.test.ts.
Environment
- agent-device 0.21.14. Same code in 0.21.15 and on
mainat 16e0757 - iPhone 14 Pro, iOS 26.2, USB, CoreDevice backend
- Xcode 26.4
- 主要语言
- TypeScript
- 星标
- 4.8k
- 派生
- 315
- 平均合并
- 11 小时 25 分钟
- 30 天内合并 PR
- 545
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
callstack/agent-device 的其他 Issue
-
难度 1/5 1 小时以内 新手友好度 82/100
callstack/agent-device#3062 ·
维护者通常 1 天内回复
-
ready-for-agent
难度 2/5 1-3 小时 新手友好度 84/100
callstack/agent-device#2995 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100
callstack/agent-device#1869 ·
维护者通常 1 天内回复
-
难度 4/5 3-5 天 新手友好度 57/100
callstack/agent-device#3060 ·
维护者通常 1 天内回复
-
Android test-IME fill commits into a stale InputConnection session after focus moves to a new field未关闭
难度 3/5 1-2 天 新手友好度 74/100
callstack/agent-device#3052 ·
维护者通常 1 天内回复
查看 callstack/agent-device 的全部 Issue
相似的 Issue
-
Mend: dependency security vulnerability untriaged
难度 2/5 1-3 小时 新手友好度 68/100
opensearch-project/security-dashboards-plugin#2545 ·
维护者通常 1 天内回复
-
Add: Dream TR SD未关闭check:passed streams:add
难度 2/5 1-3 小时 新手友好度 70/100
维护者通常 1 天内回复
-
doctor integrity sample scans soft-deleted pages on Postgres (batch path has no deleted_at filter)未关闭
难度 2/5 1-3 小时 新手友好度 88/100
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 72/100
SocialGouv/egapro#4672 · 1 条评论 ·
维护者通常 2 天内回复
-
area:agents area:tui bug
难度 2/5 1-3 小时 新手友好度 74/100
anthropics/claude-code#98358 ·
维护者通常 1 天内回复