我在 iOS 中使用 airbrake,但在我的付费 airbrake 帐户中没有收到任何崩溃通知。我已经按照airbrake iOS git中的说明实现了 https://github.com/airbrake/airbrake-ios
这是我在应用程序委托中编写的 Objective-c 中的代码,如下所示
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
// Override point for customization after application launch.
[ABNotifier startNotifierWithAPIKey:@"xxxx"
projectID:@"xxxxxx"
environmentName:ABNotifierAutomaticEnvironment
useSSL:YES // only if your account supports it
delegate:(id)self];
return YES;
}
以及在应用程序崩溃的 ViewController 中。代码是
- (IBAction)crashBttnAction:(id)sender {
NSMutableArray *arr=[[NSMutableArray alloc]init];
[arr objectAtIndex:5];
}
该应用程序严重崩溃,但我的 airbrake 付费帐户中没有收到任何通知。这是我的测试 github 项目的链接