在 Xcode 中的多个设备之间进行选择
我有 2 台设备(iPhone + iPod)连接到我的 Mac,并且都可以作为 XCode 中的开发设备使用。我如何选择用于测试目的并在需要时从一种切换到另一种?目前我发现的唯一方法是拔掉不需要的电源,以便另一个可用。我错过了一些明显的东西吗? Rgd
--GQ。
I've 2 devices (iPhone + iPod) connected to my Mac and both are available as developper devices in XCode. How can I choose which one to use for testing purpose and switch from one to the other when I want ? For the moment the only way I found is to unplug the unwanted one in order for the other to be available. Am I missing something obvious ?
Rgd
--GQ.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您需要做的是使用 Xcode 中的“概览”下拉菜单。当您连接了多个配置的设备并选择部署到设备(而不是模拟器)时,下拉菜单将为您提供“活动可执行文件”下的选择,并按名称列出设备。
What you need to do is use the Overview drop-down in Xcode. When you have multiple provisioned devices attached and have chosen to deploy to a Device (not the simulator), the drop-down will give you a choice under "Active Executable", listing the devices by name.
我有多个设备,但没有足够的 USB 端口来同时插入它们。所以我像你一样在它们之间切换......
I have multiple devices but don't have enough USB ports to plug them both in at the same time. So I switch between them the same way you do...
您使用项目>设置活动可执行文件,然后选择所需的设备。为了让设备显示出来,必须为其配置操作系统的副本以及与目标操作系统相对应的配置文件以及您构建的应用程序的签名证书。
You use Project > Set Active Executable, and pick the device you want. In order for a device to show up, it has to be provisioned with a copy of the OS and the provisioning file that corresponds to the target OS and signing certificate for the app you built.