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!

What the End of Support for Splunk Add-on Builder Means for You

Hello Splunk Community! We want to share an important update regarding the future of the Splunk Add-on Builder ...

Solve, Learn, Repeat: New Puzzle Channel Now Live

Welcome to the Splunk Puzzle PlaygroundIf you are anything like me, you love to solve problems, and what ...

Building Reliable Asset and Identity Frameworks in Splunk ES

 Accurate asset and identity resolution is the backbone of security operations. Without it, alerts are ...