Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-2913] Allow simulated device selection for iOS

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionFixed
Resolution Date2011-04-17T02:00:26.000+0000
Affected Version/sn/a
Fix Version/sRelease 1.6.0 M06
ComponentsiOS
Labelsbinary, developer, ios, release-1.6.0, simulator, titanium, universal
ReporterStephen Tramer
AssigneeStephen Tramer
Created2011-04-15T03:32:45.000+0000
Updated2011-04-17T02:00:26.000+0000

Description

Android already has something like this, where they can select display type when running their simulator. iOS needs to offer something similar for iPhone/iOS Universal where users can select what simulated device they want to run their app on. Especially important for universal, since users will need to test on both devices.

Comments

  1. Jeff Haynie 2011-04-15

    (from [e345c74e0b9ff930bfa0eb0159e23ae3d6c0be57]) [#2913 state:fixed-in-qa] builder.py now takes an additional argument to indicate simulated device type (NOT deviceFamily, necessarily). https://github.com/appcelerator/titanium_mobile/commit/e345c74e0b9ff930bfa0eb0159e23ae3d6c0be57"> https://github.com/appcelerator/titanium_mobile/commit/e345c74e0b9f...

  2. Pedro Enrique 2011-04-15

    Not really clear what the fix is. I ran an iPhone app on the iPad simulator (changed hardware->device from iPhone to iPad) and it shows as an iPhone app (small). Checked the builder.py and the changes that Jeff made are there, but the app is still an iPhone app and not a universal app. What are the steps to make this work?

    Ti. SDK 1.6 (Jan 25 2011 17:39 r1ead074f)

  3. Stephen Tramer 2011-04-15

    Selecting which device to run on is not the same as universal support. Running an iphone app on an ipad SHOULD make it show up in normal scale with the "2x" button. But this is still a valid configuration and people should be able to test it.

    The short answer is "you don't test this or any other build script features until the new Titanium Developer comes out."

    The longer answer is to look at how the build script takes arguments for existing projects and then add a new argument at the end, either 'iphone' or 'ipad', which determines which device the simulator starts as.

    Also, Jeff didn't make any of the universal changes, I made them all.

  4. Pedro Enrique 2011-04-15

    Tested Ti Dev 1.3

    Works as expected.

JSON Source