xcode 如何检查我的应用程序在哪里使用 IDFA
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/31779092/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How do I check where my app is using IDFA
提问by Joshua Moore
While submitting my app to the App Store, I got this message: "Your app is using the Advertising Identifier (IDFA). You must either provide details about the IDFA usage or remove it from the app and submit your binary again."
在向 App Store 提交我的应用程序时,我收到以下消息:“您的应用程序正在使用广告标识符 (IDFA)。您必须提供有关 IDFA 使用情况的详细信息,或者将其从应用程序中删除,然后再次提交您的二进制文件。”
I am no longer displaying ads so I said that I was not using the IDFA when I was asked. I also tried submitting the app by saying that I was using the IDFA to display targeted ads.
我不再展示广告,所以当我被问到时我说我没有使用 IDFA。我还尝试通过说我正在使用 IDFA 来显示有针对性的广告来提交应用程序。
When I WAS displaying ads, I was using MoPub and Facebook Audience Network. Is there a way to see where I was using the IDFA?
当我展示广告时,我使用的是 MoPub 和 Facebook Audience Network。有没有办法查看我在哪里使用 IDFA?
回答by Rumin
In order to check Advertising Identifier, you need to follow the following steps:
为了检查广告标识符,您需要按照以下步骤操作:
Open the terminal window. Run the following command:
cd (drag and drop your project folder here) Your_Project_Path
Now, the current working directory will be your project folder.
Find all the SDK that uses "Advertising Identifier" using following commands:
find . | grep -v .svn | grep "\.a" | grep -v "\.app" | xargs grep advertisingIdentifier
or
find . -type f | grep "\.a" | grep -v "\.app" | xargs grep advertisingIdentifier
and / or
grep -lr "advertisingIdentifier" * | grep -v .svn | grep -v .md
After getting the list of frameworks, search for the frameworks that MATCHES the query. Remove/ Upgrade those frameworks as per your requirement.
打开终端窗口。运行以下命令:
cd (drag and drop your project folder here) Your_Project_Path
现在,当前工作目录将是您的项目文件夹。
使用以下命令查找所有使用“广告标识符”的 SDK:
find . | grep -v .svn | grep "\.a" | grep -v "\.app" | xargs grep advertisingIdentifier
或者
find . -type f | grep "\.a" | grep -v "\.app" | xargs grep advertisingIdentifier
和/或
grep -lr "advertisingIdentifier" * | grep -v .svn | grep -v .md
获取框架列表后,搜索与查询匹配的框架。根据您的要求删除/升级这些框架。