Automating upgrade testing for ios app

Has anyone automated this test scenario ?
I need to automate the upgrade test flow and need to confirm that the existing session doesn’t end.

This should be possible. I would try the following

  1. call out to a program like ideviceinstaller to install via command line (in ruby I would use “system”)
  2. Stop your driver
  3. Restart your driver
  4. Check to see your expected ui (session in tact)

Good luck!

This is how I upgrade iOS app on device only using .net