I have the same problem, but solved this by doing the following things:
For simulators running iOS 14, delete folders inside ~/Library/Developer/Xcode/iOS DeviceSupport/ (folder’s name started with “14”).
For devices running iOS 14, select Xcode window tab, click Devices and Simulators, find your device, right-click to unpair the device
After doing the work, re-run your app, everything should be ok.
References:
- Apple forum post: Xcode 11 hangs while attaching debugger to ios process
- StackOverflow answer from: Can I delete data from the iOS DeviceSupport directory?