[Resources] Fix when Xcode is installed with space in path

Fixes #2684