Xcode:此设备不再连接错误

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

Xcode: This device is no longer connected error

iphoneiosxcode

提问by Read Q

While executing the project on an iPhone , I am getting an error while installing the project through Xcode, it says " This device is no longer connected ". Whereas I can see the device summary and a green dot if I open the xcode organiser. Whats the problem?

在 iPhone 上执行项目时,通过 Xcode 安装项目时出现错误,显示“此设备不再连接”。而如果我打开 xcode 管理器,我可以看到设备摘要和一个绿点。有什么问题?

回答by Mathew Varghese

Try quitting Xcode totally and reopening it.

尝试完全退出 Xcode 并重新打开它。

回答by Kumar

The answer is to restart your iPhone and Mac. By doing this your issue will be resolved. This you can try on any version of Xcode

答案是重启你的 iPhone 和 Mac。通过这样做,您的问题将得到解决。这个你可以在任何版本的 Xcode 上尝试

The error comes only after trying to run the project many items, instead of solving the Provisioning Profile issues.

只有在尝试运行项目许多项后才会出现错误,而不是解决供应配置文件问题。

So, it's better to solve the basic error first, or else it will create another hectic problem.

所以,最好先解决基本错误,否则会造成另一个忙乱的问题。

回答by Departamento B

I had the same problem. It was a broken cable.

我有同样的问题。那是一根断了的电缆。

回答by sergio

Try to disconnect the device and reconnect it. Sometimes this fixes such kind of problems.

尝试断开设备并重新连接。有时这可以解决此类问题。

If that does not work, closing and reopening Xcode may help.

如果这不起作用,关闭并重新打开 Xcode 可能会有所帮助。

Although, since you are mentioning a virtual machine, you might check and see whether there are any conflicts in the attribution of the USB port to one system or another (Windows vs. MacOS).

虽然,由于您提到的是虚拟机,您可能会检查并查看 USB 端口归属于一个系统或另一个系统(Windows 与 MacOS)是否存在任何冲突。

回答by Andreas Ley

iPhone/iPad USB connectivity is finicky as it is, and you're running OS X in an unsupported way. I'd suspect that this is the problem.

iPhone/iPad USB 连接很挑剔,而且您正在以不受支持的方式运行 OS X。我怀疑这就是问题所在。

If you're running VMware, this may help: DEBUGGING ON THE IPHONE & IPAD WITH VMWARE

如果您运行的是 VMware,这可能会有所帮助:DEBUGGING ON THE IPHONE & IPAD WITH VMWARE

Basically it's this: Install iTunes on both your host and client OS, as the Apple Mobile Device USB driver for Windows may help your cause.

基本上是这样的:在您的主机和客户端操作系统上安装 iTunes,因为适用于 Windows 的 Apple 移动设备 USB 驱动程序可能有助于您的事业。

However, if you're serious about developing for iOS, using a "real" Mac is definitely the easier way.

但是,如果您真的想为 iOS 开发,那么使用“真正的”Mac 绝对是更简单的方法。

UPDATE:From your comments, I gather that you need to be able to use Accelerometer input in your app. You could use iSimulate(in the App Store) to send this data from your device to the iOS Simulator.

更新:根据您的评论,我认为您需要能够在您的应用程序中使用加速度计输入。您可以使用iSimulate在 App Store 中)将此数据从您的设备发送到 iOS 模拟器。

回答by GameBegins

I got this issue after installing Xcode 5. The solution I found is to restart your system and it works fine.

安装 Xcode 5 后我遇到了这个问题。我找到的解决方案是重新启动系统,它工作正常。