UIAutomation can't run from the command line in the Run Scripts build phase

Number:rdar://12567863 Date Originated:24-Oct-2012 04:35 PM
Status:Open Resolved:
Product:iPad SDK Product Version:Version 4.5.1 (4G1004)
Classification:Serious Bug Reproducible:Always
24-Oct-2012 04:35 PM Heath Borders:
Run UIAutomation as an instruments plugin from a Run Scripts build phase in Xcode. It fails.

Steps to Reproduce:
Run the test target in the attached project.

Expected Results:
The UIAutomation test runs

Actual Results:

2012-10-24 16:15:28.514 instruments[49471:1603] Failed to load Mobile Device Locator plugin
2012-10-24 16:15:28.515 instruments[49471:1603] Failed to load Simulator Local Device Locator plugin
2012-10-24 16:15:28.897 instruments[49471:1603] Automation Instrument ran into an exception while trying to run the script.  UIATargetHasGoneAWOLException
2012-10-24 21:15:28 +0000 Fail: An error occurred while trying to run the script.
2012-10-24 21:15:28 +0000 Fail: The target application appears to have died



24-Oct-2012 04:35 PM Heath Borders:
'UIAutomationIncludeBug.zip' was successfully uploaded


Please note: 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!