应用因 Facebook SDK 和 Flurry SDK 中的广告标识符而被拒绝 [英] app rejected because of advertisingIdentifier in Facebook SDK and Flurry SDK

查看:12
本文介绍了应用因 Facebook SDK 和 Flurry SDK 中的广告标识符而被拒绝的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

由于 Facebook sdk 和 Flurry SDK 中的 advertisingIdentifier,我的应用被拒绝了!我发现在最新的 Facebook SDK (3.12) 和 Flurry SDK 中出现了 advertisingIdentifier.也许您可以使用以下方法检查您的图书馆是否发生过这种情况:

My app was rejected because of advertisingIdentifier in Facebook sdk and Flurry SDK ! I found an occurrence of advertisingIdentifier in the latest Facebook SDK (3.12) and Flurry SDK. Maybe you can check your library's for an occurence with the method below:

我在终端中将 FacebookSDK.framework 作为库打开并输入以下命令

I opened the FacebookSDK.framework as a library in the terminal and typed the following command

otool -v -s __TEXT __objc_methname FacebookSDK | grep advertisingIdentifier

和 Flurry SDK 一样.

and the same way for Flurry SDK.

但我不知道该怎么办.?

But I don't know what to do.?

新闻:Flurry 最近更新了不包含advertisingIdentifier"的 SDK,但 Facebook 尚未更新.

For news: Flurry has recently update their SDK that not contain the "advertisingIdentifier", but Facebook not yet.

推荐答案

https 获取源代码://github.com/facebook/facebook-ios-sdk ,而不是编译好的框架.只需删除框架并粘贴源代码即可.

Get the source code from https://github.com/facebook/facebook-ios-sdk , instead of the compiled framework. Just deleting the framework and pasting in the source code should do it.

进入 FBUtility.m 并修改此方法:

Go to FBUtility.m and modify this method:

+ (NSString *)advertiserID {
    NSString *advertiserID = nil;
    Class ASIdentifierManagerClass = [FBDynamicFrameworkLoader loadClass:@"ASIdentifierManager" withFramework:@"AdSupport"];
    if ([ASIdentifierManagerClass class]) {
        ASIdentifierManager *manager = [ASIdentifierManagerClass sharedManager];
        advertiserID = [[manager advertisingIdentifier] UUIDString];
    }
    return advertiserID;
}

+ (NSString *)advertiserID {
   return @"";
}

这篇关于应用因 Facebook SDK 和 Flurry SDK 中的广告标识符而被拒绝的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆