From Xcode to my Phone

Hii all,
I’m a new on xcode, but i make a small program and i want to install it to my phone but i cant!!
Do u have a way to do it without a developer account?

You connect your phone to your Mac via USB. Instead of running a simulator, choose your phone.

You may have to go into settings and “accept” that you can run apps from this “developer account” and then it should download to your phone