ios Xcode 8 要求注册设备以创建配置文件

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/45204842/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-31 09:20:42  来源:igfitidea点击:

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

iosiphonexcode

提问by Lazarus Rising

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

我正在尝试发布用于测试的应用程序,而无需在我的 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.

我创建了一个开发者帐户,在 iTunes 中创建了一个应用程序,生成了 bundle id,使用开发者帐户登录到 xcode,生成了一个分销商证书。

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

当我尝试存档应用程序时,出现错误“冲突配置设置。应用程序已自动签名以进行开发......”

I read in this postand 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".

我在这篇文章中阅读并遵循了取消选中并重新选中“自动管理签名”选项的提示。重新选择我的团队后,我收到错误消息“在开发者网站上,您的帐户中没有注册设备。插入并选择一个设备以让 Xcode 注册它”。

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.

一直以来的目标是我不需要 ios 设备,因为我打算立即发布应用程序并邀请人们通过 testflight 对其进行测试。难道不能这样做吗?我是不是错过了什么。

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

编辑:我作为分销商创建了一个配置文件。即使在创建并安装了经销商配置文件(它现在也出现在 xcode 中的帐户 -> 配置文件中)之后,我仍然遇到同样的错误。我还注意到在签名时,签名证书是 iOS Developer。我相信

enter image description here

在此处输入图片说明

采纳答案by Lazarus Rising

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
  • @General -> 签名,禁用“自动管理签名”选项
  • @General -> 签名和证书选择您的团队

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.

虽然在我的情况下这不是问题,但我建议确保在设备列表中,您在目标设备中选择通用 iOS 设备。

回答by JJeset BC

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.

发生在我身上的是我第一次在物理设备上运行我的应用程序,我没有团队。所以我在用 USB 线连接我的手机之前在这个过程中创建了它。在我创建团队后,出现了上面列出的消息。我在互联网上做了一些研究,但没有找到。

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.

所以这就是我所做的:我连接了我的手机,完成了所有受信任的过程,然后重新启动 Xcode,它工作正常。我不确定发生了什么,但这是我第一次使用 Xcode 的经历。这听起来很傻,但它帮助了我。也希望你。

回答by l'L'l

If you do not wish to register a device follow this advice:

如果您不想注册设备,请遵循以下建议:

https://stackoverflow.com/a/44157307/499581

https://stackoverflow.com/a/44157307/499581

* In short use "Generic" as the device while archiving.

If you do wish to register a device then the solution to:

如果您确实希望注册设备,则解决方案为:

"There are no devices registered in your account on the developer website. Plug in and select a device to have Xcode register it".

“在开发者网站上,您的帐户中没有注册设备。插入并选择一个设备以让 Xcode 注册它”。

Is to physically plug-in your device (an actual iPhone, or iPad) so that Xcode can register it for development use (note: this will not affect the normal everyday use of the device). After the device is registered it can then be used for development testing, load provisioning profiles onto it, etc.

是将您的设备(实际的 iPhone 或 iPad)物理插入,以便 Xcode 可以注册它以进行开发使用(注意:这不会影响设备的正常日常使用)。设备注册后,可用于开发测试、在其上加载配置文件等。

? Disabling and Enabling Devices Using Your Developer Account

? 使用您的开发者帐户禁用和启用设备

回答by Sam Mendelson

Have you paid the $99/year developer fee? TestFlight is only available for paid developers. I would highly recommend plugging in an iOS device, though. It's more fun and rewarding testing that way.

您是否支付了 99 美元/年的开发者费?TestFlight 仅适用于付费开发人员。不过,我强烈建议插入 iOS 设备。这样的测试更有趣也更有意义。