一、環(huán)境
XCode版本:14.3
二、錯誤場景信息?
使用模擬器或真機調(diào)試、編譯等都不出錯,唯獨在進行Archive時,會出現(xiàn)以下錯誤:
Command PhaseScriptExecution failed with a nonzero exit code
出錯時的XCode截圖如下:
?三、解決方法
展開XCode左側的項目結構目錄,逐級展開“Pods” -> “Target Support Files” -> "Pods-項目名稱",打開其中的“Pods-項目名稱-frameworks.sh”文件:
在該文件中,找到如下代碼:
source="$(readlink "${source}")"
?把它 修改為:
source="$(readlink -f "${source}")"
文章來源:http://www.zghlxwxcb.cn/news/detail-515051.html
完成后重新Archive即可。?文章來源地址http://www.zghlxwxcb.cn/news/detail-515051.html
到了這里,關于解決XCode錯誤:Command PhaseScriptExecution failed with a nonzero exit code的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關文章,希望大家以后多多支持TOY模板網(wǎng)!