Saturday, November 21, 2026
HomeiOS Developmentios - UIView-Encapsulated-Format-Peak - Stack Overflow

ios – UIView-Encapsulated-Format-Peak – Stack Overflow

[ad_1]

I acquired error simply on the first run after I constructed my app.

error data

2022-08-26 12:32:15.618688-0300 LzchEx[7002:191006] Did not inherit CoreMedia permissions from 6453: (null)
2022-08-26 12:32:15.741349-0300 LzchEx[7002:190797] [Warning] WARNING: A Gesture recognizer (<UILongPressGestureRecognizer: 0x7fc232507e80; state = Attainable; view = <UIButton 0x7fc232011b30>; goal= <(motion=LongPressDelete:, goal=<LzchEx.KeyboardViewController 0x7fc233817400>)>; numberOfTapsRequired = 0; minimumPressDuration = 0.5>) was setup in a storyboard/xib to be added to a couple of view (-><UIView: 0x7fc23250e220; body = (0 0; 414 896); autoresize = W+H; gestureRecognizers = <NSArray: 0x60000085ed30>; layer = <CALayer: 0x600000655e60>>) at a time, this was by no means allowed, and is now enforced. Starting with iOS 9.0 will probably be put within the first view it’s loaded into.
2022-08-26 12:32:15.803627-0300 LzchEx[7002:190797] [LayoutConstraints] Unable to concurrently fulfill constraints.
In all probability at the very least one of many constraints within the following listing is one you don’t need.
Do this:
(1) have a look at every constraint and take a look at to determine which you do not anticipate;
(2) discover the code that added the undesirable constraint or constraints and repair it.
(
“<NSLayoutConstraint:0x60000256a4e0 UIView:0x7fc23250e220.peak == 250 (lively)>”,
“<NSLayoutConstraint:0x60000257f9d0 ‘UIView-Encapsulated-Format-Peak’ UIView:0x7fc23250e220.peak == 926 (lively)>”
)

Will try to get better by breaking constraint
<NSLayoutConstraint:0x60000257f9d0 ‘UIView-Encapsulated-Format-Peak’ UIView:0x7fc23250e220.peak == 926 (lively)>

Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this within the debugger.
The strategies within the UIConstraintBasedLayoutDebugging class on UIView listed in <UIKitCore/UIView.h> might also be useful.
2022-08-26 12:32:15.804392-0300 LzchEx[7002:190797] [LayoutConstraints] Unable to concurrently fulfill constraints.

my code

    let constraint = NSLayoutConstraint(merchandise: self.view as Any,
                                               attribute: .peak,
                                               relatedBy: .equal,
                                               toItem: nil,
                                               attribute: .notAnAttribute,
                                               multiplier: 0.0,
                                               fixed: 250) // Set customized peak right here
    self.view.addConstraint(constraint)

[ad_2]

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments