Your script is presumably a (bash) shell script. In that case you shouldn't be using return exit 1;
you should just be using exit 1
.
I am trying to return a nonzero exit code on an Xcode Run Script build phase, but it's not working
Domanda
I have a script in my build phase that I am trying to 'return exit 1' after I throw a build error.
This is coming from a command line tool that is logging 'return exit 1' after there is a problem. The exit 1 shows up on the log, but Xcode still is telling me I need to return a nonzero exit code...
Any ideas? EDIT
Here is the type of script:
Soluzione
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow