Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to run on 4" iPhone? #5

Open
jaunesarmiento opened this issue Feb 26, 2014 · 4 comments
Open

How to run on 4" iPhone? #5

jaunesarmiento opened this issue Feb 26, 2014 · 4 comments

Comments

@jaunesarmiento
Copy link

The default configuration only runs the tests on 3.5" iPhone and I can't seem to find a way to run the tests on a 4" iPhone. Any suggestions?

@mdenomy
Copy link
Contributor

mdenomy commented Feb 26, 2014

I take it you mean on the simulator. It will run the tests on whatever your default device is. You can change that a couple of different ways.
Run the simulator, go to device and select 4" Retina
or
Start the application from with rake and specify the 4" Retina by running "rake simulator retina=4", then exit out
After that the tests will run in the 4 inch mode.

I just tried it by running
rake simulator retina=3.5 (then exited)
rake frank (tests ran in 3.5)

rake simulator retina=4 (then exited)
rake frank (tests ran in 4" retina)

I could look to see if we can implement a command line arg to streamline the process, but this should work for what you are trying to do.

@jaunesarmiento
Copy link
Author

Oh great thanks! I would send a pull request but I'm not sure where to add
the code to parameterize this on rake frank.

Cheers!
On Feb 26, 2014 10:44 PM, "Michael Denomy" notifications@github.com wrote:

I take it you mean on the simulator. It will run the tests on whatever
your default device is. You can change that a couple of different ways.
Run the simulator, go to device and select 4" Retina
or
Start the application from with rake and specify the 4" Retina by running
"rake simulator retina=4", then exit out
After that the tests will run in the 4 inch mode.

I just tried it by running
rake simulator retina=3.5 (then exited)
rake frank (tests ran in 3.5)

rake simulator retina=4 (then exited)
rake frank (tests ran in 4" retina)

I could look to see if we can implement a command line arg to streamline
the process, but this should work for what you are trying to do.

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

@kjf
Copy link

kjf commented Mar 25, 2014

This seems to be broken now since apple shipped the iOS 7.1 sdk. Regardless of what simulator size launched previously, the 3.5" version is always launched.

@BananaNeil
Copy link

Rubymotion recently updated their app to support an environment variable:

device_name="iPhone 5s" rake

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants