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

查看:91
本文介绍了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 is set to 7.0, but the range of supported deployment target version for this platform is 8.0 to 12.1.

我的模拟器OS 12.1
Xcode 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

在我的目标中

推荐答案

您可以设置y我们的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 |pi|
    pi.pods_project.targets.each do |t|
      t.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天全站免登陆