Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

为什么run不起来呢,error code -21 #79

Open
li-qingnan opened this issue Nov 11, 2016 · 8 comments
Open

为什么run不起来呢,error code -21 #79

li-qingnan opened this issue Nov 11, 2016 · 8 comments

Comments

@li-qingnan
Copy link

ERROR: Could not connect to lockdownd, error code -21

@HongliYu
Copy link

ERROR: Could not connect to lockdownd, error code -19

@CatOnly
Copy link

CatOnly commented Nov 16, 2016

我也是
真机测试:iOS 10.1,Xcode 8.0,OSX 10.11.6
ERROR: Could not connect to lockdownd, error code -21
然后又报错
instruments[31689:8241998] *** -[__NSCFConstantString stringByAppendingPathExtension:]: cannot append extension 'tracetemplate' to path ''
Instruments Usage Error: The specified template '' does not exist.

我还发现了一个十分相似的产品 https://github.com/mokemokechicken/CrashMonkey

@ruanshurui
Copy link

执行命令:smart_monkey -a *** -w 38a5b6235492941678c39b9ac24cf9c31ddbc9e5 --event-number 1000
我也是报这个错,如果用模拟器的话提示Invalid device, Please given a vaild device!
求回复~

@1214503056
Copy link

1214503056 commented Nov 29, 2016

大神,是不是升级到XCode8之后Monkey就不支持了,之前用XCode7.3.1是可以的!
帮忙看看吧,不胜感激!错误日志如下:

localhost:bin yongche$ smart_monkey -a com.******* -w ******* -n 3 -t 50 -s yidao_driver.app.dSYM --detail-count 20 --drop-useless-img
INSTRUMENTS_TRACE_PATH : /Users/yongche/Downloads/CrashMonkey4IOS/bin/.trace
RESULT_BASE_PATH : /Users/yongche/Downloads/CrashMonkey4IOS/bin/smart_monkey_result
{:app_path=>"com.
", :device=>"536c9b872ea0754a4abcb89d9555eee241deddfd", :run_count=>3, :time_limit_sec=>50, :dsym_file_path=>"/Users/yongche/Downloads/CrashMonkey4IOS/bin/.app.dSYM", :detail_event_count=>20, :drop_useless_img=>true}
=================================== Start Test (1/3) =======================================
ERROR: Could not connect to lockdownd, error code -21
Attempting iOS device system log capture via deviceconsole.
BundleID was found: com.******
Run: ["instruments", "-w", "*", "-l", "50000", "-t", "", "com.", "-e", "UIASCRIPT", "/Users/yongche/Downloads/CrashMonkey4IOS/bin/smart_monkey_result/report_20161129153400/custom.js", "-e", "UIARESULTSPATH", "/Users/yongche/Downloads/CrashMonkey4IOS/bin/smart_monkey_result/report_20161129153400"]
2016-11-29 15:34:09.310 instruments[17737:268594] *** -[__NSCFConstantString stringByAppendingPathExtension:]: cannot append extension 'tracetemplate' to path ''
Instruments Usage Error: The specified template '' does not exist.
instruments, version 8.0 (61187)
usage: instruments [-t template] [-D document] [-l timeLimit] [-i #] [-w device] [[-p pid] | [application [-e variable value] [argument ...]]]
Stop iOS system log capture.
ERROR: Could not connect to lockdownd, error code -21
Drop useless images...

@1214503056
Copy link

XCode8去掉了UIAutomation,应该是无解了。等待作者更新版本,加油哦!

@wanwan001
Copy link

@ruanshurui一模一样的情况额...第一次使用这个工具,不知道是不是像楼上说的,在Xcode8上用不了

@luozhang002
Copy link

这个问题到底该怎么解决

@luozhang002
Copy link

how to resolve this problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants