This is happening to me when I try to run on a locked device. The run button is grayed. I can still run it from the menu Product->Run but the keyboard shortcut is also grayed. I need to restart Xcode and make sure my device is unlocked or else it'll gray out again. I'm using an iPhone 12 mini running 14.2.1 on Xcode 12.2 (12B45b)