42

This is the message while trying to run under XCode 4 (it used to work under XCode 3):

No provisioned iOS devices are available. Connect an iOS device or choose an iOS simulator as the destination.

I have profiles for my device for this app... where should I be looking to correct this?

enter image description here

Jayprakash Dubey
  • 35,723
  • 18
  • 170
  • 177
SpokaneDude
  • 4,856
  • 13
  • 64
  • 120
  • The answer by JRod58 in this thread helped me figure it out: http://stackoverflow.com/questions/7874341/no-provisioned-ios-devices-are-available-with-a-compatible-ios-version – jsherk Apr 08 '12 at 20:37
  • I just got this error after unplugging my test device and then plugging it back in, with no other changes. I solved it by simply restarting Xcode. – Brian Jun 16 '14 at 21:35

13 Answers13

62

The problem is that your iOS Deployment Target in Project-> Build Settings is different from the current version of iOS on your real device.

Renjith JR
  • 189
  • 1
  • 3
  • 14
Tung Do
  • 1,423
  • 3
  • 13
  • 27
33

You're asking where to find it:

In XCode 4 there is a new button - look for the big

"Organizer button"

which is at the TOP RIGHT.

Physically connect your device and then click Devices. It seems that the new "Organizer button" is one of the "most-missed" things in the transition to XCode4.

Note, the questioner is asking: "WHERE should I be looking to correct this?"

Fattie
  • 27,874
  • 70
  • 431
  • 719
7

I was having extra trouble because of my Enterprise License, but still updated the iPads. I didn't have to change anything in the Build Settings to lower. But the main thing that I had a problem with was in the Organizer I needed to hit "Use for Development" button.

Kind of an old post, and may not be the best way or a rookie thing to miss but wanted to help anyone out.

Alex
  • 113
  • 3
  • 10
  • 3
    Despite developing on the same device for over 2 years, my device had also dropped out of developer mode and I had to hit "Use for Development" again in the Organizer. – Purpletoucan Dec 15 '11 at 20:20
  • 1
    thanks heaps for posting this Alex. Saved me a sleepless night trying to figure this out. The error message really gave no clue that this might be the problem. – iPadDeveloper2011 Jan 26 '12 at 13:14
4

My problem similar to those above were related to having the deployment target set too high for the version installed on the phone. Would be nice if it gave a more useful error message. I spent hours messing with my provisioning profile trying to fix it, when the real problem was the older version of the software on the phone.

possen
  • 8,596
  • 2
  • 39
  • 48
3

I had the same problem. The reason was simply, that my ipad had not been update to version 4.3.

Maba
  • 31
  • 1
1

I got this error in Organizer - "Could not support development.". I tried rebooting the iOS device and it worked for me :)

user1140780
  • 988
  • 2
  • 13
  • 29
1

Check that the Executable File (also known as CFBundleExecutable) in the Info.plist file is set to ${EXECUTABLE_NAME} as opposed to any hardcoded value. This will ensure that even if you change your project name or target name or scheme name, that it still works.

jsherk
  • 6,128
  • 8
  • 51
  • 83
1

This just happened to me for iOS5 with xcode 4.2.
The answer is to go into organiser, select your device, and press the "Develop with this device" button (or similar wording). Then go back and build, and it should work..

DefenestrationDay
  • 3,712
  • 2
  • 33
  • 61
  • 1
    I am not able to find this option. Please help me find it. – Nitish Jan 20 '12 at 05:17
  • @Nitish: You need to plug in your iPhone, and go into Organiser. I can't give you a scrfeenshot, because I've already associated my iPhone. Under 'Devices', select your iPhone. On the right of the screen, under 'Provisioning', there should be a button "Develop with this device". – DefenestrationDay Jan 20 '12 at 05:25
  • I am not having any such option. I am using xCode 4.0.1 with ios4.3 and deploying it on ios5.0.1(ipad2). Please check my[question](http://stackoverflow.com/questions/8936967/running-application-from-ios4-3-on-ios-5-0). – Nitish Jan 20 '12 at 05:29
1

I received this error while having an iPad properly connected.

Some info:

  • Ipad iOS version: 4.2.1
  • XCode 4.2
  • XCode project created with "iOS Application / Empty Application" template.

The problem was that I had to specify the "iOS Deployment Target" to 4.2 in more than one place!

That is, both in the "Build Settings" and in the "Summary".

Very odd, and definitely another XCode4 annoyance.

Ariel Malka
  • 15,697
  • 6
  • 31
  • 33
  • +1 to this, I currently support 2nd gen devices (they can only go up to 4.2.1) and needed to look in "Build Settings" (select all at top left) under "Deployment" at the bottom of the section there is "iOS Deployment Target" field, setting that to 4.2 worked for me. – Stunner Dec 27 '11 at 14:53
0

It looks like this error can also come about if the "Product Name" in your target's build settings does not match the value of "CFBundleExecutable" in your info.plist

It looks like to me this is the general error Apple gives if the executable is not installed correctly on the device. When the debugger tries to attach it looks for the executable name and if it's not there they give this error. Touch one to debug.

Matt W.
  • 956
  • 9
  • 21
0

Go to build option and select valid compiler.

Muzammil
  • 1,529
  • 1
  • 15
  • 24
0

you need to install the proper version of iOS.in my case it is iOS 4.0 - 4.1 Device Debugging Support GOTO --> XCode Preferences -> Downloads --> Component there are all updates available for your iOS click Install.

This is works for me.

Piyush
  • 244
  • 1
  • 2
  • 8
-2

Chose your right iOS Deployment version

xiaohui2010
  • 73
  • 1
  • 1