How does Xcode communicate with an iOS device?
When you connect iPhone to Xcode and you click 'Use for Development', Xcode will download and mount DDI(Developer Disk Image). This image has DebugServer.app along other utilities that permit Xcode to perform development actions.