Splunk AppDynamics

Api AppDynamics Agent doesn't work on MAUI

Lucio_Ortiz
New Member

Hi,

After installing the appdynamics agent API in MAUI on Visual Studio 2022 Preview the project does not compile but in xamarin.forms it does.

The error it gives me is this:

Error AMM0000 Attribute application@appComponentFactory value=(androidx.core.app.CoreComponentFactory) from AndroidManifest.xml:24:18-86 is also present at AndroidManifest.xml:22:18-91 value=(android.support.v4.app.CoreComponentFactory).Suggestion:add'tools:replace="android:appComponentFactory"' to element at AndroidManifest.xml:12:3-29:17 to override.

I already tried to put tools:replace="android:appComponentFactory" in of the android manifest, also added xmlns:tools="schemas.android.com/tools" in for tools to work.

But nothing worked, the same error appeared.

Thanks.

Labels (1)
Tags (2)
0 Karma

Maxime_Esprit
Engager

Hello,

Thanks for providing a nuget for MAUI.

I encounter an error with iOS simulator on Mac M1.

It looks like the architecture for iOS simulator on Mac M1 chip is missing in the iOS binding project : 

clang++ exited with code 1:
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_ADEumAgentConfiguration", referenced from:
objc-class-ref in registrar.o
"_OBJC_CLASS_$_ADEumCrashReportSummary", referenced from:
objc-class-ref in registrar.o
"_OBJC_CLASS_$_ADEumHTTPRequestTracker", referenced from:
objc-class-ref in registrar.o
"_OBJC_CLASS_$_ADEumInstrumentation", referenced from:
objc-class-ref in registrar.o
"_OBJC_CLASS_$_ADEumServerCorrelationHeaders", referenced from:
objc-class-ref in registrar.o
"_OBJC_CLASS_$_ADEumSessionFrame", referenced from:
objc-class-ref in registrar.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation) (MyApplication.MAUI)

It works for Android.

It works for iOS on a physical device

It works for iOS on a simulator on a Mac with Intel processor

But it does not work for iOS on a simulator on a Mac with M1 chip.

I have reported it on Stackoverflow : https://stackoverflow.com/questions/76618970/appdynamics-agent-for-maui-symbol-not-found-for-archite...

Sergiu_Cosmin
Explorer

Hello,

MAUI support was added in September 2022 with v. 2022.9.0. The package to be used is under a different name "AppDynamics.Agent.Maui" and it can be found here: https://www.nuget.org/packages/AppDynamics.Agent.Maui 

Thanks! 

Get Updates on the Splunk Community!

[Puzzles] Solve, Learn, Repeat: Dynamic formatting from XML events

This challenge was first posted on Slack #puzzles channelFor a previous puzzle, I needed a set of fixed-length ...

Enter the Agentic Era with Splunk AI Assistant for SPL 1.4

  🚀 Your data just got a serious AI upgrade — are you ready? Say hello to the Agentic Era with the ...

Stronger Security with Federated Search for S3, GCP SQL & Australian Threat ...

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...