[英]NewRelic crash reporting not working for iOS?
我有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......."
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顯示我沒有任何崩潰報告。
我想念什么?
測試飛行還包括崩潰報告。 您需要關閉“測試飛行”的崩潰報告,以便New Relic能夠收集崩潰報告。
在-(BOOL)應用程序:(UIApplication *)應用程序didFinishLaunchingWithOptions:(NSDictionary *)launchOptions方法中,添加以下代碼行:
[TestFlight setOptions:@{TFOptionReportCrashes: @NO}];
[TestFlight takeOff:@"YourTestFlightAppTokenHere"];
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.