2016-05-23 45 views

回答

4

不,info.plist中沒有與廣告標識符相關的內容。

當您將應用程序提交到App Store時,您需要檢查一些事情,以便通知Apple您正在使用該標識符。更多詳細信息有關,在這裏:

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

這裏是如何檢索廣告識別碼:

目標C -

@import AdSupport;

...

的NSString * ADID = [[[ASIdentifierManager sharedManager] advertisingIdentifier] UUIDString];

斯威夫特 -

進口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 
    } 

(更新斯威夫特3.0)

3

沒有,但你可以使用github.com/fastlane完全自動化交付過程(包括愚蠢的IDFA單選按鈕攔截器)。

相關問題