内容字号:默认大号超大号

段落设置:段首缩进取消段首缩进

字体设置:切换到微软雅黑切换到宋体

IOS10下网络请求异常

2016-10-01 11:30 出处:未知 人气: 评论(0

本以为《微打卡》在ios9下跑的没问题就提交上去了,结果当天就被打回,原因告知是在ios10测试出现bug

于是在xcode8下运行iphone7的模拟器,在日志里看到了下面的信息

2016-09-30 09:44:30.460983 微打卡[21322:1592668] [] nw_socket_set_common_sockopts setsockopt SO_NOAPNFALLBK failed: [42] Protocol not available, dumping backtrace:

[x86_64] libnetcore-856.1.8

0 libsystem_network.dylib 0x000000010badf80e __nw_create_backtrace_string + 123

1 libnetwork.dylib 0x000000010c6e4194 nw_socket_add_input_handler + 3002

2 libnetwork.dylib 0x000000010c6c1db8 nw_endpoint_flow_attach_protocols + 3768

3 libnetwork.dylib 0x000000010c6c0dd5 nw_endpoint_flow_setup_socket + 563

4 libnetwork.dylib 0x000000010c6bfb34 -[NWConcrete_nw_endpoint_flow startWithHandler:] + 2612

5 libnetwork.dylib 0x000000010c6dad11 nw_endpoint_handler_path_change + 1261

6 libnetwork.dylib 0x000000010c6da740 nw_endpoint_handler_start + 570

7 libnetwork.dylib 0x000000010c6f2003 nw_endpoint_resolver_start_next_child + 2240

8 libdispatch.dylib 0x000000

解决方法就是

在xcode,进入菜单product-scheme-edit scheme 添加环境变量 OS_ACTIVITY_MODE 为 disable 即可,如下图

但是,日志里貌似还有一个错误提示

objc[23023]: Class PLBuildVersion is implemented in both /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/PrivateFrameworks/AssetsLibraryServices.framework/AssetsLibraryServices (0x110589910) and /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/PrivateFrameworks/PhotoLibraryServices.framework/PhotoLibraryServices (0x11031c210). One of the two will be used. Which one is undefined.

初步判断是2个库冲突,但是解决方法未知。

分享给小伙伴们:
本文标签: IOS10

相关文章

发表评论愿您的每句评论,都能给大家的生活添色彩,带来共鸣,带来思索,带来快乐。

CopyRight © 2015-2016 QingPingShan.com , All Rights Reserved.