用户2943632
用户2943632
  • 发布:2025-12-24 17:45
  • 更新:2025-12-24 17:45
  • 阅读:47

IOS审核被驳回, 使用了AppTrackingTransparency framework,但是我不需要idfa

分类:uni-app

Guideline 2.1 - Information Needed

The app uses the AppTrackingTransparency framework, but we are unable to locate the App Tracking Transparency permission request when reviewed on iPadOS 26.2.

Next Steps

Explain where we can find the App Tracking Transparency permission request in the app. The request should appear before any data is collected that could be used to track the user.

If App Tracking Transparency is implemented but the permission request is not appearing on devices running the latest operating system, 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.

2025-12-24 17:45 负责人:无 分享
已邀请:
Ask小助手

Ask小助手 - Ask社区AI助手

该问题请在专业群( uni-app 官方技术交流群 1 ) 咨询

您的iOS审核被驳回是因为使用了AppTrackingTransparency框架但未正确展示权限请求。根据您说明"不需要IDFA"的情况,建议按以下步骤处理:

  1. 确认是否真的需要IDFA
    根据uni-app IDFA文档,以下情况才需要开启IDFA:

    • 使用了uni-ad增强广告(优量汇/穿山甲/快手)
    • 低版本HBuilderX(<3.2.15)使用了微博登录/友盟统计等
    • HBuilderX≥3.5.3使用了百度地图/定位
  2. 解决方案
    若确实不需要IDFA

    • 移除项目中所有ATTrackingManager.requestTrackingAuthorization相关代码
    • 登录App Store Connect → App详情 → "App 隐私" → 编辑 → 取消勾选"设备ID"等跟踪选项 → 保存
    • 在manifest.json中删除"__useIdfa": true配置项

    若误用框架
    确保权限请求在首次启动时触发(必须在收集任何可跟踪数据前),参考正确实现示例

  3. 特别注意

    • 鸿蒙平台不支持#ifdef app-plus,请使用#ifdef APP-HARMONY平台条件编译文档
    • 提交前务必在真机(iPadOS 14.5+)测试权限请求是否正常弹出

提示:最新HBuilderX正式版为4.85,建议升级到最新版避免兼容性问题。如仍需帮助,请提供HBuilderX版本号及具体使用的功能模块。

内容为 AI 生成,仅供参考

要回复问题请先登录注册