libpag icon indicating copy to clipboard operation
libpag copied to clipboard

IOS - Unable to simultaneously satisfy constraints

Open aybarska opened this issue 11 months ago • 4 comments

Which Version of libpag are you using?

libpag 4.1.8

What Platform are you on?

iOS All,

We are using a pangle sdk seems like using pag, it has constraints error.

Console output

`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:0x134369a90 V:|-(8)-[PAGUgenV3TextLabel:0x135439c00] (active, names: '|':PAGUgenV3TextView:0x132e1ef40 )>", "<NSLayoutConstraint:0x13436b520 PAGUgenV3TextLabel:0x135439c00.bottom <= PAGUgenV3TextView:0x132e1ef40.bottom (active)>", "<NSLayoutConstraint:0x13436b8e0 '_UITemporaryLayoutHeight' PAGUgenV3TextView:0x132e1ef40.height == 0 (active)>" )

Will attempt to recover by breaking constraint <NSLayoutConstraint:0x13436b520 PAGUgenV3TextLabel:0x135439c00.bottom <= PAGUgenV3TextView:0x132e1ef40.bottom (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. 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:0x12ca87ed0 PAGUgenV3TextLabel:0x13543a300.centerX == PAGUgenV3TextView:0x132e1c000.centerX (active)>", "<NSLayoutConstraint:0x12ca84820 H:|-(>=10)-[PAGUgenV3TextLabel:0x13543a300] (active, names: '|':PAGUgenV3TextView:0x132e1c000 )>", "<NSLayoutConstraint:0x12ca85d60 '_UITemporaryLayoutWidth' PAGUgenV3TextView:0x132e1c000.width == 0 (active)>" )

Will attempt to recover by breaking constraint <NSLayoutConstraint:0x12ca87ed0 PAGUgenV3TextLabel:0x13543a300.centerX == PAGUgenV3TextView:0x132e1c000.centerX (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. 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:0x12ca84820 H:|-(>=10)-[PAGUgenV3TextLabel:0x13543a300] (active, names: '|':PAGUgenV3TextView:0x132e1c000 )>", "<NSLayoutConstraint:0x12ca86170 PAGUgenV3TextLabel:0x13543a300.trailing <= PAGUgenV3TextView:0x132e1c000.trailing - 10 (active)>", "<NSLayoutConstraint:0x12ca85d60 '_UITemporaryLayoutWidth' PAGUgenV3TextView:0x132e1c000.width == 0 (active)>" )

Will attempt to recover by breaking constraint <NSLayoutConstraint:0x12ca86170 PAGUgenV3TextLabel:0x13543a300.trailing <= PAGUgenV3TextView:0x132e1c000.trailing - 10 (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. 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:0x12ca850e0 V:|-(6)-[PAGUgenV3TextLabel:0x13543a300] (active, names: '|':PAGUgenV3TextView:0x132e1c000 )>", "<NSLayoutConstraint:0x12ca85ae0 PAGUgenV3TextLabel:0x13543a300.bottom <= PAGUgenV3TextView:0x132e1c000.bottom - 6 (active)>", "<NSLayoutConstraint:0x13553d5e0 '_UITemporaryLayoutHeight' PAGUgenV3TextView:0x132e1c000.height == 0 (active)>" )

Will attempt to recover by breaking constraint <NSLayoutConstraint:0x12ca85ae0 PAGUgenV3TextLabel:0x13543a300.bottom <= PAGUgenV3TextView:0x132e1c000.bottom - 6 (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.`

aybarska avatar Dec 17 '25 07:12 aybarska

升级到最新版本吧, 4.1 的版本目前已停止维护

kevingpqi123 avatar Dec 20 '25 08:12 kevingpqi123

Я не знаю 3.8 китайского языка.

aybarska avatar Jan 27 '26 14:01 aybarska

This version (4.1) is no longer maintained. Please upgrade to the latest version and see if the issue persists.

Эта версия (4.1) больше не поддерживается. Пожалуйста, обновитесь до последней версии и проверьте, сохраняется ли проблема.

CodeJhF avatar Jul 14 '26 08:07 CodeJhF

Version 4.1 is no longer maintained. Closing this issue. Please reopen if the problem persists after upgrading to the latest version.

CodeJhF avatar Jul 14 '26 08:07 CodeJhF