Skip to content

Instantly share code, notes, and snippets.

@0xallie
Created December 18, 2020 19:17
Show Gist options
  • Save 0xallie/661d695e3e3da12897796368440d60f5 to your computer and use it in GitHub Desktop.
Save 0xallie/661d695e3e3da12897796368440d60f5 to your computer and use it in GitHub Desktop.
Sideload IPA on jailbroken iOS device (like AppSync Unified, the installed apps will only work when the device is in jailbroken state)
#!/bin/bash
if (( EUID != 0 )); then
printf 'This script must be run as root.\n' >&2
exit 1
fi
if [[ $1 != *.ipa ]]; then
printf 'Usage: %s file.ipa\n' "$0" >&2
exit 1
fi
rm -rf Payload
unzip "$1"
pushd Payload
dir=(*.app)
mv "${dir[0]}" /Applications/
uicache -p "/Applications/${dir[0]}" -r
popd
rm -rf Payload
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment