xcode 如何修复 iOS 崩溃“EXC_BREAKPOINT UNKNOWN”?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/29254512/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to fix iOS crash "EXC_BREAKPOINT UNKNOWN"?
提问by
I have in my app this type of crash:
我的应用程序中有这种类型的崩溃:
Line 144 is this:
第 144 行是这样的:
if singleProfile == true
And variable declaration is this:
变量声明是这样的:
var singleProfile: Bool = false
I really don't understand why it crashes :(
我真的不明白为什么它会崩溃:(
回答by Dhanush Balachandran
I have seen EXC_BREAKPOINT UNKNOWN happens when you are unwrapping an optional but the value inside is nil. Please check unwrapping optionals code.
我已经看到 EXC_BREAKPOINT UNKNOWN 发生在您解开一个可选项但里面的值为 nil 时。请检查解包选项代码。