Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I escape the spaces in $SRCROOT in my run script in Xcode?

I have a run script that gets the value of the current project's path via $SRCROOT. I pass this path as a parameter to an app in the script. The problem is that if my project name has a space, $SRCROOT doesn't evaluate to the full, correct path. It truncates after the first space.

Is it possible to escape $SRCROOT within this run script build phase in Xcode?

like image 215
Lizza Avatar asked Dec 08 '22 11:12

Lizza


1 Answers

Found here that you just need to wrap it in quotes: "$SRCROOT"

like image 177
Lizza Avatar answered Dec 11 '22 09:12

Lizza