Instruments 5.0: Unable to set the value of a UIASlider

Originator:lingyi.kung
Number:rdar://15235044 Date Originated:10/15/2013
Status:Closed Resolved:Unable to reproduce
Product:Developer Tools Product Version:5.0
Classification:Serious Bug Reproducible:Always
 
Summary:
dragToValue() is no longer supported in Xcode 5, which breaks backwards compatibility. Moreover, recording the action of sliding the slider still produces a command that uses dragToValue(), but replaying this command does nothing. In the UIASlider docs, dragToValue() is no longer present (https://developer.apple.com/library/ios/documentation/ToolsLanguages/Reference/UIASliderClassReference/UIASlider/UIASlider.html).

Steps to Reproduce:
1. Create an app with a UIASlider.
2. Profile the app using Automation.
3. Create a new script.
4. Record sliding the UIASlider to value x (which generates the command "target.frontMostApp().mainWindow().sliders()[0].dragToValue(x);".
5. Reset the slider.
6. Replay the script.

Expected Results:
Replaying the script will set the slider back to value x.

Actual Results:
Nothing happens.

Version:
Xcode 5.0, OS X 10.8.5

Configuration:
Occurs: Xcode 5.0
Doesn't occur: Xcode 4.6.3

Comments

Ling-Yi Kung, 24-Dec-2013 02:33 PM

I've tried reproducing the problem and failed. However, I opened #15723925 to continue discussion, since the behavior of dragToValue() has changed from doing nothing to setting the incorrect value. I've attached sample apps and screen captures of the bug there. As far as I've tested, it doesn't seem to be a device config problem, but an Instruments problem (4.6.3 works, but 5.0+ does not).

By lingyi.kung at Jan. 13, 2014, 9:51 p.m. (reply...)

Apple Developer Relations, 20-Dec-2013 02:39 PM

Engineering has requested the following information in order to further investigate this issue:

Can you please provide a sample app where this is happening?
Also, any particular device configurations or all?

By lingyi.kung at Jan. 13, 2014, 9:51 p.m. (reply...)

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!