building for iOS Simulator, but linking in object file built for iOS, file for architecture arm64
此方法适用于搭载M1芯片的Macbook。问题:在M1电脑上运行代码报错,buildingforiOSSimulator,butlinkinginobjectfilebuiltforiOS,fileforarchitecturearm64解决:用Rosetta运行Xcode.步骤:Xcode安装目录(Application->Xcode)->显示简介->选中"使用Rosetta打开“->完全退出X