gpt4 book ai didi

ios - 在预编译库中查找 ASIdentifierManager API 用法

转载 作者:行者123 更新时间:2023-11-29 03:16:22 25 4
gpt4 key购买 nike

Apple 拒绝了游戏并显示以下消息。

We found your app uses the iOS Advertising Identifier but does not include ad functionality. This does not comply with the terms of the iOS Developer Program License Agreement, as required by the App Store Review Guidelines.

Specifically, section 3.3.12 of the iOS Developer Program License Agreement states:

"You and Your Applications (and any third party with whom you have contracted to serve advertising) may use the Advertising Identifier, and any information obtained through the use of the Advertising Identifier, only for the purpose of serving advertising. If a user resets the Advertising Identifier, then You agree not to combine, correlate, link or otherwise associate, either directly or indirectly, the prior Advertising Identifier and any derived information with the reset Advertising Identifier."

Please check your code - including any third-party libraries - to remove any instances of:

class: ASIdentifierManager
selector: advertisingIdentifier
framework: AdSupport.framework

If you are planning to incorporate ads in a future version, please remove the Advertising Identifier from your app until you have included ad functionality.

To help locate the Advertising Identifier, use the “nm” tool. For information on the “nm” tool, open a terminal window and enter, “man nm.”

If you do not have access to the libraries source, you may be able to search the compiled binary using the "strings" or "otool" command line tools. The "strings" tool lists the methods that the library calls, and "otool -ov" will list the Objective-C class structures and their defined methods. These techniques can help you narrow down where the problematic code resides.

在我的系统中,找不到otool和nm命令,是否有其他方法可以找到ASIdentifierManager?现在苹果不允许我们链接广告支持框架吗?

最佳答案

您是否已与 Facebook 或 Google Analytics 集成?这些框架使用 AdSupport.Framework。

对于 Google Analytics,您需要更新框架并在“build设置”>“其他链接器标志”中添加“-force_load\GoogleAnalyticsServices”。

对于 Facebook SDK,请从 ( https://github.com/facebook/facebook-ios-sdk ) 获取 FBUtility.m 并将 + (NSString *)advertiserID 方法替换为以下代码:

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

关于ios - 在预编译库中查找 ASIdentifierManager API 用法,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21655130/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com