Forgot to add xcode select

This commit is contained in:
LukeeGD 2020-08-14 12:43:30 +08:00 committed by GitHub
parent 59c8bbc8de
commit a3126703b2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -53,7 +53,7 @@ function Main {
DFUDevice=$($lsusb | grep -c '1227') DFUDevice=$($lsusb | grep -c '1227')
RecoveryDevice=$($lsusb | grep -c '1281') RecoveryDevice=$($lsusb | grep -c '1281')
if [[ $1 == Install ]] || [ ! $(which $bspatch) ] || [ ! $(which $ideviceinfo) ] || if [[ $1 == Install ]] || [ ! $(which $bspatch) ] || [ ! $(which $ideviceinfo) ] ||
[ ! $(which $lsusb) ] || [ ! $(which ssh) ] || [ ! $(which $python) ]; then [ ! $(which git) ] || [ ! $(which ssh) ] || [ ! $(which $python) ]; then
InstallDependencies InstallDependencies
elif [ $DFUDevice == 1 ] || [ $RecoveryDevice == 1 ]; then elif [ $DFUDevice == 1 ] || [ $RecoveryDevice == 1 ]; then
ProductType=$(sudo LD_LIBRARY_PATH=/usr/local/lib resources/tools/igetnonce_$platform 2>/dev/null) ProductType=$(sudo LD_LIBRARY_PATH=/usr/local/lib resources/tools/igetnonce_$platform 2>/dev/null)
@ -478,6 +478,7 @@ function InstallDependencies {
elif [[ $OSTYPE == "darwin"* ]]; then elif [[ $OSTYPE == "darwin"* ]]; then
# macOS # macOS
xcode-select --install
curl -L https://github.com/libimobiledevice-win32/imobiledevice-net/releases/download/v1.3.4/libimobiledevice.1.2.1-r1079-osx-x64.zip -o libimobiledevice.zip curl -L https://github.com/libimobiledevice-win32/imobiledevice-net/releases/download/v1.3.4/libimobiledevice.1.2.1-r1079-osx-x64.zip -o libimobiledevice.zip
rm -rf ../resources/libimobiledevice rm -rf ../resources/libimobiledevice
mkdir ../resources/libimobiledevice mkdir ../resources/libimobiledevice