ios - 目录更改导致命令 PhaseScriptExecution 失败,Xcode 中出现非零退出代码错误(DSYM 脚本)
问题描述
仅当我更改 Xcode 项目的目录时才会遇到错误。
当项目存储在Desktop
、Documents/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 并重新安装它们,但它也没有解决问题。
解决方案
推荐阅读
- css - Sass Grid System - 实现排水沟
- magento - Magento 忽略了我对 html 文件的更改
- python-3.x - InvalidArgumentError:您必须使用 dtype float 为占位符张量“Placeholder_2”提供一个值
- javascript - 从 Javascript 调用 PHP 函数同时运行这两个函数
- asynchronous - toCompletableFuture() 卡住异步缓存
- php - WordPress 使用 REST API 登录?
- html - 防止最后一个项目拉伸以填充容器
- oracle - 在 Oracle 中替换 Minus、Union All、Intersect 运算符的替代方法
- python - 使用 stdout Popen 捕获 sqoop 日志
- python - Numpy 随机种子对整个 jupyter 笔记本有效