Skip to content

Instantly share code, notes, and snippets.

@phynet
Last active March 23, 2017 11:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save phynet/fa21a19bd8152c5545b10bb2968003cf to your computer and use it in GitHub Desktop.
Save phynet/fa21a19bd8152c5545b10bb2968003cf to your computer and use it in GitHub Desktop.
Log environment variables available in Xcode

To know all environment variables used for building in Xcode. Good to use with any run script use:

  1. Create a new Run Script Phase in Menu Build Phases option.
  2. Add export text inside
  3. Move the script after Target Dependcies
  4. Compile or Run
  5. Go to Navigation Pane (to the left) and select the Log navigator item (the last one in the series, looks like a bubble message)
  6. Check all the variables available in the message pane

Xcode Log env variables

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment