iOS 11 Beta 2 - -UIViewShowAlignmentRects YES crashes with UIVisualEffectView

Originator:digipom
Number:rdar://33124802 Date Originated:July 4th, 2017
Status:Open Resolved:
Product:iOS SDK Product Version:11.0 (Beta 2)
Classification:Serious bug Reproducible:Always
 
Area:
UIKit

Summary:
The run option "-UIViewShowAlignmentRects YES" crashes the app when there is a UIVisualEffectView in the hierarchy. This does not happen on iOS 10.

Steps to Reproduce:
1) Have a UIVisualEffectView in the hierarchy
2) Start the app on a device with "-UIViewShowAlignmentRects YES"

Expected Results:
Works as in iOS 10

Observed Results:
Crashes:

Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: '<_UIDebugAlignmentRectView: 0x105a20520; frame = (0 0; 375 44); opaque = NO; autoresize = W+H; userInteractionEnabled = NO; layer = <CALayer: 0x1c403cd80>> has been added as a subview to <UIVisualEffectView: 0x10580e1b0; frame = (0 0; 375 44); layer = <CALayer: 0x1c003bea0>>. Do not add subviews directly to the visual effect view itself, instead add them to the -contentView.'

Version:
iOS 11 Beta 2, iPhone 6s

Notes:
Didn't happen in iOS 10.3.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!