XCode doesn't recognize environment variables
I use the following script to run XCode (7.0.1 7A1001) on OSX Yosemite 10.10.5: export FOO=bar #this should not be necessary, but just in case launchctl setenv FOO bar #should make it visible to all GUI applications (=XCode) open -a xcode I then open a workspace with two projects: App1 and App2 . In both projects I put $(HOME)/$(FOO) in the Header Search Paths field. In App1 it is resolved to /Users/ohads/bar as expected. In App2 it is resolved to /Users/ohads/ - note how the HOME variable is resolved, but the FOO variable is not. What's going on here? Why the discrepancy? How can I make FOO