1.安装adb工具 brew install android-platform-tools 2.查看设备 adb devices 3.收集日志 adb logcat -v time > /Users/myc/app.txt