【发布时间】:2015-06-04 13:50:36
【问题描述】:
当我启动应用程序时,屏幕出现又消失。我用 UI 自动化写了一个小脚本
instruments -w "iPhone 6 (8.2 Simulator)" -t /Applications/Xcode-beta.app/Contents/Applications/Instruments.app/Contents/PlugIns/AutomationInstrument.xrplugin/Contents/Resources/Automation.tracetemplate /Users/me/PATHTO.app -e UIASCRIPT "/Users/me/Documents/Instrument/test.js" -e UIARESULTSPATH "/somewhere"
我收到了这个错误:
instruments[1940:183752] WebKit Threading Violation - initial use of WebKit from a secondary thread.
Instruments Trace Error : Target failed to run: Failed looking up pid of launched process.
有什么想法吗?
【问题讨论】:
-
“WebKit 线程违规”似乎是在这里使用的更合适的搜索词。见this question 和this possible fix。
标签: ios xcode instruments ui-automation