2012-10-12 37 views
4

在iPhone模擬器5.1此代碼工作:儀器4.5和ios模擬器6.0。未啓動

`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的更新後,iPhone模擬器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.` 

文件夾: /應用/的Xcode .app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library 不包含文件夾/樂器。

哪裏可以找到它?

回答

8

到tracetemplate的路徑在儀器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 
0

也許您需要再次安裝開發人員工具:Xcode>首選項>下載。

0

用於在IOS 6.儀器自動化變化的路徑確認的路徑,然後嘗試使用命令