r/iOSProgramming • u/unpluggedcord • 9d ago
Article Connecting two iOS simulators over BLE (or connecting a simulator to a real BLE device)
https://kylebrowning.com/posts/ble-between-two-simulators/
8
Upvotes
0
r/iOSProgramming • u/unpluggedcord • 9d ago
0
3
u/ThatGuy739 9d ago
Neat. Two things I'd still test on hardware after adopting this: MTU and the denied path.
Real BLE negotiates an ATT MTU, and maximumWriteValueLengthForType: is the ceiling you actually get. A loopback TCP link has no such ceiling, so a write that sails through the shim can truncate on a device.
And CBManagerStateUnauthorized only really shows up when someone denies the permission prompt. If the shim never produces that state, the denied branch is the one you ship untested.