Fabric
Fabric
是Twitter的移动应用开发平台,一个模块化、跨平台的移动开发套件,该博文主要研究crashlytics
在app中的运用。
注册新的账户登录,审核通过时间为几个小时或者1到2天不等。然后注册时候输入的邮箱就会收到如下的邀请涵
浏览官方文档
crashlytics支持macOS
对macOS
的支持中出现的问题
问题:NSApplicationCrashOnExceptions
is not set. This will result in poor top-level
uncaught exception reporting
官方解释:
{% blockquote 官方文档 https://docs.fabric.io/apple/crashlytics/os-x.html#macos-support macOS Support %}
Uncaught Exceptions
Intercepting and reporting uncaught exceptions on macOS is more complex than it is on iOS. On macOS, AppKit will catch exceptions thrown on the main thread, preventing the application from crashing, but also preventing Crashlytics from reporting them. To make matters worse, Apple’s frameworks are not exception safe. This means that while AppKit will prevent your app from crashing, it will also likely corrupt your process’s state, often including AppKit itself. Typically, once an exception involving UI interaction is thrown, it will prevent your app from working correctly from that moment on.
Thankfully, AppKit has a little-known feature you can turn on to make the behavior much more predictable. We strongly recommend that you do the following in your application, right before you initialize Crashlytics.
{% codeblock lang:objc %}
[[NSUserDefaults standardUserDefaults] registerDefaults:@{ @“NSApplicationCrashOnExceptions”: @YES }];
{% endcodeblock %}