Project Paths in Xcode can be Confusing
1167
post-template-default,single,single-post,postid-1167,single-format-standard,qode-quick-links-1.0,ajax_fade,page_not_loaded,,qode-theme-ver-10.1.2,wpb-js-composer js-comp-ver-4.11.1,vc_responsive
 

Careful with those paths in XCode

Careful with those paths in XCode

Are you getting a clang error that you can’t track down?  “What the heck is ‘clang: error: ‘-I-‘ not supported, please use -iquote instead‘!?!”  Oh compiler gods please help this poor soul.  Well hopefully you haven’t burned a day trying to solve this by tracking down project includes, compiler versions, and lord knows what else.  The answer turns out to be head-slappingly easy, you’ve got an unsupported character somewhere in the project path.  In our case we had something like this:

 

/Users/joeblow/Devel/Projects/WARU – Joe/testDir/waru/WARU.xcodeporj

[whitespace]

Notice the hyphen in there, that was the cause of all the pain.  The fix was simply to remove the hyphen:

 

/Users/timwmartin/Devel/Projects/WARU/testDir/waru/WARU.xcodeporj

[whitespace]

Hope this helps someone out there!