作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
当TestFlight崩溃时,我有一个日志希望与崩溃报告一起上传。
按照他们网站上的说明,我想出了这个解决方案,但似乎并没有将我传递的日志发送到TFLog。但是,它报告崩溃完全正常。
-(void)applicationDidFinishLaunching:(UIApplication *)application {
/*Setup crash handlers for TestFlight so we can send logs. */
NSSetUncaughtExceptionHandler(&testFlightHandleExceptions);
// create the signal action structure
struct sigaction newSignalAction;
// initialize the signal action structure
memset(&newSignalAction, 0, sizeof(newSignalAction));
// set SignalHandler as the handler in the signal action structure
newSignalAction.sa_handler = &testFlightSignalHandler;
// set SignalHandler as the handlers for SIGABRT, SIGILL and SIGBUS
sigaction(SIGABRT, &newSignalAction, NULL);
sigaction(SIGILL, &newSignalAction, NULL);
sigaction(SIGBUS, &newSignalAction, NULL);
[TestFlight takeOff:TESTFLIGHT_API_KEY];
}
void testFlightHandleExceptions(NSException *exception) {
[LogManager e: @"Sending crash to TestFlight" Tag:@"AppDelegate"];
TFLog(@"%@",[LogManager getLog]);
}
最佳答案
我可以看到两个问题:
在崩溃之后,
testFlightHandleExceptions
将被称为,并记录了日志。相反,您每次登录时(崩溃之前)都需要在TFLog
内部调用LogManager
。这就是使用它的方式。 objc
是而不是可以。因此,大多数c
甚至都不被允许。 关于iphone - 发生当机事故时,TestFlight TFLog无法上传,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15671664/
我在使用 TestFlight SDK 时遇到了一个奇怪的问题。在 iPhone5 上我得到这个异常,应用程序崩溃了。 这是回溯: Reason: -[__NSArrayM length]: unre
TestFlight 一直在给我一些 SIGSEGV 崩溃报告。 我找到了一种方法来查明确切的问题。然而,要做到这一点,我需要恰好在崩溃的那一刻执行最后一次 TFLog,它将包含帮助我找到罪魁祸首代码
我在我的 iPhone 应用程序中使用 TFLog,但在 https://testflightapp.com 上的位置我可以查看输出吗? 最佳答案 我只是通过反复试验以及在 TestFlight 网站
我是一名优秀的程序员,十分优秀!