Xcode:此设备不再连接错误

时间:2022-05-07 00:29:55

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组织者,我可以看到设备摘要和一个绿点。什么问题?

5 个解决方案

#1


50  

Try quitting Xcode totally and reopening it.

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

#2


1  

The Simple answer for this Question "This device is no longer connected error" is to restart your iPhone and MAC System. By doing this your issue will be resolve. 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.

所以,最好先解决基本的错误,否则会造成另一个麻烦。

#3


0  

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 vs MacOS)是否存在冲突。

#4


0  

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,这可能会有所帮助:在IPHONE和IPAD上使用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的苹果移动设备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.

更新:从您的评论中,我猜您需要能够使用app中的加速度计输入。您可以使用i模拟(在app Store中)将数据从设备发送到iOS模拟器。

#5


0  

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

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

#1


50  

Try quitting Xcode totally and reopening it.

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

#2


1  

The Simple answer for this Question "This device is no longer connected error" is to restart your iPhone and MAC System. By doing this your issue will be resolve. 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.

所以,最好先解决基本的错误,否则会造成另一个麻烦。

#3


0  

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 vs MacOS)是否存在冲突。

#4


0  

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,这可能会有所帮助:在IPHONE和IPAD上使用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的苹果移动设备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.

更新:从您的评论中,我猜您需要能够使用app中的加速度计输入。您可以使用i模拟(在app Store中)将数据从设备发送到iOS模拟器。

#5


0  

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

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