我认为这是第一次出现这种情况——我遇到了一个错误,而当我在Google上搜索对应的异常常量时,却没有任何结果。
基本上,我正在尝试从CLI运行我的iOS应用程序上的UI自动化,并收到以下错误消息:
2013-02-22 13:12:17.820 ScriptAgent[16626:2e07] + [UIAXElement initialize]:UIAutomation从未收到kAXAccessibilityLoaded。 等待20.02秒。 2013-02-22 13:12:17.826 ScriptAgent[16626:2e07] - [UIAXElement_0xad343c initialize]中的意外错误,/ SourceCache / UIAutomation_Sim / UIAutomation-271 / Framework / UIAXElement.m第165行,kAXErrorServerNotFound 2013-02-22 13:12:17.828 ScriptAgent[16626:2e07] 由于未捕获的异常'kUIAExeceptionAccessibilityError'而终止应用程序,原因:'- [UIAXElement_0xad343c initialize]中的意外错误,/ SourceCache / UIAutomation_Sim / UIAutomation-271 / Framework / UIAXElement.m第165行,kAXErrorServerNotFound' 首次抛出调用堆栈: (0x491012 0x1b78e7e 0x490deb 0xa8a55b 0x1b797cf 0x1b80a0d 0x1b77aeb 0x1b77e22 0x1b8a0e1 0xaa2605 0xa847 0x5d8d 0x866d 0x2925) libc ++ abi.dylib:使用异常终止
2013-02-22 13:12:18.264 instruments[16585:2227]在尝试运行脚本时,自动化工具遇到了异常。 UIAScriptAgentSignaledException 2013-02-22 19:12:18 +0000失败:尝试运行脚本时发生错误。 Instruments跟踪完成(持续时间:41.326542s;输出:/Users/newmanp/Work/iOS/CMAiPad/CMA.Mobile/UIScripts/instrumentscli3.trace)
当我搜索kAXAccessibilityLoaded或kAXErrorServerNotFound时,根本没有任何结果。这是我的命令行调用的样子:
instruments -t~/Work/iOS/Platforms/iPhoneOS.platform//Developer/Library/Instruments/PlugIns/AutomationInstrument.bundle/Contents/Resources/Automation.tracetemplate /Users/newmanp/Library/Application\ Support/iPhone\ Simulator/6.0/Applications/B60B9BD7-357D-49AA-9E6F-986929C5D151/CMA.app -e UIASCRIPT ./cmaAutomationTests.js -e UIARESULTSPATH“。”
非常感谢您提供有关我可能做错了什么的建议。
基本上,我正在尝试从CLI运行我的iOS应用程序上的UI自动化,并收到以下错误消息:
2013-02-22 13:12:17.820 ScriptAgent[16626:2e07] + [UIAXElement initialize]:UIAutomation从未收到kAXAccessibilityLoaded。 等待20.02秒。 2013-02-22 13:12:17.826 ScriptAgent[16626:2e07] - [UIAXElement_0xad343c initialize]中的意外错误,/ SourceCache / UIAutomation_Sim / UIAutomation-271 / Framework / UIAXElement.m第165行,kAXErrorServerNotFound 2013-02-22 13:12:17.828 ScriptAgent[16626:2e07] 由于未捕获的异常'kUIAExeceptionAccessibilityError'而终止应用程序,原因:'- [UIAXElement_0xad343c initialize]中的意外错误,/ SourceCache / UIAutomation_Sim / UIAutomation-271 / Framework / UIAXElement.m第165行,kAXErrorServerNotFound' 首次抛出调用堆栈: (0x491012 0x1b78e7e 0x490deb 0xa8a55b 0x1b797cf 0x1b80a0d 0x1b77aeb 0x1b77e22 0x1b8a0e1 0xaa2605 0xa847 0x5d8d 0x866d 0x2925) libc ++ abi.dylib:使用异常终止
2013-02-22 13:12:18.264 instruments[16585:2227]在尝试运行脚本时,自动化工具遇到了异常。 UIAScriptAgentSignaledException 2013-02-22 19:12:18 +0000失败:尝试运行脚本时发生错误。 Instruments跟踪完成(持续时间:41.326542s;输出:/Users/newmanp/Work/iOS/CMAiPad/CMA.Mobile/UIScripts/instrumentscli3.trace)
当我搜索kAXAccessibilityLoaded或kAXErrorServerNotFound时,根本没有任何结果。这是我的命令行调用的样子:
instruments -t~/Work/iOS/Platforms/iPhoneOS.platform//Developer/Library/Instruments/PlugIns/AutomationInstrument.bundle/Contents/Resources/Automation.tracetemplate /Users/newmanp/Library/Application\ Support/iPhone\ Simulator/6.0/Applications/B60B9BD7-357D-49AA-9E6F-986929C5D151/CMA.app -e UIASCRIPT ./cmaAutomationTests.js -e UIARESULTSPATH“。”
非常感谢您提供有关我可能做错了什么的建议。