REGRESSION: UIAApplication.setPreferencesValueForKey throws "Caller not allowed to perform action" possible duplicate 15530604
| Originator: | joshuajmoody | ||
| Number: | rdar://18296714 | Date Originated: | 10-Sep-2014 11:24 PM |
| Status: | Open | Resolved: | |
| Product: | Developer Tools | Product Version: | Xcode 6 GM |
| Classification: | Serious Bug | Reproducible: | Always |
Summary:
Related: 17821465
I am trying to set and retrieve a value from the [NSUserDefaults standardUserDefaults] using UIAutomation javascript API.
The correct value is returned, but an error is thrown.
This is causing my JavaScript tests to fail.
Steps to Reproduce:
1. in Instruments 6.0, open a new Automation template
2. target an application that is running on an iOS 8 device
3. enter the following script:
```
var target = UIATarget.localTarget();
target.frontMostApp().setPreferencesValueForKey("value", "com.my.key")
var myValue = target.frontMostApp().preferencesValueForKey("com.my.key")
UIALogger.logPass("myValue: ".concat(myValue));
```
4. run
Expected Results:
To see no exception or error thrown.
Actual Results:
```
pegasi com.apple.xpc.launchd[1] (com.apple.xpc.launchd.domain.system) <Error>: Caller not allowed to perform action: ScriptAgent.170, action = sandboxed lookup, code = 1: Operation not permitted, uid = 501, euid = 501, gid = 501, egid = 501, asid = 0
```
Version:
OS X 10.9.4 (13E28)
Xcode6 GM
instruments, version 6.0 (56156)
iOS 8 GM
Notes:
Configuration:
Attachments:
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!