错误域= NSURLErrorDomain代码= -1202 iPhone

错误域= NSURLErrorDomain代码= -1202 iPhone

问题描述:

我遇到以下错误: 错误域= NSURLErrorDomain代码= -1202此服务器的证书无效.您可能正在连接到假装为"api.linkedin.com"的服务器,这可能会使您的机密信息受到威胁. UserInfo = 0x1c53e630

I am geting following error: Error Domain=NSURLErrorDomain Code=-1202 "The certificate for this server is invalid. You might be connecting to a server that is pretending to be "api.linkedin.com" which could put your confidential information at risk." UserInfo=0x1c53e630

这在模拟器上工作正常,但在设备上却出现上述错误.

This works fine on simulator but on device it is giving above mentioned error.

请帮助纠正它.

是设备设置,需要更改日期和时间,并将其自动设置为当前时区.

It is device setting that need to change the date and time , and set it automatically ON for current time zone .