iOS手机查看蓝牙底层日志

文章目录

参考文档:A New Way to Debug iOS Bluetooth Applications

一、需要的环境

  • iOS 13 device and cable
  • Mac computer/laptop
  • Apple Developer Program account

二、在iOS设备上安装Profiles文件

在手机浏览器打开链接
https://developer.apple.com/bug-reporting/profiles-and-logs/?name=bluetooth

在浏览器中点击Profile,下载文件

点击运行下载

在设置中找到描述文件,点击安装

三、安装Xcode

在App Store下载Xcode

四、安装packetLogger

通过链接,下载安装 Additional Tools ,点击Hardware,点击packetLogger应用

五、启动蓝牙数据包分析

连接设备,点击File-》New iOS Trace,打开一个新窗口

packketlogger将开始跟踪此配置文件安装的iOS设备上的所有蓝牙活动。在这个iOS设备屏幕的左上角,将显示一个脉冲图标(见下图)。这意味着跟踪正在进行中。

According to this session of WWDC 2019, the packetLogger can:

  • Work as a Bluetooth packet analysis application
  • Decode all protocols defined by the Bluetooth Special Interest Group * (SIG) and Apple
  • Perform rich filtering options
  • Search by text regex
  • Comment and flag packets
  • Export raw data for analysis
相关推荐
他们都不看好你,偏偏你最不争气3 小时前
iOS —— 天气预报仿写总结
ios
白玉cfc9 小时前
【iOS】网易云仿写
ui·ios·objective-c
归辞...12 小时前
「iOS」——内存五大分区
macos·ios·cocoa
HX43613 小时前
MP - List (not just list)
android·ios·全栈
忆江南17 小时前
NSProxy是啥,用来干嘛的
ios
忆江南17 小时前
dyld
ios
归辞...1 天前
「iOS」——GCD其他方法详解
macos·ios·cocoa
游戏开发爱好者81 天前
没有 Mac,如何上架 iOS App?多项目复用与流程标准化实战分享
android·ios·小程序·https·uni-app·iphone·webview
Digitally2 天前
如何将荣耀手机的照片传输到 Mac
macos·智能手机
Digitally2 天前
如何将 iPhone 备份到 Mac/MacBook
macos·ios·iphone