Reinstall iOS app after each cucumber feature file

Hi All,

I am trying to make Java-cucumber-Appium tests as much independent as possible but to do that i want to reinstall iOS app after finishing all scenarios from one feature file so that we have fresh installation of app for new feature file.
Can someone suggest what would be best way to do this?

Thanks in advance


Well best option would be to use ideviceinstaller (part of libimobiledevice) with which you be able to reinstall app.