首页 > 解决方案 > iOS Simulator 部署目标设置为 7.0,但此平台支持的部署目标版本范围为 8.0 到 12.1

问题描述

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

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

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

我更新了我的 pod 文件。

在此处输入图像描述

我的部署目标是 9.0

在此处输入图像描述

在我的目标

在此处输入图像描述

标签: iosxcodecocoapodsios-simulatorgoogle-fabric

解决方案


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

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

推荐阅读