Xcode 8 asks for a device to be registered to create provisioning profile

I fixed it by plugging in my iPhone and going to menu Product > Destination > iPhone (my device).

Then after clicking Try Again on this properties page the warnings went away.

Source


This really sucked to figure out.

What you do is add a distribution profile in https://developer.apple.com/account/resources/profiles/add. Don't choose development! Don't let the Xcode Automatically manage signing!!

Then, you download the provision.

Then, in the Signing & Capabilities -> Signing Section of the project.xcodeproj file, turn off Automatcially manage signing, choose import and import the file you just downloaded.

Then, in the top, you choose Any iOS Device (arm64, armv7) and then you go Product -> Archive.

image of it


What happened to me was that I was about to run my app on a physical device for the first time and I didn't have a Team. So I created it in the process before connecting my phone with the USB cable. After I created the team a message like the listed above appeared. I did some research on internet but nothing found.

So here's what I did: I connected my phone, did all the trusted process, then restarted Xcode, and it worked. I am not sure what happened, but it was some of my first experiences using Xcode. It could sounds silly but it helped me. Hope to you too.


The solution (though I would welcome more elaborate, insightful explanations):

  • @General -> Signing, disable the option "Automatically manage signing"
  • @General -> Signing and certificates choose your team

Though in my case that was not the issue, I would recommend making sure that in the device list, you choose Generic iOS device in your target devices.

Tags:

Ios

Iphone

Xcode