For anyone who has the related issue, even the chosen best answer not working, get stucked at step Selecting account:
Pls try check the targets: Signing & Capabilities, ensure both your APP and APPTests have selected the correct Team and Bundle identifier.