Compilation failed, how to adapt iOS versions below 14.3
xcode16 beta not support iAd
xcode version : 16.0 beta (16A5171c)
Compilation error example code:
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) {
}];
}
}