I am writing a script to automate my iOS building. It will run outside of Xcode, either through a terminal or from build automation software. Is there a way to access the Xcode environment variables in my script, so I don’t have to try to output them myself?
For example, can I access PROJECT_DIR instead of assuming I'm in the current directory and running pwd?
I am currently hard-coded product names for different build configurations. (I also hardcode the assembly configuration, but I could parse them with xcodebuild -list.) Is there a way to get the application if you know the assembly configuration name?
(I saw this related question , but I have no answer for me.)
zekel source
share