锻炼吃饭的家伙

命令行启动iOS模拟器

2019-03-05  本文已影响468人  twj小鱼儿

1、终端列出你安装的所有可用的设备

xcrun instruments -s 或 xcrun simctl list

2、启动方式一:

先启动模拟器:open -a Simulator,这时会以默认的iOS系统 版本启动;

启动iOS系统:xcrun simctl boot "第一步simctl列表中的模拟器名" 或 xcrun instruments -w "第一步instruments列表中的模拟器名";

3、启动方式二:

先启动iOS系统再启动模拟器,即把启动方式一的顺序倒过来;

4、安装指定的app

xcrun simctl install booted <app路径>

5、xcrun simctl launch booted <app identifier>

6、xcrun simctl uninstall booted <app identifier>

上一篇 下一篇

猜你喜欢

热点阅读