Simulating app on my iPhone

When I run my app on the iOS simulator that apps runs perfectly. When I try to simulate my app on my iPhone it says build failed. I am using Xcode 13 my Mac is update to Mac OS Monterey and my iPhone is on the latest iOS version. How do I fix this?

When I try to simulate my app on my iPhone it says build failed.

Note that you don't simulate on iPhone, you run the app.

What is the complete error message you get ? Does it tell the reason it fails ?

If you look at error panel, what do you see ?

Have you tried to reboot both Mac and iPhone ?

It says this

The operation couldn't be completed. Unable to log in with account (my account email)'. The login details for account (my account email)' were rejected.

where it says my account email it actually says my email but I want to keep that private so I put the parentheses and my account email in the place of that.

Simulating app on my iPhone
 
 
Q