Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个运行脚本,它通过 $SRCROOT 获取当前项目路径的值。我将此路径作为参数传递给脚本中的应用程序。问题是,如果我的项目名称有空格,则 $SRCROOT 不会评估为完整、正确的路径。它在第一个空格后截断。
是否可以在 Xcode 的此运行脚本构建阶段转义 $SRCROOT?
在这里发现你只需要用引号括起来:"$SRCROOT"
"$SRCROOT"