Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

xcode

ios

iphone

I am trying to publish an app for testing, without having to connect a device in my mac.

I have created a developer account, created an app in itunes, generated bundle id, signed into xcode with the developer account, generated a distributor certificate.

When I tried to archive the app, I got the error "conflict provisioning setting. app is automatically signed for development ..."

I read in this post and followed the tip of unchecking and rechecking the option "Automatically manage signing". After re-choosing my team, I get the error "There are no devices registered in your account on the developer website. Plug in and select a device to have Xcode register it".

The goal all along was that I wouldn't need an ios device, because I intended to immediately publish the application and invite people to test it via testflight. Is it not possible to do it like this? Am I missing something.

I have read lots of documentation, but being a first timer in this, everything seems confusing.

Edit: I created a provisioning profile as distributor. Even after creating and installing the distributor profile (it now appears also in xcode at Account -> provisioning profiles), I still get that same error. I also noticed that in signing, The signing certificate is iOS Developer. I am sure

enter image description here

like image 349
Lazarus Rising Avatar asked Jul 20 '17 03:07

Lazarus Rising


4 Answers

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

like image 140
Nelu Avatar answered Oct 22 '22 16:10

Nelu


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.

like image 39
Lazarus Rising Avatar answered Oct 22 '22 16:10

Lazarus Rising


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

like image 5
Moe Singh Avatar answered Oct 22 '22 16:10

Moe Singh


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.

like image 2
JJeset BC Avatar answered Oct 22 '22 17:10

JJeset BC