MacBook m1 芯片编译出错。

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.3.sdk/usr/include/sys/cdefs.h:817:2: Unsupported architecture
定位到这里。
/*

  • Architecture validation for current SDK
    */
    #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

好像是架构不支持的问题??
有兄弟有方案解决吗?