Thursday, January 2, 2014

Shortcut to "kill" the iOS Simulator

Sometimes Xcode just can't make the iOS Simulator fully quit. Opening a terminal and typing commands to kill the iOS Simulator can take time to get used to. This is why I associated a shortcut key for killing the simulator using a bash script.

Here's a quick guide for creating achieving this:

1. Install Better Touch Tool (you can download it here: http://www.boastr.net)
2. Open preferences window
3. Follow the steps on the picture and paste this piece of code:
killall -s "iPhone Simulator" &> /dev/null
if [ $? -eq 0 ]; then
    killall -m -KILL "iPhone Simulator"
fi


4. Press the selected keyboard shortcut and watch the iOS Simulator disappear.



1 comment:

  1. The best fishing rods combine the right blend of material quality, action and power rating, and fit for the fishing environment you’ll use them in (freshwater vs saltwater vs surf). Features like high-modulus graphite blanks, well-placed guides, ergonomic handles, and durable reel seats help differentiate good rods from great ones. According to recent guides, rods like the St. Croix Triumph Travel (for travel/versatility) and the Ugly Stik GX2 (for value/durability) are top picks in 2025.

    ReplyDelete