In the inspector, selecting (Apple Silicon); under Platform Settings for native plugins, results in Unity copying the .bundle file into an ARM64 directory inside of Contents/Plugins directory of the .app package
This causes DLLImport to fail.
Unity 2021.2.17f1
Did anyone face such an issue ?
That sounds like a bug. Can you file a bug report?
The same bug is observed on Unity 2021.3.14f1. For reference, the lib should be in Contents/Plugins, not Contents/Plugins/ARM64
I’m having the same issue in 2021.3.21 and 2022.2.12. The arm64 dylib gets bundled in Contents/PlugIns/ARM64 but Unity is trying to load it from Contents/Frameworks/MonoEmbedRuntime/osx when using the Mono backend.
Is there any bug report filed for this?