1

我有 NewRelic 免费/起始层,应该可以用于崩溃报告。我已经通过 CocoaPods 安装了 NewRelic 代理:

pod 'NewRelicAgent'

我使用我的应用 ID 初始化 NewRelic 代理的应用启动:

[NewRelicAgent startWithApplicationToken:@"AA29fa....."];

构建过程中有一个运行脚本阶段(最后一步):

SCRIPT=`/usr/bin/find "${SRCROOT}" -name newrelic_postbuild.sh | head -n 1`
/bin/sh "${SCRIPT}" "AA29fa......."

播客文件:

source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '7.0'

link_with 'SimpleInvoice', 'SimpleInvoiceTests'

pod 'BNHtmlPdfKit', :git => 'https://github.com/brentnycum/BNHtmlPdfKit'
pod 'DocuSign-iOS-SDK', :git => 'https://github.com/docusign/docusign-ios-sdk', :branch => 'feature_remote_signing'
pod 'VENCalculatorInputView'
pod 'NewRelicAgent'

我在调试器中使应用程序崩溃,并在 TestFlight 上发布了一个 Ad-Hoc 构建并在设备上崩溃,我的 NewRelic 显示我没有任何崩溃报告。

我错过了什么?

4

1 回答 1

0

试飞也包括坠机报告。您需要关闭 Test Flight 的崩溃报告,以便 New Relic 能够收集崩溃报告。

在您的-(BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions方法中,添加以下代码行:

[TestFlight setOptions:@{TFOptionReportCrashes: @NO}];
[TestFlight takeOff:@"YourTestFlightAppTokenHere"];
于 2015-02-05T16:52:42.447 回答