Xcode12-beta build error "Unsupported architecture"

I download the Xcode_12_for_macOS_Universal_Apps_beta_2 version to build my OC project。I get the error Unsupported architecture.
the code throws the error
Code Block C
/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.0.sdk/usr/include/sys/cdefs.h
/*
 * Architecture validation for current SDK
 */
#if !defined(sys_cdefs_arch_unknown) && defined(i386)
#elif !defined(sys_cdefs_arch_unknown) && defined(x86_64)
#else
#error Unsupported architecture
#endif

At the same time, I try to build swift project. If i choose the ios14 simulator, I get the error"unable to load standard library for target 'arm64-apple-ios12.0-simulator",but if i choose the ios12 simulator, it will succeed.

Thank you if anyone help me,wishing for your help.

3 months and no response yet? I am having same issues. too many unsupported architecture errors
unsupported architecture cdefs.h
unsupported architecture _types.h
unsupported architecture types.h and too many unknown type names.
I have searched and searched online for days and yet to get my program to run
I ran into the same problem, hope for a reply.
Code Block
#if !defined(sys_cdefs_arch_unknown) && defined(i386)
#elif !defined(sys_cdefs_arch_unknown) && defined(x86_64)
#elif !defined(sys_cdefs_arch_unknown) && defined(arm64)
#else
#error Unsupported architecture
#endif

My env is xcode12.2 and simulator14.2 ,i got error:Unsupported architecture
Many similar problems occur in cdefs.h 、types.h 、 _structs.h
I was able to stop this error by changing the Base SDK in the Build Settings to 'macOS 10.15' or 'macOS' - of course changing to a newer Base SDK may introduce a whole new set of warnings so make sure you're sitting down when you do this.

I ran into the same issue, and I fixed it by changing the Architectures setting to "Standard Architectures (arm64, armv7) - $(ARCHS_STANDARD)" in the Build Settings.

Xcode12-beta build error "Unsupported architecture"
 
 
Q