Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
956 views
in Technique[技术] by (71.8m points)

how to stop after "cordova run ios"

What is the command to stop running after using cordova run ios in terminal?

I found one topic about this with 1 answer saying it's quit but that didn't work. Right now I close terminal every time which is very time consuming.

If i press ctrl+c I get the following:

(lldb) ^CTraceback (most recent call last): File "/private/tmp/fruitstrap_.py", line 17, in connect_command event = lldb.SBEvent() File "/Applications/Xcode.app/Contents/SharedFrameworks/LLDB.framework/Versions/A/Resources/Python/lldb/init.py", line 3395, in init this = _lldb.new_SBEvent(*args) KeyboardInterrupt error: the platform is not currently connected Executing commands in '/tmp/fruitstrap-lldb-prep-cmds-'. (lldb) platform select remote-ios --sysroot '/Users/doekewartena/Library/Developer/Xcode/iOS DeviceSupport/7.1.2 (11D257)/Symbols' Platform: remote-ios Connected: no SDK Path: "/Users/doekewartena/Library/Developer/Xcode/iOS DeviceSupport/7.1.2 (11D257)/Symbols" (lldb) target create "/Users/doekewartena/Documents/jbc2014/platforms/ios/build/device/JBC2014.app" Current executable set to '/Users/doekewartena/Documents/jbc2014/platforms/ios/build/device/JBC2014.app' (armv7). (lldb) script fruitstrap_device_app="/private/var/mobile/Applications/E23498AF-29C5-4A9F-8AFB-6566631DB725/JBC2014.app" (lldb) script fruitstrap_connect_url="connect://127.0.0.1:12345" (lldb) command script import "/tmp/fruitstrap_.py" (lldb)
command script add -f fruitstrap_.connect_command connect (lldb)
command script add -s asynchronous -f fruitstrap_.run_command run (lldb) command script add -s asynchronous -f fruitstrap_.autoexit_command autoexit (lldb) connect (lldb)
run

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...