Read Q
Read Q

Reputation: 1515

Xcode error: This device is no longer connected

While executing the project on an iPhone, I am getting an error while installing the project through Xcode:

This device is no longer connected.

Whereas I can see the device summary and a green dot if I open the Xcode organiser. What is the problem?

Upvotes: 18

Views: 17893

Answers (7)

Ashwani Kumar
Ashwani Kumar

Reputation: 555

I faced the same situation. I tried

  • Clean and build
  • Restarted Xcode
  • Deleted derived data
  • Rebooted system

nothing worked for me

I switched the usb port(from left to right port), It just worked.

I know it sounds weird, but it worked for me

Upvotes: 2

Lucas van Dongen
Lucas van Dongen

Reputation: 9878

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

Upvotes: -1

GameBegins
GameBegins

Reputation: 618

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

Upvotes: 0

Kumar
Kumar

Reputation: 427

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

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.

Upvotes: 1

Mathew Varghese
Mathew Varghese

Reputation: 4527

Try quitting Xcode totally and reopening it.

Upvotes: 57

Andreas Ley
Andreas Ley

Reputation: 9355

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.

If you're running VMware, this may help: 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.

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

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.

Upvotes: 0

sergio
sergio

Reputation: 69047

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.

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).

Upvotes: 0

Related Questions