54

I'm trying to test my app on an iPhone 3G, however I'm getting this error:

No provisioned iOS devices are available with a compatible iOS version. Connect an iOS device with a recent enough version of iOS to run your application or choose an iOS simulator as the destination.

Note that:

  • The 3G has version 4.2.1 of iOS installed
  • The iOS deployment target is set to version 4.2
  • The device has valid development profiles installed
  • I'm using the latest Xcode 4

I'm at a loss. Can anyone help?

Tim

tarmes
  • 15,366
  • 10
  • 53
  • 87

16 Answers16

97

Solved this problem by closing and re-opening xcode.

Xcode... it's the new Windows.

Gavin Miller
  • 43,168
  • 21
  • 122
  • 188
44

Try clicking "Use for Development" on your device in the Xcode Organizer. I got this same error and that was the only way I fixed it.

matt
  • 1,895
  • 5
  • 19
  • 26
  • Xcode is "processing symbol files" from my iPhone... looking promising so I'm preemptively upvoting this. – ArtOfWarfare Jun 27 '13 at 05:12
  • 1
    I had a flaky cable connection and got this error, wobbled the cabled and could see my device reconnected in Organizer. Message cleared. – barneymc Nov 06 '13 at 22:02
21

I finally found a solution to this.

If anyone else has this problem then it might be useful to know that Xcode now creates applications for ARM7 by default.

To support the iPhone 3G and other arm6 devices, you need to specify arm6 and arm7 in in the Architectures list, and set the device requirements to only arm6 in the plist.

James Webster
  • 31,873
  • 11
  • 70
  • 114
tarmes
  • 15,366
  • 10
  • 53
  • 87
  • 1
    Good answer (And some padding characters because "Good answer" wasn't enough!) – James Webster Nov 16 '11 at 12:38
  • 5
    Where exactly is this setting? In a fresh set-up of Xcode 4.2 I can see 'Valid Architectures' which has defaulted to 'armv6 armv7', and I see a 'Archtectures' which seems to be set to some kind of substitution variable: '$(ARCHS_STANDARD_32_BIT)' which shows as 'Standard (armv7)'. Best way to change this? – Harry Wood Nov 28 '11 at 15:25
  • There are detailed instructions and warnings about adding armv6 to architectures of xcode 4.2+ at [stack overflow article] (http://stackoverflow.com/questions/7488657/how-to-build-for-armv6-and-armv7-architectures-with-ios-5) – miker May 21 '12 at 14:21
5

I have Xcode 5.0, and try to build for my iPad with iOS 5.1.1. And I get the message: No provisioned iOS devices are available with a compatible iOS version. Connect an iOS device with a recent enough version of iOS to run your application or choose an iOS simulator as the destination.

The solution you can see in 4 step:

(1) Select project settings > project settings > Info. Choose deployment target instead of 7.0 i.e. 6.1.

enter image description here

(2) Select project settings > project settings > Build Settings. Change architecture . Don't compile for 64bit. enter image description here

(3) Select project settings > target settings > General. Set Deployment Target according your device iOS version. Afterwards the device name IPad appear after IOS Device to run on. enter image description here

(4) Finally I selected IPad.

enter image description here

János
  • 32,867
  • 38
  • 193
  • 353
5

Another observation for anyone who still has the problem after adding armv6: I found that Xcode was still listing "iOS Device" in the Scheme dropdown rather than filling in the name of my 3G. When I clicked on the dropdown, I saw that there was another slot that listed my 3G. (Presumably the "iOS Device" slot only applies to my other development device, an iPhone 4). I'm curious whether this is intended functionality, so leave a comment if you develop with multiple phones and have seen this.

Alex Michaud
  • 432
  • 5
  • 11
  • With the mix of white cables pluged on the mac, I did not saw that the cable I was plugging in the iphone was one on the outlet and not the mac. – Sebastien F. Dec 19 '12 at 15:05
3

Maybe you have set the minimum required iOS to a higher version than your 3G has. Could you try to change the iOS Deployment Target in the build settings to the version of your 3G?

norq
  • 1,404
  • 2
  • 18
  • 35
3

I develop on multiple devices and multiple generations of each device. Look at the scheme. In the case of an iOS 5 device, at least, if it does not have the specific device name, but instead shows iOS Device, then eject the device in iTunes and unplug the device. Plug it back in and try to run/install. The device name should show up and the device should have a green dot in Organizer and everyone will be happy. I believe the 3G iPhone just shows up as iOS Device, and I'm not sure about the 3GS, but an iPhone 4 or 4S will show its device name. This is what I get for trying to continue supporting old iPod Touches and 3G phones with 4.2.1. At some time I'll just cut them off and move on.

JRod58
  • 31
  • 1
  • 4
    Thanks! In Xcode 4.2.1 when I went into Organizer there was no green dot beside my device name in the left hand column. When I clicked on the device name (in the left column), then in the right hand side of organizer it brought up all the device info with a big button that said USE FOR DEVELOPMENT. After I clicked this button it then showed up in the drop down and I was able to use it. – jsherk Apr 08 '12 at 20:34
2

i also get this case: when i reset iphone, plugin to xcode again, xcode dont recognized iphone in schema, iphone still have full provision I go to Organizer window, check device again and see that my iphone dont have green light and have button that ask to use this device for development. Click on button and all work well again

Đông Hà
  • 222
  • 3
  • 16
2

When I changed my app from iPhone to Universal, automatically xCode changed the Deployment Target from 4.3 to 6.1, my device had 6.0 so it wasn't recognized.

Changing the value back to 4.3 solved the problem.

htafoya
  • 18,261
  • 11
  • 80
  • 104
2

When the first time , your new test iOS connected to you Mac, you can't see it in the pop-up menu. only "IOS Device" You may try From menu: Window->Organizer->Devices ; then Choose you connected iPad and click “Use for development" ; So it appears .

Leo Chen
  • 21
  • 1
2

Not sure, i understand your settings right. But, the rules are:

  • Base SDK Version >= Development device iOS version
  • Deployment Target version = Lowest iOS version to be supported.

Hence, i guess, setting base SDK version equal or above 4.2.1 might help.

Saran
  • 6,274
  • 3
  • 39
  • 48
0

In Organizer, I had to copy (drag and drop) the provisioning profile from the general 'Profiles' section to the device's 'Profile' section.

Timo
  • 7,992
  • 4
  • 49
  • 67
0

This can also happen because you've started to use your device on a computer that's never used it before. Once you've plugged in your device via USB, you'll need to choose to "trust" the device. You'll see a message like the following on the device itself:

Your settings and data will be accessible from this computer when connected via USB or Wi-Fi

Choose "Trust" when prompted, and then XCode will be able to use the device.

More info here at Apple's site:

http://support.apple.com/kb/HT5868

Brad Parks
  • 66,836
  • 64
  • 257
  • 336
0

"No provisioned iOS devices are available with a compatible iOS version. Connect an iOS device with a recent enough version of iOS to run your application or choose an iOS simulator as the destination."

I had this same problem when trying to build on my device. Then I realised I was using an aftermarket lead. Changed the lead to the original iPhone lead and... Hey Presto!

James
  • 1
0

I solve this problem just change iOS Device of the following image enter image description here to iPhone Retine ....,

sabbir
  • 2,020
  • 3
  • 26
  • 48
-5

I had a similar problem, with this error message: "No provisioned iOS devices are available with a compatible iOS version. Connect an iOS device with a recent enough version of iOS to run your application or choose an iOS simulator as the destination."

I solved it by simply going to the "jump bar" and changing it from "iOS device" to iPad 6.0 Simulator."

Eddy
  • 3,533
  • 13
  • 59
  • 89