Guideline 2.1 - Information Needed
We’re looking forward to completing our review, but we need more information to continue. Your app uses the AppTrackingTransparency framework, but we are unable to locate the App Tracking Transparency permission request when reviewed on iOS 16.5.1.
Next Steps
Please explain where we can find the App Tracking Transparency permission request in your app. The request should appear before any data is collected that could be used to track the user.
If you’ve implemented App Tracking Transparency but the permission request is not appearing on devices running the latest OS, please review the available documentation and confirm App Tracking Transparency has been correctly implemented.
If your app does not track users, update your app privacy information in App Store Connect to not declare tracking. You must have the Account Holder or Admin role to update app privacy information.
解决:
info.plist NSUserTrackingUsageDescription 权限
#import <AppTrackingTransparency/AppTrackingTransparency.h>
#import <AdSupport/AdSupport.h>
在applicationDidBecomeActive (程序进入前台) 里写 百度说要在注册通知以后调用
//iOS14以上 请求跟踪授权
if(@available(iOS 14.0, *))
{
[ATTrackingManager requestTrackingAuthorizationWithCompletionHandler:^(ATTrackingManagerAuthorizationStatus status) {
if(status == ATTrackingManagerAuthorizationStatusAuthorized)
{
NSString *adid = [[[ASIdentifierManager sharedManager] advertisingIdentifier]UUIDString];
}
}];
}
else{
//低于14
NSString *adid = [[[ASIdentifierManager sharedManager] advertisingIdentifier]UUIDString];
}
Undefined symbols for architecture arm64:
“OBJC_CLASSKaTeX parse error: Expected group after '_' at position 86: … "_OBJC_CLASS_̲_ATTrackingManager”, referenced from:
objc-class-ref in xxxx.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
因为引入AdSupport 和 AppTrackingTransparency的链接有问题。需要把AdSupport.framework 和 AppTrackingTransparency.framework 导入到TARGETS framework里