如何停止“cordova运行ios”
使用cordova run ios
在terminal上cordova run ios
后停止运行的命令是什么?
我find一个关于这个问题的答案,说1它quit
但没有奏效。 现在我每次closuresterminal非常耗时。
如果我按ctrl + c我得到以下内容:
(lldb)^ CTraceback(最近调用最后一个):文件“/private/tmp/fruitstrap_.py”,第17行,在connect_command event = lldb.SBEvent()File“/Applications/Xcode.app/Contents/SharedFrameworks/LLDB (* args)KeyboardInterrupt错误:平台当前没有连接执行'/ tmp / fruitstrap -l中的命令。 LLDB-准备-cmds-”。 (lldb)平台select remote-ios –sysroot'/ Users / doekewartena / Library / Developer / Xcode / iOS DeviceSupport / 7.1.2(11D257)/ Symbols'Platform:remote-ios Connected:no SDK Path:“/ Users / (lldb)target create“/Users/doekewartena/Documents/jbc2014/platforms/ios/build/device/JBC2014.app”当前可执行文件集到'/Users/doekewartena/Documents/jbc2014/platforms/ios/build/device/JBC2014.app'(armv7)。 (lldb)脚本fruitstrap_device_app =“/ private / var / mobile / Applications / E23498AF-29C5-4A9F-8AFB-6566631DB725 / JBC2014.app”(lldb)脚本fruitstrap_connect_url =“connect://127.0.0.1:12345”(lldb)命令脚本导入“/tmp/fruitstrap_.py”(lldb)
命令脚本添加-f fruitstrap_.connect_command连接(lldb)
命令脚本add -sasynchronous-f fruitstrap_.run_command run(lldb)命令脚本add -sasynchronous-f fruitstrap_.autoexit_command autoexit(lldb)connect(lldb)
跑
如果您使用cordova cli构build项目,Xcode不应该运行。 这很可能会解决你的问题。
这可能是由于ios-deploy
的早期版本,如此处所述。
检查您的版本的ios-deploy,我的是1.0.8:
$ ios-deploy --version
检查npm版本的ios-deploy,当前是1.1.0:
$ npm info ios-deploy version
通过npm更新ios-deploy:
$ sudo npm update -g ios-deploy
$ cordova run
您现在可以inputexit
并按ENTER键。 在此之后,键入y
,然后按ENTER退出该过程。
在尝试过很多不同的build议之后,唯一有效的方法是打开另一个terminal窗口,并在完成debugging运行时:
pkill lldb
这将closures手机上的应用程序,并返回原始terminal窗口整齐的命令提示符。
我进入“退出”,然后按Y键并回车。 当它在lldb停下来的时候这个工作。
如果您在debugging阶段之后但在它说(lldb)之前使用Ctrl-C,它将退出…
只需按CTRL+C
(在大多数unix shell中)
我仍然发现这是Cordova 5.1.1 CLI的一个问题。
我发现在运行lldb的terminal窗口中按Ctrl + Z为我工作。
在我的情况下,这取决于我运行应用程序的方式。
如果我运行应用程序使用phonegap run ios
,我必须按Ctrl + C
; 但如果我运行使用cordova run ios
,我也可以退出键入quit
或exit
lldb
(应用程序运行后),然后按Y
键。
作为一个方面说明:当我退出按Ctrl + C
,然后拔掉我的设备,并删除应用程序,再次插入我的设备后, lldb
尝试再次安装应用程序,而不问。 当我退出键入exit
时不会发生这种情况。
如果您在Mac上使用terminal,则可以使用Command + C