I have a custom application which requires a bunch of things to be set up before it is run. I want to add it as a build phase so I can use it when I do “Build and Run” but not when I do “Build”. How do I check it in a shell script which is run as a build phase at the end?
Please don’t ask why
Don’t know if there is something special triggered for “Build” vs “Build and Run”. You might want to check out a different build configuration. Projects come with a Debug and a Build configuration, maybe add a “Config&Build” that has some flags set. If the flag is set then do your setup stuff. Then it would be easy enough to switch configurations. I do something similar with my debug output and only turning them on in the debug configuration.