仪器4.5和ios模拟器6.0。没有开始

时间:2012-10-12 09:30:46

标签: xcode ios-simulator instruments ios-ui-automation

在IOS Simulator 5.1中,此代码有效:

`instruments -t /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/Instruments/PlugIns/AutomationInstrument.bundle/Contents/Resources/Automation.tracetemplate /Users/administrator/Library/Application\ Support/iPhone\ Simulator/6.0/Applications/$numbersstrings/myapp.app/ -e UIASCRIPT /Users/administrator/Desktop/Tests/smoke.js`

xcode更新后,ios simulator 6.0此代码不起作用并显示此错误:

`Instruments Usage Error : The specified template 'file://localhost/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/Instruments/PlugIns/AutomationInstrument.bundle/Contents/Resources/Automation.tracetemplate' does not exist.`

文件夹: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library 不包含文件夹/乐器。

哪里找到它?

3 个答案:

答案 0 :(得分:8)

在仪器4.5中,tracetemplate的路径已经改变。

请改用:

instruments -t /Applications/Xcode.app/Contents/Applications/Instruments.app/Contents/PlugIns/AutomationInstrument.bundle/Contents/Resources/Automation.tracetemplate /Users/administrator/Library/Application\ Support/iPhone\ Simulator/6.0/Applications/$numbersstrings/myapp.app/ -e UIASCRIPT /Users/administrator/Desktop/Tests/smoke.js

答案 1 :(得分:0)

也许您需要再次安装开发人员工具:Xcode>偏好>下载。

答案 2 :(得分:0)

iOS 6中仪器自动化的路径更改。验证路径,然后尝试使用命令