Cannot run the app built as a universal app for the M1 processor

As far as I know, there is nothing wrong with the code and the crashes don't even occur during the execution of the code and happen at random points during the execution.
The app functions perfectly well on an intel machine but only crashes on a system with the new M1 processor.

The common error message during the multiple crashes has been a message like this

Code Block
2021-02-09 11:57:02.628554+0530 0x8691   Default   0x0         0   0  kernel: (AppleMobileFileIntegrity) AMFI: Denying core dump for pid 1407 ([AppName])


To build the universal application all we did was upgrade to the beta version of Xcode12 and mention Standard Architectures - $(ARCHS_STANDARD) in 'Build Settings' which mentions that the app will be built for x86_64 and ARM64 architectures. This does build a universal app, so it looks like the build process runs smoothly, but the app constantly crashes at different spots while running it.

Cannot run the app built as a universal app for the M1 processor
 
 
Q