Linker error for arm64

I am getting this error while building the app in Xcode 12.4 using Unity 2019.4.30f1.

ld: entry point (_main) undefined. for architecture arm64

clang: error: linker command failed with exit code 1 (use -v to see invocation)

Unable to get what's the issue here and how to resolve it. Refer this as my Unity post: [https://forum.unity.com/threads/libiphone-a-error.1172195/)

Answered by namangupta in 690821022

Fixed it by switching to Bundle in Mach-O Type Build Settings. Added some frameworks based on missing symbols errors that appeared after switching to Bundle.

Accepted Answer

Fixed it by switching to Bundle in Mach-O Type Build Settings. Added some frameworks based on missing symbols errors that appeared after switching to Bundle.

Linker error for arm64
 
 
Q