Lost Connection to device after mac os update on M1

I have updated my mac OS to 11.3 and since then my Ios app is crashing. The app was working perfectly fine before the OS update.It just simply shows Lost connection to the device. The app is working fine on the android emulator.The very first time I will install app on simulator everything will be ok, after stopping and restarting the app it will start to crash after 10 to 15 seconds or sometime after 1 mint may be. Does anyone has ever got this problem? Fixes I have tried:
Clearing Mac cache logs and temp files
Updating the Xcode to the latest version
Installing the app on IOS 13.3
Lost Connection to device after mac os update on M1
 
 
Q