前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >iOS命令行工具

iOS命令行工具

作者头像
沈宥
发布2022-06-21 15:07:15
2.1K0
发布2022-06-21 15:07:15
举报

工具汇总

libimobiledevice:使用本机协议与 iOS 真机设备上的服务进行通信的开源包

ideviceinstaller:用于管理 iOS 设备上的应用程序和应用程序存档的命令行应用程序

xcrun simctl:Xcode自带,用来管理iOS模拟器的库

instruments:Xcode自带性能测试工具,可利用命令行调用

libimobiledevice

Git地址:https://github.com/libimobiledevice/libimobiledevice

常用命令

idevice_id:查看当前已连接的设备的UUID

idevicesyslog:查看系统日志

idevicescreenshot:生成一张当前已连接设备的截图

idevicedate:获取设备时间

ideviceinfo:查看设备信息

ideviceinstaller

Git地址:https://github.com/libimobiledevice/ideviceinstaller

常用命令

ideviceinstaller --list-apps:获取app列表和信息

ideviceinstaller -u [udid] --install [xxx.ipa]:给指定连接的设备安装应用

ideviceinstaller --uninstall [bundle id]:卸载指定应用

xcrun simctl

常用命令

xcrun simctl list:查看设备状态

xcrun simctl boot [UDID]:启动指定设备名称的模拟器

xcrun simctl shutdown [UDID]:关闭指定设备名称的模拟器

xcrun simctl install <uuid> <app路径>:安装APP

xcrun simctl launch <device> <bundle identifier>:启动指定APP

instruments

常用命令

instruments -s devices:获取当前已连接设备

备注:

xcode 13版本后,已废弃 instruments -s devices;采用 xctrace list devices

Instruments -w [UDID] -t "App Launch" -P [bundle id]:指定APP启动instruments进行性能测试,'-t'指定instruments模板,如"App Launch"

本文参与 腾讯云自媒体同步曝光计划,分享自微信公众号。
原始发表:2022-05-17,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 从头开始学习测试开发 微信公众号,前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体同步曝光计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档