Xcode Simulator: how to remove older unneeded devices?

前端 未结 19 1822
遇见更好的自我
遇见更好的自我 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:12

    In addition to @childno.de answer, your Mac directory

    /private/var/db/receipts/

    may still contains obsolete iPhoneSimulatorSDK .bom and .plist files like this:

    /private/var/db/receipts/com.apple.pkg.iPhoneSimulatorSDK8_4.bom /private/var/db/receipts/com.apple.pkg.iPhoneSimulatorSDK8_4.plist

    These could make your Downloads tab of Xcode's preferences show a tick () for that obsolete simulator version.

    To purge the unwanted simulators, you can do a search using this bash command from your Mac terminal:

    sudo find / -name "*PhoneSimulator*"

    Then go to corresponding directories to manually delete unwanted SimulatorSDKs

提交回复
热议问题