iOS Question Unable to simultaneously satisfy constraints

Marco Maria Vilucchi

Active Member
Licensed User
Longtime User
Hi all,
using DocumentInteraction I have an error.
I state that I am updating an app already published on apple store and that the updates do not concern this script.

I'm opening a pdf file using DocumentInteraction.
This feature worked before and I didn't make any changes.
Now I have:
B4X:
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:0x15df2750 V:[UIView:0x15deddf0(>=44)]>",
    "<NSLayoutConstraint:0x15df2570 UIView:0x15deddf0.height == UIView:0x15dedcd0.height>",
    "<NSLayoutConstraint:0x15df3160 _UIAlertControllerView:0x15ded690.height == UIView:0x15dedcd0.height>",
    "<NSLayoutConstraint:0x17126e40 _UIAlertControllerView:0x15ded690.height == UIView:0x15deb540.height>",
    "<NSLayoutConstraint:0x15e030e0 'UIView-Encapsulated-Layout-Height' V:[UIView:0x15deb540(21)]>"
)
Will attempt to recover by breaking constraint
<NSLayoutConstraint:0x15df2750 V:[UIView:0x15deddf0(>=44)]>
Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger.
The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in <UIKit/UIView.h> may also be helpful.

I use this code on Sub Initialize
B4X:
    di.Initialize("di", File.DirDocuments, "privacy.pdf")

then by pressing a button I read the pdf

B4X:
Sub privacyBTprivacy_Click
    Log("Opening file")
    di.OpenFile(PageX.RootPanel)
End Sub
this error occurs here.

I have an iPad with ios 9.3.5
Apple rejected my build for this reason
Apple use iPad running iOS 14.0.1 on Wi-Fi
Someone can help me?

Thanks in advance
Marco
 
Top