What's the quickest way to force an iOS app to crash? What's the quickest way to force an iOS app to crash? ios ios

What's the quickest way to force an iOS app to crash?


@throw NSInternalInconsistencyException;


So many ways to kill an app! Here are two one liners:

[self performSelector:@selector(die_die)];

also

@[][666];


Just write assert(NO). This checks the condition given as parameter and crashes the app if it is false.

Edit:

exit(0) will also do the trick