我正在尝试使用 Countly 从我的最终二进制文件中排除 IDFA,因此我可以对出口合规性问题“您的应用程序使用 IDFA 吗?”回答否。
像这里提到的那样添加COUNTLY_EXCLUDE_IDFA=1
是行不通的。Build Settings > Preprocessor Macros
我已将其范围缩小到#ifndef
不符合预期。这是我尝试过的:
COUNTLY_EXCLUDE_IDFA=1
添加在Build Settings > Preprocessor Macros
:
#ifndef COUNTLY_EXCLUDE_IDFA
printf("!EXCLUDED\n");
#else
printf("EXCLUDED\n");
#endif
>> prints !EXCLUDED
COUNTLY_EXCLUDE_IDFA
没有定义在Build Settings > Preprocessor Macros
:
#ifndef COUNTLY_EXCLUDE_IDFA
printf("!EXCLUDED\n");
#else
printf("EXCLUDED\n");
#endif
>> prints !EXCLUDED
#ifndef
如果未定义宏,我希望包含一个块。现在#ifndef
无论我是否在Build Settings > Preprocessor Macros
.