问题描述
我正在使用 Facebook Audience Network SDK,这是我的代码:
i m using Facebook Audience Network SDK,this is my code:
-(void)loadInterstitialAd
{
FBInterstitialAd *interstitialAd =
[[FBInterstitialAd alloc] initWithPlacementID:@"1783280735273073_1783280748606405"];
interstitialAd.delegate = self;
[interstitialAd loadAd];
}
但是有个问题:
2016-10-10 15:44:47.296707 facebookADTest[35670:2286565] [] 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 0x00000001064af80e __nw_create_backtrace_string + 123
1 libnetwork.dylib 0x000000010693f194 nw_socket_add_input_handler + 3002
2 libnetwork.dylib 0x000000010691cdb8 nw_endpoint_flow_attach_protocols + 3768
3 libnetwork.dylib 0x000000010691bdd5 nw_endpoint_flow_setup_socket + 563
4 libnetwork.dylib 0x000000010691ab34 -[NWConcrete_nw_endpoint_flow startWithHandler:] + 2612
5 libnetwork.dylib 0x0000000106935d11 nw_endpoint_handler_path_change + 1261
6 libnetwork.dylib 0x0000000106935740 nw_endpoint_handler_start + 570
7 libnetwork.dylib 0x000000010694d003 nw_endpoint_resolver_start_next_child + 2240
8 libdispatch.dylib 0x000000
我不知道这个问题是什么情况,我找不到任何关于它的信息,有什么想法吗?
i dont know what case this problem,and i cannot find any info about it,is there any idea?
推荐答案
我确保你使用的是 simulator
测试,SO_NOAPNFALLBK
socket 是 Apple
加入iOS10
,在真机上使用.
I ensure you are using simulator
test,SO_NOAPNFALLBK
socket is Apple
add in iOS10
, it use in real device.
您可以在 Scheme
中关闭它:
You could close it in the Scheme
:
Edit Scheme
-> Arguments
-> Environment Variables
-> 添加 OS_ACTIVITY_MODE:disable
Edit Scheme
-> Arguments
-> Environment Variables
-> add OS_ACTIVITY_MODE:disable
希望这可以解决您的问题.
Hope this can solve your problem.
这篇关于facebook_ads_api 显示“nw_socket_set_common_sockopts setsockopt SO_NOAPNFALLBK 失败:[42] 协议不可用,转储回溯"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!