Solution to shell script invocation error during Xcode real machine test

The shell Script Invocation Error I encountered caused the Command /bin/sh to fail with exit code 2
Solutions:
Check to see if the Run Script is written correctly in the Build Phase and delete it if necessary

Read More: