Your data. Anywhere you go.

New Relic for iOS or Android


Download on the App Store    Android App on Google play


New Relic Insights App for iOS


Download on the App Store


Learn more

Close icon

Failure to send data to NewRelic from iOS

installation
support

#1
  • iOS agent (default pod install appears to be 6.1.1) in a completely empty new XCode swift application. with nothing but the NewRelic.start(…) line added as the first line of didFinishLaunching

The following is seen in the application output on startup (device or simulator)

2018-10-22 16:09:02.417229+0100 Test[9346:2857584] [si_destination_compare] send failed: Invalid argument

2018-10-22 16:09:02.417239+0100 Test[9346:2857584] [si_destination_compare] send failed: Undefined error: 0

2018-10-22 16:09:02.417247+0100 Test[9346:2857584] [si_destination_compare] send failed: Invalid argument

The application continues to run but nothing is logged into New Relic (which still acts as if I’ve not added the sdk)?


#2

Hi Craig,

Thank you for reaching out to us on the Explorer’s Hub and I’ll be helping you so you can start seeing data from the agent! I have some questions and will be requesting information so we can get started on the same page.

  • This a native iOS app?

Please confirm this is a simple native iOS app.

  • Could you send over your podfile and podfile.lock?

I’m curious what the podfile.lock says for the version of the agent. 6.4.0 is our latest version and I’m not sure how it would be 6.1.1, assuming your Podfile has pod 'NewRelicAgent' in it.

  • increase logging level

I would like for you to increase the logging level of our agent during runtime. Please set it to the most verbose level. The directions are here.

https://docs.newrelic.com/docs/mobile-monitoring/new-relic-mobile-ios/installation/cocoapods-installation#logging

  • Please build and run the app.

Please background and foreground the app twice. Save everything inside xcode log output to a file and send the file.

  • Version of xCode

What version of xCode are you using?

  • Please send over a screenshot of your project setup. Open the folders as shown here.

Thank you for providing this information and I look forward to hearing back from you!


#3

Hi,

Thanks for your quick reply. Having backgrounded and foregrounded the app it now appears to show in NewRelic. Does it not work from first run? The xcode log still shows the error I mention initially.

I can confirm:

  • This is an empty single page native swift app created by choosing ‘new single view app’ in Version 10.0 (10A255)

PodFile

# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'

pod 'NewRelicAgent'

target 'Test' do
  # Comment the next line if you're not using Swift and don't want to use dynamic frameworks
  use_frameworks!

  # Pods for Test

end

Podfile.lock

PODS:
  - NewRelicAgent (6.1.1)

DEPENDENCIES:
  - NewRelicAgent

SPEC REPOS:
  https://github.com/cocoapods/specs.git:
    - NewRelicAgent

SPEC CHECKSUMS:
  NewRelicAgent: 652434a627201e3745cd5849228feeb10afe1879

PODFILE CHECKSUM: 28425cc0ac8872b2e352c23a565c7b8821c5bcd6

COCOAPODS: 1.5.2

XCode Log

2018-10-23 07:36:36.665006+0100 Test[55526:2786335] libMobileGestalt MobileGestalt.c:890: MGIsDeviceOneOfType is not supported on this platform.
2018-10-23 07:36:36.757071+0100 Test[55526:2786335] NewRelic(6.4.0,0x6000001469c0):	NewRelicAgentInternal.m:217	-[NewRelicAgentInternal initWithCollectorAddress:crashCollectorAddress:andApplicationToken:]
	Agent enabled
2018-10-23 07:36:36.852752+0100 Test[55526:2786335] NewRelic(6.4.0,0x6000001469c0):	NRMANSURLConnectionSupport.m:115	+[NRMANSURLConnectionSupport instrumentNSURLConnection]
	NSURLConnection is present; setting up instrumentation
2018-10-23 07:36:36.862450+0100 Test[55526:2786335] NewRelic(6.4.0,0x6000001469c0):	NRMAHarvestTimer.m:21	-[NRMAHarvestTimer initWithHarvester:]
	HarvestTime: <NRMAHarvestTimer: 0x600001a1f990> initialized
2018-10-23 07:36:36.862929+0100 Test[55526:2786335] NewRelic(6.4.0,0x6000001469c0):	NRMAMeasurements.m:57	+[NRMAMeasurements initializeMeasurements]
	Measurement Engine Initialized.
2018-10-23 07:36:36.864244+0100 Test[55526:2786577] NewRelic(6.4.0,0x600000116580):	NRMAHarvestTimer.m:39	-[NRMAHarvestTimer start]
	HarvestTimer: starting with a period of 60000 ms
2018-10-23 07:36:36.864723+0100 Test[55526:2786577] NewRelic(6.4.0,0x600000116580):	NRMAHarvester.mm:528	-[NRMAHarvester execute]
	Harvester State: 1
2018-10-23 07:36:36.865342+0100 Test[55526:2786335] NewRelic(6.4.0,0x6000001469c0):	SessionAttributeManager.cxx:372	removeSessionAttribute
	Unable to remove session attribute "upgradeFrom"; attribute not found.
2018-10-23 07:36:36.865508+0100 Test[55526:2786335] NewRelic(6.4.0,0x6000001469c0):	SessionAttributeManager.cxx:372	removeSessionAttribute
	Unable to remove session attribute "com.newrelic.SecureUDID.returnedNil"; attribute not found.
2018-10-23 07:36:36.865596+0100 Test[55526:2786335] NewRelic(6.4.0,0x6000001469c0):	SessionAttributeManager.cxx:372	removeSessionAttribute
	Unable to remove session attribute "nr.deviceDidChange"; attribute not found.
2018-10-23 07:36:36.865685+0100 Test[55526:2786335] NewRelic(6.4.0,0x6000001469c0):	SessionAttributeManager.cxx:372	removeSessionAttribute
	Unable to remove session attribute "install"; attribute not found.
2018-10-23 07:36:36.865786+0100 Test[55526:2786335] NewRelic(6.4.0,0x6000001469c0):	SessionAttributeManager.cxx:372	removeSessionAttribute
	Unable to remove session attribute "sessionDuration"; attribute not found.
2018-10-23 07:36:36.866901+0100 Test[55526:2786592] NewRelic(6.4.0,0x60000012f1c0):	FileBackedStore.hpp:239	writeToFile
	File truncation failed on "/Users/craig/Library/Developer/CoreSimulator/Devices/0872AF4D-7C50-4B02-A71C-55F4D3BBE957/data/Containers/Data/Application/72745FED-8149-4991-871D-5C859F6E0D76/Library/newrelic/attributeDupStore.txt". Errno: 22
2018-10-23 07:36:36.867169+0100 Test[55526:2786335] NewRelic(6.4.0,0x6000001469c0):	NRMAAnalytics.mm:192	-[NRMAAnalytics setNRSessionAttribute:value:]
	Session attribute 'value' must be either an NSString* or NSNumber*
2018-10-23 07:36:36.869312+0100 Test[55526:2786335] NewRelic(6.4.0,0x6000001469c0):	NewRelicAgentInternal.m:857	+[NewRelicAgentInternal startWithApplicationToken:andCollectorAddress:andCrashCollectorAddress:]_block_invoke
	The New Relic Agent started
2018-10-23 07:36:36.872327+0100 Test[55526:2786335] NewRelic(6.4.0,0x6000001469c0):	NRMATraceController.m:150	+[NRMATraceController startTracingWithName:interactionObject:]
	"Display Test.ViewController" Activity started
2018-10-23 07:36:36.872529+0100 Test[55526:2786585] [si_destination_compare] send failed: Invalid argument
2018-10-23 07:36:36.872552+0100 Test[55526:2786576] NewRelic(6.4.0,0x600000128980):	NRMAUncaughtExceptionHandler.m:88	-[NRMAUncaughtExceptionHandler start]_block_invoke
	New Relic Crash Reporting is DISABLED because it has detected the debugger is enabled.
2018-10-23 07:36:36.872608+0100 Test[55526:2786585] [si_destination_compare] send failed: Undefined error: 0
2018-10-23 07:36:36.872686+0100 Test[55526:2786335] NewRelic(6.4.0,0x6000001469c0):	NRMATraceController.m:182	+[NRMATraceController startTracing:]
	Started activity with root trace : <(NRMATrace:0x600003f49490):"UI_Thread">
2018-10-23 07:36:36.872700+0100 Test[55526:2786585] [si_destination_compare] send failed: Invalid argument
2018-10-23 07:36:36.872959+0100 Test[55526:2786577] NewRelic(6.4.0,0x600000116580):	NRMAHarvester.mm:495	-[NRMAHarvester changeState:]
	Harvester changing state: 1 -> 2
2018-10-23 07:36:36.873109+0100 Test[55526:2786577] NewRelic(6.4.0,0x600000116580):	NRMAHarvester.mm:528	-[NRMAHarvester execute]
	Harvester State: 2
2018-10-23 07:36:36.873349+0100 Test[55526:2786335] NewRelic(6.4.0,0x6000001469c0):	NRMATraceMachine.m:93	-[NRMATraceMachine startHealthyTimerWithInterval:]_block_invoke
	Healthy trace timer started with interval: 0.500000
2018-10-23 07:36:36.873576+0100 Test[55526:2786335] NewRelic(6.4.0,0x6000001469c0):	NRMAThreadLocalStore.m:58	+[NRMAThreadLocalStore setThreadRootTrace:]
	Trace <(NRMATrace:0x600003f49490):"UI_Thread"> is now active
2018-10-23 07:36:36.879260+0100 Test[55526:2786576] Failed to create remote object proxy: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated." UserInfo={NSDebugDescription=The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated.}
2018-10-23 07:36:36.879376+0100 Test[55526:2786578] Failed to ping server after delegate was set
2018-10-23 07:36:36.879532+0100 Test[55526:2786585] Failed to create synchronous remote object proxy: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated." UserInfo={NSDebugDescription=The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated.}
2018-10-23 07:36:36.881290+0100 Test[55526:2786578] NewRelic(6.4.0,0x600000134c40):	NRMAURLProtocol.m:107	+[NRMAURLProtocol canInitWithRequest:]
	NRURLProtocol skipping non-webview request. Deferring to NRNSURLConnectionSupport.
2018-10-23 07:36:36.881309+0100 Test[55526:2786585] [NetworkInfo] Descriptors query returned error: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated." UserInfo={NSDebugDescription=The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated.}
2018-10-23 07:36:36.881711+0100 Test[55526:2786585] Failed to create synchronous remote object proxy: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated." UserInfo={NSDebugDescription=The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated.}
2018-10-23 07:36:36.881815+0100 Test[55526:2786585] [NetworkInfo] Descriptors query returned error: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated." UserInfo={NSDebugDescription=The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated.}
2018-10-23 07:36:36.882207+0100 Test[55526:2786585] Failed to create synchronous remote object proxy: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated." UserInfo={NSDebugDescription=The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated.}
2018-10-23 07:36:36.882317+0100 Test[55526:2786585] [NetworkInfo] Descriptors query returned error: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated." UserInfo={NSDebugDescription=The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated.}
2018-10-23 07:36:37.240239+0100 Test[55526:2786577] NewRelic(6.4.0,0x600000116580):	NRMAHarvester.mm:480	-[NRMAHarvester configureFromCollector:]
	Harvest config: {"server_timestamp":1540276597,"data_report_period":60,"report_max_transaction_count":1000,"report_max_transaction_age":600,"collect_network_errors":true,"error_limit":50,"response_body_limit":2048,"stack_trace_limit":100,"activity_trace_max_size":65535,"activity_trace_min_utilization":0.3,"at_capture":[1,[]],"data_token":[619234,621368],"cross_process_id":"VgcEVFRSCBAGVVhQBAU=","encoding_key":"d67afc830dab717fd163bfcb0b8b88423e9a1a3b","account_id":"2135210","application_id":"619234"}
2018-10-23 07:36:37.242136+0100 Test[55526:2786577] NewRelic(6.4.0,0x600000116580):	NRMAHarvester.mm:495	-[NRMAHarvester changeState:]
	Harvester changing state: 2 -> 3
2018-10-23 07:36:37.242297+0100 Test[55526:2786577] NewRelic(6.4.0,0x600000116580):	NRMAHarvester.mm:528	-[NRMAHarvester execute]
	Harvester State: 3
2018-10-23 07:36:37.243930+0100 Test[55526:2786577] NewRelic(6.4.0,0x600000116580):	NRMAHarvester.mm:297	-[NRMAHarvester connected]
	Harvester: connected
2018-10-23 07:36:37.245545+0100 Test[55526:2786585] NewRelic(6.4.0,0x600000128000):	NRMAURLProtocol.m:107	+[NRMAURLProtocol canInitWithRequest:]
	NRURLProtocol skipping non-webview request. Deferring to NRNSURLConnectionSupport.
2018-10-23 07:36:37.373587+0100 Test[55526:2786335] NewRelic(6.4.0,0x6000001469c0):	NRMATraceMachine.m:100	-[NRMATraceMachine healthyTimeout]
	Healthy trace timer fired
2018-10-23 07:36:37.374040+0100 Test[55526:2786335] NewRelic(6.4.0,0x6000001469c0):	NRMATraceMachine.m:93	-[NRMATraceMachine startHealthyTimerWithInterval:]_block_invoke
	Healthy trace timer started with interval: 0.370801
2018-10-23 07:36:37.745725+0100 Test[55526:2786335] NewRelic(6.4.0,0x6000001469c0):	NRMATraceMachine.m:100	-[NRMATraceMachine healthyTimeout]
	Healthy trace timer fired
2018-10-23 07:36:37.745921+0100 Test[55526:2786335] NewRelic(6.4.0,0x6000001469c0):	NRMATraceController.m:245	+[NRMATraceController completeActivityTraceWithExitTimestampMillis:]
	"Display Test.ViewController" Activity Completed.
2018-10-23 07:36:37.746212+0100 Test[55526:2786335] NewRelic(6.4.0,0x6000001469c0):	NRMASummaryMeasurementConsumer.m:95	-[NRMASummaryMeasurementConsumer aggregateAndNormalizeAndRecordValuesWithTotalTime:scope:]
	recording Mobile/Summary/JSON to scope Mobile/Activity/Summary/Name/Display Test.ViewController
2018-10-23 07:36:37.746375+0100 Test[55526:2786335] NewRelic(6.4.0,0x6000001469c0):	NRMASummaryMeasurementConsumer.m:95	-[NRMASummaryMeasurementConsumer aggregateAndNormalizeAndRecordValuesWithTotalTime:scope:]
	recording Mobile/Summary/View Loading to scope Mobile/Activity/Summary/Name/Display Test.ViewController
2018-10-23 07:36:50.561854+0100 Test[55526:2786335] NewRelic(6.4.0,0x6000001469c0):	NewRelicAgentInternal.m:692	-[NewRelicAgentInternal applicationDidEnterBackground]
	applicationDidEnterBackground
2018-10-23 07:36:50.562066+0100 Test[55526:2786335] NewRelic(6.4.0,0x6000001469c0):	NRMATraceController.m:234	+[NRMATraceController completeActivityTraceWithExitTimestampMillis:]
	completeTrace called while no trace was running.
2018-10-23 07:36:50.567958+0100 Test[55526:2786604] NewRelic(6.4.0,0x600000148140):	NewRelicAgentInternal.m:761	-[NewRelicAgentInternal applicationDidEnterBackground]_block_invoke
	Harvesting data in background
2018-10-23 07:36:50.568716+0100 Test[55526:2786604] NewRelic(6.4.0,0x600000148140):	NRMAHarvester.mm:528	-[NRMAHarvester execute]
	Harvester State: 3
2018-10-23 07:36:50.571379+0100 Test[55526:2786604] NewRelic(6.4.0,0x600000148140):	NRMAHarvester.mm:297	-[NRMAHarvester connected]
	Harvester: connected
2018-10-23 07:36:50.572854+0100 Test[55526:2786576] NewRelic(6.4.0,0x600000128980):	NRMAURLProtocol.m:107	+[NRMAURLProtocol canInitWithRequest:]
	NRURLProtocol skipping non-webview request. Deferring to NRNSURLConnectionSupport.
2018-10-23 07:36:50.646592+0100 Test[55526:2786604] NewRelic(6.4.0,0x600000148140):	NRMAMeasurements.m:76	+[NRMAMeasurements shutdown]
	Measurement Engine shutting down.
2018-10-23 07:36:50.646825+0100 Test[55526:2786604] NewRelic(6.4.0,0x600000148140):	NRMAHarvestController.m:164	+[NRMAHarvestController stop]
	Harvester timer stopped
2018-10-23 07:36:50.647068+0100 Test[55526:2786604] NewRelic(6.4.0,0x600000148140):	NRMAHarvestTimer.m:97	-[NRMAHarvestTimer stop]
	HarvestTimer: attempting to stop when not running.
2018-10-23 07:36:50.647273+0100 Test[55526:2786604] NewRelic(6.4.0,0x600000148140):	NRMAHarvestTimer.m:117	-[NRMAHarvestTimer dealloc]
	HarvestTime: <NRMAHarvestTimer: 0x600001a1f990> deallocated
2018-10-23 07:36:50.647515+0100 Test[55526:2786604] NewRelic(6.4.0,0x600000148140):	NewRelicAgentInternal.m:773	-[NewRelicAgentInternal applicationDidEnterBackground]_block_invoke
	Background harvest complete.
2018-10-23 07:36:53.035490+0100 Test[55526:2786604] NewRelic(6.4.0,0x600000148140):	NRMAMeasurements.m:76	+[NRMAMeasurements shutdown]
	Measurement Engine shutting down.
2018-10-23 07:36:53.035670+0100 Test[55526:2786604] NewRelic(6.4.0,0x600000148140):	NRMAHarvestController.m:164	+[NRMAHarvestController stop]
	Harvester timer stopped
2018-10-23 07:36:53.035894+0100 Test[55526:2786604] NewRelic(6.4.0,0x600000148140):	NRMAHarvestTimer.m:21	-[NRMAHarvestTimer initWithHarvester:]
	HarvestTime: <NRMAHarvestTimer: 0x600001a3d860> initialized
2018-10-23 07:36:53.036047+0100 Test[55526:2786604] NewRelic(6.4.0,0x600000148140):	NRMAMeasurements.m:57	+[NRMAMeasurements initializeMeasurements]
	Measurement Engine Initialized.
2018-10-23 07:36:53.036472+0100 Test[55526:2786578] NewRelic(6.4.0,0x600000134c40):	NRMAHarvestTimer.m:39	-[NRMAHarvestTimer start]
	HarvestTimer: starting with a period of 60000 ms
2018-10-23 07:36:53.036685+0100 Test[55526:2786578] NewRelic(6.4.0,0x600000134c40):	NRMAHarvester.mm:528	-[NRMAHarvester execute]
	Harvester State: 1
2018-10-23 07:36:53.037302+0100 Test[55526:2786578] NewRelic(6.4.0,0x600000134c40):	NRMAHarvester.mm:495	-[NRMAHarvester changeState:]
	Harvester changing state: 1 -> 2
2018-10-23 07:36:53.037464+0100 Test[55526:2786578] NewRelic(6.4.0,0x600000134c40):	NRMAHarvester.mm:528	-[NRMAHarvester execute]
	Harvester State: 2
2018-10-23 07:36:53.042378+0100 Test[55526:2786604] NewRelic(6.4.0,0x600000148140):	SessionAttributeManager.cxx:372	removeSessionAttribute
	Unable to remove session attribute "upgradeFrom"; attribute not found.
2018-10-23 07:36:53.042561+0100 Test[55526:2786604] NewRelic(6.4.0,0x600000148140):	SessionAttributeManager.cxx:372	removeSessionAttribute
	Unable to remove session attribute "com.newrelic.SecureUDID.returnedNil"; attribute not found.
2018-10-23 07:36:53.042693+0100 Test[55526:2786578] NewRelic(6.4.0,0x600000134c40):	NRMAMeasurements.m:197	+[NRMAMeasurements recordSessionStartMetric]
	Recording Session Start Metric.
2018-10-23 07:36:53.042825+0100 Test[55526:2786604] NewRelic(6.4.0,0x600000148140):	SessionAttributeManager.cxx:372	removeSessionAttribute
	Unable to remove session attribute "nr.deviceDidChange"; attribute not found.
2018-10-23 07:36:53.042953+0100 Test[55526:2786578] NewRelic(6.4.0,0x600000134c40):	NRMAHarvester.mm:495	-[NRMAHarvester changeState:]
	Harvester changing state: 2 -> 3
2018-10-23 07:36:53.043067+0100 Test[55526:2786604] NewRelic(6.4.0,0x600000148140):	SessionAttributeManager.cxx:372	removeSessionAttribute
	Unable to remove session attribute "install"; attribute not found.
2018-10-23 07:36:53.043200+0100 Test[55526:2786578] NewRelic(6.4.0,0x600000134c40):	NRMAHarvester.mm:528	-[NRMAHarvester execute]
	Harvester State: 3
2018-10-23 07:36:53.044901+0100 Test[55526:2786604] NewRelic(6.4.0,0x600000148140):	SessionAttributeManager.cxx:372	removeSessionAttribute
	Unable to remove session attribute "sessionDuration"; attribute not found.
2018-10-23 07:36:53.045466+0100 Test[55526:2786578] NewRelic(6.4.0,0x600000134c40):	NRMAHarvester.mm:297	-[NRMAHarvester connected]
	Harvester: connected
2018-10-23 07:36:53.045598+0100 Test[55526:2786604] NewRelic(6.4.0,0x600000148140):	NRMAAnalytics.mm:192	-[NRMAAnalytics setNRSessionAttribute:value:]
	Session attribute 'value' must be either an NSString* or NSNumber*
2018-10-23 07:36:53.046390+0100 Test[55526:2786579] NewRelic(6.4.0,0x60000012f380):	NRMAURLProtocol.m:107	+[NRMAURLProtocol canInitWithRequest:]
	NRURLProtocol skipping non-webview request. Deferring to NRNSURLConnectionSupport.
2018-10-23 07:36:53.048908+0100 Test[55526:2786604] NewRelic(6.4.0,0x600000148140):	NRMACrashDataUploader.m:61	-[NRMACrashDataUploader uploadCrashReports]
	failed to fetch crash reports: Error Domain=NSCocoaErrorDomain Code=260 "The file “nrcrashreports” couldn’t be opened because there is no such file." UserInfo={NSURL=file:///Users/craig/Library/Developer/CoreSimulator/Devices/0872AF4D-7C50-4B02-A71C-55F4D3BBE957/data/Containers/Data/Application/72745FED-8149-4991-871D-5C859F6E0D76/tmp//nrcrashreports, NSFilePath=/Users/craig/Library/Developer/CoreSimulator/Devices/0872AF4D-7C50-4B02-A71C-55F4D3BBE957/data/Containers/Data/Application/72745FED-8149-4991-871D-5C859F6E0D76/tmp//nrcrashreports, NSUnderlyingError=0x600001a3e670 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}}
2018-10-23 07:36:59.261065+0100 Test[55526:2786335] NewRelic(6.4.0,0x6000001469c0):	NewRelicAgentInternal.m:692	-[NewRelicAgentInternal applicationDidEnterBackground]
	applicationDidEnterBackground
2018-10-23 07:36:59.261254+0100 Test[55526:2786335] NewRelic(6.4.0,0x6000001469c0):	NRMATraceController.m:234	+[NRMATraceController completeActivityTraceWithExitTimestampMillis:]
	completeTrace called while no trace was running.
2018-10-23 07:36:59.263672+0100 Test[55526:2786578] NewRelic(6.4.0,0x600000134c40):	NewRelicAgentInternal.m:761	-[NewRelicAgentInternal applicationDidEnterBackground]_block_invoke
	Harvesting data in background
2018-10-23 07:36:59.264266+0100 Test[55526:2786578] NewRelic(6.4.0,0x600000134c40):	NRMAHarvester.mm:528	-[NRMAHarvester execute]
	Harvester State: 3
2018-10-23 07:36:59.267235+0100 Test[55526:2786578] NewRelic(6.4.0,0x600000134c40):	NRMAHarvester.mm:297	-[NRMAHarvester connected]
	Harvester: connected
2018-10-23 07:36:59.268804+0100 Test[55526:2787278] NewRelic(6.4.0,0x6000001cd1c0):	NRMAURLProtocol.m:107	+[NRMAURLProtocol canInitWithRequest:]
	NRURLProtocol skipping non-webview request. Deferring to NRNSURLConnectionSupport.
2018-10-23 07:36:59.345964+0100 Test[55526:2786578] NewRelic(6.4.0,0x600000134c40):	NRMAMeasurements.m:76	+[NRMAMeasurements shutdown]
	Measurement Engine shutting down.
2018-10-23 07:36:59.346157+0100 Test[55526:2786578] NewRelic(6.4.0,0x600000134c40):	NRMAHarvestController.m:164	+[NRMAHarvestController stop]
	Harvester timer stopped
2018-10-23 07:36:59.346296+0100 Test[55526:2786578] NewRelic(6.4.0,0x600000134c40):	NRMAHarvestTimer.m:97	-[NRMAHarvestTimer stop]
	HarvestTimer: attempting to stop when not running.
2018-10-23 07:36:59.346443+0100 Test[55526:2786578] NewRelic(6.4.0,0x600000134c40):	NRMAHarvestTimer.m:117	-[NRMAHarvestTimer dealloc]
	HarvestTime: <NRMAHarvestTimer: 0x600001a3d860> deallocated
2018-10-23 07:36:59.346645+0100 Test[55526:2786578] NewRelic(6.4.0,0x600000134c40):	NewRelicAgentInternal.m:773	-[NewRelicAgentInternal applicationDidEnterBackground]_block_invoke
	Background harvest complete.
2018-10-23 07:37:00.465795+0100 Test[55526:2787238] NewRelic(6.4.0,0x600000130bc0):	NRMAMeasurements.m:76	+[NRMAMeasurements shutdown]
	Measurement Engine shutting down.
2018-10-23 07:37:00.465964+0100 Test[55526:2787238] NewRelic(6.4.0,0x600000130bc0):	NRMAHarvestController.m:164	+[NRMAHarvestController stop]
	Harvester timer stopped
2018-10-23 07:37:00.466185+0100 Test[55526:2787238] NewRelic(6.4.0,0x600000130bc0):	NRMAHarvestTimer.m:21	-[NRMAHarvestTimer initWithHarvester:]
	HarvestTime: <NRMAHarvestTimer: 0x600001a3def0> initialized
2018-10-23 07:37:00.466343+0100 Test[55526:2787238] NewRelic(6.4.0,0x600000130bc0):	NRMAMeasurements.m:57	+[NRMAMeasurements initializeMeasurements]
	Measurement Engine Initialized.
2018-10-23 07:37:00.466602+0100 Test[55526:2786578] NewRelic(6.4.0,0x600000134c40):	NRMAHarvestTimer.m:39	-[NRMAHarvestTimer start]
	HarvestTimer: starting with a period of 60000 ms
2018-10-23 07:37:00.466770+0100 Test[55526:2786578] NewRelic(6.4.0,0x600000134c40):	NRMAHarvester.mm:528	-[NRMAHarvester execute]
	Harvester State: 1
2018-10-23 07:37:00.467337+0100 Test[55526:2787238] NewRelic(6.4.0,0x600000130bc0):	SessionAttributeManager.cxx:372	removeSessionAttribute
	Unable to remove session attribute "upgradeFrom"; attribute not found.
2018-10-23 07:37:00.472224+0100 Test[55526:2786578] NewRelic(6.4.0,0x600000134c40):	NRMAHarvester.mm:495	-[NRMAHarvester changeState:]
	Harvester changing state: 1 -> 2
2018-10-23 07:37:00.472469+0100 Test[55526:2787238] NewRelic(6.4.0,0x600000130bc0):	SessionAttributeManager.cxx:372	removeSessionAttribute
	Unable to remove session attribute "com.newrelic.SecureUDID.returnedNil"; attribute not found.
2018-10-23 07:37:00.472590+0100 Test[55526:2786578] NewRelic(6.4.0,0x600000134c40):	NRMAHarvester.mm:528	-[NRMAHarvester execute]
	Harvester State: 2
2018-10-23 07:37:00.472715+0100 Test[55526:2787238] NewRelic(6.4.0,0x600000130bc0):	SessionAttributeManager.cxx:372	removeSessionAttribute
	Unable to remove session attribute "nr.deviceDidChange"; attribute not found.
2018-10-23 07:37:00.472853+0100 Test[55526:2787238] NewRelic(6.4.0,0x600000130bc0):	SessionAttributeManager.cxx:372	removeSessionAttribute
	Unable to remove session attribute "install"; attribute not found.
2018-10-23 07:37:00.472986+0100 Test[55526:2786578] NewRelic(6.4.0,0x600000134c40):	NRMAMeasurements.m:197	+[NRMAMeasurements recordSessionStartMetric]
	Recording Session Start Metric.
2018-10-23 07:37:00.481340+0100 Test[55526:2787238] NewRelic(6.4.0,0x600000130bc0):	SessionAttributeManager.cxx:372	removeSessionAttribute
	Unable to remove session attribute "sessionDuration"; attribute not found.
2018-10-23 07:37:00.481549+0100 Test[55526:2786578] NewRelic(6.4.0,0x600000134c40):	NRMAHarvester.mm:495	-[NRMAHarvester changeState:]
	Harvester changing state: 2 -> 3
2018-10-23 07:37:00.481695+0100 Test[55526:2786578] NewRelic(6.4.0,0x600000134c40):	NRMAHarvester.mm:528	-[NRMAHarvester execute]
	Harvester State: 3
2018-10-23 07:37:00.481850+0100 Test[55526:2787238] NewRelic(6.4.0,0x600000130bc0):	NRMAAnalytics.mm:192	-[NRMAAnalytics setNRSessionAttribute:value:]
	Session attribute 'value' must be either an NSString* or NSNumber*
2018-10-23 07:37:00.482574+0100 Test[55526:2786578] NewRelic(6.4.0,0x600000134c40):	NRMAHarvester.mm:297	-[NRMAHarvester connected]
	Harvester: connected
2018-10-23 07:37:00.483175+0100 Test[55526:2786576] NewRelic(6.4.0,0x600000128980):	NRMAURLProtocol.m:107	+[NRMAURLProtocol canInitWithRequest:]
	NRURLProtocol skipping non-webview request. Deferring to NRNSURLConnectionSupport.
2018-10-23 07:37:00.483322+0100 Test[55526:2787238] NewRelic(6.4.0,0x600000130bc0):	NRMACrashDataUploader.m:61	-[NRMACrashDataUploader uploadCrashReports]
	failed to fetch crash reports: Error Domain=NSCocoaErrorDomain Code=260 "The file “nrcrashreports” couldn’t be opened because there is no such file." UserInfo={NSURL=file:///Users/craig/Library/Developer/CoreSimulator/Devices/0872AF4D-7C50-4B02-A71C-55F4D3BBE957/data/Containers/Data/Application/72745FED-8149-4991-871D-5C859F6E0D76/tmp//nrcrashreports, NSFilePath=/Users/craig/Library/Developer/CoreSimulator/Devices/0872AF4D-7C50-4B02-A71C-55F4D3BBE957/data/Containers/Data/Application/72745FED-8149-4991-871D-5C859F6E0D76/tmp//nrcrashreports, NSUnderlyingError=0x600001a1fb40 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}}

#4

Hi Craig,

Thanks for testing that and providing this information!

Everything looks to be in good order here. Our agent is starting and harvesting data as it should on backgrounding. When the agent first starts up, it makes a “Connect” call to New Relic. Every 60 seconds after that, there will be a harvest unless some other event (like backgrounding) triggers it.

Just in case, I would start the application and leave it running without any activity. You should see an automatic harvest at the minute mark. You also should see an App Launch in your New Relic UI a little bit after you start.

Regarding the error, I’m not sure what that is about. Have you tried removing New Relic completely from this app and running just the app? I’m curious if the error is there or not.

The one strange point is the podfile.lock. It says 6.1.1 and that is a much older version of New Relic. Your runtime logs suggest you are using 6.4.0 though. I would look into reinstalling the pod and making sure to clean the pod cache so that podfile.lock reflects the appropriate version you are using.

Please let me know how this goes!


#5

Thanks for that. Yes in my first post I mention that the app only shows that error with the newrelic start line included.

I also have a test Xamarin app (using bindings from: https://github.com/nventive/Binding.NewRelic) that exhibits the same issue. It’s logs show this:

NRMAHarvester.mm:426 - [NRMAHarvester disconnected]
Harvest connect response: 404

Is there a fix for that? Presumably NewRelic do not official support Xamarin as a platform? This is iOS, but I’ve also read that there are problems with android due to the gradle integration for android/new relic builds.


#6

Hi Craig,

I did some further testing and I do see that [si_destination_compare] shows up in my test app as well. Although it is there, the agent detects the app launch and other instrumentation as expected. I’ve discussed this log message with our engineering team and it is not related to our agent and appears to be a benign log.

I want to confirm that you are still seeing app launch data in your UI when this log message appears? For my test app, everything is working as expected.

You are correct that we currently do not support Xamarin apps using New Relic and this is outside of my scope and area of expertise.

Regarding Android, integration with current gradle versions and New Relic is working as expected. We do receive requests when issues do come up and each situation is different and has their unique challenges to work through. If you are experiencing an Android integration issue with New Relic, I would be more than happy to dive in and help!

Please let me know if there is anything else I can help you with.


#7

Hi,

The iOS app was actually a test because I couldn’t get Xamarin to work and wanted to confirm my trial account etc worked with a supported platform.

Based on my experience using: https://github.com/nventive/Binding.NewRelic with Xamarin iOS and the comments here https://forums.xamarin.com/discussion/17700/newrelic-mobile-and-android regarding Xamarin Android. My current view is that NewRelic is not possible to use in a Xamarin environment.

Is there anyone from the NewRelic team who could provide any more insight on that?

Thanks again for your time,


#8

Hi @craig.rowe! Unfortunately, Xamarin is not supported by New Relic at this time so we can’t guarantee you will get the accurate data you need from us.

You are welcome to vote on this Feature Idea thread, and if you add your use case as well, I will make sure our Mobile Product Manager sees and considers it.

Sorry I don’t have better news, please let me know if I can do anything else to help! :blush: