You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

ITMS-90809报错:含AppsFlyerFramework的iOS构建遭App Store拒绝

解决ITMS-90809:AppsFlyerFramework引发的UIWebView弃用问题

关于最新版AppsFlyerFramework是否引用UIWebView

AppsFlyer在近年的稳定版本中已经完全移除了UIWebView的依赖,全面切换为WKWebView。但如果你的项目使用的不是最新版,大概率还存在UIWebView的遗留引用,这就是导致提交被拒的核心原因。

解决步骤

  • 升级到最新版AppsFlyerFramework
    在Podfile中指定当前最新稳定版本(例如~> 6.12.0):

    pod 'AppsFlyerFramework', '~> 6.12.0'
    

    终端执行pod update AppsFlyerFramework,确保依赖完全更新。

  • 验证UIWebView引用是否清除
    项目构建完成后,进入Products目录下的.app文件路径,执行以下命令检查:

    grep -r "UIWebView" .
    

    若无输出则说明引用已清除;若仍有结果,检查Pods中的AppsFlyerFramework是否更新成功,或是否存在其他间接依赖链。

  • 强制跳过UIWebView相关代码编译
    若升级后仍有残留,可在Podfile中添加post_install钩子,通过预编译宏让AppsFlyer跳过UIWebView代码:

    post_install do |installer|
      installer.pods_project.targets.each do |target|
        if target.name == 'AppsFlyerFramework'
          target.build_configurations.each do |config|
            config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] ||= []
            config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] << 'AF_SKIP_UIWEBVIEW=1'
          end
        end
      end
    end
    

    添加后重新执行pod install。

  • 清理缓存后重新构建归档
    先执行pod deintegrate移除现有Pods,再执行pod install重新安装;同时删除Xcode的Derived Data(路径:Xcode -> 偏好设置 -> 位置 -> 派生数据,点击箭头打开文件夹删除对应项目缓存),最后重新构建归档提交。

内容的提问来源于stack exchange,提问作者Scam

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.10 04:07:10