我在连接服务器时遇到错误:Error Domain=NSURLErrorDomain Code=-1202 "The certificate for this server is invalid. You might be connecting to a server that is pretending to be “...” which could put your confidential information at risk."
。我试过了this。但它仅适用于模拟器。当我在我的iOS设备上测试时,它无法连接到服务器。什么是不正确的?有人能帮助我吗?