在 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。
哪里找?
最佳答案
跟踪模板的路径在 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
关于xcode - 仪器 4.5 和 ios 模拟器 6.0。没有开始,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12856124/