# Adding folders with whitespaces in introjucer does not work

**URL:** <https://forum.juce.com/t/adding-folders-with-whitespaces-in-introjucer-does-not-work/14069>\
**Category:** The Projucer\
**Created:** [December 19, 2014, 7:11pm UTC](https://forum.juce.com/t/adding-folders-with-whitespaces-in-introjucer-does-not-work/14069 "2014-12-19T19:11:14Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![monotomy](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/monotomy/32/960_2.png) [@monotomy](https://forum.juce.com/u/monotomy)\
**Post date:** [December 19, 2014, 7:11pm UTC](https://forum.juce.com/t/adding-folders-with-whitespaces-in-introjucer-does-not-work/14069/1 "2014-12-19T19:11:14Z")

</div>

Hi,

i've tried to add a destination folder for the executable in introjucer with white spaces like this : "/volumes/my spaced dir/otherdir"

But Xcode (5) can not parse this project, only if I add " " around the the dst string in the resulting xcode project. Adding the "" or '' inside introjucer does also not work, it destroys the string in the resulting xcode project.

Is there a workaround like %20 in URL encoding for the whitespaces?

Cheers

---

<div class="post-metadata">

**Author:** ![jrlanglois](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/jrlanglois/32/21372_2.png) [@jrlanglois](https://forum.juce.com/u/jrlanglois)\
**Post date:** [December 19, 2014, 7:49pm UTC](https://forum.juce.com/t/adding-folders-with-whitespaces-in-introjucer-does-not-work/14069/2 "2014-12-19T19:49:56Z")

</div>

This link provides&nbsp;explanations: http://superuser.com/questions/29111/what-technical-reasons-exist-for-not-using-space-characters-in-file-names

---

<div class="post-metadata">

**Author:** ![monotomy](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/monotomy/32/960_2.png) [@monotomy](https://forum.juce.com/u/monotomy)\
**Post date:** [December 19, 2014, 8:12pm UTC](https://forum.juce.com/t/adding-folders-with-whitespaces-in-introjucer-does-not-work/14069/3 "2014-12-19T20:12:00Z")

</div>

Thanks, but no solution.

It's clear to me that whitespaces are not the best, but I can't change the path itself - it's generated by a virtual machine:  
"/Volumes/VMWare Shared Folders/from\_here\_i\_have\_control\_but\_not\_before/myFile" :-(

Hm, does XCode accept symlinks as targets? _EDIT: No, does not work for folders_

---

<div class="post-metadata">

**Author:** ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://forum.juce.com/u/jules)\
**Post date:** [December 20, 2014, 11:31am UTC](https://forum.juce.com/t/adding-folders-with-whitespaces-in-introjucer-does-not-work/14069/4 "2014-12-20T11:31:03Z")

</div>

I'd have thought that all the strings in the Xcode project are correctly escaped - I've spent a lot of effort doing that in the code. Can you point me at exactly where&nbsp;in juce\_ProjectExporter\_Xcode.cpp the setting is used?

---

<div class="post-metadata">

**Author:** ![monotomy](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/monotomy/32/960_2.png) [@monotomy](https://forum.juce.com/u/monotomy)\
**Post date:** [December 20, 2014, 4:04pm UTC](https://forum.juce.com/t/adding-folders-with-whitespaces-in-introjucer-does-not-work/14069/5 "2014-12-20T16:04:00Z")

</div>

Yes, line 757 && 758:

```
s.add ("DSTROOT = " + sanitisePath (binaryPath.toUnixStyle()));
s.add ("SYMROOT = " + sanitisePath (binaryPath.toUnixStyle()));
```

This should work, but can't compile it from here yet to test it.

```
s.add ("DSTROOT = \"" + sanitisePath (binaryPath.toUnixStyle()) + "\"" );
s.add ("SYMROOT = \"" + sanitisePath (binaryPath.toUnixStyle()) + "\"" );
```

XCode does the same if you insert a whitespaced string.

Cheers.

---

<div class="post-metadata">

**Author:** ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://forum.juce.com/u/jules)\
**Post date:** [December 22, 2014, 9:38am UTC](https://forum.juce.com/t/adding-folders-with-whitespaces-in-introjucer-does-not-work/14069/6 "2014-12-22T09:38:40Z")

</div>

Cheers, I'll get that sorted out this morning..

---

<div class="post-metadata">

**Author:** ![monotomy](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/monotomy/32/960_2.png) [@monotomy](https://forum.juce.com/u/monotomy)\
**Post date:** [December 27, 2014, 6:38pm UTC](https://forum.juce.com/t/adding-folders-with-whitespaces-in-introjucer-does-not-work/14069/7 "2014-12-27T18:38:15Z")

</div>

Bit late...&nbsp;it works, thanks!
