![](/img/trans.png)
[英]phonegap iOS app working on simulator but not in device. How to debug
[英]XMPP Chat server did not connected on iOS Device. while working perfectly on Simulator
我已經使用XMPP 和 open fire 服務器為 iOS 創建了聊天應用程序。 幾天前它工作得很好。 突然間,我面臨着意想不到的行為。 我的應用程序在模擬器上完美運行,但無法在設備上連接。 我正在使用端口5222 。 嘗試在 iOS 設備上連接時出現以下錯誤:
[AppDelegate xmppStreamDidDisconnect:withError:] [Line 482] Error: Error Domain=kCFStreamErrorDomainNetDB Code=8 "nodename nor servname provided, or not known" UserInfo=0x1658d9d0 {NSLocalizedDescription=nodename nor servname provided, or not known}
謝謝
在我的情況下,協議不正確,所以我刪除了它,客戶端由 nginx 從http
重定向到https
僅使用 [self.xmppStream setHostName:@"my.server.url"];
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.