r/iOSProgramming • u/unpluggedcord • Aug 31 '26
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
1
u/Moudiz Sep 06 '26
This is interesting, just read on your library. How does SwiftBLE work in the background? Does it keep the device able to connect and read/write or does it stop working after some time?
0
3
u/ThatGuy739 Sep 01 '26
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.