I have NewRelic free/beginning tier which should be OK for crash reporting. I have installed the NewRelic agent via CocoaPods:
pod 'NewRelicAgent'
The the app startup I initialize the NewRelic agent with my app ID:
[NewRelicAgent startWithApplicationToken:@"AA29fa....."];
There is a Run Script phase in the build process (last step):
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'
I crashed the app in debugger and also published an Ad-Hoc build on TestFlight and crashed it on a device and my NewRelic shows that I don't have any crashes to report.
What am I missing?
Test Flight includes crash reporting as well. You need to turn off crash reporting for Test Flight, so that New Relic will be able to gather crash reports.
In your -(BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions method, add the following lines of code: