KOH*_*TNH 4 xcode instruments ios-simulator 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`
Run Code Online (Sandbox Code Playgroud)
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.`
Run Code Online (Sandbox Code Playgroud)
文件夹:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library不包含文件夹/乐器.
在哪里找到它?
在Trace 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
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
2530 次 |
| 最近记录: |