Jump to content

Getting xcode to recognize environment variables


Recommended Posts

Posted

It seems to be difficult (if not impossible) to get xcode to see external environment variables if you just open xcode the normal way. In other words, it doesn't seem to pick up stuff from environment.plist etc

 

So I created a simple shell script that sets the variables I need and then opens xcode and sure enough, the environment variables I set (as well as others that were set through my .bashrc) are available.

 

So then I thought I'd try and do this through Alfred since it has the ability to invoke a script. However, when I trigger a "Run Script" that just the shell script I created, the environment variable is no longer visible from Xcode.

 

Any ideas?

Posted

Nothing, huh? Can anyone reproduce this issue?

 

Could you share the command that you were suing in Alfred to try and set it? Are you aware that Alfred also doesn't import your profile and so, env variables aren't available to him?

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...