Mac M1芯片报错libPods-xxx.a' is missing one or more architectures required by this target: ...

前言
在一台旧电脑上能正常打开Xcode使用模拟器调试,但在一台新的Mac M1芯片的电脑上就一致运行不起来,报错提示The linked library 'libPods-xxx.a' is missing one or more architectures required by this target: x86_64

参考:
1、Apple Silicon M1 - The linked library 'libPods-ProjectName.a' is missing one or more architectures required by this target: x86_64
2、If you need to install Rosetta on your Mac
如果您需要在 Mac 上安装 Rosetta
入手 M1 Mac 之前,你需要了解的Apple Silicon M1原生应用和Rosetta2

解决方案:
一、运行命令安装rosetta
softwareupdate --install-rosetta

二、配置xcode使用rosetta
应用程序->Xcode->显示简介->勾选Open using Rosetta

image.png

你可能感兴趣的:(Mac M1芯片报错libPods-xxx.a' is missing one or more architectures required by this target: ...)