iOS 设备未在 Xcode 中列出
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/7932658/
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
iOS device is not listed in Xcode
提问by saman01
I have done the provisional profile and it is showing properly in Organizer. Iphone device is also listed and next to it is a green little circle.
我已经完成了临时配置文件,它在管理器中正确显示。Iphone 设备也被列出,旁边是一个绿色的小圆圈。
However, in xcode the device is not listed and can not be picked.
但是,在 xcode 中,设备未列出且无法选择。
What can be the issue.
可能是什么问题。
回答by networ
Have you click on "use for development" in organizer?
您是否点击了管理器中的“用于开发”?
回答by StarlitSkies
Click on your top project item, and check the Summary tab on your target.
单击顶部的项目项,然后检查目标上的“摘要”选项卡。
Under Devices if you have selected iPad then it won't let you build to your iPhone.
在设备下,如果您选择了 iPad,那么它不会让您构建到您的 iPhone。
Also, if the deployment target is higher than the version on your device it might not work.
此外,如果部署目标高于您设备上的版本,它可能无法正常工作。
回答by Christian Schlensker
Have you tried the following?
您是否尝试过以下方法?
- Restart Xcode
- Restart the iOS Device
- Restart your computer
- 重启Xcode
- 重启 iOS 设备
- 重启你的电脑
回答by Muhammad Nabeel Arif
I had the same issue and following worked for me in XCode 6.1
我有同样的问题,以下在 XCode 6.1 中对我有用
1: Open Devices (Window>Devices)
1:打开设备(窗口>设备)
2: Select Device
2:选择设备
3: Go to settings and Mark 'Show in Run Destination Menu'
3:转到设置并标记“在运行目标菜单中显示”
回答by Drew
For me, it was a simple case of having the deployment target set too high. I started the project on Xcode 7.3.1 on my work machine... but when I got home, I opened up the project with Xcode 7.2 (which does not have the 9.3 SDK). After changing it to the proper deployment target, voila... good to go.
对我来说,这是将部署目标设置得太高的一个简单案例。我在我的工作机器上的 Xcode 7.3.1 上启动了这个项目……但是当我回到家时,我用 Xcode 7.2(它没有 9.3 SDK)打开了这个项目。将其更改为正确的部署目标后,瞧……一切顺利。
And by simple, I mean I restarted, cleaned and screwed around with it for about 20 minutes before I smacked my head and saw the problem. :-)
简单来说,我的意思是我重新启动、清洁并使用它大约 20 分钟,然后我才发现问题。:-)
回答by MinnuKaAnae
For VMware
Users
对于VMware
用户
Goto menu VM->Settings->USB Controller->Change USB Compatibility 3.0 to 2.0 and then Check show all usb devices.
转到菜单 VM->设置->USB 控制器->将 USB 兼容性 3.0 更改为 2.0,然后检查显示所有 USB 设备。
This worked for me. Now xcode is showing connected iphone device.
这对我有用。现在 xcode 显示已连接的 iphone 设备。
If show all usb devices
option is disabled, power off virtual machine and try.
如果show all usb devices
选项被禁用,请关闭虚拟机电源并尝试。
回答by Dancreek
There are a couple of issues that could be causing this.
有几个问题可能会导致这种情况。
1. Incorrect provisioning- Verify that you have specified the correct provisioning profile in "debug" in the build settings for both the project AND the target. Then make sure that that same provisioning profile has that device authorized on it (Apple Provisioning Portal) and that the profile has been installed on the device.
1. 不正确的配置- 验证您是否在项目和目标的构建设置中的“调试”中指定了正确的配置文件。然后确保相同的配置文件在其上授权了该设备(Apple Provisioning Portal)并且该配置文件已安装在设备上。
2. Proper deployment target value
2. 合适的部署目标值
3. Device Type- Make sure that your project is set for the correct device type (iPhone or iPad or Universal).
3. 设备类型- 确保您的项目设置为正确的设备类型(iPhone 或 iPad 或通用)。
4. Restart Everything
4. 重启一切
回答by Art Geigel
I had the same exact issue. My problem was that I had accidentally installed the same provisioning profile twice. So when I clicked "Provisioning Profiles" (from the drop-down tree in Organizer below my device) it listed 2 instances of it -- one where the Team field showed my name and one where the Team field listed "Unknown". I deleted the "Unknown" instance and my device immediately showed up in my available devices list for testing.
我有同样的问题。我的问题是我不小心安装了两次相同的配置文件。因此,当我单击“供应配置文件”(从我设备下方的管理器中的下拉树中)时,它列出了它的 2 个实例——一个是 Team 字段显示我的名字,另一个是 Team 字段列出了“未知”。我删除了“未知”实例,我的设备立即出现在我的可用设备列表中进行测试。