If you are running the app in physical iOS Device, sometimes the developer machine is not trusted. On your iPhone go to settings. General. VPN and then select your developer machine and trust.