shaka-project / shaka-player-embedded

Shaka Player in a C++ Framework
Apache License 2.0
239 stars 62 forks source link

Sample Xcode project fails to build #95

Closed jgongo closed 4 years ago

jgongo commented 4 years ago

When trying to build the sample Xcode project included the repository I get the following error during the first run script phase:

...
Required command not found: cipd
Command PhaseScriptExecution failed with a nonzero exit code

The problem lies in the build.sh script, line 24:

# Get the PATH variable from outside of XCode, so that the scripts can find depot_tools
PATH=$(bash -l -c 'echo $PATH')

which assumes bash to have the PATH variable configured to be able to run depot_tools. In the latest version of MacOS (Catalina), bash has been deprecated in favour of zshell, so if you happen to have migrated to zshell and only have configured the PATH variable for it, the script will fail to find depot_tools in the path.