Signing for "Runner" requires a development team. Select a development team in the Signing & Capabilities editor

I can't Run my App on my iPhone in Release mode but I can Run it on Debug mode. In Release mode I get this error even though I am a-signed to a Team.

Signing for "Runner" requires a development team. Select a development team in the Signing & Capabilities editor.

I tried to sign-out from the Team and sign-in again and I also restarted Xcode.

Thank you for any Help LG

Is this right? enter image description here


Solution 1:

I assume that you did not select the team for all. It is only set for debug mode.

enter image description here

Solution 2:

For me I had to change my iOS Deployment Target from 8 to 9 or above, after selecting the development team.

screenshot