Add message about restore errors on Windows

This commit is contained in:
LukeZGD 2021-09-30 23:05:25 +08:00
parent 5ad141bd3c
commit f84a5f28bf
2 changed files with 10 additions and 4 deletions

View File

@ -96,6 +96,7 @@
- For Homebrew: `brew install libimobiledevice libirecovery`
- For MacPorts: `sudo port install libimobiledevice libirecovery`
- The script will detect this automatically and will use the Homebrew/MacPorts versions of the tools
- Windows users may encounter errors like `Unable to send APTicket` or `Unable to send iBEC` in the restore process. To fix this, [follow steps 1 to 5 here](https://github.com/m1stadev/futurerestore/tree/test#unable-to-send-ibec-error--8) then run the script again
- **For A7 devices:**
- Do not use USB-C to lightning cables as this can prevent a successful restore
- ipwndfu is unfortunately very unreliable on Linux, you may have to try multiple times (Linux users may also try in a live USB)

View File

@ -6,11 +6,16 @@ iDeviceRestore() {
mkdir shsh
mv $SHSH shsh/${UniqueChipID}-${ProductType}-${OSVer}.shsh
$idevicerestore -ewy $IPSWRestore.ipsw
if [[ $platform == "macos" && $? != 0 ]]; then
if [[ $? != 0 && $platform != "linux" ]]; then
Log "An error seems to have occurred when running idevicerestore."
Echo "* If this is the \"Killed: 9\" error or similar, try these steps:"
Echo "* Using Terminal, cd to where the script is located, then run"
Echo "* sudo codesign --sign - --force --deep resources/tools/idevicerestore_macos"
if [[ $platform == "macos" ]]; then
Echo "* If this is the \"Killed: 9\" error or similar, try these steps:"
Echo "* Using Terminal, cd to where the script is located, then run"
Echo "* sudo codesign --sign - --force --deep resources/tools/idevicerestore_macos"
elif [[ $platform == "win" ]]; then
Echo "* Windows users may encounter errors like \"Unable to send APTicket\" or \"Unable to send iBEC\" in the restore process."
Echo "* To fix this, follow steps 1 to 5 here: https://github.com/m1stadev/futurerestore/tree/test#unable-to-send-ibec-error--8"
fi
fi
}