iosxcodeios-simulator

Could not download and install iOS 17.0 Simulator runtime with Xcode 15.0


I'm getting an issue when attempting to install the iOS 17.0 simulator in Xcode 15.0. The problem is when Xcode updated to version 15, and now all the simulators I had previously downloaded have disappeared. Even though I have installed iOS 15.0 before, it doesn't seem to appear for me to run, and I'm getting an error message stating that I need iOS 17. Then when I try to download this from the xcode. I ended up with this error message.

enter image description here


Solution

  • Option 1:
    You can check the available free disk space on your MacBook. This usually becomes an issue when you have low space, and technically, you only need around 23GB of free disk space. However, I had to free up to 50GB to install it. You can manage your space and try to download it again.

    Option 2:
    You can try downloading and installing iOS 17.0 Simulator runtimes for a specific platform using the Terminal. Use the -downloadPlatform option and specify the platform like this:

    xcodebuild -downloadPlatform iOS
    

    Option 3:
    You can download the iOS 17.0 simulator runtime from this link - https://developer.apple.com/download/all/

    If your download speed is slow, you may need to use a VPN.

    After downloading the runtime, follow the commands below in your Terminal:

    sudo xcode-select -s /Applications/Xcode.app
    xcodebuild -runFirstLaunch
    xcrun simctl runtime add "~/Downloads/iOS_17_Simulator_Runtime.dmg"
    

    enter image description here

    Find more information about installing additional simulator runtimes on the official Apple documentation - https://developer.apple.com/documentation/xcode/installing-additional-simulator-runtimes