ios 错误:“会员中心没有注册设备”- UDID 无效?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/19187379/
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 02:05:30  来源:igfitidea点击:

Error: "No devices registered in member center" - Invalid UDID?

iphoneiosxcodeios-provisioningudid

提问by user2847499

I am receiving the errors "No matching provisioning profiles found"[for your UDID], "The selected team doesn't have an iOS Developer Program membership" (Yes, it does. It's active.), and "Unable to create provisioning profile because your team has no devices registered in the Member Center. Please connect a device and enable it for development, and add it to the Member Center." (I already have an active provisioning profile in the Member Center.).

我收到错误“找不到匹配的配置文件”[对于您的 UDID]、“所选团队没有 iOS 开发人员计划成员资格”(是的,它是。它处于活动状态。)和“无法创建配置文件因为您的团队没有在会员中心注册设备。请连接设备并启用它进行开发,并将其添加到会员中心。” (我已经在会员中心有一个活动的配置文件。)。

When I try to register my Macbook as a development device, I receive the error, "Please enter a valid Hardware UDID". My path is iOS Developer site->Members Center->"Manage your certificates, App IDs, devices, and provisioning profiles."->Devices->Register Manually. I copy and pasted my Macbook's Hardware UDID from About This Mac->More Info->System Report-> Hardware UDID.

当我尝试将我的 Macbook 注册为开发设备时,收到错误“请输入有效的硬件 UDID”。我的路径是 iOS 开发者站点->会员中心->“管理您的证书、App ID、设备和配置文件。”->设备->手动注册。我从“关于本机”->“更多信息”->“系统报告”->“硬件 UDID”复制并粘贴了我的 Macbook 的硬件 UDID。

Do I have to provide Xcode with an Apple iOS device (Not just an Apple device like my Macbook) in order to publish my completed, simulator tested code? Is there something else I'm supposed to do with this?

我是否必须为 Xcode 提供 Apple iOS 设备(不仅仅是像我的 Macbook 这样的 Apple 设备)才能发布我完成的、经过模拟器测试的代码?还有什么我应该做的吗?

回答by Ross Henderson

This answer is posted a bit further down the line than when the question was posted. I'm using Xcode 6, but had the same issue. The deal is that Xcode is looking for a provisioning profile that has an iOS deviceassociated with it. In this case 'development device' means an iOS device - a target device, if you will, and not the machine you are developing on.

与发布问题时相比,此答案发布得更远。我正在使用 Xcode 6,但遇到了同样的问题。这笔交易是 Xcode 正在寻找具有与其关联的iOS 设备的配置文件。在这种情况下,“开发设备”是指 iOS 设备 - 目标设备(如果您愿意的话),而不是您正在开发的机器。

Step 1

第1步

To create a Provisioning Profile, you'll need to log in to your Apple Developer account (http://developer.apple.com, then go to Member Centerin the nav at the top of the site). Supposedly you can also do it from the Organizer window in Xcode, but I couldn't.

要创建配置文件,您需要登录您的 Apple 开发人员帐户(http://developer.apple.com,然后转到站点顶部导航中的会员中心)。据说您也可以从 Xcode 的 Organizer 窗口执行此操作,但我不能。

Once you log in to your developer account, enter the ‘Certificates, Identifiers & and Profiles' area and you will see a short article titled Getting Started with iOS Provisioning Profiles. Read it, it's short and helpful.

登录到开发者帐户后,进入“证书、标识符和配置文件”区域,您将看到一篇标题为“ iOS 配置配置文件入门”的短文。阅读它,它简短而有用。

Near the bottom of the article is a link to create provisioning files manually. Click it. This will take you to a short wizard for generating provisioning profiles.

文章底部附近是手动创建配置文件的链接。点击它。 这将带您进入用于生成配置文件的简短向导。

If you read that little article, you're aware that there are two kinds of provisioning files - development and distribution. Or maybe you already knew. But be sure to know now, because the first step in this process is to select whether to create a profile for development or distribution. I haven't set up a profile for distribution, yet, so the rest of this answer will fork towards setting up a profile for development.

如果您阅读了那篇小文章,您就会知道有两种配置文件 - 开发和分发。或者也许你已经知道了。但是现在一定要知道,因为此过程的第一步是选择是创建用于开发还是分发的配置文件。我还没有设置用于分发的配置文件,所以这个答案的其余部分将用于设置用于开发的配置文件。

Step 2

第2步

You can set up a development profile one of two ways -

您可以通过以下两种方式之一设置开发配置文件 -

  1. A specificprofile for a specific app (and remember, you can create multiple profiles)
  2. A wildcardprofile that you can use in the development of any app
  1. 一个具体的特定应用的配置文件(记住,你可以创建多个配置文件)
  2. 一个通配符的个人资料,你可以在任何应用程序的开发中使用

The wildcardoption works best for my situation, but I expect the remaining steps to be more or less the same, either way.

通配符选项最适合我的情况,但我希望剩下的步骤是或多或少相同,无论哪种方式。

Step 3

第 3 步

The next step in the process is to register your device/s. You have the option of registering just one device for your provisioning profile, or multiple. Either way, the process is the same - you need to provide a name and a UDID for each device you register to the profile.

该过程的下一步是注册您的设备。您可以选择只为您的配置文件注册一台设备,也可以选择多台设备。无论哪种方式,过程都是相同的 - 您需要为注册到配置文件的每个设备提供名称和 UDID。

Getting the UDID

获取 UDID

Getting the UDID may seem tricky if you don't already know how to get this information, but it's easy. Plug your device in to your machine, open iTunes, and view your device. You will see your device's Serial Number listed. Click on it, and it will change to your device's UDID. Incidentally, if you click on the UDID, you'll get the ECID, and after that the Product Type.

To copy the UDID, go to iTunes main menu Edit -> Copy UDID. The normal Copy functionality has temporarily changed to ‘Copy UDID'. Note that you can not select the UDID in your dashboard and copy it that way.

如果您还不知道如何获取此信息,则获取 UDID 可能看起来很棘手,但它很容易。将您的设备插入您的机器,打开 iTunes,然后查看您的设备。您将看到列出了您设备的序列号。单击它,它将更改为您设备的 UDID。顺便说一下,如果您单击 UDID,您将获得 ECID,然后是产品类型。

要复制 UDID,请转到 iTunes 主菜单编辑 -> 复制 UDID。正常的复制功能已暂时更改为“复制 UDID”。请注意,您不能在仪表板中选择 UDID 并以这种方式复制它。

All that's left is to click the Continue button, and then confirm that the information you've entered is correct before hitting the Continue button for the last time. You can edit your info at this point, but once you hit the Continue button the profile can't be uncreated.

剩下的就是点击继续按钮,然后在最后一次点击继续按钮之前确认您输入的信息是正确的。此时您可以编辑您的信息,但是一旦您点击“继续”按钮,就无法取消创建配置文件。

And that's it.

就是这样。

Two blog posts that helped me walk through this, complete with extensive instructions and images, are:

帮助我完成这个过程的两篇博客文章,包括大量的说明和图片,是:

Device Provisioning at developer.xamarin.com http://developer.xamarin.com/guides/ios/getting_started/installation/device_provisioning/

developer.xamarin.com 上的设备预配 http://developer.xamarin.com/guides/ios/getting_started/installation/device_provisioning/

Finding Your iPhone's Unique Identifier (UDID) at www.innerfence.com https://www.innerfence.com/howto/find-iphone-unique-device-identifier-udid

在 www.innerfence.com 上查找 iPhone 的唯一标识符 (UDID) https://www.innerfence.com/howto/find-iphone-unique-device-identifier-udid

回答by Sergey Grischyov

No need to copy UDID of your Mac! That's insane.

无需复制 Mac 的 UDID!那太疯狂了。

Instead, you need a real iDevice to publish and release iOS apps. You connect your devices and add them to portal in the XCode Organizer: enter image description hereWhen the device was added - it has a green indicator near it. And yes, you can then submit an iOS app provided the device you connected is OK and the build target is indeed the iDevice.

相反,您需要一个真正的 iDevice 来发布和发布 iOS 应用程序。您连接您的设备并将它们添加到 XCode 管理器中的门户: 在此处输入图片说明添加设备后 - 它附近有一个绿色指示器。是的,如果您连接的设备正常并且构建目标确实是 iDevice,您就可以提交一个 iOS 应用程序。

回答by Alex Blundell

You don't need to register a mobile device with a developer program to publish to the app store (although it's a good idea for testing etc.). To submit, you need to select the target "iOS Device" and go to Product->Archivewhich will give you the option to submit for validation/to App Store.

您无需使用开发人员程序注册移动设备即可发布到应用程序商店(尽管这对于测试等来说是个好主意)。要提交,您需要选择目标“iOS 设备”并转到Product->Archive它,您可以选择提交以供验证/到 App Store。

回答by markashworth

Select "Mac Apps" from the dropdown menu (top left) where it is currently displaying the words "iOS Apps".

从下拉菜单(左上角)中选择“Mac Apps”,当前显示“iOS Apps”字样。

回答by wali naqvi

You need to enter UDID of devices on which your application will run(iPhone,iPad),not of your mac .

您需要输入您的应用程序将在其上运行的设备(iPhone、iPad)的 UDID,而不是您的 mac。