Reply to Lost connection to the debugger i too faced the problem, it was due to installing big sur on pre installed xcode on the machine it was resolved by removing xcode and installing the latest xcode Developer Tools & Services Xcode Sep ’21