xcode 终端调起模拟器

首先不要忘记编译生成.app
xcodebuild -project xx.xcodeproj  -target Wire-iOS -sdk $t -configuration Debug   >/dev/null 2>&1

xcode的模拟器 xcrun获取模拟器信息命令
1、列出你安装的所有可用的设备 xcrun instruments -s 2、开启指定模拟器(上面的列表就是可用模拟器名称) xcrun instruments -w "iPhone 8 (11.2)" 使用的Xcode的simctl命令来控制模拟器 1、安装指定的app xcrun simctl install booted <app路径> 2、运行指定的app (com.example.app) xcrun simctl launch booted <app identifier> 3、卸载指定的应用 xcrun simctl uninstall booted <app identifier>

猜你喜欢

转载自www.cnblogs.com/KingQiangzi/p/11929330.html