2016-03-01 84 views
1

我正在使用Appcelerator來處理iPhone應用程序。應用程序中的所有東西都正常工作,但現在有一個警報顯示在此處。 Error ScreenShotNSURLerrordomain錯誤-1202使用Appcelerator

+0

你使用'Ti.Network.HTTPClient'或使用任何API或模塊互聯網?有沒有任何https網址稱爲您知道可能有無效的證書? –

回答

0

快速谷歌搜索應該把你的錯誤代碼的列表 (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

這意味着服務器證書似乎存在問題。

此錯誤的快速搜索爲我們提供了一個可能的原因:

手機的時間可能是錯誤

One of my iPhone users gets an NSURLErrorServerCertificateUntrusted error

編輯

我沒有經驗與加速器。此解決方法僅適用於本地,但是,該想法應該是相同的。

和解決方法,如果你使用NSURLConnection的:

它利用的

NSUrlConnection -connection:didReceiveAuthenticationChallenge: 

HTTPS with NSURLConnection - NSURLErrorServerCertificateUntrusted

相關問題