iOS IM登录报6002错误

标签: #<Tag:0x00007f657f5eeb60>

iOS im SDK登录账户第一次登录成功,后面就一直登录失败。下面是日志

**2019-05-10 08:57:59.799299+0800 牧通人才网[17008:1021430] [DYMTLInitPlatform] platform initialization successful**

**2019-05-10 08:58:00.828177+0800 牧通人才网[17008:1021228] [NetworkInfo] Signal strength query returned error: Error Domain=NSPOSIXErrorDomain Code=13 "Permission denied", descriptor: &lt;CTServiceDescriptor 0x2808531c0, domain=1, instance=1&gt;**

**2019-05-10 08:58:01.780340+0800 牧通人才网[17008:1021451] | JIGUANG | I - [JMSGBridge]** 

**------------------- JMessage SDK --------------------**

**------------- JMessage SDK version:3.9.0, build:228 ---------**

**------------- JCore Lib Version:2.0.0, build:59 ---------**

**------------- AppKey:01c9ecefa7951921d650d79c ---------**

**---------------------------------------------------------**

**2019-05-10 08:58:01.783409+0800 牧通人才网[17008:1021451] | JIGUANG | I - [JMSGClientController] Action - jmessage setup**

**2019-05-10 08:58:01.783870+0800 牧通人才网[17008:1021451] | JIGUANG | D - [JIGUANGIMController] loginState:0**

**2019-05-10 08:58:01.798553+0800 牧通人才网[17008:1021411] | JIGUANG | D - [JMSGUser] Action - loginWithUsername:::: - username:heli**

**2019-05-10 08:58:01.801551+0800 牧通人才网[17008:1021450] | JIGUANG | D - [JIGUANGService] Action - JPUSH begin Setup with appkey:01c9ecefa7951921d650d79c channel:Publish channel isProduction:FALSE advertisingIdentifier:**

**2019-05-10 08:58:01.803291+0800 牧通人才网[17008:1021451] | JIGUANG | I - [JIGUANGService]** 

**--------------------------- JPush Log ----------------------------**

**--------------------JPush SDK Version:3.1.2--build:71----------**

**--------------------JCore Lib Version:2.0.0--build:59----------**

**-----------------AppKey:01c9ecefa7951921d650d79c----------------**

**----------------------------------------------------------------**

**2019-05-10 08:58:01.902892+0800 牧通人才网[17008:1021451] [NetworkInfo] Signal strength query returned error: Error Domain=NSPOSIXErrorDomain Code=13 "Permission denied", descriptor: &lt;CTServiceDescriptor 0x28080d7e0, domain=1, instance=1&gt;**

**2019-05-10 08:58:01.979667+0800 牧通人才网[17008:1021479] | JIGUANG | E - [JIGUANGConfigController] advertisingIdentifier无效,将不上报advertisingIdentifier值。请检查'启动SDK方法'中的参数值,或者是否限制广告跟踪**

**2019-05-10 08:58:01.986408+0800 牧通人才网[17008:1021457] | JIGUANG | D - [JMSGBridge] init jcore success.**

**2019-05-10 08:58:02.006220+0800 牧通人才网[17008:1021457] | JIGUANG | D - [JMessage+JMSGInner] Action - sendRequest - TCP:1**

**2019-05-10 08:58:02.009170+0800 牧通人才网[17008:1021457] | JIGUANG | D - [JIGUANGIMController] send im request with type:jmsg_type_login,rid:1**

**2019-05-10 08:58:02.026594+0800 牧通人才网[17008:1021457] [NetworkInfo] Signal strength query returned error: Error Domain=NSPOSIXErrorDomain Code=13 "Permission denied", descriptor: &lt;CTServiceDescriptor 0x28080f420, domain=1, instance=1&gt;**

**2019-05-10 08:58:02.028601+0800 牧通人才网[17008:1021450] | JIGUANG | I - [JIGUANGConnectManager] Action - closeConection**

**2019-05-10 08:58:02.030420+0800 牧通人才网[17008:1021450] | JIGUANG | D - [JIGUANGSisManager] Action - isSisOnProtect**

**2019-05-10 08:58:02.031488+0800 牧通人才网[17008:1021450] | JIGUANG | D - [JIGUANGSisManager] sis is not on protect**

**2019-05-10 08:58:02.035928+0800 牧通人才网[17008:1021457] | JIGUANG | I - [JIGUANGClientController] Action - jpush setup**

**2019-05-10 08:58:02.039367+0800 牧通人才网[17008:1021450] | JIGUANG | I - [JIGUANGClientController] Action - setup**

**2019-05-10 08:58:02.042612+0800 牧通人才网[17008:1021450] | JIGUANG | D - [JIGUANGNetworkController] Action - trySetupSession**

**2019-05-10 08:58:02.044266+0800 牧通人才网[17008:1021474] | JIGUANG | D - [JIGUANGNetworkController] userDefaut verified: 1**

**2019-05-10 08:58:02.081592+0800 牧通人才网[17008:1021470] [NetworkInfo] Signal strength query returned error: Error Domain=NSPOSIXErrorDomain Code=13 "Permission denied", descriptor: &lt;CTServiceDescriptor 0x28080fe00, domain=1, instance=1&gt;**

**2019-05-10 08:58:02.089325+0800 牧通人才网[17008:1021451] | JIGUANG | D - [JIGUANGUdpSocket] send udp data**

**2019-05-10 08:58:02.089895+0800 牧通人才网[17008:1021451] | JIGUANG | D - [JIGUANGUdpSocket] send udp data succeed**

**2019-05-10 08:58:02.090467+0800 牧通人才网[17008:1021451] | JIGUANG | D - [JIGUANGTcpChannelController] 未登录状态,请求被丢弃**

**2019-05-10 08:58:02.096157+0800 牧通人才网[17008:1021451] | JIGUANG | D - [JIGUANGUdpSocket] udp socket begin send behavior**

**2019-05-10 08:58:02.236259+0800 牧通人才网[17008:1021501] [] nw_connection_copy_connected_path [C2] Client called nw_connection_copy_connected_path on unconnected nw_connection**

**2019-05-10 08:58:02.239923+0800 牧通人才网[17008:1021501] [] tcp_connection_is_cellular No connected path**

**2019-05-10 08:58:02.589040+0800 牧通人才网[17008:1021470] [NetworkInfo] Signal strength query returned error: Error Domain=NSPOSIXErrorDomain Code=13 "Permission denied", descriptor: &lt;CTServiceDescriptor 0x2808065e0, domain=1, instance=1&gt;**

**2019-05-10 08:58:02.656159+0800 牧通人才网[17008:1021470] [NetworkInfo] Signal strength query returned error: Error Domain=NSPOSIXErrorDomain Code=13 "Permission denied", descriptor: &lt;CTServiceDescriptor 0x280806c80, domain=1, instance=1&gt;**

**2019-05-10 08:58:02.677859+0800 牧通人才网[17008:1021470] [NetworkInfo] Signal strength query returned error: Error Domain=NSPOSIXErrorDomain Code=13 "Permission denied", descriptor: &lt;CTServiceDescriptor 0x280806e80, domain=1, instance=1&gt;**

**2019-05-10 08:58:02.682923+0800 牧通人才网[17008:1021411] | JIGUANG | D - [JIGUANGLocationController] WWAN 信息:{**

**generation = wifi;**

**itime = 1557449882;**

**"mobile_country_code" = 460;**

**"mobile_network_code" = 11;**

**"radio_type" = lte;**

**}**

**2019-05-10 08:58:02.818138+0800 牧通人才网[17008:1021477] | JIGUANG | D - [JIGUANGUdpSis] Action - parse**

**2019-05-10 08:58:03.000562+0800 牧通人才网[17008:1021451] | JIGUANG | D - [JIGUANGUdpSocket] close udp socket**

**2019-05-10 08:58:03.035422+0800 牧通人才网[17008:1021470] [NetworkInfo] Signal strength query returned error: Error Domain=NSPOSIXErrorDomain Code=13 "Permission denied", descriptor: &lt;CTServiceDescriptor 0x280865920, domain=1, instance=1&gt;**

**2019-05-10 08:58:03.052586+0800 牧通人才网[17008:1021470] [NetworkInfo] Signal strength query returned error: Error Domain=NSPOSIXErrorDomain Code=13 "Permission denied", descriptor: &lt;CTServiceDescriptor 0x280878760, domain=1, instance=1&gt;**

**2019-05-10 08:58:03.079974+0800 牧通人才网[17008:1021479] | JIGUANG | D - [JIGUANGTcpSocket] 连接主机成功**

**2019-05-10 08:58:03.127809+0800 牧通人才网[17008:1021450] | JIGUANG | D - [JIGUANGUtilities] JCOREPostNotificationWithUserInfo name: kJPUSHNetworkDidSetupNotification (null)**

**2019-05-10 08:58:03.129200+0800 牧通人才网[17008:1021450] | JIGUANG | D - [JIGUANGTcpChannelController] Action - doSendTcpRequest**

**2019-05-10 08:58:03.240968+0800 牧通人才网[17008:1021424] | JIGUANG | I - [JIGUANGRegister]** 

**----- register info -----**

**Appkey: 01c9ecefa7951921d650d79c**

**token:** 

 **advertisingIdentifier:**

**2019-05-10 08:58:03.243180+0800 牧通人才网[17008:1021424] | JIGUANG | D - [JIGUANGRegister] Register info - strKey:iPhone080b060702010f0e0b$$ $$com.mutongrencaiwang$$01c9ecefa7951921d650d79c clientInfo:12.1.4$$iPhone7,2$$ $$ $$Publish channel$$3.1.2| | |2.0.0| | , deviceToken:, aps-Environment:1, configApsEnvironment:1 advertisingIdentifier:**

**2019-05-10 08:58:03.606568+0800 牧通人才网[17008:1021424] | JIGUANG | I - [JIGUANGTcpEventController]** 

**----- register result -----**

**uid: 24707648807**

**registrationID:18171adc0343f3f026a**

**2019-05-10 08:58:03.647325+0800 牧通人才网[17008:1021479] | JIGUANG | D - [JIGUANGUtilities] JCOREPostNotificationWithUserInfo name: kJPUSHNetworkDidRegisterNotification {**

**RegistrationID = 18171adc0343f3f026a;**

**StatusCode = 0;**

**}**

**2019-05-10 08:58:03.657328+0800 牧通人才网[17008:1021474] | JIGUANG | D - [JIGUANGTcpChannelController] Action - doSendTcpRequest**

**2019-05-10 08:58:03.657418+0800 牧通人才网[17008:1021228] registrationID获取成功:18171adc0343f3f026a**

**2019-05-10 08:58:03.667647+0800 牧通人才网[17008:1021411] | JIGUANG | D - [JIGUANGClientInfo] login JCore with IM loginOut**

**2019-05-10 08:58:03.718683+0800 牧通人才网[17008:1021474] | JIGUANG | I - [JIGUANGTcpEventController]** 

**----- login result -----**

**uid:24707648807** 

**registrationID:18171adc0343f3f026a** 

**idc:0**

**2019-05-10 08:58:03.727094+0800 牧通人才网[17008:1021411] | JIGUANG | D - [JMSGReceiver] Action - p_didJPushDidLoginNotification:**

**2019-05-10 08:58:03.728777+0800 牧通人才网[17008:1021474] | JIGUANG | E - [JMessage+JMSGInner] user didn't login, please login first!**

**2019-05-10 08:58:03.731437+0800 牧通人才网[17008:1021457] | JIGUANG | D - [JIGUANGUtilities] JCOREPostNotificationWithUserInfo name: kJPUSHNetworkDidLoginNotification (null)**

**2019-05-10 08:58:03.744155+0800 牧通人才网[17008:1021228] [MC] System group container for systemgroup.com.apple.configurationprofiles path is /private/var/containers/Shared/SystemGroup/systemgroup.com.apple.configurationprofiles**

**2019-05-10 08:58:03.745805+0800 牧通人才网[17008:1021228] [MC] Reading from public effective user settings.**

**2019-05-10 08:58:03.847270+0800 牧通人才网[17008:1021470] [NetworkInfo] Signal strength query returned error: Error Domain=NSPOSIXErrorDomain Code=13 "Permission denied", descriptor: &lt;CTServiceDescriptor 0x280817200, domain=1, instance=1&gt;**

**2019-05-10 08:58:03.980757+0800 牧通人才网[17008:1021228] [LayoutConstraints] Unable to simultaneously satisfy constraints.**

**Probably at least one of the constraints in the following list is one you don't want.** 

**Try this:** 

**(1) look at each constraint and try to figure out which you don't expect;** 

**(2) find the code that added the unwanted constraint or constraints and fix it.** 

**(**

**"&lt;NSLayoutConstraint:0x282b7a990 V:|-(64)-[UIView:0x117d45d70] (active, names: '|':SFSafariView:0x117e15890 )&gt;",**

**"&lt;NSLayoutConstraint:0x282b78dc0 UIView:0x117d45d70.bottom == SFSafariView:0x117e15890.bottom (active)&gt;",**

**"&lt;NSLayoutConstraint:0x282b60cd0 'UIView-Encapsulated-Layout-Height' SFSafariView:0x117e15890.height == 30 (active)&gt;"**

**)**

**Will attempt to recover by breaking constraint** 

**&lt;NSLayoutConstraint:0x282b78dc0 UIView:0x117d45d70.bottom == SFSafariView:0x117e15890.bottom (active)&gt;**

**Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger.**

**The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in &lt;UIKitCore/UIView.h&gt; may also be helpful.**

**2019-05-10 08:58:03.995127+0800 牧通人才网[17008:1021411] | JIGUANG | D - [JIGUANGService] Action - registerDeviceToken: &lt;a3eb1a0d ca48403d 9d2e72a3 087a53b5 08f1bc4b 4319a792 cefdb4e6 827b2f19&gt;**

**2019-05-10 08:58:03.996491+0800 牧通人才网[17008:1021451] | JIGUANG | D - [JIGUANGService] Action - registerDeviceToken: &lt;a3eb1a0d ca48403d 9d2e72a3 087a53b5 08f1bc4b 4319a792 cefdb4e6 827b2f19&gt;**

**2019-05-10 08:58:04.216506+0800 牧通人才网[17008:1021470] [NetworkInfo] Signal strength query returned error: Error Domain=NSPOSIXErrorDomain Code=13 "Permission denied", descriptor: &lt;CTServiceDescriptor 0x28081f0a0, domain=1, instance=1&gt;**

**2019-05-10 08:58:04.251041+0800 牧通人才网[17008:1021451] | JIGUANG | D - [JIGUANGUserDefaultsController] Action - setCurrentDeviceToken - a3eb1a0dca48403d9d2e72a3087a53b508f1bc4b4319a792cefdb4e6827b2f19**

**2019-05-10 08:58:04.265028+0800 牧通人才网[17008:1021474] | JIGUANG | D - [JIGUANGDeviceTokenController] the same device token, not be updated again**

**2019-05-10 08:58:04.265580+0800 牧通人才网[17008:1021424] | JIGUANG | D - [JIGUANGTcpChannelController] Action - doSendTcpRequest**

**2019-05-10 08:58:04.284638+0800 牧通人才网[17008:1021424] | JIGUANG | I - [JIGUANGDeviceTokenReport] try to upload device token:a3eb1a0dca48403d9d2e72a3087a53b508f1bc4b4319a792cefdb4e6827b2f19**

**2019-05-10 08:58:04.293678+0800 牧通人才网[17008:1021424] | JIGUANG | D - [JIGUANGTcpChannelController] Action - doSendTcpRequest**

**2019-05-10 08:58:04.304451+0800 牧通人才网[17008:1021424] | JIGUANG | I - [JIGUANGDeviceTokenReport] try to upload device token:a3eb1a0dca48403d9d2e72a3087a53b508f1bc4b4319a792cefdb4e6827b2f19**

**2019-05-10 08:58:04.304795+0800 牧通人才网[17008:1021424] | JIGUANG | D - [JIGUANGTcpChannelController] Action - doSendTcpRequest**

**2019-05-10 08:58:04.317629+0800 牧通人才网[17008:1021424] | JIGUANG | I - [JIGUANGDeviceTokenReport] try to upload device token:a3eb1a0dca48403d9d2e72a3087a53b508f1bc4b4319a792cefdb4e6827b2f19**

**2019-05-10 08:58:04.544552+0800 牧通人才网[17008:1021474] | JIGUANG | D - [JIGUANGSisManager] httpsis, type:device_info, address list:(**

**"https://ali-stats.jpush.cn/v3/report",**

**"https://stats.jpush.cn/v3/report",**

**"https://183.232.25.151:443/v3/report"**

**)**

**2019-05-10 08:58:04.549324+0800 牧通人才网[17008:1021474] | JIGUANG | D - [JIGUANGSisManager] httpsis, type:battery, address list:(**

**"https://ali-stats.jpush.cn/v3/report",**

**"https://stats.jpush.cn/v3/report",**

**"https://183.232.25.151:443/v3/report"**

**)**

**2019-05-10 08:58:04.554405+0800 牧通人才网[17008:1021474] | JIGUANG | D - [JIGUANGSisManager] httpsis, type:loc_info, address list:(**

**"https://gd-stats.jpush.cn/v3/report",**

**"https://stats.jpush.cn/v3/report",**

**"https://183.232.25.151:443/v3/report"**

**)**

**2019-05-10 08:58:04.560884+0800 牧通人才网[17008:1021411] | JIGUANG | D - [JIGUANGSisManager] httpsis, type:active_user, address list:(**

**"https://ali-stats.jpush.cn/v3/report",**

**"https://stats.jpush.cn/v3/report",**

**"https://183.232.25.151:443/v3/report"**

**)**

**2019-05-10 08:58:04.572989+0800 牧通人才网[17008:1021474] | JIGUANG | D - [JIGUANGSisManager] httpsis, type:ios_notification_state, address list:(**

**"https://gd-stats.jpush.cn/v3/report",**

**"https://stats.jpush.cn/v3/report",**

**"https://183.232.25.151:443/v3/report"**

**)**

**2019-05-10 08:58:04.572037+0800 牧通人才网[17008:1021450] [BoringSSL] nw_protocol_boringssl_get_output_frames(1301) [C12.1:2][0x117d219c0] get output frames failed, state 8196**

**2019-05-10 08:58:04.577539+0800 牧通人才网[17008:1021450] [BoringSSL] nw_protocol_boringssl_get_output_frames(1301) [C12.1:2][0x117d219c0] get output frames failed, state 8196**

**2019-05-10 08:58:04.578482+0800 牧通人才网[17008:1021450] TIC Read Status [12:0x0]: 1:57**

**2019-05-10 08:58:04.596081+0800 牧通人才网[17008:1021450] TIC Read Status [12:0x0]: 1:57**

**2019-05-10 08:58:04.666516+0800 牧通人才网[17008:1021474] | JIGUANG | D - [JIGUANGTcpEventController] upload device token success, current token is : a3eb1a0dca48403d9d2e72a3087a53b508f1bc4b4319a792cefdb4e6827b2f19**

**2019-05-10 08:58:04.735651+0800 牧通人才网[17008:1021411] | JIGUANG | D - [JIGUANGTcpEventController] upload device token success, current token is : a3eb1a0dca48403d9d2e72a3087a53b508f1bc4b4319a792cefdb4e6827b2f19**

**2019-05-10 08:58:04.748334+0800 牧通人才网[17008:1021474] | JIGUANG | D - [JIGUANGTcpEventController] upload device token success, current token is : a3eb1a0dca48403d9d2e72a3087a53b508f1bc4b4319a792cefdb4e6827b2f19**

**2019-05-10 08:58:06.687645+0800 牧通人才网[17008:1021451] | JIGUANG | D - [JMSGReceiver] Action - p_applicationDidBecomeActive**

**2019-05-10 08:58:06.697298+0800 牧通人才网[17008:1021457] | JIGUANG | D - [JIGUANGHttpChannelController] send report:{**

**"app_key" = 01c9ecefa7951921d650d79c;**

**"app_version" = "1.1";**

**channel = "Publish channel";**

**content = (**

**{**

**itime = 1557449882;**

**level = 25;**

**status = 2;**

**type = battery;**

**}**

**);**

**"core_sdk_ver" = "2.0.0";**

**platform = i;**

**"sdk_ver" = "3.1.2";**

**"share_sdk_ver" = "";**

**"ssp_sdk_ver" = "";**

**"statistics_sdk_ver" = "";**

**uid = 24707648807;**

**"verification_sdk_ver" = "";**

**} end, result:success**

**2019-05-10 08:58:06.700600+0800 牧通人才网[17008:1021474] | JIGUANG | D - [JIGUANGHttpChannelController] send report:{**

**"app_key" = 01c9ecefa7951921d650d79c;**

**"app_version" = "1.1";**

**channel = "Publish channel";**

**content = (**

**{**

**itime = 1557449882;**

**language = "zh-Hans-CN";**

**model = "iPhone7,2";**

**"os_version" = "12.1.4";**

**resolution = 750x1334;**

**timezone = "+8";**

**type = "device_info";**

**}**

**);**

**"core_sdk_ver" = "2.0.0";**

**platform = i;**

**"sdk_ver" = "3.1.2";**

**"share_sdk_ver" = "";**

**"ssp_sdk_ver" = "";**

**"statistics_sdk_ver" = "";**

**uid = 24707648807;**

**"verification_sdk_ver" = "";**

**} end, result:success**

**2019-05-10 08:58:07.075180+0800 牧通人才网[17008:1021411] | JIGUANG | D - [JIGUANGHttpChannelController] send report:{**

**"app_key" = 01c9ecefa7951921d650d79c;**

**"app_version" = "1.1";**

**channel = "Publish channel";**

**content = (**

**{**

**data = (**

**{**

**cell = (**

**{**

**generation = wifi;**

**itime = 1557449882;**

**"mobile_country_code" = 460;**

**"mobile_network_code" = 11;**

**"radio_type" = lte;**

**}**

**);**

**itime = 1557449882;**

**}**

**);**

**itime = 1557449882;**

**"network_type" = "WIFI,";**

**type = "loc_info";**

**}**

**);**

**"core_sdk_ver" = "2.0.0";**

**platform = i;**

**"sdk_ver" = "3.1.2";**

**"share_sdk_ver" = "";**

**"ssp_sdk_ver" = "";**

**"statistics_sdk_ver" = "";**

**uid = 24707648807;**

**"verification_sdk_ver" = "";**

**} end, result:success**

**2019-05-10 08:58:07.081212+0800 牧通人才网[17008:1021411] | JIGUANG | D - [JIGUANGLocationController] sendAppLocationReport success**

**2019-05-10 08:58:07.081926+0800 牧通人才网[17008:1021411] | JIGUANG | D - [JIGUANGHttpChannelController] send report:{**

**"app_key" = 01c9ecefa7951921d650d79c;**

**"app_version" = "1.1";**

**channel = "Publish channel";**

**content = (**

**{**

**alert = 0;**

**"alert_style" = 0;**

**"auth_status" = 0;**

**badge = 0;**

**"car_play" = 0;**

**"critical_alert" = 0;**

**"device_id" = 88d56747e4599b54c7c409b7c79652a4;**

**itime = 1557449883;**

**"lock_screen" = 0;**

**notification = 0;**

**"provides_app_notification" = 0;**

**sound = 0;**

**"sys_ver" = "12.1.4";**

**"trigger_scene" = 2;**

**type = "ios_notification_state";**

**}**

**);**

**"core_sdk_ver" = "2.0.0";**

**platform = i;**

**"sdk_ver" = "3.1.2";**

**"share_sdk_ver" = "";**

**"ssp_sdk_ver" = "";**

**"statistics_sdk_ver" = "";**

**uid = 24707648807;**

**"verification_sdk_ver" = "";**

**} end, result:success**

**2019-05-10 08:58:07.410183+0800 牧通人才网[17008:1021411] | JIGUANG | D - [JIGUANGHttpChannelController] send report:{**

**"app_key" = 01c9ecefa7951921d650d79c;**

**"app_version" = "1.1";**

**channel = "Publish channel";**

**content = (**

**{**

**date = "2019-05-10";**

**itime = 1557449882;**

**"session_id" = 0982b7923f0abdc5f2f37a73e6f9b8da;**

**time = "08:58:02";**

**timezone = "+8";**

**type = "active_launch";**

**}**

**);**

**"core_sdk_ver" = "2.0.0";**

**platform = i;**

**"sdk_ver" = "3.1.2";**

**"share_sdk_ver" = "";**

**"ssp_sdk_ver" = "";**

**"statistics_sdk_ver" = "";**

**uid = 24707648807;**

**"verification_sdk_ver" = "";**

**} end, result:success**

**2019-05-10 08:58:07.411870+0800 牧通人才网[17008:1021411] | JIGUANG | D - [JIGUANGActiveUserController] launchReport 成功**

**2019-05-10 08:58:15.397421+0800 牧通人才网[17008:1021228] 服务器的错误原因:{"status":400,"msg":"你没有登录"}**

**2019-05-10 08:58:32.011445+0800 牧通人才网[17008:1021411] | JIGUANG | D - [JIGUANGIMController] request withType:jmsg_type_login,rid:1,uid:0, failedWithErrorCode:6002**

**2019-05-10 08:58:32.015485+0800 牧通人才网[17008:1021411] | JIGUANG | D - [JIGUANGIMController] request failed request is - [JMSGIMRequestArg] - requestType:1, requestArg:name-&gt;heli,password-&gt;25F9E794323B453885F5181F1B624D0B,sdkVersion-&gt;3.9.0**

**2019-05-10 08:58:32.022500+0800 牧通人才网[17008:1021411] | JIGUANG | D - [JMessage+JMSGInner] Action - jmsg_checkTcpErrorCode: code:6002**

**2019-05-10 08:58:32.022910+0800 牧通人才网[17008:1021411] | JIGUANG | E - [JMSGUser] login error:Error Domain=jmsg_error Code=6002 "JMSGError:request timeout" UserInfo={NSLocalizedDescription=JMSGError:request timeout}**

**2019-05-10 08:58:32.023819+0800 牧通人才网[17008:1021228] error-----(null)-------Error Domain=jmsg_error Code=6002 "JMSGError:request timeout" UserInfo={NSLocalizedDescription=JMSGError:request timeout}**

**2019-05-10 08:58:32.023938+0800 牧通人才网[17008:1021228] IM登录失败**

Message from debugger: Terminated due to signal 9

使用的是什么网络,使用 4 G测试一下,使用 SDK 中的demo 在你的手机上测试一下看看。

另外,你如果真机测试,JMessage 加了通知功能,注意需要在官网上配置iOS证书

为什么只能在移动网络下登录 WiFi网络环境就不可以呢?

这说明你连的 WiFi有网络限制,有的公司内网是限制了部分网络连接的

谢谢 了解了!

同一个账号 在一一样的环境 一个手机是5c 一个是7 5c就无法登录 但是7就可以!