Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IOS 15: Unable to simultaneously satisfy constraints warning #46

Open
AdlerJS opened this issue Jun 10, 2022 · 1 comment
Open

IOS 15: Unable to simultaneously satisfy constraints warning #46

AdlerJS opened this issue Jun 10, 2022 · 1 comment

Comments

@AdlerJS
Copy link

AdlerJS commented Jun 10, 2022

I recently just noticed that whenever I preview a file using IOS 15 I get this warning on each file type.

2022-06-10 09:34:49.734778-0400 App[7032:387972] [LayoutConstraints] 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) 
(
    "<NSAutoresizingMaskLayoutConstraint:0x281dce530 h=-&- v=--& UINavigationBar:0x1035f8400.minY == 0   (active, names: '|':UILayoutContainerView:0x103a4ce40 )>",
    "<NSAutoresizingMaskLayoutConstraint:0x281dcc0a0 h=-&- v=--& UINavigationBar:0x1035f8400.height == 44   (active)>",
    "<NSLayoutConstraint:0x281dcc050 V:[UINavigationBar:0x1035f8400]-(0)-[UIFocusContainerGuide:0x2801b80f0'UINavigationControllerContentFocusContainerGuide']   (active)>",
    "<NSLayoutConstraint:0x281dce120 UIFocusContainerGuide:0x2801b80f0'UINavigationControllerContentFocusContainerGuide'.bottom == UILayoutContainerView:0x103a4ce40.bottom   (active)>",
    "<NSLayoutConstraint:0x281dcd270 V:|-(0)-[UILayoutContainerView:0x103a4ce40]   (active, names: QLPreviewControllerView:0x1035f4640, '|':QLPreviewControllerView:0x1035f4640 )>",
    "<NSLayoutConstraint:0x281dcd2c0 V:[UILayoutContainerView:0x103a4ce40]-(0)-|   (active, names: QLPreviewControllerView:0x1035f4640, '|':QLPreviewControllerView:0x1035f4640 )>",
    "<NSLayoutConstraint:0x281dccd70 'UIView-Encapsulated-Layout-Height' QLPreviewControllerView.height == 0   (active, names: QLPreviewControllerView:0x1035f4640 )>"
)

I am not sure if IOS changed something but did some research and based on - https://stackoverflow.com/questions/62542478/constraints-issue it seems you would need to apply a constraint. Was wondering if others are experiencing this issue as well

I also found this: fcf383a. Not sure if that helps with putting us on the right track to resolve it

@mostafa-mansour1
Copy link
Owner

mostafa-mansour1 commented Oct 11, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants