Xcode 4.2 (Snow Leopard) and iOS 5.1 [duplicate] - iphone

This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
ios 5.1 with xcode 4.2 for iOS development
I updated my iPhone to iOS 5.1.
My operating system is Snow Leopard.
Now I need the sdk 5.1 to develop, with xcode 4.2.
Where can I download it?
Any suggest?
Solution:
Downgrade to ios5.0 or update to Lion

To get Xcode 4.2 on Snow Leopard to run code on a device running 5.1 you can do this:
If you have another Mac running Lion + XCode 4.3.1 you can copy the files from:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/5.1 (9B176)
to the equivalent place on your SL Mac: probably
/Developer/Platforms/iPhoneOS.platform/DeviceSupport
and also copy version.plist from the Lion machine in the iPhoneOS.platform folder to the SL machine.
Re-start XCode on the SL machine and re-connect the devices and it seems happy enough.
[Edit: If you don't have access to a machine with Lion+4.3.1 you can get the files out of the 4.3.1 DMG which can be downloaded from Apple here: http://adcdownload.apple.com/Developer_Tools/xcode_4.3.1_for_lion/xcode_4.3.1_for_lion.dmg
then mount the DMG, Show Package Contents on the XCode icon and drill down to
/Volumes/Xcode/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport to
find the files mentioned above.]
In steps:
Stop XCode on SL machine
Disconnect your iphone
Mount the Xcode 4.3.1 image (.dmg that you can download from Apple dev site)
Show package contentes of the Xcode 4.3.1
copy XCode/Xcode/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/5.1 (9B176)
to <HD>/Developer/Platforms/iPhoneOS.platform/DeviceSupport
copy XCode/Xcode/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/version.plist
to <HD>/Developer/Platforms/iPhoneOS.platform/
Start Xcode
connect your iphone and it should work.

You can't.
You need to update to Mac OS 10.7 Lion in order to get the latest version of Xcode with the 5.1 SDK.
The last installable version of Xcode on Snow Leopard will be 4.2. Apple really wants developers to keep up to date on everything, whether MacOS or iOS.

If you want to stay on Snow Leopard, download the iOS 5.0.1 firmware of your device on this link : http://www.iphonefirmware.com/firmwares-download.
And do a manual restore on iTunes.
I did it today (March 8, 2012) on my iPad 2 and it works, Apple still seems to sign this iOS version.I guess not for a long time, so do it quickly.

iOS 5.1 is only avalaible in xCode 4.3.1, and its only avalaible in Lion, sorry.
YOu can try changing the version of your mac and faking it to install 4.3.1, but I cannot assure you its going to work...

Related

Programming for iOS with older Xcode

I'm pretty new to coding for iOS and i have a question about setting up my development components.
I have MacBook Air with 10.5.8 Leopard on it. So we question is: will I have no problems writing apps having iPhone SDK 3.1.3 with XCode 3.1.4 for Leopard (10.5.7)? Will the created app work on all iphone versions? There is a possibility to upgrade to mountain lion and use newest xcode, but is it worth it ? Considering that I firstly have to upgrade to snow leopard and then to mountain lion.
Thank you for your answers in advance.
If you want to send them to the app Store, the apps have to be compiled with the latest iOS (right now iOS6), so you can't compile them with xcode 3.1.4.
You need lion to download xcode 4.5 that includes the iOS 6 sdk
It looks like the configuration of your MAC Machine is not compatible for latest Mountain Lion OS. Even if it supports Lion OS, that itself will be a great deal.
Anyways, Using leopard, you can develop applications only upto iOS ver 3.2. So you would not be able to submit your applications to App Store untill you compile it with latest SDK.
For this you need atleast Lion OS (Better if you upgrade your hardware compatible with Mountain Lion). So that you can install latest XCode (Currently Ver 4.5). It will allow you to develop fully featured iOS application with latest features as well as upload them to Apple App Store.
Hope it helps. Let me know if anything else required.

iPhone with iOS 6 and Xcode 4.2 issue

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.

xcode 4.? + ios 6 works at lion 10.7.2?

I got a working mac os lion 10.7.2 system, and I don't want to upgrade to mountain lion so I can begin ios 6 development. Which Xcode version should I install so I can get ios 6 set up to work? My current Xcode is 4.2, how to install ios 6 sdk and simulator in it?
To do iOS 6 development you need Xcode 4.5. It should still work on Lion and can be installed through the Mac App Store. The iOS 6 SDK and Simulator will be automatically installed with it.
See also: http://www.iclarified.com/24572/apple-releases-xcode-45-featuring-sdks-for-ios-6-mountain-lion-108
If You have the developer account then download the latest version of xcode with it's .dmg file and also you find the older version of the xcode i would prefer to instal new version of the xcode 4.5 to building the IOS 6 Application.
https://developer.apple.com/downloads/index.action?name=Xcode
Here to download the versions of the xcode

iOS SDK for Mountain Lion

I upgraded to Mountain Lion from Snow Leopard on my macbook. In my macbook I had iOS SDK 4.3 and Xcode 4.2. Now I am downloading Xcode 4.4 for Mountain Lion.
In my iMac I have OSX Lion and it has iOS 5.1 SDK with Xcode 4.3.
What I want to know is should I download again iOS SDK 5.1 for my macbook? OR could I copy Developer folder from my iMac to macbook?
You can copy the downloaded App file that you used to install the SDK. The app file can then be run on different Mac systems.
You can't separate them, so you will end up downloading it anyway. No need to copy it from your other computer.

Are Xcode 4 and iOS SDK 4.3 compatible with Snow Leopard?

Currently I am using Xcode 3 and iOS SDK 4.2 on Snow Leopard. I am planning to download and install Xcode 4 and iOS SDK 4.3.
I would like to know if Xcode 4 and iOS SDK 4.3 are compatible with Snow Leopard.
Yes..You will have separate .dmg available for download when you visit iOS developer center X-Code download link.
Please do note that the X-Code 4.2 will have iOS 5 simulator and library only. If you want lower version simulator and library with X-Code just goto X.Code->Prefrences-> Downloads Tab. In downloads tab you'll have two tabs:
1) Components - Here you will have option to download iOS 4.3 simulator(~600 Mb), iOS 4.0-4.1(~670 MB) Device debugging support, iOS 3.0-3.2.2(686.3 MB) Device debugging support.
2) Documentation- Yoy will have option to download iOS 5.0,XCode 4.2 Developer libaray,Mac OSX 10.7 Core Library.
Install the components which ever you need and there you go..
Hope that helps.
There's a specific version of Xcode 4.2 (and likely earlier versions) that can be used on Snow Leopard. That's the version I use on my iMac. Note that you can use 4.2 w/iOS5 SDK and still deploy on older devices (and even download the 4.3 simulator) in case you cannot find Xcode 4.
However you cannot use (download) the one from the AppStore which is Lion-specific. To find the Snow Leopard specific version log into Apple's developers portal and you'll see separate links for SL and Lion.
Yes, it's compatible. Download the XCode 4.2 .dmg from the iOS dev program portal, which includes the iOS 5.0 SDK.
http://developer.apple.com/devcenter/download.action?path=/Developer_Tools/xcode_4.2_with_ios_5_sdk/xcode_4.2_and_ios_5_sdk_for_snow_leopard.dmg
Yes, but only if you have the correct download from Apple.
There are currently 2 separate dmg downloads for the SDK and Xcode installer from the enrolled Developer web site, one for Lion and one for Snow Leopard. The download for Lion is only compatible with Lion. The download for Snow Leopard is only compatible with Snow Leopard. The installer from the App store might be for Lion only, so you may have to sign up for the developer program to get the other installer.
Apple usually removes (or hides) downloads for previous versions of the SDK, so if you didn't download the correct installer dmg (with the SDK for iOS 4.x) for the Mac OS of interest in time, you won't have a compatible installer.