TimOliver / TOCropViewController

A view controller for iOS that allows users to crop portions of UIImage objects
http://www.timoliver.com.au/2015/06/21/tocropviewcontroller-an-open-source-image-cropper-for-ios/
MIT License
4.74k stars 956 forks source link

Autolayout warning when showing crop ratio options #479

Closed sabiland closed 3 years ago

sabiland commented 3 years ago

When you show ratio crop action sheet, autolayout warning happens:

2021-03-06 10:19:33.614036+0100 Textures[88493:2683734] [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. 
(
    "<NSLayoutConstraint:0x60000199d720 UIView:0x7fad5e450730.width == - 16   (active)>"
)

Will attempt to recover by breaking constraint 
<NSLayoutConstraint:0x60000199d720 UIView:0x7fad5e450730.width == - 16   (active)>

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

Thanks for letting me know! I just looked into it and apparently it's a system bug. It's already been reported to Apple.

There's nothing I can do here, so I'm closing this issue off. Thanks again!