Xcode 的管理器窗口中没有用于开发

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

There is NO Use for Development in Xcode's Organizer window

iosxcode

提问by

I signed up with Apple's $99 development for iOS program today.
Under Certificates, Identifiers & Profiles in Xcode, no matter what I click on it tells me to:

我今天注册了 Apple 为 iOS 程序开发的 99 美元。
在 Xcode 中的 Certificates, Identifiers & Profiles 下,无论我点击什么,它都会告诉我:

Connect your device to your Mac and click Use for Development in Xcode's Organizer window. Sign in with the Apple ID associated with your iOS Developer Program membership and Xcode will automatically generate your certificates.

将您的设备连接到 Mac,然后在 Xcode 的管理器窗口中单击用于开发。使用与您的 iOS 开发者计划成员资格关联的 Apple ID 登录,Xcode 将自动生成您的证书。

In Xcode 6.1, I go to Window then Organizer and I only see projects and Archives. No device next to it and no button to click "Use For Development" and I have my iPhone connected.

在 Xcode 6.1 中,我转到 Window,然后转到 Organizer,我只看到项目和档案。它旁边没有设备,也没有单击“用于开发”的按钮,我已经连接了我的 iPhone。

Funny thing is I already connected my iPhone app game to work on an iPhone device yet I still have no button to click on "Use For Development".

有趣的是,我已经将我的 iPhone 应用程序游戏连接到 iPhone 设备上,但我仍然没有单击“用于开发”的按钮。

What am I missing? This is all I'm being told to do by Apple and I don't see the button.

我错过了什么?这就是 Apple 告诉我要做的所有事情,但我没有看到按钮。

采纳答案by Paul Oostenrijk

Xcode 6.1 removed 'Devices' from 'Organizer'.

Xcode 6.1 从“组织者”中删除了“设备”。

Now you can go to Window > Devicesto get all the connected and registered devices.

现在您可以转到“窗口”>“设备”以获取所有已连接和注册的设备。

回答by matt

What I find, although it's hard to get into a total zero state in order to test, is that if you just connect the device to the computer and try to build-and-run with the device as destination, Xcode puts up a dialog offering to help you and, if you accept, it does all the work: it registers the device at the member center and downloads the universal provisioning profile.

我发现,虽然很难进入完全零状态以进行测试,但如果您只是将设备连接到计算机并尝试以设备作为目标进行构建和运行,Xcode 会提供一个对话框为您提供帮助,如果您接受,它会完成所有工作:它会在会员中心注册设备并下载通用配置文件。

So there is no "Use For Development" button because there doesn't need to be one: it was superfluous.

所以没有“用于开发”按钮,因为不需要一个:它是多余的。

回答by Milkent Sam

automatic signing

自动签名

Automatic signing is a target setting that allows Xcode to manage signing assets for you. The signing settings are located in the General pane under the heading Signing in the project editor. To enable automatic signing, select “Automatically manage signing.”

自动签名是一个目标设置,允许 Xcode 为您管理签名资产。签名设置位于项目编辑器中签名标题下的常规窗格中。要启用自动签名,请选择“自动管理签名”。

If you enable automatic signing, Xcode does the following for you when needed:

如果您启用自动签名,Xcode 会在需要时为您执行以下操作:

Creates your certificates and signing identities

创建您的证书和签名身份

Registers connected devices

注册连接的设备

Creates and edits App IDs

创建和编辑应用程序 ID

Manages provisioning profiles

管理配置文件

Edits the entitlements and information property list files

编辑权利和信息属性列表文件

If you choose manual signing, you'll need to sign in to your developer account at developer.apple.com/account to perform some of these steps yourself.

如果您选择手动签名,则需要在 developer.apple.com/account 上登录您的开发者帐户以自行执行其中一些步骤。

Important: All targets in a bundle should use the same signing identity. If you select automatic signing for one target, you should select automatic signing for all targets in your project.

重要提示:捆绑包中的所有目标都应使用相同的签名标识。如果为一个目标选择自动签名,则应为项目中的所有目标选择自动签名。

screenshot for more details

屏幕截图了解更多详情

enter image description here

在此处输入图片说明

回答by MandisaW

Automatic Signing:

自动签名:

As of XCode 9.3, there is no more dialog, as in Matt'sanswer. Instead, with your device connected, review your Build Target(s) page - under Signing, there is a "Register Device" button. Use that to have XCode automatically handle adding the new device and updating your provisioning profile.

从 XCode 9.3 开始,不再有对话,如Matt 的回答。相反,在您的设备连接后,查看您的构建目标页面 - 在签名下,有一个“注册设备”按钮。使用它让 XCode 自动处理添加新设备和更新您的配置文件。

Manual Signing:

手动签名:

If you're not allowing XCode to manage signing for you, or if you have multiple devices to register, then Manual Signing is the way to go. In Window > "Devices & Simulators" > Devices, look for the UDID (aka Identifier) for your connected device (40-character alphanumeric string). Copy that string, and keep it handy.

如果您不允许 XCode 为您管理签名,或者您有多个设备要注册,那么手动签名是您的最佳选择。在“窗口”>“设备和模拟器”>“设备”中,查找所连接设备的 UDID(又名标识符)(40 个字符的字母数字字符串)。复制那个字符串,放在手边。

Log in to your Apple Developer Account, go to Certificates, Identifiers & Profiles > Devices. Click the "+" to add one (or multiple) devices, and paste in the device name and the UDID/Identifier you copied earlier.

登录您的 Apple 开发者帐户,转到证书、标识符和配置文件 > 设备。单击“+”以添加一个(或多个)设备,并粘贴您之前复制的设备名称和 UDID/标识符。