Xcode打包出现错误Command PhaseScriptExecution failed with a nonzero exit code

去年创建新项目打包遇到过,解决了今年遇到又忘记怎么解决的,因此写篇blog记录下该问题

Xcode14+ 打包错误出现Command PhaseScriptExecution failed with a nonzero exit code

一般是还有这种消息UninstalledProducts/iphoneos/AFNetworking.framework" failed: No such file or directory (2)

解决办法如图  把source="$(readlink "${source}")"修改成

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

Xcode打包出现错误Command PhaseScriptExecution failed with a nonzero exit code_第1张图片

你可能感兴趣的:(xcode,macos,ide)