繁体   English   中英

NSURLerrordomain错误-1202使用Appcelerator

[英]NSURLerrordomain error -1202 Using Appcelerator

我正在使用Appcelerator开发iPhone应用程序。应用程序中的所有内容都可以正常运行。但是现在在此显示了一个警报。 错误画面截图

谷歌快速搜索应该带您到错误代码列表( https://developer.apple.com/library/mac/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_Constants/index.html#//apple_ref/doc/ constant_group / URL_Loading_System_Error_Codes

在这里,我们可以找到以下内容

NSURLErrorServerCertificateUntrusted = -1202

这意味着服务器证书似乎有问题。

快速搜索此错误可为我们提供可能的原因:

电话时间可能不对

我的一位iPhone用户收到了NSURLErrorServerCertificateUntrusted错误

编辑

我没有使用appcelerator的经验。 此解决方法仅适用于本机,但是,思路应相同。

还有一种解决方法,如果您使用的是NSUrlConnection:

这利用了

NSUrlConnection -connection:didReceiveAuthenticationChallenge:

具有NSURLConnection的HTTPS-NSURLErrorServerCertificateUntrusted

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM