REGRESSION UIHost.performTaskWithPathArgumentsTimeout returns NULL Xcode 6b4/iOS 8b4/Instruments 6.0
| Originator: | joshuajmoody | ||
| Number: | rdar://17856691 | Date Originated: | 30-Jul-2014 05:49 PM |
| Status: | Open | Resolved: | |
| Product: | Developer Tools | Product Version: | Xcode 6b4 |
| Classification: | Serious Bug | Reproducible: | Always |
Summary:
Starting in iOS 8, UIHost.performTaskWithPathArgumentsTimeout always returns null.
Steps to Reproduce:
1. build and run app with Xcode 5.1.1 with base SDK 7* on a physical device
2. launch Instruments 5.1.1 and execute the follow script in a UIAutomation template
```
1 var target = UIATarget.localTarget();
2 var host = target.host();
3
4 var result = host.performTaskWithPathArgumentsTimeout("/bin/echo", ["Hello World"], 5);
5
6 UIALogger.logDebug("exitCode: " + result.exitCode);
7 UIALogger.logDebug("stdout: " + result.stdout);
8 UIALogger.logDebug("stderr: " + result.stderr);
```
3.1 repeat with Xcode 6b4 with base SDK 8* and Instruments 6.0
Expected Results:
For both SDK 7 and 8
```
exitCode: 0
stdout: Hello World\n
stderr:
```
Actual Results:
With 5.1.1, Instruments 5.1.1, iOS 7.1.1 - the expected output.
With Xcode 6b4, Instruments 6.0, iOS 8b4
- Script threw an uncaught JavaScript error: null is not an object (evaluating 'result.exitCode') on line 6
Version:
* OS X 10.9.4 (13E28)
* OS X 10.10 (14A298i)
Xcode6-Beta4
Instruments 6.0 (56127.2)
iOS 8b4
Xcode 5.1.1
Instruments 5.1.1
iOS 7
Notes:
Configuration:
UIHost.performTaskWithPathArgumentsTimeout works on iOS 6 + iOS 7, but is broken on iOS 8.
Comments
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!