Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Could not download iOS 8.1 Simulator

Tags:

When I use Xcode 9.0 download Simulator (Xcode - Preferences - Components - Simulator), It will show "Could not download and install iOS 8.1 Simulator. The certificate for this server is invalid. You might be connecting to a server that is pretending to be “devimages.apple.com.edgekey.net” which could put your confidential information at risk."
enter image description here

More detail problem

I found that I can download the simulator for iOS10.0 and above, but I can not download the simulator below iOS 10.0. As you can see:

  • When I click to download the simulator above iOS 10.0, it's work.
  • But when I download an emulator below the iOS 10.0 version, it will display a warning.

enter image description here

I have tried this solution:

  1. Copy the download address of the .dmg suffix(https://devimages.apple.com.edgekey.net/downloads/xcode/simulators/com.apple.pkg.iPhoneSimulatorSDK9_2-9.2.1.1451951473.dmg from @Mesut GÜNEŞ answer) and open it in the Safari browser.
  2. The browser will displays a warning show that the server certificate is invalid and automatically disables the continued access to the URL. enter image description here
  3. Click "visit the site" and now i can download the simulator installation package on the browser.
  4. After the installation package is downloaded, drag the installation package to the cache. directory(/Users/Andy/Library/Caches/com.apple.dt.Xcode/Downloads
  5. Open Xcode-Preferences to download and install the Simulator.
  6. So it just put the installation package into the cache directory in advance, in order to download faster. But the problem is that this warning window prevents me from starting the download. Even if I downloaded the installation package, but I still can't install it.
like image 731
andy0570 Avatar asked Sep 27 '17 05:09

andy0570


People also ask

Can we run iOS simulator in Windows 10?

You can run iPhone Simulator on Windows by installing simulators as native applications on PC.

Do I need Xcode for iOS simulator?

Launching the Simulator, though, always requires opening Xcode and going to Developer Tools. Because the Simulator. app is embedded within the Xcode app bundle, apps like LaunchBar won't find it to index it. LaunchBar, which is my launcher of choice, also ignores aliases, so dragging Simulator.


1 Answers

I actually found another way, if you're fine with updating your certificate trust settings. Browse to https://devimages.apple.com.edgekey.net/downloads/xcode/simulators in Safari. You'll see this:

This Connection Is Not Private

If you click on "visit this website", then it will prompt you for admin credentials to update your certificate trust settings. After doing that, the download links work in Xcode like normal.

like image 145
Dov Avatar answered Sep 27 '22 19:09

Dov