Unable to update XCode: Requires MacOS 10.15.4 or later - ios

I am developing applications for iPhones. i have xcode version 11.2.1. My iPhone is updated to iOS 14 and now i am no longer able to run apps in iPhone via XCode, because it says I need to have an updated version of XCode. I visited App Store XCode page, and it says below
Requires MacOS 10.15.4 or later
My MacOS Version is 10.15.2. I am unable to update MacOS because I only have 14 GB left in my hard drive. My hard drive is only 121 GB. To install MacOS, it is asking me for 20.81 GB free eventhough the download is like 4.8GB
I ran DaisyDisk check (I have paid version) below is the result.
Then
For your note, XCode and Android studio has taken most space. I am using this laptop mainly for Mobile development.
Now I have 2 problems.
Unable to update XCode because MacOS is old
Unable to update MacOS because no space is left.
I have removed the XCode derived data, checked for local snapshots, uninstalled some applications, removed Android emulators and still only managed to free just 14.4 GB. The only other thing I can think of is removing MS Office package which will clear 6GB.
However if MacOS update is asking for 20.1 GB, I am not sure how much XCode will ask for. Maybe another 12-20 GB.
What should I do to update MacOS and Xcode at this stage? After removing so many files and few applications, I clearly fear to remove more things blindly without knowing whether it will help or not to update both MacOS and XCode. If it does, I have no problem. If it helps, I have 1 TB external hard disk which I have not used yet.

hey if you have iOS 14 than you should update Xcode to Xcode 12 , talking about space , open terminal and type command xcrun simctl delete unavailable this will delete old simulators and data related to it which you don't need .Now go to Mac app store and download DevCleaner its an app for Xcode users ,
Open it Check the box of Derived Data and Old simulator and device logs and click clean , unfold the Device support option in that app(DevCleaner) ->iOS-> see check the older iOS version and delete it ,
Now you will have enough space . Install newer versions of macOS , Xcode and iOS(on iPhone) and let me know how it goes , I also have more tips

Related

iOS version 16.2 released, but no Xcode support?

I am attempting to run my Swift app in Xcode, and after finding out my Xcode is up to date, yet my device is not supported, I took my problems to Google. Found out through a couple sources that I need to manually add device support, using this
I added the contents from the 16.0 folder into a new folder in Xcode Device Support and renamed the folder to 16.2 as it stated I should do.
Now, when I click Build, it tries to run before popping up an error on my computer saying:
This operation can fail if the version of the OS on the device is incompatible with the installed version of Xcode. You may also need to restart your mac and device in order to correctly detect compatibility.
I'm not sure what to do as it doesn't make sense for me to attempt downgrading back to another iOS version when I should be running my app with the latest version. Why does Xcode not update these folders to provide support for new iOS versions?
If you haven't received an update, delete xcode completely from your computer and download xcode 14.2 from this link https://developer.apple.com/download/all/?q=Xcode
download it from this link
IOS device support

How to using Xcode 11 to running app on iPhone 11 with iOS 15?

I want to using Xcode11 to test apps on my iPhone 11 with iOS 15 installed, but currently seems the Xcode11 cannot identify the device. I don't want to install the latest Xcode 13 nor upgrade my macOS, is there any way to resolve this?
Thanks in advance for your help!
There may be hacks available, but generally speaking these will cause issues. The only approved way is to install the latest Xcode. If you need to keep Xcode 12 (due to bugs or other issues inside 13), you can have both installed on your machine at the same time without any extra software or hacky setups. MacOS only cares about unique application names. You can download both one by one and simply rename one or both of them in the applications folder.
Also Xcode 13 doesn't require the latest MacOS to run, they always support the latest and the previous MacOS. So you should be able to download that no problem (unless your MacOS is many years old which is a bad idea anyway).

Xcode error “Could not find Developer Disk Image” 10.3.1 Fix?

I know this question is a duplicate and the permanent solution is to update Xcode to the latest version available.
What I'm looking for is only the developer disk image of every iOS version updates. Developer disk image of every version is less than 15 MB compared to the 4 GB+ download size of Xcode app/.dmg/.xip file.
Stackoverflow is maintaining a thread for links to every version of Xcode.dmg files.
How to download Xcode DMG or XIP file?
If I have only the developer disk image, I can run my projects after every iOS updates without re-downloading the entire Xcode or being forced to update the Mac OS version.
Though I acknowledge that running on the latest version of Xcode and Mac OSX is the best practice, sometimes it can also be a problem. Especially if you have slow download speeds and not so reliable Apple download servers with terrible resume support.
My current scenario is something like that. I'm running on 10.11.6 El Capitan and Xcode 8.2. Yesterday I have updated my iPhone 6 to iOS 10.3.1.
Now I have to update the Xcode to 8.3 else I won't be able to run my projects on my device. But to download Xcode 8.3 from Appstore my OSX version should be MacOS Sierra.
My project won't run on simulator due to the SDK's I'm using and now I'm stuck with downloading MacOS Sierra first (5-6 GB) and then Xcode 8.3 (4-4.5 GB) on frustrating 1 Mb/s connection. All of this for a 15 MB file.!
What I want to know is, is there any source or thread in SO that shares these developer disk images and how secure it is to use it (Can this image be tampered?). I don't know whether Apple will provide this option. And I'm equally aware that downloading dev tools from non-trusted sources can get your hands burned (like the developers from China who downloaded modified versions of Xcode outside AppStore or developer.apple.com and got malware in their apps)
I don't think Apple has ever released the developer disk images separately so I can't imagine they would in the future.
Solving the download problem is probably easier, don't use App Store because it's fairly miserable about downloading on a bandwidth limited connection but instead visit https://developer.apple.com/download/more/. They have the actual files hosted there so you can get them with a more appropriate tool, you'll know they're definitely from Apple as well.
If some one has download these dmg or than you can use. It will work same as download file. I guess apple did not provide for these disk files seprately. If you want to download Without App Store siera dmg, Xcode.dmg or Xip file.Than check these url. But You should be apple develoeper account.
Siera
https://7labs.heypub.com/tips-tricks/macos-sierra-direct-download.html.
For Xcode How to download Xcode DMG or XIP file?

Xcode error "Could not find Developer Disk Image"

When attempting to run a build on a connected iOS device in Xcode I get the error:
Could not find Developer Disk Image
I saw that there was a public beta for Xcode, so I installed it.
One of the new features is that you don't need to have a Developer Program Account Dingus to upload your app directly to your iPhone.
However, on my iPhone 4s, I also did a public beta update to iOS 8.4, problem being, that there's no Developer Disk Image available for it.
Where do I to find it or how can it be fixed?
For people who would have similar problems in the future, beware that this problem is fundamentally rooted in the mismatch of your iOS version and Xcode version.
Check the compatibility of iOS and Xcode.
I personally downloaded Xcode 6.4 beta and 7.0 beta and I was very happy to find the solution by searching "8.4" inside the application folder of the 6.4 beta. By doing this, I found the folder 8.4 (12H4125a) containing the iOS 8.4 image and I copied this folder to the same path of the 7.0 beta. The path is the following:
/Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport
When you will reopen Xcode 7 and choose your device, there will be an error message; just click on fix issue and that should do it!
This error occurs when the version of Xcode predates that of the device.
For example, attempting to run a build on a device running iOS 9.3 in Xcode 7.2 results in this error; Could not find Developer Disk Image.
Why an error message that actually describes what the hell is going on can't be provided is beyond me (Apple, I'm looking at you 👀).
Update to the latest version of Xcode through the App Store or via direct download to guarantee interoperability with connected iOS hardware.
I am facing the same issue on Xcode 7.3 or Older version of your Xcode and my device version is iOS 10 or newer version of your OS.
This error is shown when your Xcode is old and the related device you are using is updated to latest version.
We can solve this issue by following the below steps:
Method 1:-
Right click on Xcode 7.3 or version of your Xcode, now select "Show Package Contents", "Contents", "Developer",
"Platforms","iPhoneOS.Platform", "Device Support".
Now check there is latest version of developer disk image(folder) like 12.1 or newest version(folder) in your case. Copy the latest
version and Paste in the same Folder Device Support.
In my case I have 12.1 is the latest folder. Now it will generate the copy of that version like 12.1 copy or newest version(folder)copy
in your case.
Now Change the name of copy folder to your latest version of iPhone like. In mine case, I have 12.1(Folder)copy and rename it into 12.4. As you can see in the above screenshot. You can change it according to your latest version of phone. I need it for 12.4 so i just rename the folder to 12.4.
Now your Xcode has a new developer disk image. Close the finder now,
and quit your Xcode. Open your Xcode and the error will be gone. Now
you can connect your latest device to old Xcode versions.
**OR**
Method 2:-
First of all, download the latest Xcode Version. No Need to install the latest Xcode.
We can solve this issue by following the below steps:
Right click on Xcode 8 or Newer version of your Xcode, select "Show Package Contents", "Contents", "Developer",
"Platforms", "iPhoneOS.Platform", "Device Support"
Copy the 10.0 folder (or above for later version).
Back in Finder select Applications again
Right click on Xcode 7.3 or version of your Xcode, now select "Show Package Contents", "Contents", "Developer", "Platforms",
"iPhoneOS.Platform", "Device Support"
Paste the 10.0 folder (or above for later version).
Now your Xcode has a new developer disk image. Close the finder now, and quit your Xcode. Open your Xcode and the error will be gone. Now you can connect your latest device to old Xcode versions.
OR
If you can't download the latest Xcode, you can get the latest
Developer Disk Image for your Xcode from this link:-
https://github.com/Yatko/iOS-device-support-files
Thanks to Yatko. So that people can download the latest DMGs.
If you're using old Xcode and want to run onto devices with new version of iOS, then do this trick. This basically make a symbolic link from iOS Device Support in new Xcode to old Xcode
https://gist.github.com/steipete/d9b44d8e9f341e81414e86d7ff8fb62d
For Xcode 9.0 beta and iOS 11.0 beta (name your Xcode9.app for Xcode 9 beta and Xcode.app for Xcode 8)
sudo ln -s "/Applications/Xcode9.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/11.0\ \(15A5278f\)" "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport"
My problem was with Xcode 7 and Xcode 6.4 beta and iOS 8.4 - device not compatible.
In case of the same problem for better understanding how to fix, do next:
Go to /Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport
Go to
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSup‌​port/
Copy folder iOS 8.4 in another folder
Restart Xcode
If you have iOS 9.1 on your phone, just download Xcode 7.1 beta instead of using GM.
See Apple's response: Could not find developer disk image for iOS 9.1
I got the same error message (Couldn't find developer disk image) after I updated my devices to iOS 9.2, but forgot to update to Xcode 7.2.
So in my case, the fix was easy: just update to Xcode 7.2 via Mac App Store.
This message appears when your version of Xcode is too old for the device's version of iOS. Upgrade Xcode to the latest.
If the App Store doesn't offer an update for Xcode, upgrade to the latest Mac OS. In the past, Apple has been rather aggressive about dropping support for past versions of Mac OS X in the latest Xcode.
EDIT: yes, this error started popping up all over again. :) Xcode 7.3.1, which is the latest one that's available for MacOS 10.11 (El Capitan), doesn't support iOS 10. You need MacOS Sierra (and possibly a new Mac).
I just got this, and I'm on Xcode 7.2.1... It appeared when I downloaded iOS 9.3. Check your Project -> Base SDK and if it isn't the same or ahead of your device version, then that's the issue. I didn't see anything in the "Updates" section, but when I searched "Xcode" in the App Store it had an update for 7.3.
Upgrading to iOS 9.3 and Xcode 7.3 requires Mac OS X v10.11 (El Capitan) for Xcode to run, and that's why auto update isn't upgrading Xcode versions.
This problem is a mismatch of your iOS version and Xcode version.
Example:
You have an iPhone with iOS 9.3 GM and your Xcode version is 7.2.1. This leads to the issue that you have to update your Xcode to 7.3 which includes SDKs and related stuff for iOS 9.3.
There actually is a way to deploy to a device running a newer iOS that the particular version of Xcode might not actually support. What you need to do is copy over the folder that contains the Developer Disk Image from the newer version of Xcode.
For example, you can deploy to a device running iOS 9.3 using Xcode 7.2.1 (which only supports up to iOS 9.2) using this method. Go to the Xcode 7.3 install and navigate to:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport
From here, copy over the folder that contains the version you are trying to run on the older version of Xcode (for this example, it's 9.3 with the build number in parenthesis). Copy this folder over to the other install of Xcode, and now you should be able to deploy to a device running that particular version of iOS.
This will fail, however, if you're utilizing API calls that were specifically added to the newer version of the SDK. In that case, you will be forced to update Xcode.
I have experienced the same issue:
Could not find Developer Disk Image
My Xcode version was 7.0.1, and I updated my iPhone's version to 9.2, and upon using Xcode I ran into this problem.
The solution is pretty simple: Just download the latest version of Xcode 7.2 which was released on 8 Dec, 2015 and install it. Everything works fine for you as it was before.
Note: The actual problem is your Xcode version is not compatible/outdated with the version on your device.
This error is shown when your Xcode installation is too old and the related device you are using is updated to latest version.
There are multiple ways to solve this issues.
1. Update your Xcode installation.
This is by far the simplest method. Just update your Xcode installation to the latest stable version and things would start working again.
Note: Please update your OS as well if Xcode doesn't support your current OS. Which brings us to...
2. Manually copying Device Disk Image. No update needed.
This is the clever way around. You don't have to update your Xcode installation or your OS for this.
First open the XCode.dmg and select Show Package Contents.
Phase 1: Getting the downloaded Xcode ready.
Steps:
Download the latest Xcode.dmg from Developer portal.
Select the downloaded Xcode.dmg and right click on it.
In the options, select Open With → DiskImageMounter.
Now in Finder, open the Xcode disk.
In the disk, right click on Xcode.
Select Show Package Contents.
Now, a new finder window opens. Follow the instructions below to copy the disk image.
Phase 2: Copying the Developer Disk Image.
Steps:
In the new finder, go to Contents.
Inside Contents, Go to Developer.
Inside Developer, go to Platform.
Now select the desired platform. For our purpose, we are going to update iOS disk image only.
Inside Platform, go to Device Support.
Inside Device Support, you'll find a lot of disk images. This includes the latest device disk images as well.
Copy all the folders inside Device Support. Select all and then copy.
Note: For step 6, You can copy the disk image you want to copy as well, i.e. copy the latest only. It's the last folder in the hierarchy here.
This ends the Phase 2, Copying the disk image. Now in the next phase, we will update the developer disk image of our Xcode installed on our device.
Phase 3: Upadting the Xcode's developer disk image.
Now, close all the finder windows for faster operation and less confusion.
We are now going to update our Xcode's disk image for iOS Platform.
Steps:
Close the Xcode application if it is open.
Open a new finder window.
Select the primary partition if you have multiple partitions.
Go to Applications.
Find XCode and right click on it.
Select Show Package Contents.
Finder window updates or opens a new window with Contents as the main directory.
Select Contents.
Inside Contents, select Developer.
Now, select Platforms.
Now, select iPhoneOS.platform.
Inside iPhoneOS.platform, go to Device Support.
Inside Device Support, select all the files and Move to Trash.
Note: SKIP step 12 if you copied only the latest disk image i.e. the last folder in the hierarchy.
Now, Paste the developer disk image we copied from Phase 2 here.
Final Step, right click and Paste here.
If everything worked properly, your Xcode has new developer disk image. Close the finder now, and open Xcode. The error should be gone by now.
Reminder: Don't forget to unmount the Xcode now from finder as well.
It works, in my case for Xcode from 7.3 TO 7.1. Copy directory 9.2, for iOS device OS 9.2.1.
As others suggested, this issue is caused by an incompatible iOS version (which is higher than the maximum version that Xcode supports). Normally it can be addressed by updating Xcode, but sometimes you may be restricted to do so, hence here's another workaround.
Head to developer.apple.com/downloads (or google similar stuff if this link dies) to grab the newest Xcode dmg image manually, and then mount it. If you're doing this already, the new Xcode is not likely working for you, but you can cp /Volumes/Xcode/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/NEW_IOS_VERSION /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/ to copy the image you want into the old Xcode you've installed.
Of course it's not guaranteed to work for future versions, but it's definitely worth trying. For me, my iOS version is 9.3.1 (13E238), but I copied 9.3 (13E230), and it works just fine.
This happens when your Xcode version doesn't have a necessary component to build the application to your target OS. You should update your Xcode.
If you are building a new application for a beta OS version that no stable Xcode version is able to build, you should download the newest Xcode beta version.
I also had this problem. I was using Xcode 7.3 for my iOS 10 beta iPhone, so I went to install Xcode 8-beta, and I did the following step to continue using the stable version of Xcode with new build tool:
Just like #onmyway133 answer, but more user-friendly is after finish installing the Xcode 8-beta version, go to Xcode 7.3 preferences (Cmd + ,), go to the tab locations, change the Command Line Tools to Xcode 8 in the dropdown list.
I successfully built to both iOS simulator 9.3 and my device iOS 10 beta using Xcode 7.3.
This problem is fundamentally rooted in the mismatch of your iOS version and Xcode version.
Check the compatibility of iOS and Xcode.
Go To Application folder (In finder) -> right click on Xcode -> click on show package contents -> Double click contents folder -> Double click developers folder -> Double click platforms folder -> Double click iPhoneOS.platform folder -> Double click device support folder -> then add latest developer disk image.
Or
Download Latest version of Xcode.
For iOS 10 beta 7, add the following link on the command line:
sudo ln -s /Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/10.0\ \(14A5339a\) /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport
I have also faced this issue, and I'm on Xcode 7.2.
It appeared when I downloaded iOS 9.3.
Check your Project -> Base SDK and if it isn't the same or ahead of your device version, then that's the issue.
I didn't see anything in the "Updates" section, but when I searched "Xcode" in the App Store it had an update for 7.3. Upgrading to iOS 9.3 and Xcode 7.3 requires Mac OS X v10.11 (El Capitan) for Xcode to run, and that's why auto update isn't upgrading Xcode versions.
Just my two cents for iOS 10 (under NDA, but for people that can use it legally...)
Copying full folder (as other people said) works
Symbolic link seems not.
This was tested using Xcode 7.3 (std from Store) AND iPhone 6Plus with 10.0 (14A5261v).
by the way it DOES work even in Xcode Version 8.3.1 (8E1000a) adding an image for iOS 11 beta. I added 11.0 (15A5278f) inside
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/
and works with my iPhone 7plus with new iOS 11 beta.
New Updates for iOS Device Support file. Don't need to update Xcode.
You just need to add support file to Xcode's DeviceSupport folder.
iOS 11.3 Developer Disk Image
iOS 11.4 Developer Disk Image
iOS 12.0 Developer Disk Image
iOS 12.1 Developer Disk Image
iOS 12.2 Developer Disk Image
iOS 12.3 Developer Disk Image
iOS 12.3.1 Developer Disk Image
iOS 13.0 Developer Disk Image
Extract the zip and then copy folder.
Paste this folder in this path
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport
Quit the Xcode and restart, it will work.
You can add any iOS version to support with iOS DiskImage to you Xcode from Xcode-iOS-Developer-Disk-Image repository
Download which version you need from specified repository
Quit Xcode
Open Applications folder
Right click you Xcode.app and choose Show Package Contents menu
Go to /Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport
Create folder with name specified in repository and put DeveloperDiskImage.dmg and DeveloperDiskImage.dmg.signature files
Run Xcode
Disk image must be in folder like this:
In case you came here because you experience this issue while using Xamarin Hot Restart from within Visual Studio on Windows, it could look like this:
Launching '' on 'iPhone'...
Connecting iOS Debugger to '' over USB on port 10000...
There is no developer image available to mount on '' with version '15.3', so the app '' will not be launched automatically
Please launch the application '' on the device '' to continue
If this is the case you might have updated your iPhone to a new version and forgot to also update your iTunes installation that you got from the Windows Store.

Install ios 5 simulator to xcode 5.1?

I am currently using xcode 5.1 with Mac 10.8.5. But i can not install ios simulator in this xcode? any one tell me how to install ios 5 simulator ?
Man, this really made me angry today when I upgraded from Xcode 5.0 to Xcode 5.1 and discovered that I no longer had a functional iOS 5.1 simulator. There was nothing in the Software Update process that gave me any heads-up whatsoever that this would disable iOS 5.0/5.1 simulators. Bad Apple! Bad!
Anyway, here's the workaround I came up with. It seems pretty clean.
I noticed that in ~/Library/Caches/com.apple.dt.Xcode/Downloads there was an old file sitting around called Xcode.SDK.iPhoneSimulator.5.1-5.1.dmg (thank god I never cleared out that cache directory).
I double-clicked this disk image to mount it, and then double-clicked the .pkg file inside that. The package installer then placed the contents into a subdirectory of /Platforms.
I then moved /Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.1.sdk into /Applications/Xcode/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs and restarted Xcode.
Bam. Done. Back in business.
Note: Another approach, if you happen to have a thorough Time Machine backup of your full system, as Pandey Laxman pointed out earlier, is simply to restore the contents of /Applications/Xcode/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.1.sdk from an older backup. In my case, I wasn't able to do this because my development system is a MacBook Air that I keep backed via Time Machine up onto a permanently-installed 32GB SanDisk Cruzer Fit USB flash drive (as well as two extra Time Machine backups on separate network drives). Anyway, because the backup drive is relatively small, when I first set up Time Machine on this system, I had excluded /Applications from my backup (something I don't recommend doing).
In order to develop for the latest version of iOS, you need the latest iOS SDK, which requires the latest version of XCode, which in turn requires the latest version of OSX (at least as of writing this iOS 8.3 requires XCode 6.3, which requires OSX 10.10 - all the latest and greatest).
I would guess that Apple doesn't want to support iPad 1s and old iPhones anymore running iOS 5. Thus, they've done what they could to discourage developers from supportting them.
I, personal, put a lot of effort into coding to support iOS 5 through 8. I am not in hurry to throw that backwards compatibility away, but obviously developing for the most current version of iOS takes priority.
To get to the point, you can't install or run an iOS 5 simulator on OSX 10.10 Yosemite. I couldn't get an iOS 6 simulator to run either for some reason (even though I was able to install it in XCode 5).
I did, however, find a solution so I could use simulators for iOS 5 through 8 on my machine.
How? Setup a dual boot into an older os and install some software which can no longer be downloaded, but I tracked down.
I've posted the steps and all the software here. Nothing is difficult about any of this, but it will take many hour of downloading and running installations, ect. Reserve a day to do this while working another machine most of the time.
Create a partition on your hard drive from which you can run OSX Lion. I found 32 GB was large enough.
You may also want to create an additional partition at the same time rather than use a flash drive in step 2. I also made it 32 GB, but it could probably be a lot smaller (8? maybe even 4 gig?).
Here's a link to help with that:
http://arstechnica.com/apple/2014/06/how-to-create-a-test-partition-for-the-os-x-yosemite-beta/
Create a bootable installer drive for Lion. You can use a flash drive, or the extra partition suggested in step 1 (that's what I did when the only flash I had on me was acting up).
Here's the os:
OSX 10.7.2 Lion
https://drive.google.com/file/d/0BwmycZWygE8EUlhCYWlOWjlCcHM/view?usp=sharing
Here's directions for doing this:
http://www.tech-recipes.com/rx/11807/os-x-lion-convert-os-x-lion-dmg-installer-to-a-bootable-usb-thumbdrive-install-without-an-optical-drive/
Run the installer. Restart the machine whiling holding down the "option" key on the keyboard to select your boot device.
Once you have Lion up and running, you need to upgrade it to 10.7.5 (sorry I didn't have that to post to begin with).
Simply use the basic software update mechanism to do this.
Install XCode 4.6. Here's the software:
XCode 4.6.3
https://drive.google.com/file/d/0BwmycZWygE8ETnlFQ1BSYVV1ZUE/view?usp=sharing
Normally, you ought to be able to install an iOS 5 simulator via XCode, but Apple has blocked this.
You can however, install it manually as others have described in this thread for the various sdks (as long as you already have the software!)
Here is the software (since we don't have just happen to be lucky enough to have it previously installed):
Sorry, I don't have 5.1, only 5.0
iOS 5.0 Simulator
https://drive.google.com/file/d/0BwmycZWygE8ETndPOFJyUVg0b3M/view?usp=sharing
Install the command line tools if necessary. Again, XCode ought to allow you to do this, but it will fail when you try the normal way. Go ahead and give it a try.
Here's a dmg instead which you can install yourself that is compatible with this setup:
Command Line Tools (XCode 4.6 / OSX 10.7)
https://drive.google.com/file/d/0BwmycZWygE8EWm9QTW5HYV9PUnM/view?usp=sharing
Get your project to build in this new environment. There are permission issues and such when you try to cross over to your primary drive.
I found the easiest way to get everything working was to copy whatever I needed to the Lion drive and make sure all the relative paths were identical.
I also had to play a bit with the code because what compiled for the 7 and 8 sdks didn't work perfectly with this one. That's on you.
I believe the iOS 6 simulator will already be installed for you, but otherwise you should be able to download that still via XCode if needed.
Enjoy having all these simulators now!
you need to copy the simulator SDK to Xcode 5.1.
First copy the simulator SDKs from your previous installed Xcode.
then paste it in
Xcode 5.1 "Show Package Contents->Contents->Developer->Platforms->iPhoneSimulator.Platforms
->Developer->SDKs folder
There restart the Xcode 5.1.
Unfrotunately ,Xcode 5.1 in OS X 10.9 or 10.8.5 the iOS 5 simulator is no longer available.
Better to use some older versions like 4.6 for use iOS 5 simulator
using of Xcode 5 under OS X v10.8 then if you go to Preferences -> Downloads you should see the 5.0 and 5.1 simulators available under Components. You can download and install directly from there.
If you're using Xcode 5 under OS X v10.9 then the iOS 5 simulator is
no longer available.
xCode 5.02 up to available iOS 58 simulator but after updated the xcode through 5.1 the available simulator start from iOS 6
iOS Simulator
Performance issues can arise when running apps within the iOS Simulator on OS X Mavericks with a simulated OS version of iOS 6.1 or earlier.
A workaround is to disable timer coalescing while using the iOS 6.1 or earlier simulator by executing the following command in a Terminal window:
sudo sysctl -w kern.timer.coalescing_enabled=0 (15501929)
https://developer.apple.com/library/ios/releasenotes/DeveloperTools/RN-Xcode/xc5_release_notes/xc5_release_notes.html

Resources