ATTrackingManager.requestTrackingAuthorization stopped working in iOS 15

相比最近好多人遇到IDFA的申請但是悲劇的情況,在百度上是搜不到任何關于這方面的信息的,全是iOS14.5,沒有一個iOS15的,
沒辦法,只好出去看看了
Before it was working fine for iOS 14 and 14.5 and I didn't change anything.
Got "NSUserTrackingUsageDescription" in the info.plist, added and imported the framework and added the following code in my AppDelegate:
# -----? ?didFinishLaunchingWithOptions? -----
?if #available(iOS 14, *) {
ATTrackingManager.requestTrackingAuthorization(completionHandler: { status in
// Tracking authorization completed. Start loading ads here.
// loadAd()
})
} else {
}
# -----? ?在??didFinishLaunchingWithOptions?里面調用以上代碼塊還是會被拒的? -----
因為蘋果現在要讓在? applicationDidBecomeActive 之后調用
func sceneDidBecomeActive(_ scene: UIScene{
? DispatchQueue.main.asyncAfter(deadline: .now() + 1.0){
? ? ????if #available(iOS 14, *) {
????????????????ATTrackingManager.requestTrackingAuthorization(completionHandler: { status in
? ? ? ? ? ? ? ? ? ? ? ? // Tracking authorization? completed. Start loading ads here.
????????????????????????// loadAd()
????????????????})
????????} else { }
? ? }
}
問題是,我在加載后的firstVC中請求的依然逃不過悲劇的下場,
測試時候只能每次刪除app來測試,一切正常,提交審核悲劇了,不知道蘋果那邊鬧的什么鬼