JackRostron / UIAutomation

OS X UIAutomation
2 stars 0 forks source link

Instruments command line does not run on Yosemite #12

Open JackRostron opened 10 years ago

JackRostron commented 10 years ago

Added you just because I have exhausted my limited knowledge on the topic - having adapted the existing project to work on Yosemite, the current Instruments command line we run:

instruments -w '6D17B710-AD1D-437E-AE48-D06EC0B12D69' -t '/Users/Jack/Library/Developer/Xcode/DerivedData/ScreenshotPreview-fnylesqbfjatmaatujvgkugeoaja/Build/Products/Debug/ScreenshotPreview.app/Contents/Resources/Automation.tracetemplate' -D /var/folders/s7/y265c6md3y34jfy1h3xx_k0h0000gn/T/C548343D-D752-4FFA-8452-4978E85CF4FB-10966-00000C754532166D/ '/Users/Jack/Library/Developer/Xcode/DerivedData/AnyBet-apgpwesaqchbvpfnuzxidhauttob/Build/Products/Debug-iphonesimulator/YouBet.app' -e UIASCRIPT '/var/folders/s7/y265c6md3y34jfy1h3xx_k0h0000gn/T/C548343D-D752-4FFA-8452-4978E85CF4FB-10966-00000C754532166D/loop.js' -e UIARESULTSPATH '/var/folders/s7/y265c6md3y34jfy1h3xx_k0h0000gn/T/C548343D-D752-4FFA-8452-4978E85CF4FB-10966-00000C754532166D/Output'

No longer works. Ignore what we have in for -w argument, since I am playing with lots of different things at the moment and it is accepted the UUID of a simulator as well as it's name. It still returns a "cannot identify device" if it doesn't like it so that definitely isn't the problem. Need to do some further investigating but as soon as you can have a nose through that will be great

JackRostron commented 10 years ago

Oh, and I have tried substituting the trace template with the one bundled with Xcode 6 and that made no difference - you hit enter on the command in terminal and nothing happens

JackRostron commented 10 years ago

The app does exist in the specified directory and the other dynamic files (javascript and bash) are being placed where they need to be

JackRostron commented 10 years ago

This version of the build has been tested by Mark on Mavericks and everything works okay even though it was compiled on Yosemite. This suggests that the Instruments command line interface has changed with Xcode 6

SamDKBerry commented 10 years ago

Does it work with physical devices using the Mavericks system?

On 18 June 2014 06:39, Jack Rostron notifications@github.com wrote:

This version of the build has been tested by Mark on Mavericks and everything works okay even though it was compiled on Yosemite. This suggests that the Instruments command line interface has changed with Xcode 6

— Reply to this email directly or view it on GitHub https://github.com/JackRostron/UIAutomation/issues/12#issuecomment-46436217 .

JackRostron commented 10 years ago

Not sure, but that's a very good question. That's on the to do list

JackRostron commented 10 years ago

instruments --help prints the following statement on Yosemite:

instruments, version 6.0 (56107.11) usage: instruments [-t template] [-D document] [-l timeLimit] [-i #] [-w device] [[-p pid] | [application [-e variable value] [argument ...]]]

JackRostron commented 10 years ago

instruments --help prints the following statement on Mavericks:

instruments, version 5.1.1 (55045) usage: instruments [-t template] [-D document] [-l timeLimit] [-i #] [-w device] [[-p pid] | [application [-e variable value] [argument ...]]]

Fuck...I was hoping there would be a difference