Xcode Simulator: how to remove older unneeded devices?

前端 未结 19 1823
遇见更好的自我
遇见更好的自我 2020-12-02 03:56

I\'m running Xcode 4.3.1 iOS-Simulator which originally only supports iOS 5.1.

I need to test my code with iOS 4.3, so I used Xcode\'s \"Install\" feature to install

19条回答
  •  北海茫月
    2020-12-02 04:26

    Xcode 4.6 will prompt you to reinstall any older versions of the iOS Simulator if you just delete the SDK. To avoid that, you must also delete the Xcode cache. Then you won't be forced to reinstall the older SDK on launch.

    To remove the iOS 5.0 simulator, delete these and then restart Xcode:

    1. /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/PhoneSimulator5.0.sdk
    2. ~/Library/Caches/com.apple.dt.Xcode

    For example, after doing a clean install of Xcode, I installed the iOS 5.0 simulator from Xcode preferences. Later, I decided that 5.1 was enough but couldn't remove the 5.0 version. Xcode kept forcing me to reinstall it on launch. After removing both the cache file and the SDK, it no longer asked.

提交回复
热议问题