4

在 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 模拟器 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 不包含文件夹/Instruments。

在哪里找到它?

4

3 回答 3

8

Instruments 4.5 中跟踪模板的路径已更改。

改用这个:

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
于 2012-10-31T23:58:15.353 回答
0

也许你需要再次安装开发者工具:Xcode > Preferences > Download。

于 2012-10-13T21:31:53.977 回答
0

iOS 6 中 Instrument 自动化的路径发生变化。验证路径,然后尝试使用命令

于 2012-10-23T05:12:43.583 回答