iPhone with iOS 6 and Xcode 4.2 issue - iphone

I have upgraded my iPhone to iOS 6, however I am currently on Xcode 4.2 (on Snow Leopard). Now I am getting this error message:
The version of iOS on “xxx xxx” does not match any of the versions of
iOS supported for development with this installation of the iOS SDK.
Please restore the device to a version of the iOS listed below, or
update to the latest version of the iOS.
Is it possible to restore my iPhone to older version say 5.1 or some how make my Xcode to support/recognize iOS6?

I followed the following steps, to resolve my issue by making Xcode to support iOS 6:
1.First download Xcode 4.5 .dmg file from Here (You would need developer account).
2.Then mount this image and use "Show Package Contents" from context menu.
3.Then copy the following folder
Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/6.1
(10A403)
to your mac's following folder (This path may differ from mac to mac based on its version. On Snow Leopard you may find the Developer folder in Finder under PLACES section, and probably on Lion, you have to right click the Xcode.app and have to use Show Package Contents):
Developer/Platforms/iPhoneOS.platform/DeviceSupport
4.Similarly copy the iOS 6 SDK folder from following directory:
Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.0.sdk
to your mac's following folder
Developer/Platforms/iPhoneOS.platform/Developer/SDKs
5.Also copy version.plist from Contents/Developer/Platforms/iPhoneOS.platform folder to your mac's Developer/Platforms/iPhoneOS.platform folder.
6.Re-start Xcode and re-connect the device(s).
Bingo !! now Xcode supports recognizes iOS6 device(s) and even I am able to run and debug my app (built for older SDKs) on my iPhone with iOS6 (I am not sure about iPhone 6.0 simulator though).
However, answer to How to restore iPhone to older version say 5.1 is still pending.

You cant debug iO6 device in Xcode 4.2. iO6 device debugs only in Xcode 4.5 (latest one). And most importent for installing Xcode 4.5, in your machine must have at least Lion Operating System.For efficiently debugging of iOS device, You must upgrade your OS.

I had the exactly same problem !
Downgrading iOS 6 in your iPhone is not officially supported by Apple anymore :
https://discussions.apple.com/thread/4533316?start=0&tstart=0
What works for me was to install Lion in an external HD USB, upgrade Xcode to the latest version and upgrade the Provisioning Profiles in my Apple Developer account for this environment.

Upgrade to Xcode 4.5 (and OSX mountain lion). No previous version of Xcode supports iOS 6. You can also check if you can restore your phone using a previous version of iOS by getting the .ipsw file and option-clicking on "restore" button when selecting your device on iTunes.

Related

XCode 4.6.3 not detecting iphone device which has 7.0.2

The OS version of my phone is 7.0.2 (11A501). I am using XCode 4.6.3. The IDE Xcode is not detecting my iPhone. When i go to organizer it tells me the following
The version of iOS on “Joe iPhone” is not supported by this
installation of the iOS SDK. Please restore the device to a version of
the OS listed below, or update to the latest version of the iOS SDK;
which is available here.
However, i have read in various forums that if i download xCode 5 i will not be able to build for ios 5 or 6 applications. What should i do ? Help/
It sometimes suffices to copy the device support files from a newer Xcode version to an older one. Try copying
Xcode5.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/7.0 (11A465)
to your Xcode 4 installation, but name it "7.0.2 (11A501)"
There is a neat trick to install the app on and iOS 7 device with Xcode 4.6
First download from the developer center Xcode 5 and install it manually in a separate folder in your Applications folder (I did add it in an Xcode foler, inside Applications).
So now you have both Xcode 4.6 and Xcode 5 on your Mac.
Now, run your code on Xcode 5 and install it on your phone (press the debug button on your iOS device). Once this is done, you can quit Xcode 5, open Xcode 4.6 and it will be able to debug the app on your iOS7 device just fine!
You will be able to run iOS 6 apps easily from xCode 5 - no problem.
Updating xCode is only way to work with iOS 7 devices - you have no choice.
Yes, you have to update your xcode, or create an IPA and install it on your device with iOS 7.0.2 by iTunes.
First of all, definitely you have to install XCode5.
Initially you can build application only against IOS7, but you can manually add IOS6 SDK.
XCode SDK's are placed on this location:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/
You can copy IOS6 SDK from this location of XCode4.6 and paste it into same location in XCode5.
This way you can choose will you build your application against IOS6 or IOS7.
Run your code in Xcode5 the again run in Xcode4.6 will solve problem.
if you want to debug your Apps in xcode with ios 7 then, Updating xCode to version xcode 5 is only way to work with new ios (ios 7.0.2) and xcode 5 requirement is MAC os 10.8.4 , you have to update your OS ,if you right now using older version of operating system
Thanks

How do i upgrade Xcode from 4.2.1 to 4.3.2?

Is there a way? I just need to run my app on my iPod which is 5.1 and my current version won't let me...?
This is very simple. I came across the same problem over the weekend when I upgraded my iPad and iPhone to the latest iOS 5.1. The version of Xcode I had installed at that time was not able to run applications for my devices after the upgrade.
After doing a few things I was able to successfully run applications on my upgraded devices. Below I present a few simple steps for you to follow:
1) Download the latest version of Xcode which currently is 4.3.2 which includes SDKs for Mac OS X 10.7 Lion and iOS 5.1 suitable do install your application onto your iOS device
http://itunes.apple.com/us/app/xcode/id497799835?ls=1&mt=12
2) During installation the installation window will ask you whether you would like to remove the previous version. Remove the previous version of Xcode and let it install the new version.
3) Once you have the latest version of Xcode installed you can run the Xcode application and open up your recent project.
4) Once you have your project opened, you may need to and certainly in my case I had to, code sign and point your project to the right development profile settings in the build settings.
5) Once all code signing is correct, on the top left you can select what you want to build to, make sure you have your iOS device connected and the button where it says iPhone simulator 5.1 to yourname's iphone
6) and then Xcode will build successfully onto your device
Download it from the app store.
http://itunes.apple.com/us/app/xcode/id497799835?ls=1&mt=12

IOS 5.0.1 With XCode 4.2.1 Saying "does not match any of the versions of iOS"

I am currently on Xcode 4.2.1 and I am running an IPad 1 using 5.0.1. However, I am getting this error message:
The version of iOS on “Personal iPad” does not match any of the
versions of iOS supported for development with this installation of
the iOS SDK. Please restore the device to a version of the OS listed
below, or update to the latest version of the iOS SDK; which is
available here.
OS Installed on Personal iPad
5.0.1 (9A405)
Xcode Supported iOS Versions
That's right! It is giving me absolutely no supported iOS versions. I have seen other posts about this for older versions of Xcode/IOS, but they also had supported versions.
Edit: I can run the program just fine in the iOS device simulator. It runs in IOS 5. Also, my provisioning profiles are listed under the device and they have matched my certificate in the KeyChain.
Ok! I downloaded the installer program for XCode. Uninstalled XCode and reinstalled it through the installer program and it works like a charm.
So, I ran this to uninstall it:
sudo /Developer/Library/uninstall-devtools –mode=all
Then I just used the installer from the App Store and now it works just fine with my iPad.
Thanks.
I didn't need to uninstall xcode.
just start the installer and press "update"...
For those who wan't to avoid upgrading Xcode, do the following:
Download the Xcode version dmg containing the iOS SDK you need
Make sure Xcode is not running
Double click the downloaded Xcode dmg, right click the Xcode.app icon, choose "Show Package Content"
Copy Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/ to /Developer/Platforms/iPhoneOS.platform/Developer/SDKs (on you local machine)
Copy Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/ to /Developer/Platforms/iPhoneSimulator.platform/Developer (on you local machine)
Copy Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/ to /Developer/Platforms/iPhoneOS.platform/DeviceSupport (on you local machine)
Right click Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/, choose "Make Alias", rename the alias to "Latest"
Start Xcode

"No provisioning iOS device connected"

About 3 months ago I set up my iPhone for development; installed the provisioning profile, updated the device to the latest version of iOS, namely 4.3.3 (8J2) and testing applications on my iPhone worked 100%.
Today I went back to working on one of my iPhone applications after not having worked in XCode for about a month, and now I do not seem to be able to deploy applications to my iPhone. When I try deploy and run on my iPhone, I get the message "No provisioning iOS device connected", even though my iPhone is connected.
If I look in the organizer window of XCode, I see my iPhone listed there under DEVICES, but I see the following message when I select my iPhone entry:
The version of iOS on “Bruce Hill’s iPhone” does not match any of the versions of iOS
supported for development with this installation of the iOS SDK. Please restore the
device to a version of the OS listed below, or update to the latest version of the iOS
SDK; which is available here.
OS Installed on Bruce Hill’s iPhone
4.3.3 (8J2)
Xcode Supported iOS Versions
4.3.3 (8J2)
4.2 (8C134)
4.1
4.0
4.0.2
4.0.1
3.2
3.2.2
3.2.1
3.1
3.1.3
3.1.2
Does anyone have an idea what is going wrong here and why XCode seems to think that my iPhone has an unsupported version of iOS installed, when in fact the latest version is installed?
UPDATE:
I have tried restarting my Macbook Pro, doing a hard reboot of my iPhone and removing my iphone entry in the organizer. None of these actions helped. My iPhone keeps getting listed in the organizer with an orange circle and if I hover over my iPhone entry I get a tooltip message that says "This device is busy or otherwise unusable by Xcode."
I did notice that in my developer information in System Profiler it only shows sdk 4.2 (8C134) installed, not 4.3.3 (8J2), even though Xcode lists it as being present and supported in the message I quoted above. Here is my developer information:
Version: 3.2 (10M2423)
Location: /Developer
Applications:
Xcode: 3.2.5 (1760)
Interface Builder: 3.2.5 (823)
Instruments: 2.7 (3017)
Dashcode: 3.0.2 (333)
SDKs:
Mac OS X:
10.4: (8S2167)
10.5: (9L31a)
10.6: (10M2423)
iPhone OS:
4.2: (8C134)
iPhone Simulator:
3.2: (7W367a)
4.0: (8A400)
4.1: (8B117)
4.2: (8C134)
I think what happened here is that I installed Xcode and then later did an update of my iPhone to iOS 4.3.3. This problem then occurred because my Macbook Pro actually didn't have the SDK for 4.3 installed, even though Xcode seemed to think that it was installed.
So, I got this working by downloading an installing Xcode 4.0.2 and iOS SDK 4.3. I downloaded Xcode from here: http://developer.apple.com/xcode/
Once Xcode 4.0.2 was installed and running, I connected my iPhone, it showed the orange dot again briefly (for about 10 seconds or so) and then this turned to a green dot and I was able to deploy my application to my device again... FINALLY!! :) In my developer settings in System Profiler, I also see iPhone OS: 4.3:(8H7) listed there now. I think that this issue would also have been resolved by installing Xcode 3.2.6 with iOS SDK 4.3, as this would, I think, also have resolved the missing or corrupt SDK 4.3 on my Macbook, but I chose to download and install the latest version.
So, bottom line: Xcode working again! I am happy! :)
I had a similar problem with my 3GS and i solve it by resetting iPhone's developer configuration. Try to hard reset your device (here' the link - don't worry, your dta will survive). Then remove your device from Xcode organizer and add it again.
Also try 'Cleaning' your Xcode project and just turning off your phone and back on again. Restart your computer while you're at it. After it's back up, open Xcode, then plug in the device. It should do its thing then start working again. I had the same issue a few times when I updated and hadn't disconnected/reconnected everything.

The version of iPhone OS on “” does not match any of the versions of iPhone OS supported for development with this copy of Xcode

I have followed Apples tutorial and upgraded my iphone to 3.0. But i get this error:
OS Installed on
3.0 (7A341)
Xcode Supported iPhone OS Versions
3.0 (7A312g)
2.2.1
And when i try to run an application on my iphone xcode states:
No provisioned iPhone OS device is connected.
What have I missed?
Stumbled across this question because I've had the same problem with 3.0.1. Apple has an advisory (PDF) about how to get XCode to stop worrying and love the 3.0.1. It boils down to running a command in Terminal:
ln -s /Developer/Platforms/iPhoneOS.platform/DeviceSupport/3.0\ \(7A341\) /Developer/Platforms/iPhoneOS.platform/DeviceSupport/3.0.1
It looks like you need to upgrade xcode to the newest version of the SDK as well as your iPhone / iPod Touch to the newest version of the SDK. It looks like your XCode is from beta 5 where your iPhone is GM.
Both XCode and the iPhone OS need to be the most recent version to install apps. In addition, you will need to reenable the iPhone for development after every software upgrade in the XCode device manager.
Look in the organizer window if the phone is in orange state ..then just restart the phone and see.
How To:
Add an iOS SDK from a downloaded Xcode dmg:
Download the Xcode version dmg containing the iOS SDK you need
Make sure Xcode is not running
Double click the downloaded Xcode dmg, right click the Xcode.app icon, choose "Show Package Content"
Copy Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/ to /Developer/Platforms/iPhoneOS.platform/Developer/SDKs (on you local machine)
Copy Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/ to /Developer/Platforms/iPhoneSimulator.platform/Developer (on you local machine)
Copy Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/ to /Developer/Platforms/iPhoneOS.platform/DeviceSupport (on you local machine)
Right click Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/, choose "Make Alias", rename the alias to "Latest"
Start Xcode
I have solved this as Pluckyglen said, but will add that this is a way to cheat XCode about the version of the Device.
Creating a unix Symbolic link:
ln -s <´Xcode version´> <´Device Version´>
makes Xcode think that the device version is a supported version, cause we are making the dev version just a link to one of the supported versions.
At least this is what I understood :P