Can't Provision A Device

Hi

First, I hope I'm in the right place, I'm not certain. I'm having my first attempt at IOS development and want to see the progress I've made on my phone. I plugged it in to my Mac and selected it as a preview device and got the following messages in the Signing & Capabilities screen:

Your team has no devices from which to generate a provisioning profile. Connect a device to use or manually add device IDs in Certificates, Identifiers & Profiles. https://developer.apple.com/account/

No profiles for '...' were found: Xcode couldn't find any iOS App Development provisioning profiles matching '...'.

My account and personal team are shown in the Xcode settings, but it says 0 Provisioned Devices. I also tried restarting, and enabled developer mode on the phone. I checked the provided link, but saw nowhere to add a device ID. Clearly I don't understand what I'm doing. Can anyone help me make sense of this?

What version of Xcode do you have? Make sure you are running the latest release so Xcode can provision your devices

I would recommend to read the where section of TN3125 Inside Code Signing: Provisioning Profiles,

Hope this helps,

Albert Pascual
  Worldwide Developer Relations.

Accepted Answer

you said "selected it as a preview device" - what do you mean here? It sounds like you selected your model of phone for the simulator.

In the middle top of the Xcode window, it shows your target name a run destination. By default, that run destination for an iOS app is a simulator.

Plug in your phone. If it doesn't appear in the popup menu as a run destination, choose "Manage run destinations..." from that menu. It should show up as "discovered" in the list on the left of the Run Destinations window.

The first time you pair the phone with Xcode takes quite a while (several minutes for me).

Can't Provision A Device
 
 
Q