To know all environment variables used for building in Xcode. Good to use with any run script use:
- Create a new Run Script Phase in Menu Build Phases option.
- Add export text inside
- Move the script after Target Dependcies
- Compile or Run
- Go to Navigation Pane (to the left) and select the Log navigator item (the last one in the series, looks like a bubble message)
- Check all the variables available in the message pane