Add additional item for Homebrew in script in order to support building for Apple Silicon (M1) arch

This commit is contained in:
Ermat 2021-05-26 11:12:16 +06:00
parent 6f3afe2f09
commit d3ec2818cd
1 changed files with 4 additions and 0 deletions

View File

@ -1,5 +1,9 @@
#!/bin/sh
if [[ "$(uname -m)" == "arm64" ]]; then
export PATH="/opt/homebrew/bin:${PATH}"
fi
SCRIPT_COMMONS="${PODS_TARGET_SRCROOT}/Scripts/script_commons.sh"
if [ -f $SCRIPT_COMMONS ]; then
source $SCRIPT_COMMONS