I made my project changes for compiling the plugins in "Any Mac (Apple Silicon, Intel)" mode. With this my plugin works on Big Sur M1 when InDesign 16.4 is run in Rosetta mode. But in M1 native mode, I get an error
"CFBundleExecutable failed for plugin <name> Plugin".
I am not able to get much information on how to troubleshoot this error. I looked up the crash log in console but that did not help much.