Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode - No provisioned iOS device is connected

Tags:

xcode

iphone

I was using Xcode this afternoon and debugging an app on my device just fine. When I got home from the office and plugged in my phone to keep working, XCode would no longer let me debug on my device. The error I received was:

Error Starting Executable.  No provisioned iOS device is connected.

So I hopped over to the Organizer, and here is what I saw:

alt text

So what gives? Anyone seen this before?

Thanks!

like image 695
Neal L Avatar asked Jan 08 '11 02:01

Neal L


People also ask

How do I provision an iOS device?

Provision Your Device You simply connect your iOS device to your Mac and click the “Use for Development” button to add the device to the iOS Team Provisioning Profile. Connect your device to your Mac. Open the Devices organizer (Window > Organizer > Devices). In the Devices section, select your iOS device.

How do I accept provisioning profiles on iPhone?

The easiest way to manage the provisioning profiles on the iPhone is to open Xcode and select the menu item "Devices and Simulators" in the Window menu. Right-click on your iPhone XS and select "Show provisioning profiles". You'll then be able to see the installed profiles, add new ones and delete existing profiles.


2 Answers

Well I don't know why this helped, but if anyone else sees this thread the thing that "fixed" the problem was to remove the SDK from my machine, restart XCode, then plug in the device. XCode then popped up an alert view asking to collect the debugging symbols from the device, which I allowed it to do. From then on it worked like a charm.

like image 177
Neal L Avatar answered Oct 02 '22 12:10

Neal L


You may be testing your application on simulator and accidentally, device is selected instead of simulator. It help me to sort out this problem.

like image 38
Mudasser Hameed Avatar answered Oct 02 '22 13:10

Mudasser Hameed