What is the easiest way to force a crash in Swift?
I would like to use only one line of code (something that I can add quickly).
I don\'t want to use breakp
You can simply try to access an optional value that has nil value... if you already have a variable declared and it is an optional, just call it (don't forget to unwrap) and it will crash for sure