NSLayoutConstraint conflict on UIDocumentMenuViewController

Originator:cescofry
Number:rdar://19385063 Date Originated:06-Jan-2015 01:16 PM
Status:Open Resolved:
Product:iOS SDK Product Version:iOS 8.1
Classification:UI/Usability Reproducible:Always
 
Summary:
There is a NSLayoutConstraint conflict while using a UIDocumentMenuViewController and selecting a UIDocumentPickerViewController.

Unable to simultaneously satisfy constraints.
	Probably at least one of the constraints in the following list is one you don't want. Try this: (1) look at each constraint and try to figure out which you don't expect; (2) find the code that added the unwanted constraint or constraints and fix it. (Note: If you're seeing NSAutoresizingMaskLayoutConstraints that you don't understand, refer to the documentation for the UIView property translatesAutoresizingMaskIntoConstraints) 
(
    "<NSLayoutConstraint:0x7fb43978df90 H:[UIView:0x7fb439786140(304)]>",
    "<NSLayoutConstraint:0x7fb4396bad40 _UIAlertControllerView:0x7fb439785c40.width == UIView:0x7fb439785b00.width>",
    "<NSLayoutConstraint:0x7fb4396c58f0 'UIView-Encapsulated-Layout-Width' H:[UIView:0x7fb439785b00(142)]>",
    "<NSLayoutConstraint:0x7fb43978c4b0 _UIAlertControllerView:0x7fb439785c40.width >= UIView:0x7fb439786140.width>"
)

Will attempt to recover by breaking constraint 
<NSLayoutConstraint:0x7fb43978df90 H:[UIView:0x7fb439786140(304)]>

Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger.
The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in <UIKit/UIView.h> may also be helpful.



Steps to Reproduce:
Instantiate and present a UIDocumentMenuViewController
Select the iCloud document provider

Expected Results:


Actual Results:
The log appears on the debugger, however the popover content seams to show correctly

Regression:

Notes:
I managed to fix the log by applying setTranslatesAutoresizingMaskIntoConstraints to NO to the document menu view.
The file attached contains the printed view hirarchy in the context when the error occurs

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!