iOS app crashes, xcode says ‘Lost connection to X’s iPhone’ when debugging February 23, 2023 by Tarik Just chipping in for anyone else who is struggling on this one. For me the solution was to restart my device.