Launching UIAutomation tests in CLI always open iPad Simulator for Universal app
||Product Version:||Xcode 4.6.1|
When launching UIAutomation tests in command line, the iPad simulator is always opened for Universal app, and there is also no simple way to set the Simulator device type. One possible way is to force TARGETED_DEVICE_FAMILY at build time to force the Simulator to either be iPhone or iPad. But in this case, we can also not tell the Simulator to be 3.5" or 4", or Retina and Not retina for instance.
Steps to Reproduce:
1. Create a xcodeprojet for an Universal app in Xcode 4.6.1.
2. Create some UIAutomation script for this project:
var testName = "Test 1";
var target = UIATarget.localTarget();
var app = target.frontMostApp();
var window = app.mainWindow();
UIALogger.logStart( testName );
UIALogger.logStop( testName );
3. Launch instruments in command line for this script
-t "/Applications/Xcode.app/Contents/Applications/Instruments.app/Contents/PlugIns/AutomationInstrument.bundle/Contents/Resources/Automation.tracetemplate" \
-e UIASCRIPT absolute_path_to_the_test_file
4. The iPad Retina Simulator is launching
There should be a way to precise which Simulator is launching at CLI for instruments.
Ideally, one could ask for "iPhone", "IPhone Retina 3.5", "iPhone Retina 4", "iPad", "iPad Retina", etc...
There is no simple way to set the Simulator device type when launched in CLI.
Reports posted here will not necessarily be seen by Apple.
All problems should be submitted at bugreport.apple.com before they are posted here.
Please only post information for Radars that you have filed yourself, and please do
not include Apple confidential information in your posts. Thank you!