1. 查看模拟器的命令
1. 查看可用的模拟器设备
xcrun simctl list devicesxcrun simctl list2. 启动指定的模拟器
xcrun simctl boot "iPhone 15 Pro"xcrun simctl boot <设备UDID>3. 运行 iOS 模拟器
open -a Simulatorxcrun simctl boot "iPhone 15 Pro" && open -a Simulator4. 直接运行 App 到模拟器
5. 关闭模拟器
Last updated