jonathanpenn / AutomationExample

Sample code for how to run UI Automation from the command line.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Xcode 4.5 issue running instruments

ericallam opened this issue · comments

I'm curious if you've tried to get this script to run using Xcode 4.5. I've been trying to run instruments from the command line on 4.5 and I keep getting an error, and I got the same one using this project and following the directions in the README:

https://gist.github.com/3828454

Just curious if this is something broken in 4.5 or if it's something that is wrong with my setup. Thanks.

I hate to be that guy, but it works for me on the App Store released version of Xcode 4.5. Here's the response that I'm getting:

https://gist.github.com/41ecb823097126c85467

First, let's do a bit of environment debugging. Can you please run xcode-select -print-path and let me know what that says? Are you running a beta of 4.5? A version downloaded from downloads.apple.com, or the app store? Let's try to get to the bottom of this.

Hey @jonathanpenn thanks for the reply. Here are the answers to your questions:

~ $ xcode-select -print-path
/Applications/Xcode.app/Contents/Developer

I am running Xcode downloaded from the App Store:

xcode

Just trying to run the simplest automation instrument, even through the UI, on a cleanly created project in Xcode results in this:

https://devforums.apple.com/thread/169338

Just downloaded Xcode Version 4.5.1 (4G1004) from the dev portal, and have the same exact error

This isn't an issue with your app or script. I'm getting it whenever I try to do any UIAutomation, and created a stackoverflow post about it:

http://stackoverflow.com/questions/12730712/running-uiautomation-instruments-from-command-line-results-in-nsinvalidargumente

Okay, I'll close the issue for now, then. I hope you can figure out the problem! I'm keeping an eye on that stack overflow thread in case it happens to me, too.