Solve XCode error: Command PhaseScriptExecution failed with a nonzero exit code

1. Environment

XCode version: 14.3

2. Error scene information 

There are no errors in debugging and compiling using the simulator or real machine, except when performing Archive, the following errors will occur:

Command PhaseScriptExecution failed with a nonzero exit code

The XCode screenshot of the error is as follows:

 3. Solutions

Expand the project structure directory on the left side of XCode, expand "Pods" -> "Target Support Files" -> "Pods-Project Name" step by step, and open the "Pods-Project Name-frameworks.sh" file:

In this file, find the following code:

source="$(readlink "${source}")"

 Change it to:

source="$(readlink -f "${source}")"

Just re-Archive after completion. 

Guess you like

Origin blog.csdn.net/freezingxu/article/details/130456364