在构建我的项目时,我收到此错误:
line 2: /usr/local/bin/carthage: No such file or directory. Command PhaseScriptExecution failed with a nonzero exit code
Run Code Online (Sandbox Code Playgroud)
尝试了很多方法来解决这个问题,包括切换Xcode版本。值得一提的是,它仅发生在我当前使用的M1 Mac 设备上,相同的项目无需更改任何配置部分即可在 Intel Mac 上运行。