Reputation: 6122
I have downloaded Xcode 6.2 today which replaced previous Xcode 6.1 now to use simulator 7.1 & 8.1 it asks to download both simulators , but for some reason after trying 4-5 times it shows network issues in downloading or request time out (note: in n/w diagnostic after it shows net is working properly)
so is there any direct link from where i can download the simulator package directly or somewhere at least it shows progress in percentage/size instead just a bar
if it's not possible i have read about copying the older simulator to new Xcode so how can i place the old simulator(7.1 & 8.1) in Xcode 6.2 that it works directly without downloading again
Upvotes: 115
Views: 174910
Reputation: 2494
To add iOS Simulator in XCode perform below steps:
Download iOS Simulator from Below Link:
After download completes, copy this file to ~/Library/Caches/com.apple.dt.Xcode/Downloads In some cases, we have to remove all *.dvtdownloadableindex files (maybe it doesn't matter, I didn't remove them).
In case directory ~/Library/Caches/com.apple.dt.Xcode don't have download folder then, just click Show package content
create Downloads folder, before moving the dmg file.
In Xcode, in the Downloads section, start the Simulator download again, it should find the file you downloaded and install it.
(Newest on top. only the latest revision is kept in the list.)
iOS 17.0.1
iOS 15.5
iOS 15.4
iOS 15.2
iOS 14.5
iOS 14.4
iOS 14.3
iOS 14.2
iOS 14.1
iOS 14.0
iOS 13.7
iOS 13.6
iOS 13.5
iOS 13.4
iOS 13.3
iOS 13.2
iOS 13.1
iOS 13.0
iOS 12.4
iOS 12.2
iOS 12.1
iOS 12.0
iOS 11.4
iOS 11.3
iOS 11.2
iOS 11.1
iOS 11.0
iOS 10.3.1
Upvotes: 171
Reputation: 120082
You have to login before downloading anything below.
You can find all Xcode dmg/xip files or iOS simulators directly on the Apple Developer Portal (requires Apple ID).
Use the simctl
command to install it:
sudo xcrun simctl runtime add <PATH_TO_THE_DOWNLIADED_DMG_FILE>
If the first method didn't work, you should copy the content in the downloaded DMG from:
{THE_MOUNTED_DMG_YOU_JUST_DOWNLOADED}/Library/Developer/CoreSimulator/Profiles
to
/Library/Developer/CoreSimulator/Profiles
Follow this answer if you get the developer cannot be verified
error.
Good Luck šš»
Upvotes: 23
Reputation: 48
After downloading and copy and paste the .dmg file in Downloads folder. If your Xcode does not recognize the .dmg file you should install it manually in the terminal by this command:
sudo xcrun simctl runtime add "Path to downloaded dmg file"
And after that open your Xcode and your simulator would be recognized.
Upvotes: 0
Reputation: 1
Upvotes: 0
Reputation: 40
ā Use this link can download iOS_17_Simulator_Runtime: https://download.developer.apple.com/Developer_Tools/iOS_17_Simulator_Runtime/iOS_17_Simulator_Runtime.dmg
If you can't download it ,you can visit this https://developer.apple.com/download/all/ first,then continue down.
Upvotes: -1
Reputation: 11
You can also use xcodes tool to download and install wanted runtime !
List Runtimes
xcodes runtimes --include-betas
Install iOS Runtime
xcodes runtimes install "iOS 17.0-beta1"
I advice you to install aria2 before doing all this. Enjoy :)
Upvotes: 1
Reputation: 3
New Xcode 14.1:
Upvotes: 0
Reputation: 708
The download links for all Apple platform runtimes are available here:
https://devimages-cdn.apple.com/downloads/xcode/simulators/index2.dvtdownloadableindex
Runtimes for Apple platforms from 20221 can be installed with the xcrun simctl runtime add
command:
xcrun simctl runtime add iOS_16_Simulator_Runtime.dmg
For earlier platforms use xcodes:
sudo xcodes runtimes install "iOS 15.0"
The following command will show all available runtimes:
sudo xcodes runtimes
Upvotes: 16
Reputation: 22965
Follow below step to get new simulator with supported/different OS,
Upvotes: 0
Reputation: 3498
Clicking on Download in Xcode didn't do anything - the progress bar did not progress (does that make it a regress bar?).
This is what worked for me:
Open Xcode, open preferences, go to the Components section.
Open the Console App, clear the console.
Go back to the Xcode preferences. Start the simulator download, then cancel it.
Now in the Console, you will see something about the cancellation with the download URL.
Copy the URL from the Console. Then in Terminal in some suitable scratch folder, download it:
curl [the url you copied] -O
(the letter O, not a zero)
Finally, copy this file to ~/Library/Caches/com.apple.dt.Xcode/Downloads
Remove all *.dvtdownloadableindex files (maybe it doesn't matter, but I removed them).
In Xcode, in the Downloads section, start the Simulator download again, it should find the file you downloaded and install it.
How easy was that! Only 7 steps, hah!
Upvotes: 193
Reputation: 2415
Open iPhone 11 iOS 13.6 Simulator with Xcode 12 in Visual Studio for Mac(Xamarin):
Note: This steps are performed in Visual Studio for Mac 2019
Upvotes: 1
Reputation: 439
If someone is searching in 2019, I have a better solution than looking at messy Console app.
1/ Open Terminal and run sudo /Applications/Xcode.app/Contents/MacOS/Xcode
to open Xcode in sudo mode.
2/ Xcode > Preferences > Components > Download then cancel the simulator you want to download.
3/ Go back to Terminal, it will log the Downloadable with the Simulator link, copy that to Safari to download it.
Upvotes: 29
Reputation: 79776
Follow these steps to add a (new) simulator (Xcode 9 onwards)
A new simulator will be added in your Simulator option list.
Look at this snapshot to understand flow of above steps:
And if there is no simulator/OS version in simulator list, you're looking for,
Upvotes: 19
Reputation: 1319
So a quick tip for the people who use a download manager to download the .dmg file and didn't manage to get it work.
Once you place the file inside the 'Downloads' folder, Copy and paste the url somewhere and copy the file name alone.
( for me I was downloading iOS 9.3 so the url was - https://devimages.apple.com.edgekey.net/downloads/xcode/simulators/com.apple.pkg.iPhoneSimulatorSDK9_3-9.3.1.1460411551.dmg
and rename the file you just copied to the 'Downloads' folder, even if it looks exactly the same.
I wasted 2 to 3 hours trying to figure this out. The problem is that the filename looks exactly the same. But there was an extra space somewhere.
Another Tip: Also to get the download url - open system console. Make sure all messages are selected and search for xcode inside the Search box. Go to xcode simulator download screen, start and stop the download for the simulator you want and check inside console log. You should find the url there.
Upvotes: 5
Reputation: 148
Often, what it takes with Xcode is a good 'ol fashioned restart. This didn't work for me, so I restarted my MacBook Pro. Now it works :)
It's a quick thing to do when you're stuck.
Upvotes: -1
Reputation: 31311
so is there any direct link from where i can download the simulator package directly or somewhere at least it shows progress in percentage/size instead just a bar
You can't download the simulators package directly. Instead, you can download the xcodes from developer.apple using this link, which provides you the required simulators.
If you want the old simulators in new Xcode, download the desired Xcode using the above link,after downloading it, Open the DMG or open your existing older Xcode, right click on the Xcode application and click 'Show Package Contents', navigate to:Contents/Developer/Platforms/iPhoneSimulator.platform/Developer
, copy the found simulator folder (eg. iPhoneSimulator7.1.sdk folder), repeat steps 2 & 3 for your current Xcode application, paste the simulator folder,restarting the Xcode will show you the new added simulators.
Upvotes: 2