查看支持的模拟器列表及UUID
1 | xcrun simctl list |
启动运行模拟器:
1 | xcrun instruments -w 'iPhone 6 Plus' |
在已经启动好的模拟器中安装应用:
1 | // Usage: simctl install <device> <path> |
启动已安装的应用,需要用到bundleid
1 | xcrun simctl launch booted com.sincefox.zoucai.first |
也可以传入一些启动参数xcrun simctl launch booted com.taobao.tmall -DumplingsPort 7001。对应的客户端应用获取参数逻辑是:
1 | [[[NSUserDefaults standardUserDefaults] dictionaryRepresentation] enumerateKeysAndObjectsUsingBlock:^(NSString * _Nonnull key, id _Nonnull obj, BOOL * _Nonnull stop) { |