What's a reliable way to make an iOS app crash?

后端 未结 18 1773
無奈伤痛
無奈伤痛 2020-12-12 11:47

I want to test my app\'s crash reporting out in the field by deliberately having it crash when the user performs a particular action that a real user is unlikely to do accid

18条回答
  •  Happy的楠姐
    2020-12-12 12:25

    You can also raise an exception:

    [NSException raise:NSInternalInconsistencyException
                format:@"I want to test app crashes!."];
    

提交回复
热议问题