When recording UI tests, clicking on a multiline UILabel causes Xcode to crash

Originator:tim.duckett
Number:rdar://24546526 Date Originated:02.08.2016
Status:Open Resolved:No
Product:Xcode Product Version:7.2.1
Classification:Crash Reproducible:Always
 
Summary:
When recording UI tests, clicking on a multiline UILabel causes Xcode to crash if there is a newline (\n) character contained in the label's text property

Steps to Reproduce:
1. Include a UILabel control in a Storyboard
2. Assign a multi-line string containing '\n' characters to the label's text property
3. Create a XCTestCase subclass
4. Start test recording
5. Click on the multi-line label

Expected Results:
A test step for tapping the UILabel should be added to the test

Actual Results:
Xcode crashes, with trace as attached file

Version:
Xcode 7.2.1 (7C1002)
OS X 10.11.3 (15D21)

Also reproducible on Xcode 7.3 beta 2

Notes:

Configuration:
Xcode 7.2.1
Xcode 7.3 beta 2

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!