user3914418
user3914418

Reputation:

How to fix iOS crash "EXC_BREAKPOINT UNKNOWN"?

I have in my app this type of crash:

enter image description here

Line 144 is this:

if singleProfile == true

And variable declaration is this:

var singleProfile: Bool = false

I really don't understand why it crashes :(

Upvotes: 11

Views: 9856

Answers (1)

Dhanush Balachandran
Dhanush Balachandran

Reputation: 181

I have seen EXC_BREAKPOINT UNKNOWN happens when you are unwrapping an optional but the value inside is nil. Please check unwrapping optionals code.

Upvotes: 9

Related Questions