Ios simulator opening twice everytime with appium, also the tests run twice everytime, how do I control this?

ios simulator opening twice everytime I use appium code to do so, please let me know how to stop this, it even opens 3 or 4 times sometimes, but minimum 2 times for sure.

Not able to get past this, any idea anyone?

Can you post your capabilities and code?