iOS compilation error: Xcode Command PhaseScriptExecution failed with a nonzero exit code solution

iOS error " Xcode Command PhaseScriptExecution failed with a nonzero exit code " solution

xcode编译报错
"Xcode Command PhaseScriptExecution failed with a nonzero exit code"

Problem: Incompatibility caused by differences in xcode versions. The lower version of xcode is not compatible with the higher version of xcode.

Solution 1:

In the Xcode menu bar, select File -> Workspace Setting -> Build System, select Legacy Build
System and run again

Xcode-file

Solution 2:

Upgrade the lower version of xcode to the latest version so that it is compatible.

ps: If the code submitted by the higher version of Xcode is not important, you can also roll back to the code stage submitted by the lower version of Xcode. This method is only used for unimportant and urgent cases.

Guess you like

Origin blog.csdn.net/c1o2c3o4/article/details/126972526