This appendix offers a brief (though you may not believe it) list of the major build variables that control the Xcode build system. Build variables determine compiler flags, search paths, installation behavior, and essential information like product names. A comprehensive explanation of Xcode’s build variables can be found in the Documentation browser by searching for
Build Setting Reference.
You can see all the build variables that are available to Run Script build phases by creating a phase that consists of only one line like
echo, then checking Show environment variables in build log. Do a build, find the build at the top of the Log navigator (eighth tab), and select the All and All Messages filters. Click the script ...