Token导航 LogoToken导航TokenDH.com
研究检索需要联网github未标认证来源可访问clear审计提醒

ios-simulator-pwa-testingiOS simulator PWA 测试

Agent Skill

用于辅助测试设计、自动化测试、用例整理和回归验证。它适合让 Agent 编写单元测试、端到端测试、测试计划或根据失败日志定位问题。使用时需要确认项目测试框架、运行命令和夹具数据,避免为了通过测试而改坏真实逻辑;涉及浏览器或外部服务时,应区分本地模拟、测试环境和生产环境。

总安装

475

周安装

20

GitHub Stars

1

下载量

166
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:ios-simulator-pwa-testing(iOS simulator PWA 测试)
来源仓库:https://github.com/sebastiaanwouters/dotagents
仓库路径:skills/ios-simulator-pwa-testing
安装命令:
npx skills add https://github.com/sebastiaanwouters/dotagents --skill ios-simulator-pwa-testing
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/sebastiaanwouters/dotagents --skill ios-simulator-pwa-testing

简介

该技能用于辅助测试设计、自动化测试和用例整理。ios-simulator-pwa-testing 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

  • 适合编写单元测试、端到端测试或根据日志定位问题。
  • 使用时需确认项目测试框架、运行命令和夹具数据。
  • 应避免为了通过测试而破坏真实逻辑,区分模拟与生产环境。
  • 涉及浏览器或外部服务时需明确本地测试与正式环境的差异。

SKILL.md

iOS Simulator PWA Testing

Test and debug Progressive Web Apps using iOS Simulator on macOS for a real iOS Safari experience.

Prerequisites

  • Xcode installed from App Store
  • Xcode Command Line Tools: xcode-select --install
  • Safari with Developer menu enabled

Quick Start

1. Launch Simulator

# Open Simulator app
open -a Simulator

# Or boot a specific device
xcrun simctl boot "iPhone 15 Pro"
open -a Simulator

2. Open Your PWA

# Open localhost URL (Mac's localhost is accessible from Simulator)
xcrun simctl openurl booted "http://localhost:3000"

# Or any URL
xcrun simctl openurl booted "https://your-pwa.com"

3. Debug with Safari Web Inspector

  1. Enable Safari Develop Menu: Safari → Settings → Advanced → "Show features for web developers"
  2. Open Safari on Mac
  3. Go to Develop menu → Simulator → Select your webpage
  4. Full Web Inspector opens with Console, Elements, Network, etc.

simctl Commands Reference

Device Management

# List all available simulators
xcrun simctl list devices

# List only booted simulators
xcrun simctl list devices | grep Booted

# Boot a simulator
xcrun simctl boot "iPhone 15 Pro"
xcrun simctl boot <DEVICE-UUID>

# Shutdown simulator
xcrun simctl shutdown booted
xcrun simctl shutdown all

# Erase simulator (factory reset)
xcrun simctl erase booted

# Delete unavailable/old simulators
xcrun simctl delete unavailable

Opening URLs

# Open URL in booted simulator
xcrun simctl openurl booted "http://localhost:3000"

# Open URL in specific simulator
xcrun simctl openurl "iPhone 15 Pro" "https://example.com"

Screenshots & Recording

# Take screenshot
xcrun simctl io booted screenshot ~/Desktop/ios-screenshot.png

# Record video (Ctrl+C to stop)
xcrun simctl io booted recordVideo ~/Desktop/ios-recording.mp4

# With specific format
xcrun simctl io booted recordVideo --type=mp4 ~/Desktop/recording.mp4

Media & Files

# Add photos/videos to simulator
xcrun simctl addmedia booted ~/Desktop/test-image.png
xcrun simctl addmedia booted ~/Desktop/test-video.mp4

Safari Web Inspector Features

When connected via Develop menu:

  • Console: View JS logs, errors, service worker logs
  • Elements: Inspect DOM, modify CSS in real-time
  • Network: Monitor requests, check service worker caching
  • Sources: Debug JavaScript, set breakpoints
  • Storage: Inspect localStorage, IndexedDB, Cache Storage
  • Service Workers: Debug service worker (visible in Develop menu as separate context)

Debugging Service Workers

PWA Service Workers appear in Safari's Develop menu:

  1. Open Simulator with your PWA
  2. Safari → Develop → Simulator → Look for "Service Worker" entries
  3. Opens inspector with Console, Sources, Network tabs

Note: Service Worker debugging works BETTER in Simulator than on physical devices.

Accessibility Testing

Using Accessibility Inspector

  1. Open Xcode
  2. Xcode → Open Developer Tool → Accessibility Inspector
  3. Select Simulator from the device dropdown
  4. Hover over elements to see accessibility info
  5. Run Audit to find accessibility issues

Command Line Accessibility Snapshot

# Get accessibility hierarchy (requires running app)
xcrun simctl ui booted accessibility

PWA-Specific Testing

Add to Home Screen (Manual)

  1. Open your PWA URL in Safari on Simulator
  2. Tap Share button (bottom bar)
  3. Select "Add to Home Screen"
  4. PWA installs as standalone app

Testing Installed PWA

  • Installed PWAs run in Web.app engine (same as real device)
  • Access via Develop menu as separate web context
  • Test display-mode: standalone media queries
  • Verify splash screens, icons, theme colors

Manifest Validation

Check your manifest is loaded correctly:

  1. Open Web Inspector → Application tab (if available) or Network tab
  2. Look for manifest.json request
  3. Verify all icons, theme_color, display mode

Multi-Device Testing Script

Run scripts/multi-device-test.sh to test across multiple device sizes:

./scripts/multi-device-test.sh "http://localhost:3000"

Useful Keyboard Shortcuts (Simulator)

ShortcutAction
⌘ + Shift + HGo to Home Screen
⌘ + Shift + H (x2)App Switcher
⌘ + → / ⌘ + ←Rotate device
⌘ + STake screenshot
⌘ + RRecord video
⌘ + KToggle keyboard

Troubleshooting

"No Inspectable Applications" in Safari Develop menu

  • Ensure a webpage is open in Safari on Simulator
  • Restart Safari on Mac
  • Restart Simulator

Simulator not appearing in Develop menu

  • Quit Safari and Simulator
  • Reopen Simulator first, then Safari

localhost not working

  • Use http://localhost:PORT (Simulator shares Mac's network stack)
  • Try http://127.0.0.1:PORT as alternative

Service Worker not updating

  • Clear Safari cache in Simulator: Settings → Safari → Clear History and Website Data
  • Or erase simulator: xcrun simctl erase booted

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Claude Code

30.25%
按下载量换算50

Antigravity

22.25%
按下载量换算37

windsurf

19.43%
按下载量换算32

trae

12.86%
按下载量换算21

github-copilot

8.63%
按下载量换算14

OpenCode

3.33%
按下载量换算6

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。

来源信息

继续浏览同类 Skills