I solved by removing my iPhone from the Run Destinations and adding it back again, unsing a cable. Perhaps wireless would also work.
It stopped working after updating to MacOS Sequoya Beta and iOS 18 Beta.
You can manage Run Destinations by clicking on "Manage Run Destinations" under the available devices and emulators list.