"No provisioned iPhone OS device is connected" after update to 4.0

14,783

Solution 1

You need to install Xcode 3.2.3 if you have a device with iOS4, whether you want to use iOS4 features or not.

Apple don't support downgrading your phone to earlier version of the OS, though there are ways of doing it. Your only "official" option is to move to Snow Leopard I'm afraid. (Though it's worth doing anyway)

Solution 2

They're all wrong.

All you need is /Developer/Platforms/iPhoneOS.platform/DeviceSupport/4.0 (8A293) (it might be called just "4.0" in future releases). Grab it from a computer with 4.0 installed, or, or extract it from the install package (Pacifist, or lsbom/cpio/ditto), or whatever.

GDB doesn't like being run without symbols though, so also grab a copy of /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.0.sdk (EDIT: I haven't tried this either, but it ought to work provided the object file format hasn't changed much). This will also let you attempt to compile for 4.0, but I haven't checked if it works (I don't know if 3.1.3's GCC supports "blocks").

EDIT: All that said, it's going to be easier if you just bite the bullet and upgrade. You need to compile against 4.0 if you want certain features like having your app backgrounded instead of killed (-[UIApplicationDelegate applicationDidEnterBackground:]).

Solution 3

If you want to develop for iOS 4, you should be running Mac OS 10.6 (Snow Leopard), and you have to install the iOS 4 SDK.

Solution 4

XCode 3.2.3 is required to develop iOS 4 apps.

Solution 5

I had the same problem after upgrading phone to iOS 4.2 I had to:

  • upgrade XCode to 3.2.5
  • reboot phone with XCode not running, as described above.
  • bring up XCode, Window, Organizer, and when in the view for
    • Jim'sPhone, Summary (I think) or
    • Provisioning Profiles or something, Sorry-- I forget which...

Given the warning similar to "XCode doesn't have debugging information for this version of iOS"

==> select "Collect"

Keep Organizer in view to see progress... it takes a minute or two. After I did that, I was able to build and install/debug.

Share:
14,783
Bojan Milankovic
Author by

Bojan Milankovic

C programmers never die. They are just cast into void.

Updated on June 04, 2022

Comments

  • Bojan Milankovic
    Bojan Milankovic almost 2 years

    I updated my iPhone to the new OS 4.0 and went to build my iPhone app and everything built ok, but the message I got at the end was "No provisioned iPhone OS device is connected". Looking at the Xcode organiser, it shows my connected device with an amber icon next to it, and all my provisioning profiles show up as "Installed" but also with an amber icon.

    Is there something I need to do to make the existing provisioning profiles work since updating to OS 4.0?

    I have XCode 3.1.3, and 10.5.8 OS. I can not install XCode 3.2.3, because for that I would need 10.6.2 OS which I do not have.

    So, how do I continue developing and debugging as I used to before I said "yes" to the update dialog on my iPhone, without buying a new OS or new iPhone?

    Thank you for your help.

    EDIT1: I do not want to develop for iOS 4.0.