Xcode sets variety of environment variables related build when running shell script.
Is there a way to running shell script without setting of those variables?
Xcode sets variety of environment variables related build when running shell script. Is there
Share
I got a solution.
Use this method in
Run Script Phasetarget phase:https://serverfault.com/questions/176966/how-to-continue-execution-of-shell-script-after-calling-other-shell-script-with/176976#176976
These shell commands run following command ignoring variables in current environment.
As an example, I used this script:
This disables all of Xcode’s predefined variables, so script does not affected by Xcode configuration, but it’s also less useful because we cannot use Xcode paths related build.
So, however, you can pass specific Xcode variable like this script.