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."
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.
I have tried this solution:
- 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.
- The browser will displays a warning show that the server certificate is invalid and automatically disables the continued access to the URL.
- Click "visit the site" and now i can download the simulator installation package on the browser.
- After the installation package is downloaded, drag the installation package to the cache. directory(
/Users/Andy/Library/Caches/com.apple.dt.Xcode/Downloads
) - Open
Xcode-Preferences
to download and install the Simulator. - 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.