方法一: 使用ideviceinstaller工具
# 安装ipa命令
brew install ideviceinstaller
ideviceinstaller -i xxx.ipa
# 查看运行日志
idevicesyslog
# idevicesyslog 查找命令
idevicesyslog | grep 'test' -A 3 -B 2 # 输出关键字所在行后3行,前2行)
idevicesyslog | sed -n '/push event :/,/}$/p' # 查找所有的打点
查看对应包的日志:

方法二:使用xCode
window->Devices and Simulators->我的iphone设备->选择"View Device Logs"


方法三:使用Mac自带应用"控制台",选择对应设备

方法四:使用ios-deploy
# 安装
brew install ios-deploy
# 快速验证app的签名是否正确
ios-deploy -d -b xxx.app