[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"$fX64e3KY0v3cEyW4_1jQMIxJeXJ4DgOxH5R5q9_DRkuQ":3},{"code":4,"message":5,"data":6},200,"成功",{"id":7,"createdAt":8,"title":9,"content":10,"summary":11,"image":12,"uid":13,"user":14,"categoryId":21,"category":22,"subCategoryId":24,"subCategory":25,"comments":27,"status":17,"reason":28,"notice":28,"visitCount":29,"commentCount":30,"keywords":31},182,"2026-02-28T03:10:39.681Z","Invalid MinimumOSVersion. App that only support 64-bit devices must specify a deployment target of 8.0 or later","最近在提交iOS app审核时，在最后上传`App Connect`时，给了我一个报错，提示我的部署target版本无效，但同样的环境，两周前还能正常提交，现在报错了。  \n\n在此记录一下。  \n\n## 问题 \n\n> Upload failed with errors:\n> The following issues occurred while distributing your application.\n> Validation failed\n> Invalid MinimumOSVersion. App that only support 64-bit devices must specify a deployment target of 8.0 or later. MinimumOSVersion in 'xxx.app/Frameworks/App.framework' is \".(ID: ac595c50-225c-4599-8378-5bd5daece418)\n\n## 问题截图 \n![ios issue png](https://image.xinwei.ltd/image1772245805345.png) \n\n首先说明一下我的工程是`Flutter`工程，然后编译为iOS进行的发布。  \n\n## 修复问题 \n\n1. 这个问题，首先确认一下自己的iOS工程中的target的deploy配置是否是正常的，有没有可能由于某些原因发生过变化。\n   `XCode -> target -> General -> deployment -> version`\n\n其实这一步查过了没有什么问题。  \n\n2. 右键你刚刚上传的Archive，显示包内容，在frameworks文件夹下查找`App.framework`，继续右键查看包内容，找到`info.plist`文件，查找是否有target deploy的配置。\n\n这一步可能也没有发现什么问题，如果没有找到，那就是证明了这个issue的存在。 \n\n3. 修改Podfile文件 上面的2步只是基础检查，可能并不会有什么帮助，所以我们直接修改Podfile文件，将每一个target都设置deployment target version.\n\n首先，确保顶部的版本设置。 \n```Podfile \n# Uncomment this line to define a global platform for your project\nplatform :ios, '13.0'\n\n```  \n然后在target下针对性的使用module \n```Podfile \ntarget 'Runner' do\n  use_frameworks!\n  use_modular_headers!  这句\n  \n  pod 'SwiftyStoreKit'\n  \n  flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))\n  target 'RunnerTests' do\n    inherit! :search_paths\n  end\nend\n```  \n\n最后针对每一个target进行配置deployment target:\n```terminal\n...\npost_install do |installer|\n  installer.pods_project.targets.each do |target|\n    flutter_additional_ios_build_settings(target)\n    \n    target.build_configurations.each do |config|\n          config.build_settings['SWIFT_VERSION'] = '5.0'\n          config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '13.0'  # 这句\n...\n```\n\n4. 删除Podfile.lock文件，方便后续重新pod install\n\n5. 清理工程\n\n首先clean flutter：\n```terminal\nflutter clean\n```\n\n6. 升级flutter到stable最新版本，防止flutter的版本变化影响。\n\n查看当前flutter的channel：\n```terminal\nflutter --version\n```\n\n如果需要切换到stable：\n```terminal\nflutter channel stable\n```\n\n升级到stable最新版本\n```terminal\nflutter upgrade\n```\n\n然后pub get：\n```terminal\nflutter clean\nflutter pub get\n```\n\n7. 编译为iOS\n```terminal\nflutter build ios\n```\n\n8. 重新archive\n通过Xcode打开iOS工程，重新archive。\n\n9. 上传到App Connect\n\n10. 无报错。\n\n至此，我的问题已经解决了，欢迎大家一起讨论，请关注我。","最近在提交iOS app审核时，在最后上传App Connect时，给了我一个报错，提示我的部署target版本无效，但同样的环境，两周前还能正常提交，现在报错了。","https://image.xinwei.ltd/image1772245805345.png",499668042977349,{"phone":15,"userId":13,"nickName":16,"vipType":17,"avatar":18,"sign":19,"createdAt":20},"13121171998","全栈老韩",1,"https://image.xinwei.ltd/images/IMG_5430.JPG","全栈工程师，擅长iOS App开发、前端（vue、react、nuxt、小程序&Taro）开发、Flutter、React Native、后端（midwayjs、golang、express、koa）开发、docker容器、seo优化等。","2024-01-01T16:14:30.305Z",2,{"id":21,"name":23},"IT技术",3,{"id":24,"name":26,"parentId":21},"iOS",[],"",120,0,"Invalid MinimumOSVersion, 64-bit devices, deployment target of 8.0 or later, ios deploy, ios app deployment target, Validation failed, flutter"]