iOS报错-Command PhaseScriptExecution failed with a nonzero exit code

时间:2024-03-22 15:34:42

问题:iOS debug没问题,一打包就报错:

Command PhaseScriptExecution failed with a nonzero exit code

解决方法如下:

在项目的Pods目录下,找到Targets Support Files->Pods-xxxx-frameworks.sh
如下:
在这里插入图片描述

搜索一下:

source=“ ( r e a d l i n k " (readlink " (readlink"{source}”)"

替换成:

source=“ ( r e a d l i n k − f " (readlink -f " (readlinkf"{source}”)"

在这里插入图片描述

重新打包即可