How to force reinstall iOS simulator?

2019-04-01 22:45发布

问题:

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!

回答1:

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.



标签: ios xcode xcode6