IOS – Xcode 10: Failed to create Provisioning Profile – There are no devices registered

code-signingiosxcode

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.

And:

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.

Best Answer

Make sure you have connected your iOS device to your Mac and selected it as the run destination.

Yes, you do not need a paid membership to the Apple developer program. You can register for an Apple developer account for free and can build and run apps on a maximum of upto three devices.