I'm using the code below. It functions correctly on iOS 27.2 Beta 1 but crashes on iOS 27.2 Beta 2.
API implemented here
Xcode version - Version 27.2 beta (27B5019j)
iOS Version - iOS 27.2 Beta 1 and Beta 2 behavior
App Store region - Germany
if (@available(iOS 27.2, *)) {
[ATTrackingManager requestTrackingAuthorizationUsingExpandedInterface:YES
additionalInformationAction:^{
NSLog(@"[ATT] Additional Information Clicked");
}
completionHandler:^(ATTrackingManagerAuthorizationStatus status) {
NSLog(@"[ATT] completion status: %ld", (long)status);
}];
Resulted in a crash at runtime. No error at compile time.
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '+[ATTrackingManager requestTrackingAuthorizationUsingExpandedInterface:additionalInformationAction:completionHandler:]: unrecognized selector sent to class 0x28f3d0f80'
*** First throw call stack:
(0x1998ee8e0 0x19966c380 0x1999ee444 0x1998aa774 0x1998aaa30 0x1020a3a60 0x102fc8558 0x102fe1df0 0x103003dd8 0x102fd8340 0x102fd8280 0x1998a0614 0x19989187c 0x1998927e4 0x24643df24 0x19da6db54 0x1020a5264 0x1996e35b8)
libc++abi: terminating due to uncaught exception of type NSException
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '+[ATTrackingManager requestTrackingAuthorizationUsingExpandedInterface:additionalInformationAction:completionHandler:]: unrecognized selector sent to class 0x28f3d0f80'
*** First throw call stack:
(0x1998ee8e0 0x19966c380 0x1999ee444 0x1998aa774 0x1998aaa30 0x1020a3a60 0x102fc8558 0x102fe1df0 0x103003dd8 0x102fd8340 0x102fd8280 0x1998a0614 0x19989187c 0x1998927e4 0x24643df24 0x19da6db54 0x1020a5264 0x1996e35b8)
terminating due to uncaught exception of type NSException
0
0
69