从终端杀死iOS模拟器 [英] kill iOS Simulator from terminal

查看:127
本文介绍了从终端杀死iOS模拟器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图从终端控制台终止iOS模拟器(需要在Jenkins中集成自动UI测试),但是每次我尝试执行以下命令时:

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:

killall SimulatorBridge

显示等待操作的提示:

a prompt waiting for action gets displayed:

问题在于,直到对提示采取措施之前,模拟器不会被关闭.如何摆脱它?

The problem is that the simulator doesn't get dismissed until an action on the prompt is taken. How to get rid of it?

推荐答案

使用killall "iPhone Simulator"

对于XCode 6,请使用killall "iOS Simulator"(感谢@gempewsaw)

With XCode 6, use killall "iOS Simulator" (thanks @gempewsaw)

对于XCode 7,请使用killall "Simulator"(感谢@Stanislaw)

With XCode 7, use killall "Simulator" (thanks @Stanislaw)

使用XCode 8,有时仅杀死Simulator进程还不够,还需要杀死进程com.apple.CoreSimulator.CoreSimulatorService(感谢@bensnider)

With XCode 8, killing the Simulator process is sometimes not enough, also need to kill process com.apple.CoreSimulator.CoreSimulatorService (thanks @bensnider)

这篇关于从终端杀死iOS模拟器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆