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

Katushai picture Katushai · Feb 4, 2014 · Viewed 28.3k times · Source

I'm trying to test my crash analytics. I didn't realize how hard it is to make an app crash at will. it seems so simple mid-programming. Does anybody have a suggestion as to how i'd force my app to crash? And i don't mean a little "memory error" crash, i mean the phone doesn't know what to do with itself. I need it to at the very least enter into the device logs as a crash, in Xcode's organizer. Any suggestions?

Answer

Stavash picture Stavash · Feb 4, 2014
@throw NSInternalInconsistencyException;