jonathanpenn / ui-screen-shooter

Using UI Automation to automatically generate all screenshots of your iOS app, on different device types, in different locales by running a single command. Hands free.

Home Page:http://cocoamanifest.net

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

3.5in simulator not starting

ckoehler opened this issue · comments

For some reason, I get two runs of screenshots using the same 4in 64bit sim, never the 3.5 in one. This is with XCode 5.1 and iOS 7.1.
I've had that happen before, but a restart usually fixed it.

Any ideas?

You're in luck. :) Your issue prompted me to look into recent changes to the instruments command line utility. All that hacking to choose the simulator device and locale isn't needed any more since Xcode 5.1. I just pushed up the latest work to master. Check it out. It's much simpler and more reliable now!

That does look awesome! I'm still having trouble though. I get the following. A problem with spaces maybe?
Running automation script "automation/shoot_the_screens.js"
for "iPhone Retina (3.5-inch) - Simulator - iOS 7.1"
in language "nb-NO"...
Instruments Usage Error : Unknown hardware device specified: iPhone
Known Devices:
iPhone - Simulator - iOS 7.1
iPhone Retina (3.5-inch) - Simulator - iOS 7.1
iPhone Retina (4-inch) - Simulator - iOS 7.1
iPhone Retina (4-inch 64-bit) - Simulator - iOS 7.1
iPad - Simulator - iOS 7.1
iPad Retina - Simulator - iOS 7.1
iPad Retina (64-bit) - Simulator - iOS 7.1

Hmm. Are you getting that error when you run the ui-screen-shooter.sh script from the master branch of this repo? Or are you copying the scripts to your own application?

You're right that there is a spaces issue here. I updated the bin/unix_instruments script to make sure it works, so you'll need to copy that over to your application, too. I'm not able to reproduce this problem on my machine. This project works fine for me and properly addresses the spaces.

My bad! I missed the bin directory and still had the old files in my project. Apologies, and great job!

Awesome. :)

On Fri, Mar 14, 2014 at 10:54 PM, Christoph Koehler <
notifications@github.com> wrote:

My bad! I missed the bin directory and still had the old files in my
project. Apologies, and great job!

Reply to this email directly or view it on GitHubhttps://github.com//issues/23#issuecomment-37714643
.