M1芯片下Xcode 编译报错: building for iOS Simulator, but linking in object file built for iOS
在模拟器进行编译的时候,会报如下类似错误:
ld: in building for iOS Simulator, but linking in object file built for iOS, file 'XXXl' for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
这个问题目前应该只出现在M1芯片的Mac上,解决方案:
在编译设置中,对模拟器排除 arm64