如何使用Xcode机器人在模拟器上运行UIAutomation - 奇怪的行为

时间:2013-12-19 18:54:57

标签: ios xcode continuous-integration ios-ui-automation

我想使用Xcode机器人在模拟器上运行UIAutomation测试。我将此命令添加到在xcode中的ARCHIVE阶段后启动的过去动作脚本:

instruments  -t "/Applications/Xcode.app/Contents/Applications/Instruments.app/Contents/PlugIns/AutomationInstrument.bundle/Contents/Resources/Automation.tracetemplate" /Users/ktos/appliation.app -l 10000 -v

Xcode机器人日志跟踪错误:

instruments[6702:507] Recording cancelled : At least one target failed to launch; aborting run
Instruments Trace Error : Error Domain=com.apple.instruments Code=1 "Error Starting Recording" UserInfo=0x7fc053b3a310 {NSLocalizedDescription=Error Starting Recording, NSLocalizedRecoverySuggestion=At least one target failed to launch; aborting run}
Instruments Trace Error : Failed to start trace.

当我在终端中使用完全相同的命令时,在同一台计算机上,仪器运行模拟器没有任何问题。你知道什么是错的吗?

1 个答案:

答案 0 :(得分:0)

仪器也可能在后台运行。做一个$ ps -A并检查并杀死它。