iOS Simulator 部署目标设置为 7.0,但此平台支持的部署目标版本范围为 8.0 到 12.1 [英] The iOS Simulator deployment targets is set to 7.0, but the range of supported deployment target version for this platform is 8.0 to 12.1

查看:32
本文介绍了iOS Simulator 部署目标设置为 7.0,但此平台支持的部署目标版本范围为 8.0 到 12.1的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 Xcode 10.1 中收到以下警告消息.

I'm getting this below warning message in my Xcode 10.1.

iOS Simulator 部署目标设置为 7.0,但此平台支持的部署目标版本范围为 8.0 到 12.1.

The iOS Simulator deployment targets are set to 7.0, but the range of supported deployment target versions for this platform is 8.0 to 12.1.

我的模拟器操作系统是 12.1Xcode 10.1

My simulator os in 12.1 Xcode 10.1

然后我更新了我的 pod 文件.

And I updated my pod file.

我的部署目标是 9.0

My deployment target is 9.0

在我的目标中

推荐答案

您可以设置 podfile 以自动将所有 podfile 的部署目标与您当前的项目部署目标进行匹配,如下所示:

You can setup your podfile to automatically match the deployment target of all the podfiles to your current project deployment target like this :

post_install do |installer|
 installer.pods_project.targets.each do |target|
  target.build_configurations.each do |config|
   config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '9.0'
  end
 end
end

这篇关于iOS Simulator 部署目标设置为 7.0,但此平台支持的部署目标版本范围为 8.0 到 12.1的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆