update sim killing logic to work for xcode 6