When I try to create a profile to build an iOS app by going to Project → General → Signing, and selecting my Team (Personal), I get two errors:
Failed to create provisioning profile.
There are no devices registered in your account on the developer website. Plug in and select a device to have Xcode register it.
No profiles for 'com.my.app.id' were found
Xcode couldn't find any iOS App Development provisioning profile matching 'com.my.app.id'.
I tried to check many tutorials and questions but nothing helped me to solve these errors. Many URLs take me to the Apple Development website, but there I only have the option to pay for the membership, and as I understood that's not necessary to build and run an app on an iOS device.