今天不知道什么情况,我的xcode 12.5也报错了,之前几天都没事,今天就突然无法编译通过,查了一下资料,说是arm64导致的,我的最终解决报错的方法是结合两篇文章的,在此结合说明。
https://blog.csdn.net/guoyongming925/article/details/114628455
这里结束后,我仍然报错,但是报的错误都是和cocoapod有关系,我感觉可能和另一个步骤有关
//www.greatytc.com/p/d521d5051bf2 就是这篇文章的最后一步
如果项目使用了cocoapods需要在项目的Podfile里面添加代码段,然后执行pod install
post_install do |installer|
installer.pods_project.build_configurations.each do |config|
config.build_settings["EXCLUDED_ARCHS[sdk=iphonesimulator*]"] = "arm64"
end
end
然后就可以编译通过了