Getting Error Domain=NSURLErrorDomain Code=-1001 "The request timed out." error in iOS simulator while tried to restart network when it is already booted

I am trying to run an application on iOS 12 simulator. I have disabled and enabled network while the simulator was booted. However, I am getting the below error:
Code Block
Error Domain=NSURLErrorDomain Code=-1001 "The request timed out." NSLocalizedDescription=The request timed out., _kCFStreamErrorDomainKey=1,

And due to this problem, network is not recognised by my application. I have seen several posts on this but none helped me out. Any leads or this is a bug?

Getting Error Domain=NSURLErrorDomain Code=-1001 "The request timed out." error in iOS simulator while tried to restart network when it is already booted
 
 
Q