Tools 4.5 and simulator ios 6.0. not started

In iOS Simulator 5.1, this code worked:

`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` 

After updating xcode, ios simulator 6.0, this code does not work and shows this error:

 `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.` 

Folder: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library do not contain the folder / Tools.

Where to find?

+4
source share
3 answers

The path to the tracetemplate has changed in Tools 4.5.

Use this instead:

 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 
+8
source

You may need to install the developer tools again: Xcode> Settings> Download.

0
source

Path to tool automation changes in iOS 6. Check the path, and then try using the command

0
source

Source: https://habr.com/ru/post/1439338/


All Articles