cordova for ios: Unable to simultaneously satisfy constraints.

小编:管理员 532阅读 2022.09.13

  使用cordova开发ios项目的时候,在上传图片碰到一个问题。使用html的标签来选择照片或者拍照片,引起了布局报错,然后图片上传过程中很容易崩溃闪退。

html页面代码:



        
    
复制

然后在真机测试,点击选择文件,控制台出现布局报错日志:

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. 
(
    "",
    "",
    ""
)

Will attempt to recover by breaking constraint 


Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger.
The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in  may also be helpful.
复制

完整cordova for ios demo下载:http://download.csdn.net/detail/tandaxia/9455872

关联标签: