我们可以在iPhone模拟器中使用UI自动化工具吗? [英] Can we use UI Automation tools with the iPhone Simulator?
问题描述
我一直在使用新的UI自动化工具与Instruments和iPhone SDK 4.0,但到目前为止我还没能在iPhone模拟器下运行它。我已经尝试将目标设置到每个可能的位置 - 我的构建文件夹,〜/ Library / Application Support / iPhone Simulator中的app文件夹等等 - 但是当我尝试运行它时收到错误消息:
I’ve been using the new UI automation tools with Instruments and the iPhone SDK 4.0, but so far I haven’t been able to get it to run under the iPhone Simulator. I’ve tried setting the target to every location possible—my build folder, the app folder in ~/Library/Application Support/iPhone Simulator, etc.—but I get an error message when I try to run it:
- [UIATarget_0x5a1e3b0 frontMostApp],/ SourceCache / UIAutomation_Sim / UIAutomation-37 / Framework /UIATargetElements.m第437行,
Unexpected error in -[UIATarget_0x5a1e3b0 frontMostApp], /SourceCache/UIAutomation_Sim/UIAutomation-37/Framework/UIATargetElements.m line 437,
有没有人让这个工作?
推荐答案
如果您无法获得正确的目标,使用其他工具(如Leaks)运行项目时应将可执行文件放入选择目标列表中。这至少是一个可以排除这种方式的潜在错误来源。
If you have trouble getting the correct target, running your project with a different instrument (like Leaks) should put your executable into the "choose target" list. That is at least one potential error source you can exclude that way.
这篇关于我们可以在iPhone模拟器中使用UI自动化工具吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!