Evironment Variables in Xcode
When you’re writing scripts in xcode you’ll need to know what environment variables xcode exposes.
Here’s how you can find them all:
-make a new empty xcode cocoa project
-add a new “run script build phase phase” to the app target
-add this as the script:
env > ENV
-build the project.
There will be file in the project directory called “ENV”, which lists all environment variables. Which comes in really handy as a reference.
1 Comment so far
Leave a reply
Nice tip! Thanks for sharing. :)