previewAnyFile icon indicating copy to clipboard operation
previewAnyFile copied to clipboard

IOS 15: Unable to simultaneously satisfy constraints warning

Open AdlerJS opened this issue 2 years ago • 1 comments

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: https://github.com/mostafa-mansour1/previewAnyFile/commit/fcf383ae3ff85f8f3eda21898bd10b8822a0679d. Not sure if that helps with putting us on the right track to resolve it

AdlerJS avatar Jun 10 '22 13:06 AdlerJS

You sure the file is not corrupted ? 27 bytes is too small

Regards,


Mostafa Mansour Software Engineer 00971 524988466

On 11 Oct 2022, at 9:35 PM, Marina Franco Borges @.***> wrote:



Having the same here... And my PDF file don't open, just a gray screen like I don't have any app to open this file.

[Imagem 2 - Mita - Tabelas não aparecem no app]https://user-images.githubusercontent.com/17460083/195160927-f7b96801-72bd-42db-9b01-1dfa7f0fbd5f.jpeg

— Reply to this email directly, view it on GitHubhttps://github.com/mostafa-mansour1/previewAnyFile/issues/46#issuecomment-1275047770, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ABSFOB2YFXLPCV27JXPQMFDWCWQPVANCNFSM5YNXYLOA. You are receiving this because you are subscribed to this thread.Message ID: @.***>

mostafa-mansour1 avatar Oct 11 '22 18:10 mostafa-mansour1