将设备添加到自动生成的 Xcode 5 配置文件

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

Add device to auto-generated Xcode 5 provisioning profile

xcodeprovisioning-profile

提问by zp26

I have created a simple project with XCode 5. When I have created the project, XCode automatically generate the provisioning profile for my app. (I see it on my provisioning portal). But now I added and removed some devices from my device list. Is there a way to add a devices to provisioning profile generated by Xcode 5.

我用 XCode 5 创建了一个简单的项目。当我创建这个项目时,XCode 会自动为我的应用程序生成配置文件。(我在我的配置门户上看到它)。但是现在我从我的设备列表中添加和删除了一些设备。有没有办法将设备添加到由 Xcode 5.x 生成的配置文件?

Thanks

谢谢

采纳答案by Bart van den Berg

Right click on the on your device and select "Add Device to Member Center". That will add your device to your provisioning portal.

右键单击您设备上的 并选择“将设备添加到会员中心”。这会将您的设备添加到您的配置门户。

Example rightclick add device to member center

示例右键单击将设备添加到会员中心

Per XCode 5, provisioning profiles are managed by XCode 5. You see this in your Developer account.

根据 XCode 5,供应配置文件由 XCode 5 管理。您可以在开发人员帐户中看到这一点。

Screenshot provisioning center for developers @ apple

开发者截图配置中心@apple

If you wish to develop, you should create a new profile by clicking [+] on the top right and selecting "iOS App Development". You can then select which device you would like to add to this profile. Later on, you can add additional devices.

如果你想开发,你应该通过点击右上角的 [+] 并选择“iOS App Development”来创建一个新的配置文件。然后,您可以选择要添加到此配置文件的设备。稍后,您可以添加其他设备。

Apparently from Xcode, profiles that are managed by Xcode can not be altered.

显然,从 Xcode 来看,由 Xcode 管理的配置文件无法更改。

Screenshot add new development certificate

截图添加新的开发证书

回答by Adil Malik

This is what worked for me:

这对我有用:

Go to Apple development portal and add the device (UDID) as you normally do. Till now the UDID is not added to your provisioning profile.

转到 Apple 开发门户并像往常一样添加设备 (UDID)。到目前为止,UDID 尚未添加到您的配置文件中。

In Xcode, go to project settings and select Add an Accountfrom the Teamdropdown.

在 Xcode 中,转到项目设置并Add an AccountTeam下拉列表中进行选择。

enter image description here

在此处输入图片说明

A dialog will pop up. Just press Cancel. (if xCode automatically generated Profiles that means you'd already have the account setup. You don't need to add a new account)

将弹出一个对话框。只需按Cancel。(如果 xCode 自动生成配置文件,则意味着您已经拥有帐户设置。您不需要添加新帐户)

Now from left side, select the Apple account this project belongs to.

现在从左侧选择该项目所属的 Apple 帐户。

Click View Details

点击 View Details

Now just click the refresh button at the bottom left side of the window.

现在只需单击窗口左下角的刷新按钮。

enter image description here

在此处输入图片说明

It will take some time to refresh, but when it finishes, the UDID will be added to your X-Code generated Provisioning Profile.

刷新需要一些时间,但完成后,UDID 将添加到您的 X-Code 生成的配置文件中。

回答by Benedicte Raae

I deleted the provisioning profile from iOS Provisioning Profiles on developer.apple.com and then xCode automagically regenerated it with the new devices added.

我从 developer.apple.com 上的 iOS Provisioning Profiles 中删除了配置文件,然后 xCode 使用添加的新设备自动重新生成它。

Took a few "update please" in Preferences->Accounts->Provisioning Profiles in xCode before the change happened.

在更改发生之前,在 xCode 中的 Preferences->Accounts->Provisioning Profiles 中进行了一些“请更新”。