your app is debuggable?
can you try:
- get your code into your mac
- open it with xcode
- build your app for some simulator
- get your builded “*.app” file
- now try same with appium
looks same issue like yours is Appium test on ios opens and close the application over and over again