Skip to content

Commit

Permalink
Adding option to clear uicache on install
Browse files Browse the repository at this point in the history
  • Loading branch information
tsparber committed Dec 28, 2015
1 parent cb7d73f commit 1037319
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion bin/iosod
Expand Up @@ -205,7 +205,7 @@ export Action_RunFuncOnDevice=("func" "[-h host_address] [-p host_port] function
or, if that variable does not exist, the default SSH port 22 is used.
Available functions:
respring, reboot")
respring, reboot, uicache")

export Action_XcodeBuildPhaseLogos=("--xcbp-logos" "" "" 0 0 xcodeBuildPhase_Logos false \
" DO NOT USE. For use by Xcode as a Build Phase for projects created from
Expand Down Expand Up @@ -1468,6 +1468,9 @@ function runFuncOnDevice() # args: function, hostAddress, hostPort
respring)
cmd="killall SpringBoard"
;;
uicache)
cmd="su mobile -c uicache"
;;
*)
panic $? "Invalid function: $func"
;;
Expand Down Expand Up @@ -1779,6 +1782,12 @@ function xcodeBuildPhase() # no args
# install package on device #
managePackageOnDevice "install" "$allPackagesDir/$packageFileName" "$iOSOpenDevDevice" "$iOSOpenDevPort"
# clear uicache? #
if [[ "$iOSOpenDevClearUiCacheOnInstall" == "YES" ]]; then
echo "Clearing uicache device..."
runFuncOnDevice "uicache" "$iOSOpenDevDevice"
fi
# respring? #
if [[ "$iOSOpenDevRespringOnInstall" == "YES" ]]; then
echo "Respringing device..."
Expand Down

0 comments on commit 1037319

Please sign in to comment.