I am using Appium 1.8.1 Desktop version with iOS 10.3.1 and Xcode 9.2. Running the automation scripts with the Cucumber Test Runner class on real iOS device. Using IntelliJ editor 2016.1.1
If a feature file has 2 scenarios, first scenario executed perfectly fine and when second is about to begin, Appium is reinstalling the build twice followed up with a “Session does not exist” error. Due to this, second scenario never gets executed and results in failure. If a scenario is run individually it runs fine.
Also noticed that, even if the IntelliJ editor stops the execution of the scenarios, Appium server still continues to install the builds and same error displayed. Is someone came across this issue. Please help.