flutter' iPhoneos_deployment_target'设置为8.0,但受支持的部署目标版本的范围为9.0至15.4.99

发布于 2025-01-28 21:50:53 字数 2160 浏览 2 评论 0原文

在过去的三年中。我可能花了2周的时间在这个问题上,如果您要克隆并从事其他人民项目,但通常不会单独进行。

Stackoverflow上有很多答案,有时您会使用一个答案,而有时您必须使用另一个答案。我已经解决了这个问题无数次,并且每次都没有使用相同的解决方案。

这是错误:

“ iPhoneos_deployment_target”设置为8.0,但受支持的部署目标版本的范围为9.0至15.4.99。

这个错误实际上是从哪里来的,需要更改颤音中的设置。我将在错误后列出能够修复它的所有方法,但是我想知道的是首先引起此问题的设置在哪里。

这些是我用来解决此问题的设置和方法:

更新POD文件平台:

# Uncomment this line to define a global platform for your project
platform :ios, '13.0'

更新appframeworkinfo.plist:

<key>MinimumOSVersion</key>
<string>13.0</string>

更新Xcode中的跑步者部署目标:

“在此处输入映像”

更新Xcode中的PODS部署目标:

更改podfile中的脚本(这有效但会导致其他错误):

post_install do |installer|
  installer.pods_project.targets.each do |target|
    flutter_additional_ios_build_settings(target)
  end
end

要为此

  post_install do |installer|
 installer.pods_project.targets.each do |target|
     flutter_additional_ios_build_settings(target)
     target.build_configurations.each do |config|
        if config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'].to_f < 13.0
          config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '13.0'
        end
     end
 end

结束

xcode中更新项目格式:

”

也:

  • 删除pod file
  • dreating podfile.lock
  • deleting deleting pods目录
  • 删除。 symlinks目录
  • flutter清洁
  • 启动吊舱
  • pod cache clean -asl
  • pod repo更新
  • pod更新
  • pod pod install

我想知道这个错误是否代表了真实的问题,还是完全是其他问题,因为如果您查看生成的podspec文件,它将列出ios.deployment.deployment.deployment目标为9不是8?误差来自哪里,在哪里可以更改颤音?

谢谢

In the last 3 years. Ive probably spent 2 weeks on this issue, it comes up often if you are cloning and working on other peoples projects but doesn't usually occur on your own.

There are a tonne of answers on the stackoverflow and sometimes you use one answer and it works and other times you have to use another answer. I have solved this issue countless times and never has the same solution worked every time.

this is the error:

'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 15.4.99.

Where is this error actually coming from, what setting in flutter needs to be changed. I will list all the ways below that have been able to fix it after the error but what I want to know is where is the setting that is causing this problem in the first place.

These are the setting and ways I have used to fix this:

Updating pod file platform:

# Uncomment this line to define a global platform for your project
platform :ios, '13.0'

Updating AppFrameworkInfo.plist:

<key>MinimumOSVersion</key>
<string>13.0</string>

Updating runner deployment target in Xcode:

enter image description here

Updating pods deployment target in Xcode:

enter image description here

Changing the script in the podfile (this works but then causes other errors):

post_install do |installer|
  installer.pods_project.targets.each do |target|
    flutter_additional_ios_build_settings(target)
  end
end

to this

  post_install do |installer|
 installer.pods_project.targets.each do |target|
     flutter_additional_ios_build_settings(target)
     target.build_configurations.each do |config|
        if config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'].to_f < 13.0
          config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '13.0'
        end
     end
 end

end

Updating the project format in Xcode:

enter image description here

Also:

  • Deleting pod file
  • Deleting podfile.lock
  • Deleting the pods directory
  • Deleting the .symlinks directory
  • Flutter clean
  • Deintegrating pods
  • Pod cache clean -all
  • Pod repo update
  • Pod update
  • Pod install

I wonder if this error even represents the real issue or whether is is something else entirely because if you look at the generated podspec file it lists the ios.deployment target as 9 not 8?. Where is the error coming from and where in Flutter can this be changed?

Thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文