主要问题在missing xcrun 因此需要安装Xcode command line tools,具体命令为: xcode-select --install Reference: 又见 xcrun: error: invalid active developer path 错误 - 知乎