开启simulator,安装app

默认本地环境已OK

开启simulator:

 

xcrun instruments -w 'iPhone 6 Plus'

xcrun instruments -w 'iPhone 11 (13.6)'

 iPhone 6 Plus 是device

 

安装app:

xcrun simctl install booted xxx.app 

xxx.app 是app包的路径

 

卸载app:

xcrun simctl uninstall booted com.xxx.calculator

om.xxx.calculator 是bundle

 

另外一种方式安装app:这样安装会直接开启app

查看模拟器列表:os-sim showdevicetypes

安装模拟器:ios-sim launch path.app --devicetypeid com.apple.CoreSimulator.SimDeviceType.iPhone-11

 

posted @ 2020-08-28 15:44  小心走火  阅读(1664)  评论(0编辑  收藏  举报