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

时间:2018-05-15 00:26:28

标签: ios crash

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

main.m

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

我已经尝试了所有这些并且什么都没发生。这是我在之前的UIViewController中收到的日志:我不知道它是否可能是相关的。

Thread 1: EXC_BAD_ACCESS (code=1, address=0x760b9beb8)

据我所知,上面只是一个警报,我甚至试图为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. 添加警报,但发现并不罕见。

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

1 个答案:

答案 0 :(得分:1)

转到editSchenes - &gt;运行 - &gt;诊断并选择Zombie对象并暂停问题,然后运行项目。可能你会得到问题