为什么我的Xcode控制台出现"握手失败"错误?

TIM*_*MEX 10 xcode ios swift

2015-08-01 22:30:43.893 MyApp[2425:284133] ERROR: handshake failed ... The request timed out.
2015-08-01 22:30:43.896 MyApp[2425:284133] ERROR: handshake failed ... The request timed out.
2015-08-01 22:30:43.899 MyApp[2425:284133] ERROR: handshake failed ... The request timed out.
2015-08-01 22:30:43.912 MyApp[2425:284133] ERROR: handshake failed ... The request timed out.
2015-08-01 22:30:43.913 MyApp[2425:284133] ERROR: handshake failed ... The request timed out.
2015-08-01 22:30:43.913 MyApp[2425:284133] ERROR: handshake failed ... The request timed out.
2015-08-01 22:30:43.914 MyApp[2425:284133] ERROR: handshake failed ... The request timed out.
2015-08-01 22:30:43.914 MyApp[2425:284133] ERROR: handshake failed ... The request timed out.
2015-08-01 22:30:43.915 MyApp[2425:284133] ERROR: handshake failed ... The request timed out.
2015-08-01 22:30:43.915 MyApp[2425:284133] ERROR: handshake failed ... The request timed out.
Run Code Online (Sandbox Code Playgroud)

我一直在随意得到这个.如何确切地检查导致此问题的框架/库?它只是在我的Xcode控制台中打印.

Gau*_*ain 0

如果 api 长时间没有响应,就会发生超时,通常设置为 15、30 或 60 秒。

您的时间戳也分为一秒,这清楚地表明您正在使用套接字连接,并且可能使用相同的库,这就是这里的问题。检查您正在使用的库。这将是服务器端问题。