Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.sys.mac.programmer.help > #513

Re: How to get XCode to use bash environment variables.

From ohad <ohad188@gmail.com>
Subject Re: How to get XCode to use bash environment variables.
Newsgroups comp.sys.mac.programmer.help
References <1184163672.145478.83640@a26g2000pre.googlegroups.com>
Message-ID <x-Sdnf2m3M4Ye7TLnZ2dnUU7-S-dnZ2d@giganews.com> (permalink)
Date 2015-10-23 02:49 -0500

Show all headers | View raw


A couple of comments for future readers:
1. bash environment variables (export FOO=BAR) will work if XCode is started from the same bash session (open -a xcode)
2. In order to set environment variables that are available to GUI aplications, starting from Mountain Lion launchctl should be used: http://codepulsive.blogspot.com.au/2013/11/setting-environment-variables-in-os-x.html
3. In order to use environment varialbes in XCode 7, the following command must be issued: defaults write com.apple.dt.Xcode UseSanitizedBuildSystemEnvironment -bool NO

Back to comp.sys.mac.programmer.help | Previous | Next | Find similar


Thread

Re: How to get XCode to use bash environment variables. ohad <ohad188@gmail.com> - 2015-10-23 02:49 -0500

csiph-web