是否有用于广告标识符使用的 info.plist 密钥

Is there an info.plist key for advertising identifier use

itsappusesnonexemptencryption () 有一个条目,但是广告标识符有一个条目吗?如果有,它是什么?

不,info.plist 中没有任何内容与广告标识符相关。

当您将应用程序提交到 App Store 时,您需要检查一些内容以通知 Apple 您正在使用标识符。此处有更多详细信息:

https://developer.apple.com/library/ios/documentation/LanguagesUtilities/Conceptual/iTunesConnect_Guide/Chapters/SubmittingTheApp.html

检索广告标识符的方法如下:

Objective C -

@import AdSupport;

...

NSString *adId = [[[ASIdentifierManager sharedManager] advertisingIdentifier] UUIDString];

Swift -

导入 AdSupport

...

let myIDFA: String?
    // Check if Advertising Tracking is Enabled
    if ASIdentifierManager.shared().isAdvertisingTrackingEnabled {
        // Set the IDFA
        myIDFA = ASIdentifierManager.shared().advertisingIdentifier.uuidString
    } else {
        myIDFA = nil
    }

(已更新至 Swift 3.0)

不,但您可以使用 Felix Krause 的 https://fastlane.tools 来完全或部分自动化整个交付过程(包括传递这个愚蠢的 IDFA 单选按钮拦截器等)。