首页 > 其他分享 >xcode 约束报错

xcode 约束报错

时间:2024-09-24 09:23:35浏览次数:1  
标签:__ 24 xcode 56 0800 约束 报错 type 08

报错信息如下

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.
2024-09-24 08:56:23.994455+0800 smartmotoios[52875:7310191] dynamic_cast error 2: One or more of the following type_info's has hidden visibility or is defined in more than one translation unit. They should all have public visibility. N10__cxxabiv116__shim_type_infoE, id, N10__cxxabiv117__pbase_type_infoE.
2024-09-24 08:56:23.994521+0800 smartmotoios[52875:7310191] dynamic_cast error 2: One or more of the following type_info's has hidden visibility or is defined in more than one translation unit. They should all have public visibility. N10__cxxabiv116__shim_type_infoE, id, N10__cxxabiv117__pbase_type_infoE.
2024-09-24 08:56:23.994611+0800 smartmotoios[52875:7310191] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'NSLayoutConstraint for <UIView: 0x13f63fcb0; frame = (0 0; 0 0); clipsToBounds = YES; gestureRecognizers = <NSArray: 0x283340c00>; layer = <CAGradientLayer: 0x283dba620>>: A multiplier of 0 or a nil second item together with a location for the first attribute creates an illegal constraint of a location equal to a constant. Location attributes must be specified in pairs.'
*** First throw call stack:
(0x1e374d288 0x1fc47c744 0x1fc77f1b0 0x1fc77e534 0x10bd0e6a8 0x10bd0e2c0 0x10bd0d260 0x10bd157bc 0x10bd154c4 0x10bd1a33c 0x10bd1a5e8 0x10bd1aa2c 0x10bd21708 0x104adf9f8 0x104a8fdc4 0x104a8e99c 0x104a907b4 0x1e5db89c4 0x1e5fb6030 0x1e5dddbbc 0x1e5caded8 0x1e5cbe17c 0x1e74367fc 0x1e7428c60 0x1e743d5b4 0x1e74464a8 0x1e5c97b2c 0x1e36f50c4 0x1e36c4080 0x1e36bf13c 0x1e36d2bc8 0x1ff83d374 0x1e6046b58 0x1e5dc8090 0x1075a2308 0x10a6f9da4)
2024-09-24 08:56:24.112431+0800 smartmotoios[52875:7310191] [Bugly]  Trapped uncaught exception 'NSInvalidArgumentException', reason: 'NSLayoutConstraint for <UIView: 0x13f63fcb0; frame = (0 0; 0 0); clipsToBounds = YES; gestureRecognizers = <NSArray: 0x283340c00>; layer = <CAGradientLayer: 0x283dba620>>: A multiplier of 0 or a nil second item together with a location for the first attribute creates an illegal

 

解决方法:
在 Xcode 中设置符号断点(symbolic breakpoint),方法是在 Breakpoint Navigator 中添加一个新的符号断点,输入 UIViewAlertForUnsatisfiableConstraints。这将帮助你定位问题出现的位置。

 

 

 

标签:__,24,xcode,56,0800,约束,报错,type,08
From: https://www.cnblogs.com/qingzZ/p/18428378

相关文章

  • Python可视化过程中.pictures.add这里一直报错,不明原因
    大家好,我是Python进阶者。一、前言前几天在Python白银交流群【沐子山树】问了一个Python可视化的问题,问题如下:importmatplotlib.pyplotasplt#创建一个简单的图表fig,ax=plt.subplots()ax.plot([1,2,3,4])ax.set_ylabel('somenumbers')#保存图表为PNG文件temp......
  • navicat无法连接远程mysql数据库1130报错的解决方法
    出现报错:1130-Host'ipaddress'isnotallowedtoconnecttothisMySQLservenavicat,当前ip不允许连接到这个MySQL服务解决当前ip无法连接远程mysql的方法1.查看mysql端口,并在服务器安全组中放开相应入方向端口后重启服务器sudonetstat-tulnp|grepmysql查看端......
  • roslaunch carla_ros_bridge carla_ros_bridge.launch运行报错逐条解决REQUIREDproces
    前言:跟着自动驾驶之心的老师学习仿真,在carla_ros_bridge那块卡住了,遇到了超多问题,现在看看我们是怎么解决的吧。首先是carla_ros_bridge安装,老师是18.04,我的项目工程是20.04,所以我肯定最终还是要换到20.04的,所以以下就是踩坑。一.carla_ros_bridge安装:可见官网的文档ROSbri......
  • macos python3.12解决pip3安装报错(error: externally-managed-environment)
    故障现象为提示error:externally-managed-environment➜~pip3installrequestserror:externally-managed-environment×Thisenvironmentisexternallymanaged╰─>ToinstallPythonpackagessystem-wide,trybrewinstallxyz,wherexyzisthepackagey......
  • 数模方法论-无约束问题求解
    一、基本概念        无约束问题在数学建模中是指优化过程中没有任何限制条件的情况。这种问题旨在寻找一个决策变量集合,使得某个目标函数(如成本、效益或其他需要优化的量)达到最大或最小值。具体来说,无约束问题通常可以表示为:其中是目标函数,是决策变量。在这种情况......
  • weblogic应用打补丁—附带截图以及报错解决办法
    本文详细描述了如何在OracleWebLogic服务器上进行升级,包括下载无漏洞补丁、备份、卸载旧补丁、安装新补丁、检查新补丁状态并解决安装过程中可能遇到的内存设置问题。整个过程大约耗时2小时。说明:1、需要提前去oracle官网下载好无漏洞的补丁压缩包,本次升级下载的压缩包为p3490072......
  • 苍穹外卖学习日志 -----20天项目从零到完结-----含软件下载,环境配置,框架学习,代码编写,
    年份2024    基础:Javase  Javaweb已完结   2024  8.25---9.14  20天Day-01   8.25今天开始学习已经晚了,网盘下载了一下文件,做了一些开始项目的准备工作。本来其实打算用notepad++来写学习日志的,但是那个传不了图片,而且编辑视图没有这......
  • SQLSyntaxErrorException: Unknown database ‘server‘ ---数据库相关报错解决方案
    java.sql.SQLSyntaxErrorException:Unknowndatabase'server'这个错误通常表示你尝试连接的数据库名称(在这个例子中是server)在你的数据库服务器上不存在。这可能是由于以下几种原因之一:数据库名称拼写错误:检查你在连接字符串中指定的数据库名称是否正确,确保没有拼写错......
  • 数据库常见十大错误_数据库十大报错语句
    数据库操作时可能会遇到各种错误,这些错误通常是由不同的原因引起的,比如语法错误、连接问题、权限问题等。下面是数据库操作中常见的几种错误类型及其解决思路:连接失败:错误信息可能包括“无法连接到主机”、“连接被拒绝”等。检查数据库服务是否启动、网络连接是否正常、防火......
  • wordpress网站维护教程:不能上传文件,数据库报错的解决方法
    当WordPress网站遇到不能上传文件或数据库报错的问题时,这可能会影响网站的正常使用。下面分别针对这两种情况提供一些可能的解决方法。不能上传文件权限问题:检查上传文件的目标目录权限是否正确。通常,WordPress的上传目录(默认为/wp-content/uploads/)应该具有可写的权限。你......