Search code examples
iosxcodexcode6

How to force reinstall iOS simulator?


I wanted to download simulator components (Xcode 6.2), but during progress my internet connection was lost. Xcode still shows I've already have installed 7.1 simulator. Do you know how to force reinstall iOS simulator? I've done following steps:

  • Removed the 'Downloads' directory from ~/Library/Caches/com.apple.dt.Xcode
  • Removed all the 7.1 devices from Window -> Devices

It doesn't work... I would appreciate any help!

enter image description here


Solution

  • I experienced the same issue this morning. What solved it for me was entering this in terminal:

    sudo rm -rf /Library/Developer/CoreSimulator/Profiles/Runtimes/iOS\ 7.1.simruntime
    

    Edit: Forgot -r flag

    Be sure to add your devices back in the devices window.

    Edit 2: Xcode 15 stores newer "add-on" runtimes in /Library/Developer/CoreSimulator/Volumes/, with a format like /Library/Developer/CoreSimulator/Volumes/{name_build}/Library/Developer/CoreSimulator/Profiles/Runtimes/{name version}.simruntime