Xcode12 build error. The linked framework 'lib.a'is missing one or more architectures required by this target: arm64

XCode 12 build failed on any simulator but its working on real device. Tried many solutions for this issue still not resolved so please help me out
I'm having the exact same issue.
After a lot of frustration, I noticed in Build Settings my project had VALIDARCHS set under "User Defined Build Settings." Not sure if I added this years ago or Xcode automatically added this build setting at some point through the years (this project has been around for awhile).

In any case, deleting the VALID
ARCHS Build setting fixed my problem and the app now runs on the simulator. I also had to do this for a couple subprojects.
Xcode12 build error. The linked framework 'lib.a'is missing one or more architectures required by this target: arm64
 
 
Q