cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Dynatrace OneAgent (iOS) auto-startup was not successful, error code = -3

Ujjwal_Singh
Visitor

I have tried to set up Dynatrace for my dummy app, as I am trying to explore opportunities to use this platform in a real project. My Concern is, after following the steps given in the setup docs, I am still getting an error: Dynatrace OneAgent (iOS) auto-startup was not successful, error code = -3

 

Can someone please help me out with why I am facing the same? Thanks

4 REPLIES 4

Patrick_H
Dynatrace Leader
Dynatrace Leader

Hi,

This is too little information - we would need the agent log, best with DTXLogLevel set to ALL.
To not publish your log here publicly and expose your settings I suggest to create a support ticket at https://support.dynatrace.com/

And just to make sure, you did add the configuration displayed in the instrumentation wizard to the Apps Info.plist?

iOS help: https://www.dynatrace.com/support/help/shortlink/ios-hub

Hi patrick, Yes I have added configuration in info.plist, I am suspecting that there is permission required from user for this, which I am not handling as of now as I am testing this on simulator. 

Below I am attaching log as it is just dummy project on which I am testing.

 

2022-10-07 16:32:55.725765+0530 weatherApp[10879:219272] ℹ️ INFO    😎 AgentSession   [Dynatrace.m:179-259-1] Turning ON all diagnostic categories

2022-10-07 16:32:55.727954+0530 weatherApp[10879:219272] ℹ️ INFO    😎 AgentSession   [Dynatrace.m:220-259-1] Auto-starting Dynatrace OneAgent (iOS) version 8.251.1.1005 built on 2022-09-21 03:48:03 +0000

2022-10-07 16:32:55.728217+0530 weatherApp[10879:219272] ℹ️ INFO    😎 AgentSession   [DTXAgentBootController.m:83-259-1] ### Dynatrace OneAgent (iOS) 8.251.1.1005 built on 2022-09-21 03:48:03 +0000 ###

2022-10-07 16:32:55.728543+0530 weatherApp[10879:219272] +[NSString dtx_sanitizeString:error:]: unrecognized selector sent to class <some hexadecimal, not relevant>

2022-10-07 16:32:55.729387+0530 weatherApp[10879:219272] SEVERE  😎 AgentSession   [DTXAgentBootController.m:258-259-1] agent startup -failed ex: NSInvalidArgumentException , desc: +[NSString dtx_sanitizeString:error:]: unrecognized selector sent to class 0x10208bd58 ,

Removing Stacktrace here.

 

2022-10-07 16:32:55.729738+0530 weatherApp[10879:219272] SEVERE  😎 AgentSession   [DTXAgentBootConfig.m:31-259-1] Dynatrace OneAgent (iOS) auto-startup was not successful, error code = -3

Thanks, this output is helpful - it looks like -ObjC is missing from the Other Linker Flags in your build settings - so I guess the agent framework was added manually and not via Cocoapods or Swift Package Manager OR you are you using the static framework. See https://www.dynatrace.com/support/help/shortlink/ios-instrumentation#set-up-oneagent on how to add this linker flag.

And yes, also the Privacy setup needs to be done to get more data.

iOS help: https://www.dynatrace.com/support/help/shortlink/ios-hub

Thank you for such quick response, really appreciate it!

Featured Posts