$brew install ideviceinstaller //命令行工具(类似android的adb),主要用于管理iOS设备上应用程序的安装与卸载,以及查看相关信息
$ideviceinstaller -l //查看所连接的ios设备里已安装的应用信息
com.ingka.ikea.app.cn.prod, "376", "IKEA宜家家居" jp.olympus-imaging.oipalette, "2.0.3", "OI.Palette" video.vue.visionary, "1195", "VUE" com.baidu.netdisk, "11.8.1.1", "百度网盘" com.xmobileapp.meishijie, "7.4.2.0412", "美食杰" com.andisk.Andbag, "91", "andisk学习盘" com.tencent.live4iphone, "25441", "腾讯视频" com.hpbr.bosszhipin, "1617094916", "BOSS直聘" com.meitu.mtxx, "33778", "美图秀秀" com.apple.store.Jolly, "5.11.0.659", "Apple Store" com.unionpay.chsp, "1037", "云闪付" com.xiaomi.tvassistant, "188", "小米电视助手" com.qiyi.iphone, "20210402171100", "爱奇艺" com.apple.Keynote, "7355.0.34", "Keynote 讲演" com.yinxiang.iPhone, "374773", "印象笔记" com.xiaomi.LoanAssistant, "20220701", "房贷计算器" com.igola.travel, "1.0", "iGola骑鹅旅行"
$ideviceinfo //可以在返回的数据中找到 udid
$ideviceinstaller -i xx.ipa //安装app到设备
$idevice_id --list //显示当前所连接设备的 udid
$instruments -s devices //列出所有设备,包括真机、模拟器、mac
苹果手机 safari打开网址http://fir.im/udid 就看到了