在Windows 上查看ios日志信息

在Windows 上查看ios日志信息

tidevice 用于与ios设备通信

#安装
需要python环境 ,python3.6+

pip3 install -U "tidevice[openssl]"   # Recommend

如果上面的命令提示安装失败,就试试下面的命令。(不过这种方法安装,配对功能就没有了,因为没有办法进行签名)

pip3 install -U tidevice

日志查看

#输出日志
$ tidevice syslog

#过滤关键字
$ tidevice -u 54be2e6fe05b210b424a2a9f134203da9b8b0053 syslog|grep -a gameRoundId

设备管理

#查看版本号
$ tidevice version
tidevice version 0.6.4

#配对
$ tidevice pair 
#指定设备
$ tidevice -u 54be2e6fe05b210b424a2a9f134203da9b8b0053 pair
#取消配对
$ tidevice unpair

#列出设备列表
$ tidevice list
List of apple devices attached
59f9af2bace0**********6e6b2f49ec3254 Tawen usb

$ tidevice list --json
[
    {
        "udid": "59f9af2bace0**********6e6b2f49ec3254",
        "name": "Tawen",
        "conn_type": "usb"
    }
]

# 查看设备信息
$ tidevice info
MarketName:       iPhone 7
DeviceName:       Tawen
ProductVersion:   14.1
ProductType:      iPhone9,1


$ tidevice info --domain com.apple.mobile.battery --json
{
    "BatteryCurrentCapacity": 54,
    "BatteryIsCharging": true,
    "ExternalChargeCapable": false,
    "ExternalConnected": true,
    "FullyCharged": false,
    "GasGaugeCapability": true,
    "HasBattery": true
}


应用管理

# 安装应用
$ tidevice install test.ipa

# 指定设备安装
$ tidevice --udid $UDID install test.ipa

# 卸载应用
$ tidevice uninstall com.test.demo

# 启动应用
$ tidevice launch com.test.demo

# 停止应用
$ tidevice kill com.test.demo

# 查看已安装应用
$ tidevice applist

# 查看运行中的应用
$ tidevice ps
$ tidevice ps --json output as json

其他操作

#重启
$ tidevice reboot

#截图
$ tidevice screenshot screenshot.jpg


  • 26
    点赞
  • 8
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值