1
我有NewRelic免费/开始层,应该可以崩溃报告。我已经通过的CocoaPods安装了NewRelic的代理:NewRelic崩溃报告不适用于iOS?
pod 'NewRelicAgent'
的应用程序启动时我初始化NewRelic的代理与我的应用程序ID:
[NewRelicAgent startWithApplicationToken:@"AA29fa....."];
有一个在构建过程中运行脚本阶段(最后一步):
SCRIPT=`/usr/bin/find "${SRCROOT}" -name newrelic_postbuild.sh | head -n 1`
/bin/sh "${SCRIPT}" "AA29fa......."
Podfile:
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显示我没有任何崩溃报告。
我错过了什么?
你有可能有其他框架注册为崩溃处理程序? Flurry,Google Analytics,HockeyApp等都将自己设置为崩溃处理程序,并阻止其他人处理应用程序中的异常。 xcode调试器也会这样做,所以如果你想在本地测试,你需要禁用调试器。 – dymocaptin
这里是我的podfile:源 'https://github.com/CocoaPods/Specs.git' 平台:IOS, '7.0' link_with 'SimpleInvoice', 'SimpleInvoiceTests' 荚 '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' – mikebz
TestFlight中也有一个崩溃处理程序,如果没有禁用它,它会阻止NR得到崩溃。 – acunning1