首页 > 解决方案 > 目录更改导致命令 PhaseScriptExecution 失败,Xcode 中出现非零退出代码错误(DSYM 脚本)

问题描述

仅当我更改 Xcode 项目的目录时才会遇到错误。

当项目存储在DesktopDocuments/Crafted或中Documents时,我不会遇到任何问题。

但是,当将项目移动到类似的目录时Documents/Crafted Thoughts/Code,我收到如下所示的以​​下错误:

Command PhaseScriptExecution failed with a nonzero exit code
xargs: /Users/amoghjoshi/Documents/Crafted: No such file or directory

根据报告导航器,以下是该问题的更多详细信息:

Run custom shell script 'DYSM script' in 0.1 seconds
PhaseScriptExecution DSYM\ Script /Users/amoghjoshi/Library/Developer/Xcode/DerivedData/Jounral_X-ctnezgkmvyposbdtewogwwzekooa/Build/Intermediates.noindex/Jounral\ X.build/Debug-iphonesimulator/Jounral\ X.build/Script-70F61CFC24BA1832002858B9.sh (in target 'Jounral X' from project 'Jounral X')
    cd /Users/amoghjoshi/Documents/Crafted\ Thoughts/Code/JournalX-ObjC

export ACTION\=build
    export AD_HOC_CODE_SIGNING_ALLOWED\=YES
    export ALTERNATE_GROUP\=staff
    export ALTERNATE_MODE\=u+w,go-w,a+rX
.
.
.
other logs
.
.
.
/bin/sh -c /Users/amoghjoshi/Library/Developer/Xcode/DerivedData/Jounral_X-ctnezgkmvyposbdtewogwwzekooa/Build/Intermediates.noindex/Jounral\\\ X.build/Debug-iphonesimulator/Jounral\\\ X.build/Script-70F61CFC24BA1832002858B9.sh

xargs: /Users/amoghjoshi/Documents/Crafted: No such file or directory
Command PhaseScriptExecution failed with a nonzero exit code

我检查了构建设置以查看我是否对路径进行了硬编码,但我找不到

我已经检查了构建阶段来检查脚本,但它们似乎很好。下面是 Run Script 和 DYSM Script 的截图:

在此处输入图像描述

在此处输入图像描述

我也尝试删除 pod 并重新安装它们,但它也没有解决问题。

标签: iosxcodecrashlytics

解决方案


推荐阅读