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

标签 ios crash

我遇到了这个问题:我的 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/

相关文章:

debugging - mac osx 数据库访问/崩溃

ios - 由于看门狗,我的应用程序从后台返回时崩溃

c++ - 普通比较时QT 4.8崩溃

ios - 如何在 Apple Watch 应用程序中实现摇动手势?

python - Kivy代码显示ListView崩溃

vba - Outlook崩溃且必须重新安装后,如何恢复Outlook VBA代码?

ios - CoreBluetooth 双向通信

ios - 在获取数据 Firebase/Swift 之前加载 TableView

ios - 无法打开 iOS 应用程序中使用的 sql 存储文件

ios - 您可以在应用程序中使用 Apple Watch 表冠吗?