2014-11-15 128 views
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顯示我沒有任何崩潰報告。

我錯過了什麼?

+0

你有可能有其他框架註冊爲崩潰處理程序? Flurry,Google Analytics,HockeyApp等都將自己設置爲崩潰處理程序,並阻止其他人處理應用程序中的異常。 xcode調試器也會這樣做,所以如果你想在本地測試,你需要禁用調試器。 – dymocaptin

+0

這裏是我的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

+0

TestFlight中也有一個崩潰處理程序,如果沒有禁用它,它會阻止NR得到崩潰。 – acunning1

回答

0

測試飛行包括崩潰報告。您需要關閉Test Flight的崩潰報告,以便New Relic能夠收集崩潰報告。

在你- (BOOL)申請:(UIApplication的*)應用程序didFinishLaunchingWithOptions:(NSDictionary的*)launchOptions方法,添加以下代碼行:

[TestFlight setOptions:@{TFOptionReportCrashes: @NO}]; 
[TestFlight takeOff:@"YourTestFlightAppTokenHere"];