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
I tried all answers. None of them worked for me.
What worked for me on Sierra + Xcode 8.2 was going to:
/Library/Developer/CoreSimulator/Devices
and deleting all devices.
(Maybe this won't work for you, maybe this is a solution as a standalone, or maybe you have to do this in addition to other answers, but I did all solutions here and so not sure what did the deed). Just be aware that some of the answers here are old and the location of simulator has changed. Snowcrash's answer seems to be most recent.
In Xcode 6 and above, you can find and delete the simulators from the path /Library/Developer/CoreSimulator/Profiles/Runtimes
. Restart Xcode in order to take effect (may not be needed).
In Xcode 6+ you can simply go to Menu > Window > Devices > Simulators and delete a simulator you don't need.
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
I wrote up one-line bash script that would delete ALL your simulators:
xcrun simctl list devices | grep -E -o -i "([0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12})" | xargs -L1 xcrun simctl delete
xcrun simctl list devices
will list all the simulators installed on your machinegrep -E -o -i "([0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12})"
will grab the device UUIDxargs -L1 xcrun simctl delete
will attempt to delete the device for each UUID it foundIf you want to see everything it'll execute, you can add echo
before xcrun
, i.e.
xcrun simctl list devices | grep -E -o -i "([0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12})" | xargs -L1 echo xcrun simctl delete
On Mac, check /Library/Developer/Xcode/iOS\ DeviceSupport