gpt4 book ai didi

iOS - 在 main.m 崩溃,没有日志,没有可能的断点

转载 作者:行者123 更新时间:2023-11-28 23:58:38 25 4
gpt4 key购买 nike

我遇到了这个问题:我的 iOS 应用程序在 main.m 处崩溃,代码如下:

线程 1:EXC_BAD_ACCESS(代码=1,地址=0x760b9beb8)

主要问题是我完全不知道问题出在哪里。没有提供日志。我在谷歌上搜索了很多在断点导航器中添加异常断点的解决方案。它甚至没有帮助。

我已经尝试了所有这些,但没有任何反应。这是我在之前的 UIViewController 中收到的日志:我不知道它是否可能相关。

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:0x1c44974d0 UILabel:0x10ed1bf10'The numbers rule the...'.height == 40 (active)>",
"NSLayoutConstraint:0x1c4497930 UILayoutGuide:0x1c43a1960'UIViewSafeAreaLayoutGuide'.bottom == UILabel:0x10ed1c1f0'\U2714 completed / file'.bottom + 13 (active)>",
"NSLayoutConstraint:0x1c4497c50 UILabel:0x10ed1bf10'The numbers rule the...'.top == UILayoutGuide:0x1c43a1960'UIViewSafeAreaLayoutGuide'.top + 7 (active)>",
"NSLayoutConstraint:0x1c4497d40 V:[UILabel:0x10ed1bf10'The numbers rule the...']-(2)-[UILabel:0x10ed1c1f0'\U2714 completed / file'] (active)>",
"NSLayoutConstraint:0x1c0699e60 'UIView-Encapsulated-Layout-Height' Cursos.CourseSectionCell:0x10691ba00'CourseSectionCell'.height == 56.5 (active)>",
"NSLayoutConstraint:0x1c4497a20 'UIViewSafeAreaLayoutGuide-bottom' V:[UILayoutGuide:0x1c43a1960'UIViewSafeAreaLayoutGuide']-(0)-| (active, names: '|':Cursos.CourseSectionCell:0x10691ba00'CourseSectionCell' )>",
"<NSLayoutConstraint:0x1c4497980 'UIViewSafeAreaLayoutGuide-top' V:|-(0)-[UILayoutGuide:0x1c43a1960'UIViewSafeAreaLayoutGuide'] (active, names: '|':Cursos.CourseSectionCell:0x10691ba00'CourseSectionCell' )>"
Will attempt to recover by breaking constraint
NSLayoutConstraint:0x1c44974d0 UILabel:0x10ed1bf10'The numbers rule the...'.height == 40 (active)>

Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger.

据我所知,以上只是一个警报,我什至尝试为 UIViewAlertForUnsatisfiableConstraints 添加警报,但没有发现异常。

我正在寻求帮助,因为我不知道我能走的任何其他路。如果我的问题太肤浅,请随时问我任何细节。提前致谢。

最佳答案

转到 editSchenes ->Run->Diagnostics 并选择 Zombie objects 并暂停问题,然后运行项目。可能你会遇到这个问题

关于iOS - 在 main.m 崩溃,没有日志,没有可能的断点,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50340746/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com