当我在xCode 5中验证我的应用时,获取错误不正确的广告标识符[IDFA]用法 [英] Getting error improper advertising identifier [IDFA] usage,when i am validating my app in xCode 5
问题描述
在验证我的应用时,我收到错误消息
when validating my app, I get an error saying
广告标识符使用不当。您的应用包含广告标识符[IDFA] API但您不尊重在iOS中限制广告跟踪设置。
"Improper Advertising Identifier Usage. Your app contains the Advertising Identifier [IDFA] API but you have not respecting the Limit Ad Tracking setting in iOS."
我在广告标识符的准备上传页面上检查了是。我在我的应用中使用revmob广告和flurry分析(COCOS2D-X项目)。如何解决这个问题,我已经尝试了很多但没有成功。我使用下面的代码进入appdelegate但没有运气。
I have check "Yes" on the Prepare for Upload page for Advertising Identifier.I am using revmob ads and flurry analytics in my app(COCOS2D-X project).How to fix this issue, I have tried a lot but not succeed.I have use below code into appdelegate but no luck.
- (NSString *)identifierForAdvertising
{
if([[ASIdentifierManager sharedManager] isAdvertisingTrackingEnabled])
{
NSUUID *IDFA = [[ASIdentifierManager sharedManager] advertisingIdentifier];
return [IDFA UUIDString];
}
return nil;
}
推荐答案
这个IDFA问题今天仍然在我身上发生。我将其跟踪到 GoogleAnalytics pod ,因此我只是通过指定 pod'GoogleAnalytics-iOS-SDK','〜>将pod更新为latist版本。 3.0.7'
在podfile中,修复了问题。该版本之前未指定,但使用的是3.0.3。
this IDFA issue was still happening for me today. I tracked it down to the GoogleAnalytics pod, so I just updated the pod to the latist version by specifying pod 'GoogleAnalytics-iOS-SDK', '~> 3.0.7'
in the podfile which fixed the issue for me. the version was previously unspecified but was using 3.0.3.
这篇关于当我在xCode 5中验证我的应用时,获取错误不正确的广告标识符[IDFA]用法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!