I\'m trying to terminate the iOS Simulator from the terminal console (needed for integrating automatic UI Testing in Jenkins),but every time I try the command:
k
Use killall "iPhone Simulator"
With XCode 6, use killall "iOS Simulator" (thanks @gempewsaw)
With XCode 7, use killall "Simulator" (thanks @Stanislaw)
With XCode 8, killing the Simulator process is sometimes not enough, also need to kill process com.apple.CoreSimulator.CoreSimulatorService (thanks @bensnider)