how to stop after “cordova run ios”

穿精又带淫゛_ 提交于 2019-11-29 04:06:23

Xcode shouldn't be running if you are building your project using cordova cli. This will most likely solve your problem.

It is probably because of an earlier version of ios-deploy, as it is described here.

Check your version of ios-deploy, mine was 1.0.8:

$ ios-deploy --version

Check npm version of ios-deploy, current is 1.1.0:

$ npm info ios-deploy version

Update ios-deploy via npm:

$ sudo npm update -g ios-deploy

After $ cordova run you can now type exit and press ENTER. After this, type y and press ENTER to exit the process.

Having tried lots of different suggestions, the only thing that's worked for me is having another terminal window open, and when you're finished with the debugging run:

pkill lldb

That will close the app on the phone, and also return the original terminal window the command prompt neatly.

I enter "exit" and then press Y and hit enter. This works when it stops at lldb.

If you use Ctrl-C after the debug phase but before it says (lldb) it will exit...

Simply press CTRL+C (in most unix shells)

I'm still finding this is an issue with Cordova 5.1.1 CLI.

I found pressing Ctrl+Z in the terminal window running lldb worked for me.

In my case, that depends on the way I run the app.

If I run the app using phonegap run ios, I must press Ctrl + C; but if I run using cordova run ios, I can also exit typing quit or exit in lldb (after the app runs), and then press Y.

As a side note: When I exit pressing Ctrl + C, and then unplug my device and delete the app, after plug my device again lldb attempt to install the app again, without asking. That does not happen when I exit typing exit.

You can use Command + C if you're using terminal on Mac.

I had a similar problem when running ionic cordova run browser. pushing CTRL-C just killed the terminal process but server was running in the background.

My solution on the mac was to go to activity monitor and kill process called node.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!