记录一次Flutter项目上传App Store Connect出现“Validation failed”错误的问题

描述

  • Flutter老项目,在flutter3.7之前的版本创建的
  • 现在用Flutter 3.16.9版本适配后,运行iOS都很正常
  • Xcode上 Product -> Archive 打包成功
  • 上传到App Store Connect,在validate环节报错,如下:

错误日志:

erlang 复制代码
...
Invalid Bundle. The bundle Runner.app/Frameworks/App.framework does not support the minimum OS Version specified in the Info.plist.
...

分析

现阶段App Store Connect 要求上传的ipa包的支持的最低系统版本要高于iOS 12.0,应该是项目里的配置或者一些第三方库的支持版本小于12.0了。需要从项目本身和第三方库两个方面着手处理。

处理

  1. 项目支持版本号设置:项目/ios/Podfile文件上面设置 platform :ios, '12.0'

  2. 调整第三方库的支持版本号,同样是修改 项目/ios/Podfile文件

代码 复制代码
post_install do |installer|
  installer.pods_project.targets.each do |target|
    target.build_configurations.each do |config|
      config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '12.0'
    end
  end
end

3.修改AppFrameworkInfo.plist文件里的MinimumOSVersion的值,一些老项目MinimumOSVersion的值都小于12.0(本次是有11.0调整为12.0)。

相关推荐
2501_916007477 小时前
iOS App 上架实战 从内测到应用商店发布的全周期流程解析
android·ios·小程序·https·uni-app·iphone·webview
RaidenLiu11 小时前
从 Provider 迈向 Riverpod 3:核心架构与迁移指南
前端·flutter
叽哥11 小时前
Flutter面试:Dart基础2
flutter·面试·dart
tangweiguo0305198715 小时前
Android原生(Kotlin)与Flutter混合开发 - 设备控制与状态同步解决方案
android·flutter
wjm04100616 小时前
ios八股文 -- Objective-c
开发语言·ios·objective-c
麦兜*1 天前
Swift + Xcode 开发环境搭建终极指南
开发语言·ios·swiftui·xcode·swift·苹果vision pro·swift5.6.3
Digitally1 天前
重置iPhone会删除所有内容吗? 详细回答
ios·iphone
江上清风山间明月1 天前
Flutter AlwaysScrollableScrollPhysics详解
flutter·滚动·scrollable·scrollphysics
普罗米拉稀1 天前
Flutter 复用艺术:Mixin 与 Abstract 的架构哲学与线性化解密
flutter·ios·面试
yangshuo12812 天前
AI编程工具对决:Kilo vs Augment 开发Flutter俄罗斯方块游戏实战对比
flutter·游戏·ai编程