May I ask how to adapt to devices using ADClient under iOS 14.3? xcode version: 16.0 beta (16A5171c) error message:Use of undeclared identifier 'ADClient'
if (@available(iOS 14.3, *)) {
NSError *error = nil;
NSString *token = [AAAttribution attributionTokenWithError:&error];
} else {
if ([[ADClient sharedClient] respondsToSelector:@selector(requestAttributionDetailsWithBlock:)]) {
[[ADClient sharedClient] requestAttributionDetailsWithBlock:^(NSDictionary<NSString *,
NSObject *> * _Nullable attributionDetails,
NSError * _Nullable error) {
}];
}
}
It seems like a duplicate post https://developer.apple.com/forums/thread/759156
The iAd
framework was deprecated. We strongly encourage you to remove that code as soon as possible.
- Xcode Warnings: Since iOS 14.5, Xcode has been emitting deprecated warnings for
iAd
API usage. These warnings are your first sign to start planning. Beginning with future iOS versions, these symbols may be remove entirely.