Appium with IOS apps issue - appium get stuck when switch between apps

Hi everyone i could really use your help on this one, i’ve created an authomation project for android devices (using jsystem,applitools,and selenium,and appium) - all worked very well, but when i’ve tried to build a similar project on iOS, i came across a lot of problems,

The primary one is that when i’m trying to switch (during the authomation test) between different apps, Appium get stuck, and i cannot continue the test (i’m using a mac) and my code is in JAVA.
Any suggestions how to do so? This is very important in my mobile authomation test, since the app i’m testing is opened from other apps.

Thanks in advance.