IOS 模拟器安装 app

Tags
ios
Created
Apr 1, 2019 6:16 AM

https://blog.csdn.net/huayu_huayu/article/details/79094298

查找模拟器

instruments -s

启动模拟器

xcrun instruments -w 'iPhone X'

安装app

xcrun simctl install booted /Users/builder/builder/document/other/551/Payload/DYZB.app

// xcrun simctl install booted是命令,后面的是需要安装的app路径,先去appstore下载或者自己打包编译的ipa,用归档工具打开,拖动playload文件夹下的程序文件到终端即可,按下enter,即可在模拟器上看到安装的app

启动app

xcrun simctl launch booted 'com.tencent.live4iphone'

卸载app

xcrun simctl uninstall booted 'com.tencent.live4iphone'
SuperMade with Super